HalpMiscInitDiscard
NTSTATUS __stdcall HalpMiscInitDiscard(){
void *MajorVersion;
MajorVersion = (void *)KeGetCurrentPrcb()->MajorVersion;
if( (_WORD)MajorVersion != 1 )
KeBugCheckEx(0x79u, (PVOID)1, MajorVersion, (PVOID)1, 0i64);
*(&stru_140C49C60.State + 4) = 0;
off_140C00A68[0] = (__int64(__fastcall *)())HaliQuerySystemInformation;
off_140C00A70[0] = (__int64(__fastcall *)())HalpSetSystemInformation;
KeRegisterBugCheckReasonCallback(
&stru_140C49C60,
(PKBUGCHECK_REASON_CALLBACK_ROUTINE)HalpMiscBugCheckCallback,
KbCallbackReserved1,
(PUCHAR)"HAL");
if( byte_140C49C48 )
__debugbreak();
return 0;
}Referenced by:
HalpMiscInitSystem