; ; sub_180017CB0 from 0x180017cb0 to 0x180017d6f (191 bytes) ; ; 2 xrefs: ; > sub_180017BF0 @ 0x180017c24 ; > @ 0x1801f720c ; ; 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, 0x180017cb0 mov [rsp+arg_18], rsi ; +0x5, 0x180017cb5 push rdi ; +0xa, 0x180017cba push r14 ; +0xb, 0x180017cbb push r15 ; +0xd, 0x180017cbd sub rsp, 20h ; +0xf, 0x180017cbf xor edi, edi ; +0x13, 0x180017cc3 mov ebx, r8d ; +0x15, 0x180017cc5 mov [rsp+38h+arg_0], ebx ; +0x18, 0x180017cc8 mov r15, r9 ; +0x1c, 0x180017ccc mov [rsp+38h+arg_10], edi ; +0x1f, 0x180017ccf mov r14, rdx ; +0x23, 0x180017cd3 mov [r9], edi ; +0x26, 0x180017cd6 mov rsi, rcx ; +0x29, 0x180017cd9 test r8d, r8d ; +0x2c, 0x180017cdc jz short loc_180017D56 ; +0x2f, 0x180017cdf mov rcx, [rsi+1A0h] ; +0x31, 0x180017ce1 xor r8d, r8d ; +0x38, 0x180017ce8 xor edx, edx ; +0x3b, 0x180017ceb call sub_180003D30 ; +0x3d, 0x180017ced test eax, eax ; +0x42, 0x180017cf2 jz short loc_180017D31 ; +0x44, 0x180017cf4 mov rax, [rsi+8] ; +0x46, 0x180017cf6 mov ecx, edi ; +0x4a, 0x180017cfa mov r8d, ebx ; +0x4c, 0x180017cfc imul ecx, [rax+0Ch] ; +0x4f, 0x180017cff lea rdx, [r14+rcx*4] ; +0x53, 0x180017d03 mov rcx, [rsi+1A0h] ; +0x57, 0x180017d07 call sub_180003D30 ; +0x5e, 0x180017d0e mov rcx, [rsi+1A0h] ; +0x63, 0x180017d13 add edi, eax ; +0x6a, 0x180017d1a sub ebx, eax ; +0x6c, 0x180017d1c mov [rsp+38h+arg_10], edi ; +0x6e, 0x180017d1e mov edx, eax ; +0x72, 0x180017d22 mov [rsp+38h+arg_0], ebx ; +0x74, 0x180017d24 call sub_180003F00 ; +0x78, 0x180017d28 test ebx, ebx ; +0x7d, 0x180017d2d jz short loc_180017D56 ; +0x7f, 0x180017d2f lea r9, [rsp+38h+arg_10] ; +0x81, 0x180017d31 mov rdx, r14 ; +0x86, 0x180017d36 lea r8, [rsp+38h+arg_0] ; +0x89, 0x180017d39 mov rcx, rsi ; +0x8e, 0x180017d3e call sub_180017A50 ; +0x91, 0x180017d41 test eax, eax ; +0x96, 0x180017d46 jnz short loc_180017D5B ; +0x98, 0x180017d48 mov ebx, [rsp+38h+arg_0] ; +0x9a, 0x180017d4a mov edi, [rsp+38h+arg_10] ; +0x9e, 0x180017d4e test ebx, ebx ; +0xa2, 0x180017d52 jnz short loc_180017CE1 ; +0xa4, 0x180017d54 mov [r15], edi ; +0xa6, 0x180017d56 xor eax, eax ; +0xa9, 0x180017d59 mov rbx, [rsp+38h+arg_8] ; +0xab, 0x180017d5b mov rsi, [rsp+38h+arg_18] ; +0xb0, 0x180017d60 add rsp, 20h ; +0xb5, 0x180017d65 pop r15 ; +0xb9, 0x180017d69 pop r14 ; +0xbb, 0x180017d6b pop rdi ; +0xbd, 0x180017d6d retn ; +0xbe, 0x180017d6e