; ; common_exit from 0x1801318fc to 0x1801319b7 (187 bytes) ; ; 3 xrefs: ; > _cexit @ 0x180131a70 ; > _exit @ 0x180131a7f ; > @ 0x180202f18 ; ; 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 ; mov [rsp-8+arg_0], rbx ; +0x0, 0x1801318fc mov [rsp-8+arg_10], r8d ; +0x5, 0x180131901 mov [rsp-8+arg_8], edx ; +0xa, 0x180131906 push rbp ; +0xe, 0x18013190a mov rbp, rsp ; +0xf, 0x18013190b sub rsp, 50h ; +0x12, 0x18013190e mov ebx, ecx ; +0x16, 0x180131912 test r8d, r8d ; +0x18, 0x180131914 jnz short loc_180131963 ; +0x1b, 0x180131917 xor ecx, ecx; lpModuleName ; +0x1d, 0x180131919 call cs:GetModuleHandleW ; +0x1f, 0x18013191b test rax, rax ; +0x25, 0x180131921 jz short loc_180131963 ; +0x28, 0x180131924 mov ecx, 5A4Dh ; +0x2a, 0x180131926 cmp [rax], cx ; +0x2f, 0x18013192b jnz short loc_180131963 ; +0x32, 0x18013192e movsxd rcx, dword ptr [rax+3Ch] ; +0x34, 0x180131930 add rcx, rax ; +0x38, 0x180131934 cmp dword ptr [rcx], 4550h ; +0x3b, 0x180131937 jnz short loc_180131963 ; +0x41, 0x18013193d mov eax, 20Bh ; +0x43, 0x18013193f cmp [rcx+18h], ax ; +0x48, 0x180131944 jnz short loc_180131963 ; +0x4c, 0x180131948 cmp dword ptr [rcx+84h], 0Eh ; +0x4e, 0x18013194a jbe short loc_180131963 ; +0x55, 0x180131951 cmp dword ptr [rcx+0F8h], 0 ; +0x57, 0x180131953 jz short loc_180131963 ; +0x5e, 0x18013195a mov ecx, ebx; unsigned int ; +0x60, 0x18013195c call ?try_cor_exit_process@@YAXI@Z ; +0x62, 0x18013195e lea rax, [rbp+arg_8] ; +0x67, 0x180131963 mov [rbp+arg_18], 0 ; +0x6b, 0x180131967 mov [rbp+var_20], rax ; +0x6f, 0x18013196b lea r9, [rbp+var_2C] ; +0x73, 0x18013196f lea rax, [rbp+arg_10] ; +0x77, 0x180131973 mov [rbp+var_18], rax ; +0x7b, 0x180131977 lea r8, [rbp+var_20] ; +0x7f, 0x18013197b lea rax, [rbp+arg_18] ; +0x83, 0x18013197f mov [rbp+var_10], rax ; +0x87, 0x180131983 lea rdx, [rbp+var_28] ; +0x8b, 0x180131987 mov eax, 2 ; +0x8f, 0x18013198b lea rcx, [rbp+var_30] ; +0x94, 0x180131990 mov [rbp+var_2C], eax ; +0x98, 0x180131994 mov [rbp+var_28], eax ; +0x9b, 0x180131997 call ??$?RV_lambda_99476a1ad63dd22509b5d3e65b0ffc95_@@AEAV_lambda_ad1ced32f4ac17aa236e5ef05d6b3b7c_@@V_lambda_f7424dd8d45958661754dc4f2697e9c3_@@@?$__crt_seh_guarded_call@X@@QEAAX$$QEAV_lambda_99476a1ad63dd22509b5d3e65b0ffc95_@@AEAV_lambda_ad1ced32f4ac17aa236e5ef05d6b3b7c_@@$$QEAV_lambda_f7424dd8d45958661754dc4f2697e9c3_@@@Z ; +0x9e, 0x18013199a cmp [rbp+arg_10], 0 ; +0xa3, 0x18013199f jz short loc_1801319B0 ; +0xa7, 0x1801319a3 mov rbx, [rsp+50h+arg_0] ; +0xa9, 0x1801319a5 add rsp, 50h ; +0xae, 0x1801319aa pop rbp ; +0xb2, 0x1801319ae retn ; +0xb3, 0x1801319af mov ecx, ebx; unsigned int ; +0xb4, 0x1801319b0 call ?exit_or_terminate_process@@YAXI@Z ; +0xb6, 0x1801319b2