HalpInitGenericErrorSourcePollingRoutine

NTSTATUS __stdcall HalpInitGenericErrorSourcePollingRoutine(){
  __int64 v0; 
  NTSTATUS result; 

  *(&CmpDummyThreadEvent + 1009) = 0i64;
  dword_140C49AB4 = 0;
  dword_140C49AB0 = 0;
  *(&CmpDummyThreadEvent + 2016) = 500;
  KeInitializeMutex(&stru_140C49A78, 0);
  v0 = -10000i64 * *(&CmpDummyThreadEvent + 2016);
  KeInitializeDpc(
    (PRKDPC)((char *)&CmpDummyThreadEvent + 8080),
    HalpGenericPolledDpcRoutine,
    (char *)&CmpDummyThreadEvent + 8064);
  *(&CmpDummyThreadEvent + 1018) = 0i64;
  *(&CmpDummyThreadEvent + 1020) = HalpGenericPolledWorkerRoutine;
  *(&CmpDummyThreadEvent + 1021) = (char *)&CmpDummyThreadEvent + 8064;
  KeInitializeTimerEx((INT64)&CmpDummyThreadEvent + 8176, 0);
  KiSetTimerEx(
    (_KTIMER *)((char *)&CmpDummyThreadEvent + 8176),
    (_LARGE_INTEGER)v0,
    *(&CmpDummyThreadEvent + 2016),
    0,
    (_KDPC *)((char *)&CmpDummyThreadEvent + 8080));
  return result;
}

Referenced by:

HalpInitializeGenericErrorSource