LogFwStat

LARGE_INTEGER __fastcall LogFwStat(INT64 a1, INT64 a2, LARGE_INTEGER *a3){
  int v3; 
  __int64 v4; 
  LARGE_INTEGER result; 
  _BYTE *v6; 
  __int64 v7; 
  __int64 v8; 
  __int64 v9; 
  __int64 v10; 
  int v11; 
  int v12; 
  int v13; 
  int v14; 
  int v15; 
  int v16; 
  __int64 v17; 
  __int64 v18; 
  int v19; 
  __int64 v20; 
  v3 = a1;
  v4 = (int)a2;
  BgpFwQueryPerformanceCounter(a3, (_BYTE *)a2);
  qword_140CDAEE8 = result.QuadPart;
  if( v3 )
  {
    *(&qword_140C53FF0 + v4) = result.QuadPart;
    return result;
  }
  BgpFwQueryPerformanceCounter(0i64, v6);
  v8 = v7 - *(&qword_140C53FF0 + v4);
  qword_140CDAF30 = v8;
  if( !(_DWORD)v4 )
  {
    v9 = qword_140C10FE8;
    if( v8 < qword_140C10FE8 )
      v9 = v8;
    qword_140C10FE8 = v9;
    v10 = qword_140CDAEC0;
    if( v8 > qword_140CDAEC0 )
      v10 = v8;
LABEL_8:
    qword_140CDAEE0 += v8;
    ++dword_140CDAEF8;
    qword_140CDAEC0 = v10;
    goto LABEL_9;
  }
  v11 = v4 - 1;
  if( !v11 )
  {
    v20 = qword_140C10FE8;
    if( v8 < qword_140C10FE8 )
      v20 = v8;
    qword_140C10FE8 = v20;
    v10 = qword_140CDAEC0;
    if( v8 > qword_140CDAEC0 )
      v10 = v8;
    qword_140CDAF00 += v8;
    goto LABEL_8;
  }
  v12 = v11 - 1;
  if( v12 )
  {
    v13 = v12 - 1;
    if( !v13 )
    {
      qword_140CDAF40 += v8;
      return(LARGE_INTEGER)qword_140CDAEE8;
    }
    v14 = v13 - 1;
    if( !v14 )
    {
      qword_140CDAF48 += v8;
      return(LARGE_INTEGER)qword_140CDAEE8;
    }
    v15 = v14 - 1;
    if( v15 )
    {
      v16 = v15 - 1;
      if( v16 )
      {
        v19 = v16 - 1;
        if( v19 )
        {
          if( v19 == 1 )
            qword_140CF4D30 += v8;
        }
        else
        {
          qword_140CDAEC8 = v8;
        }
      }
      else
      {
        v17 = qword_140C10FF8;
        if( v8 < qword_140C10FF8 )
          v17 = v8;
        qword_140C10FF8 = v17;
        v18 = qword_140CDAED0;
        if( v8 > qword_140CDAED0 )
          v18 = v8;
        qword_140CDAED8 += v8;
        qword_140CDAEF0 += v8;
        ++dword_140CDAEB0;
        qword_140CDAED0 = v18;
      }
      return(LARGE_INTEGER)qword_140CDAEE8;
    }
    qword_140CDAED8 += v8;
    qword_140CDAF20 = v8;
  }
  else
  {
    qword_140CDAEE0 += v8;
    qword_140CDAF08 = v8;
  }
LABEL_9:
  qword_140CDAEF0 += v8;
  return(LARGE_INTEGER)qword_140CDAEE8;
}

Referenced by:

AnFwDisplayFade
AnFwDisplayProgressIndicator
AnFwFadeCompletion
AnFwpFadeAnimationTimer
AnFwpProgressAnimationManual
AnFwpProgressIndicatorTimer