; ; sub_18001F394 from 0x18001f394 to 0x18001f4aa (278 bytes) ; ; 3 xrefs: ; > sub_18001F344 @ 0x18001f380 ; > @ 0x18004d0e8 ; > @ 0x18004d0f4 ; ; 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 12:15:45 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x18001f394 mov [rsp+arg_8], rsi ; +0x5, 0x18001f399 mov [rsp+arg_18], rdi ; +0xa, 0x18001f39e push r14 ; +0xf, 0x18001f3a3 sub rsp, 20h ; +0x11, 0x18001f3a5 mov rsi, rdx ; +0x15, 0x18001f3a9 mov r14, rcx ; +0x18, 0x18001f3ac xor ecx, ecx ; +0x1b, 0x18001f3af call sub_18001FDF8 ; +0x1d, 0x18001f3b1 test al, al ; +0x22, 0x18001f3b6 jz loc_18001F486 ; +0x24, 0x18001f3b8 call sub_18001FC8C ; +0x2a, 0x18001f3be mov bl, al ; +0x2f, 0x18001f3c3 mov [rsp+28h+arg_10], al ; +0x31, 0x18001f3c5 mov dil, 1 ; +0x35, 0x18001f3c9 cmp cs:dword_18004A578, 0 ; +0x38, 0x18001f3cc jnz loc_18001F49E ; +0x3f, 0x18001f3d3 mov cs:dword_18004A578, 1 ; +0x45, 0x18001f3d9 call sub_18001FCFC ; +0x4f, 0x18001f3e3 test al, al ; +0x54, 0x18001f3e8 jz short loc_18001F43B ; +0x56, 0x18001f3ea call sub_180020108 ; +0x58, 0x18001f3ec call sub_18001FC4C ; +0x5d, 0x18001f3f1 call sub_18001FC70 ; +0x62, 0x18001f3f6 lea rdx, Last; Last ; +0x67, 0x18001f3fb lea rcx, First; First ; +0x6e, 0x18001f402 call _initterm_e ; +0x75, 0x18001f409 test eax, eax ; +0x7a, 0x18001f40e jnz short loc_18001F43B ; +0x7c, 0x18001f410 call sub_18001FCC8 ; +0x7e, 0x18001f412 test al, al ; +0x83, 0x18001f417 jz short loc_18001F43B ; +0x85, 0x18001f419 lea rdx, qword_180023250; Last ; +0x87, 0x18001f41b lea rcx, qword_1800231F0; First ; +0x8e, 0x18001f422 call _initterm ; +0x95, 0x18001f429 mov cs:dword_18004A578, 2 ; +0x9a, 0x18001f42e xor dil, dil ; +0xa4, 0x18001f438 mov cl, bl ; +0xa7, 0x18001f43b call sub_18001FF58 ; +0xa9, 0x18001f43d test dil, dil ; +0xae, 0x18001f442 jnz short loc_18001F486 ; +0xb1, 0x18001f445 call sub_18001FFA8 ; +0xb3, 0x18001f447 mov rbx, rax ; +0xb8, 0x18001f44c cmp qword ptr [rax], 0 ; +0xbb, 0x18001f44f jz short loc_18001F479 ; +0xbf, 0x18001f453 mov rcx, rax ; +0xc1, 0x18001f455 call sub_18001FEC0 ; +0xc4, 0x18001f458 test al, al ; +0xc9, 0x18001f45d jz short loc_18001F479 ; +0xcb, 0x18001f45f mov r8, rsi ; +0xcd, 0x18001f461 mov edx, 2 ; +0xd0, 0x18001f464 mov rcx, r14 ; +0xd5, 0x18001f469 mov rax, [rbx] ; +0xd8, 0x18001f46c mov r9, cs:__guard_dispatch_icall_fptr ; +0xdb, 0x18001f46f call r9 ; _guard_dispatch_icall_nop ; +0xe2, 0x18001f476 inc cs:dword_180049FD0 ; +0xe5, 0x18001f479 mov eax, 1 ; +0xeb, 0x18001f47f jmp short loc_18001F488 ; +0xf0, 0x18001f484 xor eax, eax ; +0xf2, 0x18001f486 mov rbx, [rsp+28h+arg_0] ; +0xf4, 0x18001f488 mov rsi, [rsp+28h+arg_8] ; +0xf9, 0x18001f48d mov rdi, [rsp+28h+arg_18] ; +0xfe, 0x18001f492 add rsp, 20h ; +0x103, 0x18001f497 pop r14 ; +0x107, 0x18001f49b retn ; +0x109, 0x18001f49d mov ecx, 7 ; +0x10a, 0x18001f49e call sub_18001FFBC ; +0x10f, 0x18001f4a3 nop ; +0x114, 0x18001f4a8 int 3; Trap to Debugger ; +0x115, 0x18001f4a9