// // exit_or_terminate_process from 0x1801319b8 to 0x180131a02 (74 bytes) // // 3 xrefs: // > common_exit @ 0x1801319b2 // > @ 0x180202f18 // > @ 0x180202f24 // // 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 __noreturn exit_or_terminate_process(UINT a1) { HANDLE CurrentProcess; // rax if ( (unsigned int)_acrt_get_process_end_policy() != 1 && (NtCurrentPeb()->NtGlobalFlag & 0x100) == 0 ) { CurrentProcess = GetCurrentProcess(); TerminateProcess(CurrentProcess, a1); } try_cor_exit_process(a1); ExitProcess(a1); }