AlpcpWaitForSingleObject

VOID __stdcall AlpcpWaitForSingleObject(
        PVOID Object,
        _KWAIT_REASON WaitReason,
        CHAR WaitMode,
        UINT8 Alertable,
        _LARGE_INTEGER *Timeout){
  unsigned int v9; 
  _ETHREAD *CurrentThread; 
  KeLeaveCriticalRegion();
  v9 = KeWaitForSingleObject(Object, WaitReason, WaitMode, Alertable, Timeout);
  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --*((_WORD *)CurrentThread + 242);
  if( AlpcpLogEnabled )
    AlpcpLogUnwait(v9);
}

Referenced by:

AlpcpCompleteDeferSignalRequestAndWait
AlpcpReceiveMessagePort
AlpcpReceiveSynchronousReply