VOID __fastcall PfSnPowerBoost(_EX_RUNDOWN_REF *RunRef, INT64 a2){
if( (_DWORD)a2 )
{
PfSnPowerBoostUpdate(1ui64);
ExAcquireRundownProtection(RunRef);
KiSetTimerEx((_KTIMER *)&RunRef[1], (_LARGE_INTEGER)-30000000i64, 0i64, 0, (_KDPC *)&RunRef[9]);
}
else
{
if( (unsigned __int8)KeCancelTimer((INT64)&RunRef[1]) )
{
PfSnPowerBoostUpdate(0i64);
ExReleaseRundownProtection(RunRef);
}
ExWaitForRundownProtectionRelease(RunRef);
}
}