//
// try_cor_exit_process from 0x180131a04 to 0x180131a5f (91 bytes)
//
// 3 xrefs:
// > common_exit @ 0x18013195e
// > exit_or_terminate_process @ 0x1801319f4
// > ??> @ 0x180202f30
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:59 +0000
//
void __fastcall try_cor_exit_process(unsigned int a1)
{
FARPROC CorExitProcess; // rax
HMODULE phModule; // [rsp+38h] [rbp+10h] BYREF
phModule = nullptr;
if ( GetModuleHandleExW(0, L"mscoree.dll", &phModule) )
{
CorExitProcess = GetProcAddress(phModule, "CorExitProcess");
if ( CorExitProcess )
((void (__fastcall *)(_QWORD))CorExitProcess)(a1);
}
if ( phModule )
FreeLibrary(phModule);
}