; ; sub_18005A480 from 0x18005a480 to 0x18005a4e9 (105 bytes) ; ; 7 xrefs: ; > sub_18005A080 @ 0x18005a214 ; > sub_18005A240 @ 0x18005a2cc ; > sub_18005A4F0 @ 0x18005a5c7 ; > sub_18005A600 @ 0x18005a63e ; > sub_180068BC0 @ 0x180068c24 ; > sub_180068D20 @ 0x180068e51 ; > sub_180099C50 @ 0x18009b47a ; ; 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 ; cmp qword ptr [rcx+40h], 0 ; +0x0, 0x18005a480 mov r8, rcx ; +0x5, 0x18005a485 jz short loc_18005A4D3 ; +0x8, 0x18005a488 movsx edx, word ptr [rcx+3Ah] ; +0xa, 0x18005a48a xor r9d, r9d ; +0xe, 0x18005a48e movsx eax, word ptr [rcx+38h] ; +0x11, 0x18005a491 imul edx, eax ; +0x15, 0x18005a495 test edx, edx ; +0x18, 0x18005a498 jle short loc_18005A4D3 ; +0x1a, 0x18005a49a xor edx, edx ; +0x1c, 0x18005a49c xchg ax, ax ; +0x1e, 0x18005a49e mov rax, [r8+40h] ; +0x20, 0x18005a4a0 lea rdx, [rdx+4] ; +0x24, 0x18005a4a4 inc r9d ; +0x28, 0x18005a4a8 movss xmm0, dword ptr [rdx+rax-4] ; +0x2b, 0x18005a4ab mov rax, [r8+50h] ; +0x31, 0x18005a4b1 mulss xmm0, dword ptr [r8+68h] ; +0x35, 0x18005a4b5 movss dword ptr [rdx+rax-4], xmm0 ; +0x3b, 0x18005a4bb movsx ecx, word ptr [r8+3Ah] ; +0x41, 0x18005a4c1 movsx eax, word ptr [r8+38h] ; +0x46, 0x18005a4c6 imul ecx, eax ; +0x4b, 0x18005a4cb cmp r9d, ecx ; +0x4e, 0x18005a4ce jl short loc_18005A4A0 ; +0x51, 0x18005a4d1 mov eax, [r8+68h] ; +0x53, 0x18005a4d3 mov [r8+80h], eax ; +0x57, 0x18005a4d7 xor eax, eax ; +0x5e, 0x18005a4de mov dword ptr [r8+6Ch], 0 ; +0x60, 0x18005a4e0 retn ; +0x68, 0x18005a4e8