; ; sub_18006ADC0 from 0x18006adc0 to 0x18006b30b (1355 bytes) ; ; 4 xrefs: ; > sub_18006A810 @ 0x18006a9b6 ; > @ 0x1801831d8 ; > @ 0x1801831e8 ; > @ 0x1801f966c ; ; 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 r11, rsp ; +0x0, 0x18006adc0 push rdi ; +0x3, 0x18006adc3 push r12 ; +0x4, 0x18006adc4 push r13 ; +0x6, 0x18006adc6 sub rsp, 70h ; +0x8, 0x18006adc8 mov r12d, edx ; +0xc, 0x18006adcc mov r13d, 1 ; +0xf, 0x18006adcf movaps xmmword ptr [r11-78h], xmm10 ; +0x15, 0x18006add5 mov r9, rcx ; +0x1a, 0x18006adda movss xmm10, cs:dword_180145744 ; +0x1d, 0x18006addd mov ecx, edx ; +0x26, 0x18006ade6 mov eax, r13d ; +0x28, 0x18006ade8 shl eax, cl ; +0x2b, 0x18006adeb movd xmm0, eax ; +0x2d, 0x18006aded cdq ; +0x31, 0x18006adf1 sub eax, edx ; +0x32, 0x18006adf2 sar eax, 1 ; +0x34, 0x18006adf4 mov edi, eax ; +0x36, 0x18006adf6 cvtdq2ps xmm0, xmm0 ; +0x38, 0x18006adf8 divss xmm10, xmm0 ; +0x3b, 0x18006adfb test r12d, r12d ; +0x40, 0x18006ae00 jle loc_18006B2F9 ; +0x43, 0x18006ae03 mov [r11+8], rbx ; +0x49, 0x18006ae09 mov eax, r12d ; +0x4d, 0x18006ae0d mov [r11+10h], rbp ; +0x50, 0x18006ae10 mov [r11+20h], rsi ; +0x54, 0x18006ae14 mov [r11-20h], r14 ; +0x58, 0x18006ae18 mov [r11-28h], r15 ; +0x5c, 0x18006ae1c movaps [rsp+88h+var_38], xmm6 ; +0x60, 0x18006ae20 movaps [rsp+88h+var_48], xmm7 ; +0x65, 0x18006ae25 movaps xmmword ptr [r11-58h], xmm8 ; +0x6a, 0x18006ae2a movss xmm8, dword ptr cs:xmmword_180144610 ; +0x6f, 0x18006ae2f movaps xmmword ptr [r11-68h], xmm9 ; +0x78, 0x18006ae38 movss xmm9, cs:dword_180166F10 ; +0x7d, 0x18006ae3d movaps [rsp+88h+var_88], xmm11 ; +0x86, 0x18006ae46 movss xmm11, cs:dword_180164630 ; +0x8b, 0x18006ae4b mov [rsp+88h+arg_10], rax ; +0x94, 0x18006ae54 nop dword ptr [rax+00h] ; +0x9c, 0x18006ae5c xor r11d, r11d ; +0xa0, 0x18006ae60 test r13d, r13d ; +0xa3, 0x18006ae63 jle loc_18006B2A5 ; +0xa6, 0x18006ae66 lea r15d, [rdi+rdi] ; +0xac, 0x18006ae6c mov r14d, r13d ; +0xb0, 0x18006ae70 mov eax, r11d ; +0xb3, 0x18006ae73 mov r8d, r12d ; +0xb6, 0x18006ae76 cdq ; +0xb9, 0x18006ae79 idiv edi ; +0xba, 0x18006ae7a xor edx, edx ; +0xbc, 0x18006ae7c xchg ax, ax ; +0xbe, 0x18006ae7e mov ecx, eax ; +0xc0, 0x18006ae80 add edx, edx ; +0xc2, 0x18006ae82 and ecx, 1 ; +0xc4, 0x18006ae84 shr eax, 1 ; +0xc7, 0x18006ae87 or edx, ecx ; +0xc9, 0x18006ae89 sub r8d, 1 ; +0xcb, 0x18006ae8b jnz short loc_18006AE80 ; +0xcf, 0x18006ae8f movd xmm1, edx ; +0xd1, 0x18006ae91 cvtdq2ps xmm1, xmm1 ; +0xd5, 0x18006ae95 mulss xmm1, xmm10 ; +0xd8, 0x18006ae98 movaps xmm0, xmm1 ; +0xdd, 0x18006ae9d mulss xmm0, xmm9 ; +0xe0, 0x18006aea0 cvttss2si ecx, xmm0 ; +0xe5, 0x18006aea5 test ecx, ecx ; +0xe9, 0x18006aea9 jns short loc_18006AEAF ; +0xeb, 0x18006aeab neg ecx ; +0xed, 0x18006aead and ecx, 7FFFh ; +0xef, 0x18006aeaf mov edx, ecx ; +0xf5, 0x18006aeb5 shr edx, 0Dh ; +0xf7, 0x18006aeb7 test edx, edx ; +0xfa, 0x18006aeba jz short loc_18006AF0A ; +0xfc, 0x18006aebc sub edx, 1 ; +0xfe, 0x18006aebe jz short loc_18006AEF4 ; +0x101, 0x18006aec1 sub edx, 1 ; +0x103, 0x18006aec3 jz short loc_18006AEE4 ; +0x106, 0x18006aec6 cmp edx, 1 ; +0x108, 0x18006aec8 jz short loc_18006AED2 ; +0x10b, 0x18006aecb xorps xmm7, xmm7 ; +0x10d, 0x18006aecd jmp short loc_18006AF14 ; +0x110, 0x18006aed0 mov eax, ecx ; +0x112, 0x18006aed2 mov ecx, 8134h ; +0x114, 0x18006aed4 sub rcx, rax ; +0x119, 0x18006aed9 movss xmm7, dword ptr [r9+rcx*4] ; +0x11c, 0x18006aedc jmp short loc_18006AF14 ; +0x122, 0x18006aee2 movss xmm7, dword ptr [r9+rcx*4-0FB2Ch] ; +0x124, 0x18006aee4 xorps xmm7, xmm8 ; +0x12e, 0x18006aeee jmp short loc_18006AF14 ; +0x132, 0x18006aef2 mov eax, ecx ; +0x134, 0x18006aef4 mov ecx, 4134h ; +0x136, 0x18006aef6 sub rcx, rax ; +0x13b, 0x18006aefb movss xmm7, dword ptr [r9+rcx*4] ; +0x13e, 0x18006aefe xorps xmm7, xmm8 ; +0x144, 0x18006af04 jmp short loc_18006AF14 ; +0x148, 0x18006af08 movss xmm7, dword ptr [r9+rcx*4+4D4h] ; +0x14a, 0x18006af0a subss xmm1, xmm11 ; +0x154, 0x18006af14 mulss xmm1, xmm9 ; +0x159, 0x18006af19 cvttss2si ecx, xmm1 ; +0x15e, 0x18006af1e test ecx, ecx ; +0x162, 0x18006af22 jns short loc_18006AF28 ; +0x164, 0x18006af24 neg ecx ; +0x166, 0x18006af26 and ecx, 7FFFh ; +0x168, 0x18006af28 mov edx, ecx ; +0x16e, 0x18006af2e shr edx, 0Dh ; +0x170, 0x18006af30 test edx, edx ; +0x173, 0x18006af33 jz short loc_18006AF83 ; +0x175, 0x18006af35 sub edx, 1 ; +0x177, 0x18006af37 jz short loc_18006AF6D ; +0x17a, 0x18006af3a sub edx, 1 ; +0x17c, 0x18006af3c jz short loc_18006AF5D ; +0x17f, 0x18006af3f cmp edx, 1 ; +0x181, 0x18006af41 jz short loc_18006AF4B ; +0x184, 0x18006af44 xorps xmm6, xmm6 ; +0x186, 0x18006af46 jmp short loc_18006AF8D ; +0x189, 0x18006af49 mov eax, ecx ; +0x18b, 0x18006af4b mov ecx, 8134h ; +0x18d, 0x18006af4d sub rcx, rax ; +0x192, 0x18006af52 movss xmm6, dword ptr [r9+rcx*4] ; +0x195, 0x18006af55 jmp short loc_18006AF8D ; +0x19b, 0x18006af5b movss xmm6, dword ptr [r9+rcx*4-0FB2Ch] ; +0x19d, 0x18006af5d xorps xmm6, xmm8 ; +0x1a7, 0x18006af67 jmp short loc_18006AF8D ; +0x1ab, 0x18006af6b mov eax, ecx ; +0x1ad, 0x18006af6d mov ecx, 4134h ; +0x1af, 0x18006af6f sub rcx, rax ; +0x1b4, 0x18006af74 movss xmm6, dword ptr [r9+rcx*4] ; +0x1b7, 0x18006af77 xorps xmm6, xmm8 ; +0x1bd, 0x18006af7d jmp short loc_18006AF8D ; +0x1c1, 0x18006af81 movss xmm6, dword ptr [r9+rcx*4+4D4h] ; +0x1c3, 0x18006af83 lea ecx, [r11+rdi] ; +0x1cd, 0x18006af8d movsxd r8, r11d ; +0x1d1, 0x18006af91 movsxd r10, ecx ; +0x1d4, 0x18006af94 xorps xmm6, xmm8 ; +0x1d7, 0x18006af97 mov ebx, r11d ; +0x1db, 0x18006af9b cmp r8, r10 ; +0x1de, 0x18006af9e jge loc_18006B290 ; +0x1e1, 0x18006afa1 mov rax, r10 ; +0x1e7, 0x18006afa7 sub rax, r8 ; +0x1ea, 0x18006afaa cmp rax, 4 ; +0x1ed, 0x18006afad jl loc_18006B1FF ; +0x1f1, 0x18006afb1 lea rsi, [r10-3] ; +0x1f7, 0x18006afb7 mov rbx, rsi ; +0x1fb, 0x18006afbb lea ebp, [rcx+2] ; +0x1fe, 0x18006afbe sub rbx, r8 ; +0x201, 0x18006afc1 dec rbx ; +0x204, 0x18006afc4 shr rbx, 2 ; +0x207, 0x18006afc7 inc ebx ; +0x20b, 0x18006afcb lea ebx, [r11+rbx*4] ; +0x20d, 0x18006afcd mov rcx, [r9+220h] ; +0x211, 0x18006afd1 lea eax, [rbp-2] ; +0x218, 0x18006afd8 mov edx, eax ; +0x21b, 0x18006afdb movss xmm3, dword ptr [rcx+rax*8+4] ; +0x21d, 0x18006afdd movss xmm1, dword ptr [rcx+rax*8] ; +0x223, 0x18006afe3 movaps xmm0, xmm3 ; +0x228, 0x18006afe8 movss xmm4, dword ptr [rcx+r8*8] ; +0x22b, 0x18006afeb movaps xmm2, xmm1 ; +0x231, 0x18006aff1 movss xmm5, dword ptr [rcx+r8*8+4] ; +0x234, 0x18006aff4 mulss xmm0, xmm6 ; +0x23b, 0x18006affb mulss xmm1, xmm6 ; +0x23f, 0x18006afff mulss xmm2, xmm7 ; +0x243, 0x18006b003 mulss xmm3, xmm7 ; +0x247, 0x18006b007 subss xmm2, xmm0 ; +0x24b, 0x18006b00b addss xmm3, xmm1 ; +0x24f, 0x18006b00f movaps xmm0, xmm2 ; +0x253, 0x18006b013 addss xmm0, xmm4 ; +0x256, 0x18006b016 subss xmm4, xmm2 ; +0x25a, 0x18006b01a movaps xmm1, xmm3 ; +0x25e, 0x18006b01e addss xmm1, xmm5 ; +0x261, 0x18006b021 subss xmm5, xmm3 ; +0x265, 0x18006b025 movss dword ptr [rcx+r8*8], xmm0 ; +0x269, 0x18006b029 mov rax, [r9+220h] ; +0x26f, 0x18006b02f movss dword ptr [rax+r8*8+4], xmm1 ; +0x276, 0x18006b036 mov rax, [r9+220h] ; +0x27d, 0x18006b03d movss dword ptr [rax+rdx*8], xmm4 ; +0x284, 0x18006b044 mov rax, [r9+220h] ; +0x289, 0x18006b049 movss dword ptr [rax+rdx*8+4], xmm5 ; +0x290, 0x18006b050 lea eax, [rbp-1] ; +0x296, 0x18006b056 mov rcx, [r9+220h] ; +0x299, 0x18006b059 mov edx, eax ; +0x2a0, 0x18006b060 movss xmm3, dword ptr [rcx+rax*8+4] ; +0x2a2, 0x18006b062 movss xmm1, dword ptr [rcx+rax*8] ; +0x2a8, 0x18006b068 movaps xmm0, xmm3 ; +0x2ad, 0x18006b06d movss xmm4, dword ptr [rcx+r8*8+8] ; +0x2b0, 0x18006b070 movaps xmm2, xmm1 ; +0x2b7, 0x18006b077 movss xmm5, dword ptr [rcx+r8*8+0Ch] ; +0x2ba, 0x18006b07a mulss xmm0, xmm6 ; +0x2c1, 0x18006b081 mulss xmm1, xmm6 ; +0x2c5, 0x18006b085 mulss xmm2, xmm7 ; +0x2c9, 0x18006b089 mulss xmm3, xmm7 ; +0x2cd, 0x18006b08d subss xmm2, xmm0 ; +0x2d1, 0x18006b091 addss xmm3, xmm1 ; +0x2d5, 0x18006b095 movaps xmm0, xmm2 ; +0x2d9, 0x18006b099 addss xmm0, xmm4 ; +0x2dc, 0x18006b09c subss xmm4, xmm2 ; +0x2e0, 0x18006b0a0 movaps xmm1, xmm3 ; +0x2e4, 0x18006b0a4 addss xmm1, xmm5 ; +0x2e7, 0x18006b0a7 subss xmm5, xmm3 ; +0x2eb, 0x18006b0ab movss dword ptr [rcx+r8*8+8], xmm0 ; +0x2ef, 0x18006b0af mov rax, [r9+220h] ; +0x2f6, 0x18006b0b6 movss dword ptr [rax+r8*8+0Ch], xmm1 ; +0x2fd, 0x18006b0bd mov rax, [r9+220h] ; +0x304, 0x18006b0c4 movss dword ptr [rax+rdx*8], xmm4 ; +0x30b, 0x18006b0cb mov rax, [r9+220h] ; +0x310, 0x18006b0d0 movss dword ptr [rax+rdx*8+4], xmm5 ; +0x317, 0x18006b0d7 mov rax, [r9+220h] ; +0x31d, 0x18006b0dd movss xmm1, dword ptr [rax+rbp*8] ; +0x324, 0x18006b0e4 movss xmm3, dword ptr [rax+rbp*8+4] ; +0x329, 0x18006b0e9 movaps xmm2, xmm1 ; +0x32f, 0x18006b0ef movss xmm4, dword ptr [rax+r8*8+10h] ; +0x332, 0x18006b0f2 movaps xmm0, xmm3 ; +0x339, 0x18006b0f9 movss xmm5, dword ptr [rax+r8*8+14h] ; +0x33c, 0x18006b0fc mulss xmm0, xmm6 ; +0x343, 0x18006b103 mulss xmm1, xmm6 ; +0x347, 0x18006b107 mulss xmm2, xmm7 ; +0x34b, 0x18006b10b mulss xmm3, xmm7 ; +0x34f, 0x18006b10f subss xmm2, xmm0 ; +0x353, 0x18006b113 addss xmm3, xmm1 ; +0x357, 0x18006b117 movaps xmm0, xmm2 ; +0x35b, 0x18006b11b addss xmm0, xmm4 ; +0x35e, 0x18006b11e movaps xmm1, xmm3 ; +0x362, 0x18006b122 subss xmm4, xmm2 ; +0x365, 0x18006b125 addss xmm1, xmm5 ; +0x369, 0x18006b129 subss xmm5, xmm3 ; +0x36d, 0x18006b12d movss dword ptr [rax+r8*8+10h], xmm0 ; +0x371, 0x18006b131 mov rax, [r9+220h] ; +0x378, 0x18006b138 movss dword ptr [rax+r8*8+14h], xmm1 ; +0x37f, 0x18006b13f mov rax, [r9+220h] ; +0x386, 0x18006b146 movss dword ptr [rax+rbp*8], xmm4 ; +0x38d, 0x18006b14d mov rax, [r9+220h] ; +0x392, 0x18006b152 movss dword ptr [rax+rbp*8+4], xmm5 ; +0x399, 0x18006b159 lea eax, [rbp+1] ; +0x39f, 0x18006b15f mov rcx, [r9+220h] ; +0x3a2, 0x18006b162 add ebp, 4 ; +0x3a9, 0x18006b169 mov edx, eax ; +0x3ac, 0x18006b16c movss xmm1, dword ptr [rcx+rax*8] ; +0x3ae, 0x18006b16e movss xmm3, dword ptr [rcx+rax*8+4] ; +0x3b3, 0x18006b173 movaps xmm2, xmm1 ; +0x3b9, 0x18006b179 movss xmm4, dword ptr [rcx+r8*8+18h] ; +0x3bc, 0x18006b17c movaps xmm0, xmm3 ; +0x3c3, 0x18006b183 movss xmm5, dword ptr [rcx+r8*8+1Ch] ; +0x3c6, 0x18006b186 mulss xmm0, xmm6 ; +0x3cd, 0x18006b18d mulss xmm1, xmm6 ; +0x3d1, 0x18006b191 mulss xmm2, xmm7 ; +0x3d5, 0x18006b195 mulss xmm3, xmm7 ; +0x3d9, 0x18006b199 subss xmm2, xmm0 ; +0x3dd, 0x18006b19d addss xmm3, xmm1 ; +0x3e1, 0x18006b1a1 movaps xmm0, xmm2 ; +0x3e5, 0x18006b1a5 addss xmm0, xmm4 ; +0x3e8, 0x18006b1a8 movaps xmm1, xmm3 ; +0x3ec, 0x18006b1ac subss xmm4, xmm2 ; +0x3ef, 0x18006b1af addss xmm1, xmm5 ; +0x3f3, 0x18006b1b3 subss xmm5, xmm3 ; +0x3f7, 0x18006b1b7 movss dword ptr [rcx+r8*8+18h], xmm0 ; +0x3fb, 0x18006b1bb mov rax, [r9+220h] ; +0x402, 0x18006b1c2 movss dword ptr [rax+r8*8+1Ch], xmm1 ; +0x409, 0x18006b1c9 add r8, 4 ; +0x410, 0x18006b1d0 mov rax, [r9+220h] ; +0x414, 0x18006b1d4 movss dword ptr [rax+rdx*8], xmm4 ; +0x41b, 0x18006b1db mov rax, [r9+220h] ; +0x420, 0x18006b1e0 movss dword ptr [rax+rdx*8+4], xmm5 ; +0x427, 0x18006b1e7 cmp r8, rsi ; +0x42d, 0x18006b1ed jl loc_18006AFD1 ; +0x430, 0x18006b1f0 cmp r8, r10 ; +0x436, 0x18006b1f6 jge loc_18006B290 ; +0x439, 0x18006b1f9 lea edx, [rbx+rdi] ; +0x43f, 0x18006b1ff mov rax, [r9+220h] ; +0x442, 0x18006b202 movss xmm1, dword ptr [rax+rdx*8] ; +0x449, 0x18006b209 movss xmm3, dword ptr [rax+rdx*8+4] ; +0x44e, 0x18006b20e movaps xmm2, xmm1 ; +0x454, 0x18006b214 movss xmm4, dword ptr [rax+r8*8] ; +0x457, 0x18006b217 movaps xmm0, xmm3 ; +0x45d, 0x18006b21d movss xmm5, dword ptr [rax+r8*8+4] ; +0x460, 0x18006b220 mulss xmm0, xmm6 ; +0x467, 0x18006b227 mulss xmm1, xmm6 ; +0x46b, 0x18006b22b mulss xmm2, xmm7 ; +0x46f, 0x18006b22f mulss xmm3, xmm7 ; +0x473, 0x18006b233 subss xmm2, xmm0 ; +0x477, 0x18006b237 addss xmm3, xmm1 ; +0x47b, 0x18006b23b movaps xmm0, xmm2 ; +0x47f, 0x18006b23f addss xmm0, xmm4 ; +0x482, 0x18006b242 movaps xmm1, xmm3 ; +0x486, 0x18006b246 subss xmm4, xmm2 ; +0x489, 0x18006b249 addss xmm1, xmm5 ; +0x48d, 0x18006b24d subss xmm5, xmm3 ; +0x491, 0x18006b251 movss dword ptr [rax+r8*8], xmm0 ; +0x495, 0x18006b255 mov rax, [r9+220h] ; +0x49b, 0x18006b25b movss dword ptr [rax+r8*8+4], xmm1 ; +0x4a2, 0x18006b262 inc r8 ; +0x4a9, 0x18006b269 mov rax, [r9+220h] ; +0x4ac, 0x18006b26c movss dword ptr [rax+rdx*8], xmm4 ; +0x4b3, 0x18006b273 mov rax, [r9+220h] ; +0x4b8, 0x18006b278 movss dword ptr [rax+rdx*8+4], xmm5 ; +0x4bf, 0x18006b27f inc edx ; +0x4c5, 0x18006b285 cmp r8, r10 ; +0x4c7, 0x18006b287 jl loc_18006B202 ; +0x4ca, 0x18006b28a add r11d, r15d ; +0x4d0, 0x18006b290 sub r14, 1 ; +0x4d3, 0x18006b293 jnz loc_18006AE73 ; +0x4d7, 0x18006b297 mov rax, [rsp+88h+arg_10] ; +0x4dd, 0x18006b29d shr edi, 1 ; +0x4e5, 0x18006b2a5 add r13d, r13d ; +0x4e7, 0x18006b2a7 sub rax, 1 ; +0x4ea, 0x18006b2aa mov [rsp+88h+arg_10], rax ; +0x4ee, 0x18006b2ae jnz loc_18006AE60 ; +0x4f6, 0x18006b2b6 movaps xmm11, [rsp+88h+var_88] ; +0x4fc, 0x18006b2bc movaps xmm9, [rsp+88h+var_68] ; +0x501, 0x18006b2c1 movaps xmm8, [rsp+88h+var_58] ; +0x507, 0x18006b2c7 movaps xmm7, [rsp+88h+var_48] ; +0x50d, 0x18006b2cd movaps xmm6, [rsp+88h+var_38] ; +0x512, 0x18006b2d2 mov r15, [rsp+88h+var_28] ; +0x517, 0x18006b2d7 mov r14, [rsp+88h+var_20] ; +0x51c, 0x18006b2dc mov rsi, [rsp+88h+arg_18] ; +0x521, 0x18006b2e1 mov rbp, [rsp+88h+arg_8] ; +0x529, 0x18006b2e9 mov rbx, [rsp+88h+arg_0] ; +0x531, 0x18006b2f1 movaps xmm10, [rsp+88h+var_78] ; +0x539, 0x18006b2f9 xor eax, eax ; +0x53f, 0x18006b2ff add rsp, 70h ; +0x541, 0x18006b301 pop r13 ; +0x545, 0x18006b305 pop r12 ; +0x547, 0x18006b307 pop rdi ; +0x549, 0x18006b309 retn ; +0x54a, 0x18006b30a