PpmCheckArmPeriod

VOID __stdcall PpmCheckArmPeriod(UINT8 Reset){
  char v1; 
  __int64 v2; 
  v1 = PpmCheckArmed;
  v2 = PpmCheckMinimumPeriod;
  if( (unsigned int)(10000 * *((_DWORD *)PpmCurrentProfile + 684 * dword_140C23D0C + 15)) > (unsigned __int64)PpmCheckMinimumPeriod )
    v2 = (unsigned int)(10000 * *((_DWORD *)PpmCurrentProfile + 684 * dword_140C23D0C + 15));
  if( !PpmCheckArmed )
    goto LABEL_7;
  if( v2 != PpmCheckPeriod )
  {
    _InterlockedExchange64((volatile __int64 *)&PpmCheckLastExecutionTime, 0i64);
    v1 = 0;
    PpmCheckArmed = 0;
  }
  if( !v1 )
  {
LABEL_7:
    PpmCheckPeriod = v2;
    PpmCheckResetProcessors(0i64);
    _InterlockedExchange64((volatile __int64 *)&PpmCheckLastExecutionTime, 1i64);
    PpmCheckArmed = 1;
  }
}

Referenced by:

No references.