KeInitializeQueue

VOID __stdcall KeInitializeQueue(_KQUEUE *Queue, UINT64 Count){
  *(_BYTE *)Queue = 4;
  *(_WORD *)((char *)Queue + 1) = 4096;
  *((_QWORD *)Queue + 2) = (char *)Queue + 8;
  *((_QWORD *)Queue + 1) = (char *)Queue + 8;
  *((_QWORD *)Queue + 4) = (char *)Queue + 24;
  *((_QWORD *)Queue + 3) = (char *)Queue + 24;
  *((_QWORD *)Queue + 7) = (char *)Queue + 48;
  *((_QWORD *)Queue + 6) = (char *)Queue + 48;
  *((_DWORD *)Queue + 1) = 0;
  *((_DWORD *)Queue + 10) = 0;
  if( !(_DWORD)Count )
    LODWORD(Count) = KeQueryActiveProcessorCountEx(0xFFFFu);
  *((_DWORD *)Queue + 11) = Count;
}

Referenced by:

EtwpCreateUmReplyObject
ExpWorkerFactoryInitialization
FsRtlInitializeWorkerThread
IopInitializePassiveInterruptServices
KeInitializeUmsThread
NtCreateIoCompletion