; ; sub_180070BD0 from 0x180070bd0 to 0x180070f1d (845 bytes) ; ; 4 xrefs: ; > sub_180070680 @ 0x180070683 ; > @ 0x1801836fc ; > @ 0x18018370c ; > @ 0x1801f993c ; ; 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_18], r9d ; +0x0, 0x180070bd0 push rbx ; +0x5, 0x180070bd5 push rsi ; +0x6, 0x180070bd6 push rdi ; +0x7, 0x180070bd7 sub rsp, 20h ; +0x8, 0x180070bd8 movss xmm3, dword ptr [rcx+2ACh] ; +0xc, 0x180070bdc mov esi, r9d ; +0x14, 0x180070be4 movss xmm4, dword ptr [rcx+2A8h] ; +0x17, 0x180070be7 mov rdi, r8 ; +0x1f, 0x180070bef mov ebx, [rcx+2B4h] ; +0x22, 0x180070bf2 mov r10, rdx ; +0x28, 0x180070bf8 test rdx, rdx ; +0x2b, 0x180070bfb jz loc_180070F13 ; +0x2e, 0x180070bfe xor r11d, r11d ; +0x34, 0x180070c04 mov [rsp+38h+arg_0], r11d ; +0x37, 0x180070c07 test r9d, r9d ; +0x3c, 0x180070c0c jz loc_180070F13 ; +0x3f, 0x180070c0f movss xmm5, dword ptr cs:xmmword_1801445C0 ; +0x45, 0x180070c15 mov [rsp+38h+arg_8], rbp ; +0x4d, 0x180070c1d mov ebp, [rsp+38h+arg_20] ; +0x52, 0x180070c22 mov [rsp+38h+var_20], r12 ; +0x56, 0x180070c26 mov [rsp+38h+var_28], r13 ; +0x5b, 0x180070c2b mov [rsp+38h+var_30], r14 ; +0x60, 0x180070c30 mov [rsp+38h+var_38], r15 ; +0x65, 0x180070c35 nop dword ptr [rax+00000000h] ; +0x69, 0x180070c39 test ebx, ebx ; +0x70, 0x180070c40 jz short loc_180070C5C ; +0x72, 0x180070c42 movss xmm0, dword ptr [rcx+2B0h] ; +0x74, 0x180070c44 mulss xmm0, dword ptr [rcx+220h] ; +0x7c, 0x180070c4c movss dword ptr [rcx+220h], xmm0 ; +0x84, 0x180070c54 xor edx, edx ; +0x8c, 0x180070c5c cmp ebp, 4 ; +0x8e, 0x180070c5e jb loc_180070E6C ; +0x91, 0x180070c61 mov r14d, r11d ; +0x97, 0x180070c67 lea r13d, [rbp-3] ; +0x9a, 0x180070c6a imul r14d, ebp ; +0x9e, 0x180070c6e mov esi, r14d ; +0xa2, 0x180070c72 neg esi ; +0xa5, 0x180070c75 lea r9d, [r14+2] ; +0xa7, 0x180070c77 lea r15d, [rsi-1] ; +0xab, 0x180070c7b lea r12d, [rsi+1] ; +0xaf, 0x180070c7f test ebx, ebx ; +0xb3, 0x180070c83 jz short loc_180070C8C ; +0xb5, 0x180070c85 xor r8d, r8d ; +0xb7, 0x180070c87 jmp short loc_180070CAC ; +0xba, 0x180070c8a movss xmm0, dword ptr [rcx+2B0h] ; +0xbc, 0x180070c8c mov r8d, edx ; +0xc4, 0x180070c94 movsxd rax, edx ; +0xc7, 0x180070c97 mulss xmm0, dword ptr [rcx+rax*4+220h] ; +0xca, 0x180070c9a movss dword ptr [rcx+rax*4+220h], xmm0 ; +0xd3, 0x180070ca3 lea eax, [r9-2] ; +0xdc, 0x180070cac movss xmm2, dword ptr [r10+rax*4] ; +0xe0, 0x180070cb0 mov r11d, eax ; +0xe6, 0x180070cb6 movaps xmm0, xmm2 ; +0xe9, 0x180070cb9 movsxd rax, r8d ; +0xec, 0x180070cbc andps xmm0, xmm5 ; +0xef, 0x180070cbf movss xmm1, dword ptr [rcx+rax*4+220h] ; +0xf2, 0x180070cc2 comiss xmm0, xmm1 ; +0xfb, 0x180070ccb jbe short loc_180070CE2 ; +0xfe, 0x180070cce movss dword ptr [rcx+rax*4+220h], xmm0 ; +0x100, 0x180070cd0 movaps xmm1, xmm0 ; +0x109, 0x180070cd9 movss xmm2, dword ptr [r10+r11*4] ; +0x10c, 0x180070cdc movaps xmm0, xmm4 ; +0x112, 0x180070ce2 divss xmm0, xmm1 ; +0x115, 0x180070ce5 minss xmm0, xmm3 ; +0x119, 0x180070ce9 mulss xmm0, xmm2 ; +0x11d, 0x180070ced movss dword ptr [rdi+r11*4], xmm0 ; +0x121, 0x180070cf1 test ebx, ebx ; +0x127, 0x180070cf7 jz short loc_180070D00 ; +0x129, 0x180070cf9 xor r8d, r8d ; +0x12b, 0x180070cfb jmp short loc_180070D21 ; +0x12e, 0x180070cfe movss xmm0, dword ptr [rcx+2B0h] ; +0x130, 0x180070d00 lea r8d, [r15+r9] ; +0x138, 0x180070d08 movsxd rax, r8d ; +0x13c, 0x180070d0c mulss xmm0, dword ptr [rcx+rax*4+220h] ; +0x13f, 0x180070d0f movss dword ptr [rcx+rax*4+220h], xmm0 ; +0x148, 0x180070d18 lea eax, [r9-1] ; +0x151, 0x180070d21 movss xmm2, dword ptr [r10+rax*4] ; +0x155, 0x180070d25 mov r11d, eax ; +0x15b, 0x180070d2b movaps xmm0, xmm2 ; +0x15e, 0x180070d2e movsxd rax, r8d ; +0x161, 0x180070d31 andps xmm0, xmm5 ; +0x164, 0x180070d34 movss xmm1, dword ptr [rcx+rax*4+220h] ; +0x167, 0x180070d37 comiss xmm0, xmm1 ; +0x170, 0x180070d40 jbe short loc_180070D57 ; +0x173, 0x180070d43 movss dword ptr [rcx+rax*4+220h], xmm0 ; +0x175, 0x180070d45 movaps xmm1, xmm0 ; +0x17e, 0x180070d4e movss xmm2, dword ptr [r10+r11*4] ; +0x181, 0x180070d51 movaps xmm0, xmm4 ; +0x187, 0x180070d57 divss xmm0, xmm1 ; +0x18a, 0x180070d5a minss xmm0, xmm3 ; +0x18e, 0x180070d5e mulss xmm0, xmm2 ; +0x192, 0x180070d62 movss dword ptr [rdi+r11*4], xmm0 ; +0x196, 0x180070d66 test ebx, ebx ; +0x19c, 0x180070d6c jz short loc_180070D75 ; +0x19e, 0x180070d6e xor r8d, r8d ; +0x1a0, 0x180070d70 jmp short loc_180070D96 ; +0x1a3, 0x180070d73 movss xmm0, dword ptr [rcx+2B0h] ; +0x1a5, 0x180070d75 lea r8d, [rsi+r9] ; +0x1ad, 0x180070d7d movsxd rax, r8d ; +0x1b1, 0x180070d81 mulss xmm0, dword ptr [rcx+rax*4+220h] ; +0x1b4, 0x180070d84 movss dword ptr [rcx+rax*4+220h], xmm0 ; +0x1bd, 0x180070d8d movss xmm2, dword ptr [r10+r9*4] ; +0x1c6, 0x180070d96 movsxd r11, r8d ; +0x1cc, 0x180070d9c movaps xmm0, xmm2 ; +0x1cf, 0x180070d9f andps xmm0, xmm5 ; +0x1d2, 0x180070da2 movss xmm1, dword ptr [rcx+r11*4+220h] ; +0x1d5, 0x180070da5 comiss xmm0, xmm1 ; +0x1df, 0x180070daf jbe short loc_180070DC7 ; +0x1e2, 0x180070db2 movss dword ptr [rcx+r11*4+220h], xmm0 ; +0x1e4, 0x180070db4 movaps xmm1, xmm0 ; +0x1ee, 0x180070dbe movss xmm2, dword ptr [r10+r9*4] ; +0x1f1, 0x180070dc1 movaps xmm0, xmm4 ; +0x1f7, 0x180070dc7 divss xmm0, xmm1 ; +0x1fa, 0x180070dca minss xmm0, xmm3 ; +0x1fe, 0x180070dce mulss xmm0, xmm2 ; +0x202, 0x180070dd2 movss dword ptr [rdi+r9*4], xmm0 ; +0x206, 0x180070dd6 test ebx, ebx ; +0x20c, 0x180070ddc jz short loc_180070DE5 ; +0x20e, 0x180070dde xor r8d, r8d ; +0x210, 0x180070de0 jmp short loc_180070E06 ; +0x213, 0x180070de3 movss xmm0, dword ptr [rcx+2B0h] ; +0x215, 0x180070de5 lea r8d, [r12+r9] ; +0x21d, 0x180070ded movsxd rax, r8d ; +0x221, 0x180070df1 mulss xmm0, dword ptr [rcx+rax*4+220h] ; +0x224, 0x180070df4 movss dword ptr [rcx+rax*4+220h], xmm0 ; +0x22d, 0x180070dfd lea eax, [r9+1] ; +0x236, 0x180070e06 movss xmm2, dword ptr [r10+rax*4] ; +0x23a, 0x180070e0a mov r11d, eax ; +0x240, 0x180070e10 movaps xmm0, xmm2 ; +0x243, 0x180070e13 movsxd rax, r8d ; +0x246, 0x180070e16 andps xmm0, xmm5 ; +0x249, 0x180070e19 movss xmm1, dword ptr [rcx+rax*4+220h] ; +0x24c, 0x180070e1c comiss xmm0, xmm1 ; +0x255, 0x180070e25 jbe short loc_180070E3C ; +0x258, 0x180070e28 movss dword ptr [rcx+rax*4+220h], xmm0 ; +0x25a, 0x180070e2a movaps xmm1, xmm0 ; +0x263, 0x180070e33 movss xmm2, dword ptr [r10+r11*4] ; +0x266, 0x180070e36 movaps xmm0, xmm4 ; +0x26c, 0x180070e3c add edx, 4 ; +0x26f, 0x180070e3f divss xmm0, xmm1 ; +0x272, 0x180070e42 add r9d, 4 ; +0x276, 0x180070e46 minss xmm0, xmm3 ; +0x27a, 0x180070e4a mulss xmm0, xmm2 ; +0x27e, 0x180070e4e movss dword ptr [rdi+r11*4], xmm0 ; +0x282, 0x180070e52 cmp edx, r13d ; +0x288, 0x180070e58 jb loc_180070C83 ; +0x28b, 0x180070e5b mov r11d, [rsp+38h+arg_0] ; +0x291, 0x180070e61 mov esi, [rsp+38h+arg_18] ; +0x296, 0x180070e66 jmp short loc_180070EE6 ; +0x29a, 0x180070e6a test ebp, ebp ; +0x29c, 0x180070e6c jz short loc_180070EEA ; +0x29e, 0x180070e6e mov r14d, r11d ; +0x2a0, 0x180070e70 imul r14d, ebp ; +0x2a3, 0x180070e73 test ebx, ebx ; +0x2a7, 0x180070e77 jz short loc_180070E80 ; +0x2a9, 0x180070e79 xor r9d, r9d ; +0x2ab, 0x180070e7b jmp short loc_180070EA0 ; +0x2ae, 0x180070e7e movss xmm0, dword ptr [rcx+2B0h] ; +0x2b0, 0x180070e80 mov r9d, edx ; +0x2b8, 0x180070e88 movsxd rax, edx ; +0x2bb, 0x180070e8b mulss xmm0, dword ptr [rcx+rax*4+220h] ; +0x2be, 0x180070e8e movss dword ptr [rcx+rax*4+220h], xmm0 ; +0x2c7, 0x180070e97 lea eax, [r14+rdx] ; +0x2d0, 0x180070ea0 movss xmm0, dword ptr [r10+rax*4] ; +0x2d4, 0x180070ea4 mov r8d, eax ; +0x2da, 0x180070eaa andps xmm0, xmm5 ; +0x2dd, 0x180070ead movsxd rax, r9d ; +0x2e0, 0x180070eb0 movss xmm1, dword ptr [rcx+rax*4+220h] ; +0x2e3, 0x180070eb3 comiss xmm0, xmm1 ; +0x2ec, 0x180070ebc jbe short loc_180070ECD ; +0x2ef, 0x180070ebf movss dword ptr [rcx+rax*4+220h], xmm0 ; +0x2f1, 0x180070ec1 movaps xmm1, xmm0 ; +0x2fa, 0x180070eca movaps xmm0, xmm4 ; +0x2fd, 0x180070ecd inc edx ; +0x300, 0x180070ed0 divss xmm0, xmm1 ; +0x302, 0x180070ed2 minss xmm0, xmm3 ; +0x306, 0x180070ed6 mulss xmm0, dword ptr [r10+r8*4] ; +0x30a, 0x180070eda movss dword ptr [rdi+r8*4], xmm0 ; +0x310, 0x180070ee0 cmp edx, ebp ; +0x316, 0x180070ee6 jb short loc_180070E77 ; +0x318, 0x180070ee8 inc r11d ; +0x31a, 0x180070eea mov [rsp+38h+arg_0], r11d ; +0x31d, 0x180070eed cmp r11d, esi ; +0x322, 0x180070ef2 jb loc_180070C40 ; +0x325, 0x180070ef5 mov r15, [rsp+38h+var_38] ; +0x32b, 0x180070efb mov r14, [rsp+38h+var_30] ; +0x32f, 0x180070eff mov r13, [rsp+38h+var_28] ; +0x334, 0x180070f04 mov r12, [rsp+38h+var_20] ; +0x339, 0x180070f09 mov rbp, [rsp+38h+arg_8] ; +0x33e, 0x180070f0e xor eax, eax ; +0x343, 0x180070f13 add rsp, 20h ; +0x345, 0x180070f15 pop rdi ; +0x349, 0x180070f19 pop rsi ; +0x34a, 0x180070f1a pop rbx ; +0x34b, 0x180070f1b retn ; +0x34c, 0x180070f1c