; ; sub_180051B10 from 0x180051b10 to 0x180051b8e (126 bytes) ; ; 9 xrefs: ; > sub_180033290 @ 0x180033805 ; > sub_1800510D0 @ 0x1800513cf ; > sub_180051410 @ 0x180051456 ; > sub_180051410 @ 0x1800519e5 ; > sub_180051B10 @ 0x180051b4a ; > sub_180051B90 @ 0x180051f6d ; > @ 0x180181c74 ; > @ 0x180181c84 ; > @ 0x1801f8a60 ; ; 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 ; push rbx ; +0x0, 0x180051b10 sub rsp, 20h ; +0x2, 0x180051b12 cmp dword ptr [rcx+80h], 2 ; +0x6, 0x180051b16 mov rbx, rcx ; +0xd, 0x180051b1d jl short loc_180051B81 ; +0x10, 0x180051b20 cmp dword ptr [rcx+8], 0 ; +0x12, 0x180051b22 jz short loc_180051B81 ; +0x16, 0x180051b26 mov eax, [rcx+40h] ; +0x18, 0x180051b28 cmp edx, eax ; +0x1b, 0x180051b2b jge short loc_180051B81 ; +0x1d, 0x180051b2d test edx, edx ; +0x1f, 0x180051b2f jns short loc_180051B6C ; +0x21, 0x180051b31 mov [rsp+28h+arg_0], rsi ; +0x23, 0x180051b33 xor esi, esi ; +0x28, 0x180051b38 mov [rsp+28h+arg_8], rdi ; +0x2a, 0x180051b3a mov edi, esi ; +0x2f, 0x180051b3f test eax, eax ; +0x31, 0x180051b41 jle short loc_180051B59 ; +0x33, 0x180051b43 mov edx, edi ; +0x35, 0x180051b45 mov rcx, rbx ; +0x37, 0x180051b47 call sub_180051B10 ; +0x3a, 0x180051b4a add rsi, rax ; +0x3f, 0x180051b4f inc edi ; +0x42, 0x180051b52 cmp edi, [rbx+40h] ; +0x44, 0x180051b54 jl short loc_180051B45 ; +0x47, 0x180051b57 mov rdi, [rsp+28h+arg_8] ; +0x49, 0x180051b59 mov rax, rsi ; +0x4e, 0x180051b5e mov rsi, [rsp+28h+arg_0] ; +0x51, 0x180051b61 add rsp, 20h ; +0x56, 0x180051b66 pop rbx ; +0x5a, 0x180051b6a retn ; +0x5b, 0x180051b6b lea eax, [rdx+rdx] ; +0x5c, 0x180051b6c movsxd rcx, eax ; +0x5f, 0x180051b6f mov rax, [rbx+60h] ; +0x62, 0x180051b72 mov rax, [rax+rcx*8+8] ; +0x66, 0x180051b76 add rsp, 20h ; +0x6b, 0x180051b7b pop rbx ; +0x6f, 0x180051b7f retn ; +0x70, 0x180051b80 mov rax, 0FFFFFFFFFFFFFF7Dh ; +0x71, 0x180051b81 add rsp, 20h ; +0x78, 0x180051b88 pop rbx ; +0x7c, 0x180051b8c retn ; +0x7d, 0x180051b8d