; ; sub_18001F530 from 0x18001f530 to 0x18001f658 (296 bytes) ; ; 3 xrefs: ; > @ 0x18001f52f ; > DllEntryPoint @ 0x18001f690 ; > @ 0x18004d10c ; ; 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 rax, rsp ; +0x0, 0x18001f530 mov [rax+20h], rbx ; +0x3, 0x18001f533 mov [rax+18h], r8 ; +0x7, 0x18001f537 mov [rax+10h], edx ; +0xb, 0x18001f53b mov [rax+8], rcx ; +0xe, 0x18001f53e push rsi ; +0x12, 0x18001f542 push rdi ; +0x13, 0x18001f543 push r14 ; +0x14, 0x18001f544 sub rsp, 40h ; +0x16, 0x18001f546 mov rsi, r8 ; +0x1a, 0x18001f54a mov edi, edx ; +0x1d, 0x18001f54d mov r14, rcx ; +0x1f, 0x18001f54f test edx, edx ; +0x22, 0x18001f552 jnz short loc_18001F565 ; +0x24, 0x18001f554 cmp cs:dword_180049FD0, edx ; +0x26, 0x18001f556 jg short loc_18001F565 ; +0x2c, 0x18001f55c xor eax, eax ; +0x2e, 0x18001f55e jmp loc_18001F64A ; +0x30, 0x18001f560 lea eax, [rdx-1] ; +0x35, 0x18001f565 cmp eax, 1 ; +0x38, 0x18001f568 ja short loc_18001F5AD ; +0x3b, 0x18001f56b mov rax, cs:qword_180025820 ; +0x3d, 0x18001f56d test rax, rax ; +0x44, 0x18001f574 jnz short loc_18001F57E ; +0x47, 0x18001f577 lea ebx, [rax+1] ; +0x49, 0x18001f579 jmp short loc_18001F586 ; +0x4c, 0x18001f57c call cs:__guard_dispatch_icall_fptr ; +0x4e, 0x18001f57e mov ebx, eax ; +0x54, 0x18001f584 mov [rsp+58h+var_28], ebx ; +0x56, 0x18001f586 test ebx, ebx ; +0x5a, 0x18001f58a jz loc_18001F640 ; +0x5c, 0x18001f58c mov r8, rsi ; +0x62, 0x18001f592 mov edx, edi ; +0x65, 0x18001f595 mov rcx, r14 ; +0x67, 0x18001f597 call sub_18001F344 ; +0x6a, 0x18001f59a mov ebx, eax ; +0x6f, 0x18001f59f mov [rsp+58h+var_28], eax ; +0x71, 0x18001f5a1 test eax, eax ; +0x75, 0x18001f5a5 jz loc_18001F640 ; +0x77, 0x18001f5a7 mov r8, rsi; lpvReserved ; +0x7d, 0x18001f5ad mov edx, edi; fdwReason ; +0x80, 0x18001f5b0 mov rcx, r14; hinstDLL ; +0x82, 0x18001f5b2 call DllMain ; +0x85, 0x18001f5b5 mov ebx, eax ; +0x8a, 0x18001f5ba mov [rsp+58h+var_28], eax ; +0x8c, 0x18001f5bc cmp edi, 1 ; +0x90, 0x18001f5c0 jnz short loc_18001F5FB ; +0x93, 0x18001f5c3 test eax, eax ; +0x95, 0x18001f5c5 jnz short loc_18001F5FB ; +0x97, 0x18001f5c7 mov r8, rsi; lpvReserved ; +0x99, 0x18001f5c9 xor edx, edx; fdwReason ; +0x9c, 0x18001f5cc mov rcx, r14; hinstDLL ; +0x9e, 0x18001f5ce call DllMain ; +0xa1, 0x18001f5d1 test rsi, rsi ; +0xa6, 0x18001f5d6 setnz cl ; +0xa9, 0x18001f5d9 call sub_18001F4AC ; +0xac, 0x18001f5dc mov rax, cs:qword_180025820 ; +0xb1, 0x18001f5e1 test rax, rax ; +0xb8, 0x18001f5e8 jz short loc_18001F5FB ; +0xbb, 0x18001f5eb mov r8, rsi ; +0xbd, 0x18001f5ed xor edx, edx ; +0xc0, 0x18001f5f0 mov rcx, r14 ; +0xc2, 0x18001f5f2 call cs:__guard_dispatch_icall_fptr ; +0xc5, 0x18001f5f5 test edi, edi ; +0xcb, 0x18001f5fb jz short loc_18001F604 ; +0xcd, 0x18001f5fd cmp edi, 3 ; +0xcf, 0x18001f5ff jnz short loc_18001F640 ; +0xd2, 0x18001f602 mov r8, rsi ; +0xd4, 0x18001f604 mov edx, edi ; +0xd7, 0x18001f607 mov rcx, r14 ; +0xd9, 0x18001f609 call sub_18001F344 ; +0xdc, 0x18001f60c mov ebx, eax ; +0xe1, 0x18001f611 mov [rsp+58h+var_28], eax ; +0xe3, 0x18001f613 test eax, eax ; +0xe7, 0x18001f617 jz short loc_18001F640 ; +0xe9, 0x18001f619 mov rax, cs:qword_180025820 ; +0xeb, 0x18001f61b test rax, rax ; +0xf2, 0x18001f622 jnz short loc_18001F62C ; +0xf5, 0x18001f625 lea ebx, [rax+1] ; +0xf7, 0x18001f627 jmp short loc_18001F63C ; +0xfa, 0x18001f62a mov r8, rsi ; +0xfc, 0x18001f62c mov edx, edi ; +0xff, 0x18001f62f mov rcx, r14 ; +0x101, 0x18001f631 call cs:__guard_dispatch_icall_fptr ; +0x104, 0x18001f634 mov ebx, eax ; +0x10a, 0x18001f63a mov [rsp+58h+var_28], ebx ; +0x10c, 0x18001f63c jmp short loc_18001F648 ; +0x110, 0x18001f640 xor ebx, ebx ; +0x112, 0x18001f642 mov [rsp+58h+var_28], ebx ; +0x114, 0x18001f644 mov eax, ebx ; +0x118, 0x18001f648 mov rbx, [rsp+58h+arg_18] ; +0x11a, 0x18001f64a add rsp, 40h ; +0x11f, 0x18001f64f pop r14 ; +0x123, 0x18001f653 pop rdi ; +0x125, 0x18001f655 pop rsi ; +0x126, 0x18001f656 retn ; +0x127, 0x18001f657