; ; dllmain_crt_process_detach from 0x180120bf4 to 0x180120c78 (132 bytes) ; ; 4 xrefs: ; > @ 0x180120bf3 ; > dllmain_crt_dispatch @ 0x180120ad7 ; > dllmain_dispatch @ 0x180120d29 ; > @ 0x180202588 ; ; 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+arg_0], rbx ; +0x0, 0x180120bf4 push rdi ; +0x5, 0x180120bf9 sub rsp, 30h ; +0x6, 0x180120bfa mov dil, cl ; +0xa, 0x180120bfe mov eax, cs:dword_1801F4A2C ; +0xd, 0x180120c01 test eax, eax ; +0x13, 0x180120c07 jg short loc_180120C18 ; +0x15, 0x180120c09 xor eax, eax ; +0x17, 0x180120c0b mov rbx, [rsp+38h+arg_0] ; +0x19, 0x180120c0d add rsp, 30h ; +0x1e, 0x180120c12 pop rdi ; +0x22, 0x180120c16 retn ; +0x23, 0x180120c17 dec eax ; +0x24, 0x180120c18 mov cs:dword_1801F4A2C, eax ; +0x26, 0x180120c1a call __scrt_acquire_startup_lock ; +0x2c, 0x180120c20 mov bl, al ; +0x31, 0x180120c25 mov [rsp+38h+var_18], al ; +0x33, 0x180120c27 cmp cs:dword_1801F4998, 2 ; +0x37, 0x180120c2b jnz short loc_180120C6B ; +0x3e, 0x180120c32 call __scrt_dllmain_uninitialize_c ; +0x40, 0x180120c34 call sub_180123D98 ; +0x45, 0x180120c39 call sub_180123E0C ; +0x4a, 0x180120c3e and cs:dword_1801F4998, 0 ; +0x4f, 0x180120c43 mov cl, bl ; +0x56, 0x180120c4a call __scrt_release_startup_lock ; +0x58, 0x180120c4c xor edx, edx ; +0x5d, 0x180120c51 mov cl, dil ; +0x5f, 0x180120c53 call __scrt_uninitialize_crt ; +0x62, 0x180120c56 neg al ; +0x67, 0x180120c5b sbb ebx, ebx ; +0x69, 0x180120c5d and ebx, 1 ; +0x6b, 0x180120c5f call __scrt_dllmain_uninitialize_critical ; +0x6e, 0x180120c62 mov eax, ebx ; +0x73, 0x180120c67 jmp short loc_180120C0D ; +0x75, 0x180120c69 mov ecx, 7 ; +0x77, 0x180120c6b call __scrt_fastfail ; +0x7c, 0x180120c70 nop ; +0x81, 0x180120c75 nop ; +0x82, 0x180120c76 int 3; Trap to Debugger ; +0x83, 0x180120c77