; ; sub_18004F240 from 0x18004f240 to 0x18004f2c6 (134 bytes) ; ; 4 xrefs: ; > @ 0x180166e78 ; > @ 0x180181a50 ; > @ 0x180181a60 ; > @ 0x1801f8868 ; ; 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_8], rbx ; +0x0, 0x18004f240 push rsi ; +0x5, 0x18004f245 sub rsp, 30h ; +0x6, 0x18004f246 movsxd rbx, dword ptr [rsp+38h+arg_28] ; +0xa, 0x18004f24a xor r11d, r11d ; +0xf, 0x18004f24f mov rsi, rcx ; +0x12, 0x18004f252 test rbx, rbx ; +0x15, 0x18004f255 jle short loc_18004F2B9 ; +0x18, 0x18004f258 mov [rsp+38h+arg_0], rdi ; +0x1a, 0x18004f25a mov eax, r11d ; +0x1f, 0x18004f25f mov rdi, [rsp+38h+arg_20] ; +0x22, 0x18004f262 mov r10, r9 ; +0x27, 0x18004f267 nop word ptr [rax+rax+00h] ; +0x2a, 0x18004f26a cmp dword ptr [rdi+rax*4], 0 ; +0x30, 0x18004f270 jz short loc_18004F284 ; +0x34, 0x18004f274 mov rcx, [r9+rax*8] ; +0x36, 0x18004f276 inc r11d ; +0x3a, 0x18004f27a mov [r10], rcx ; +0x3d, 0x18004f27d add r10, 8 ; +0x40, 0x18004f280 inc rax ; +0x44, 0x18004f284 cmp rax, rbx ; +0x47, 0x18004f287 jl short loc_18004F270 ; +0x4a, 0x18004f28a mov rdi, [rsp+38h+arg_0] ; +0x4c, 0x18004f28c test r11d, r11d ; +0x51, 0x18004f291 jz short loc_18004F2B9 ; +0x54, 0x18004f294 lea rax, sub_180049D80 ; +0x56, 0x18004f296 mov rcx, rsi ; +0x5d, 0x18004f29d mov [rsp+38h+arg_28], rax ; +0x60, 0x18004f2a0 mov dword ptr [rsp+38h+arg_20], r11d ; +0x65, 0x18004f2a5 mov rbx, [rsp+38h+arg_8] ; +0x6a, 0x18004f2aa add rsp, 30h ; +0x6f, 0x18004f2af pop rsi ; +0x73, 0x18004f2b3 jmp sub_18004F5A0 ; +0x74, 0x18004f2b4 mov rbx, [rsp+38h+arg_8] ; +0x79, 0x18004f2b9 xor eax, eax ; +0x7e, 0x18004f2be add rsp, 30h ; +0x80, 0x18004f2c0 pop rsi ; +0x84, 0x18004f2c4 retn ; +0x85, 0x18004f2c5