EmonRestartProfiling

UINT64 __stdcall EmonRestartProfiling(){
  unsigned int v0; 
  unsigned int v1; 
  UINT64 result; 
  unsigned int *v3; 
  int v4; 
  CHAR v5; 
  INT64 v6; 
  UINT64 v7; 
  bool v8; 
  v0 = 0;
  v1 = EmonNumberCounters;
  result = (unsigned int)(EmonNumberCounters * *((_DWORD *)KeGetPcr() + 105));
  if( EmonNumberCounters )
  {
    v3 = (unsigned int *)(EmonCounterStatus + 16i64 * (unsigned int)result + 8);
    do
    {
      v4 = *(v3 - 2);
      if( v4 < 2 )
      {
        v6 = *v3;
        v7 = v3[1];
        v5 = 1;
        v8 = v4 != 1;
      }
      else
      {
        v5 = 0;
        v6 = 0i64;
        v7 = 0i64;
        v8 = 0;
      }
      result = EmonConfigureCounter(v0++, v5, v6, v7, v8);
      v3 += 4;
    }
    while( v0 < v1 );
  }
  return result;
}

Referenced by:

No references.