; ; exit_or_terminate_process from 0x1801319b8 to 0x180131a02 (74 bytes) ; ; 3 xrefs: ; > common_exit @ 0x1801319b2 ; > @ 0x180202f18 ; > @ 0x180202f24 ; ; 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 ; push rbx ; +0x0, 0x1801319b8 sub rsp, 20h ; +0x2, 0x1801319ba mov ebx, ecx ; +0x6, 0x1801319be call __acrt_get_process_end_policy ; +0x8, 0x1801319c0 cmp eax, 1 ; +0xd, 0x1801319c5 jz short loc_1801319F2 ; +0x10, 0x1801319c8 mov rax, gs:60h ; +0x12, 0x1801319ca mov edx, [rax+0BCh] ; +0x1b, 0x1801319d3 shr edx, 8 ; +0x21, 0x1801319d9 test dl, 1 ; +0x24, 0x1801319dc jnz short loc_1801319F2 ; +0x27, 0x1801319df call cs:GetCurrentProcess ; +0x29, 0x1801319e1 mov rcx, rax; hProcess ; +0x2f, 0x1801319e7 mov edx, ebx; uExitCode ; +0x32, 0x1801319ea call cs:TerminateProcess ; +0x34, 0x1801319ec mov ecx, ebx; unsigned int ; +0x3a, 0x1801319f2 call ?try_cor_exit_process@@YAXI@Z ; +0x3c, 0x1801319f4 mov ecx, ebx; uExitCode ; +0x41, 0x1801319f9 call cs:ExitProcess ; +0x43, 0x1801319fb db 0CCh ; +0x49, 0x180131a01