WheapInitializeEventing

VOID __stdcall WheapInitializeEventing(){
  _SLIST_ENTRY *v0; 
  __int64 v1; 

  *(&WheapDeferredInternalLogsEventLock + 32) = 1;
  *(&WheapDeferredInternalLogsEventLock + 5) = (char *)&WheapDeferredInternalLogsEventLock + 32;
  *(&WheapDeferredInternalLogsEventLock + 4) = (char *)&WheapDeferredInternalLogsEventLock + 32;
  *(&WheapDeferredInternalLogsEventLock + 66) = 6;
  qword_140C15DA8 = (__int64)&WheapDeferredInternalLogs;
  WheapDeferredInternalLogs = (__int64)&WheapDeferredInternalLogs;
  *(&WheapDeferredInternalLogsEventLock + 17) = 1;
  *(&WheapDeferredInternalLogsEventLock + 10) = (char *)&WheapDeferredInternalLogsEventLock + 72;
  *(&WheapDeferredInternalLogsEventLock + 9) = (char *)&WheapDeferredInternalLogsEventLock + 72;
  WheapDeferredInternalLogsEventLock = 1;
  *(&WheapDeferredInternalLogsEventLock + 2) = (char *)&WheapDeferredInternalLogsEventLock + 8;
  *(&WheapDeferredInternalLogsEventLock + 1) = (char *)&WheapDeferredInternalLogsEventLock + 8;
  *(&SbiVmbusArrivalEvent + 382) = 0i64;
  *(&WheapDeferredInternalLogsEventLock + 2) = 6;
  *(&WheapDeferredInternalLogsEventLock + 1) = 1;
  *(&SbiVmbusArrivalEvent + 190) = 0i64;
  if( (unsigned int)EtwRegister(
                       (_LPCGUID)&WHEA_ETW_PROVIDER,
                       (PETWENABLECALLBACK)WheapEtwEnableCallback,
                       0i64,
                       (PREGHANDLE)&SbiVmbusArrivalEvent + 383) )
    *(&SbiVmbusArrivalEvent + 383) = 0i64;
  if( ((unsigned __int8)&WheapIpmiLogEntryList & 0xF) != 0 )
    RtlRaiseStatus(-2147483646);
  v0 = &WheapIpmiLogEntry;
  WheapIpmiLogEntryList = 0i64;
  v1 = 128i64;
  do
  {
    memset(v0, 0i64, 0x70u);
    RtlpInterlockedPushEntrySList(&WheapIpmiLogEntryList, v0);
    v0 += 7;
    --v1;
  }
  while( v1 );
}

Referenced by:

WheaInitialize