PopFxSetGlobalDeviceAccountingEnabled
INT64 __fastcall PopFxSetGlobalDeviceAccountingEnabled(CHAR a1){
UINT64 v1;
unsigned __int8 v3;
unsigned __int64 v4;
INT64 result;
KeAcquireSpinLockRaiseToDpc(&PopFxGlobalDeviceAccountingLock, v1);
v4 = v3;
if( a1 )
{
if( PopFxGlobalDeviceAccountingInfo[0] )
qword_140C246E8 = *(_QWORD *)&KUSER_SHARED_DATA.InterruptTime.LowPart;
else
++xmmword_140C24700;
}
else if( PopFxGlobalDeviceAccountingInfo[0] )
{
PopFxUpdateGlobalDeviceAccountingInfo(*(UINT64 *)&KUSER_SHARED_DATA.InterruptTime.LowPart, 0x47868C00ui64);
}
LOBYTE(byte_140C246E1) = a1;
KxReleaseSpinLock(&PopFxGlobalDeviceAccountingLock);
result = (unsigned int)KiIrqlFlags;
__writecr8(v4);
return result;
}Referenced by:
PopFxPauseDeviceAccounting
PopFxResumeDeviceAccounting