//
// 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!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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);
}