PspCheckConditionalWakeCharge
UINT8 __stdcall PspCheckConditionalWakeCharge(_EPROCESS *CurrentProcess, _EJOB *TargetJob, _PS_WAKE_REASON WakeReason){
_EPROCESS *v3;
__int64 v5;
int v6;
_QWORD *v7;
v3 = CurrentProcess;
if( !CurrentProcess->Job || *((_QWORD *)CurrentProcess->Job + 135) != *((_QWORD *)TargetJob + 135) )
return 1;
while( PspIsProcessInJob(v3, TargetJob) != 292 || (v6 & *(_DWORD *)(v5 + 952)) == 0 )
{
if( v5 == *v7 )
return 1;
TargetJob = *(_EJOB **)(v5 + 1072);
}
return 0;
}Referenced by:
PspChargeProcessWakeCounter