; ; sub_180061040 from 0x180061040 to 0x1800614d2 (1170 bytes) ; ; 5 xrefs: ; > @ 0x180182a94 ; > @ 0x180182ac4 ; > @ 0x1801ac520 ; > @ 0x1801ac590 ; > @ 0x1801f915c ; ; 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 rax, rsp ; +0x0, 0x180061040 mov [rax+10h], rbx ; +0x3, 0x180061043 mov [rax+18h], rbp ; +0x7, 0x180061047 mov [rax+20h], rsi ; +0xb, 0x18006104b push rdi ; +0xf, 0x18006104f sub rsp, 100h ; +0x10, 0x180061050 cmp [rsp+108h+arg_30], 0 ; +0x17, 0x180061057 mov rbx, r9 ; +0x1f, 0x18006105f movups xmm3, xmmword ptr [r9+80h] ; +0x22, 0x180061062 mov edi, r8d ; +0x2a, 0x18006106a movups xmm4, xmmword ptr [r9+100h] ; +0x2d, 0x18006106d mov rsi, rdx ; +0x35, 0x180061075 movups xmm5, xmmword ptr [r9+180h] ; +0x38, 0x180061078 mov rbp, rcx ; +0x40, 0x180061080 movaps xmmword ptr [rax-28h], xmm7 ; +0x43, 0x180061083 movups xmm7, xmmword ptr [r9+200h] ; +0x47, 0x180061087 movaps [rsp+108h+var_A8], xmm15 ; +0x4f, 0x18006108f movups xmm15, xmmword ptr [r9] ; +0x55, 0x180061095 mov [rax+8], r14 ; +0x59, 0x180061099 mov r14, rcx ; +0x5d, 0x18006109d movaps [rsp+108h+var_B8], xmm7 ; +0x60, 0x1800610a0 movaps [rsp+108h+var_E8], xmm3 ; +0x65, 0x1800610a5 movaps [rsp+108h+var_D8], xmm4 ; +0x6a, 0x1800610aa movaps [rsp+108h+var_C8], xmm5 ; +0x6f, 0x1800610af jz short loc_1800610DB ; +0x74, 0x1800610b4 lea eax, [r8+r8*2] ; +0x76, 0x1800610b6 xor edx, edx; Val ; +0x7a, 0x1800610ba lea r8d, [rax+rax] ; +0x7c, 0x1800610bc mov rcx, rsi; void * ; +0x80, 0x1800610c0 shl r8, 2; Size ; +0x83, 0x1800610c3 call memset ; +0x87, 0x1800610c7 movaps xmm3, [rsp+108h+var_E8] ; +0x8c, 0x1800610cc movaps xmm4, [rsp+108h+var_D8] ; +0x91, 0x1800610d1 movaps xmm5, [rsp+108h+var_C8] ; +0x96, 0x1800610d6 movaps [rsp+108h+var_18], xmm6 ; +0x9b, 0x1800610db mov eax, edi ; +0xa3, 0x1800610e3 shr eax, 1 ; +0xa5, 0x1800610e5 movaps [rsp+108h+var_38], xmm8 ; +0xa7, 0x1800610e7 movaps [rsp+108h+var_48], xmm9 ; +0xb0, 0x1800610f0 movaps [rsp+108h+var_58], xmm10 ; +0xb9, 0x1800610f9 movaps [rsp+108h+var_68], xmm11 ; +0xc2, 0x180061102 movaps [rsp+108h+var_78], xmm12 ; +0xcb, 0x18006110b movaps [rsp+108h+var_88], xmm13 ; +0xd4, 0x180061114 movaps [rsp+108h+var_98], xmm14 ; +0xdd, 0x18006111d jz loc_180061285 ; +0xe3, 0x180061123 lea rcx, [rsi+20h] ; +0xe9, 0x180061129 nop dword ptr [rax] ; +0xed, 0x18006112d movups xmm6, xmmword ptr [r14] ; +0xf0, 0x180061130 movups xmm8, xmmword ptr [r14+10h] ; +0xf4, 0x180061134 movaps xmm11, xmm6 ; +0xf9, 0x180061139 movaps xmm0, xmm6 ; +0xfd, 0x18006113d mulps xmm11, xmm15 ; +0x100, 0x180061140 add r14, 20h ; ' ' ; +0x104, 0x180061144 mulps xmm0, xmm3 ; +0x108, 0x180061148 movaps xmm13, xmm6 ; +0x10b, 0x18006114b movaps xmm9, xmm6 ; +0x10f, 0x18006114f mulps xmm13, xmm7 ; +0x113, 0x180061153 movaps xmm1, xmm6 ; +0x117, 0x180061157 mulps xmm9, xmm4 ; +0x11a, 0x18006115a mulps xmm6, xmmword ptr [rbx+280h] ; +0x11e, 0x18006115e movaps xmm2, xmm8 ; +0x125, 0x180061165 mulps xmm1, xmm5 ; +0x129, 0x180061169 movaps xmm14, xmm8 ; +0x12c, 0x18006116c mulps xmm2, xmm3 ; +0x130, 0x180061170 movaps xmm10, xmm8 ; +0x133, 0x180061173 mulps xmm14, xmm4 ; +0x137, 0x180061177 movaps xmm3, xmm8 ; +0x13b, 0x18006117b mulps xmm3, xmm5 ; +0x13f, 0x18006117f movaps xmm4, xmm11 ; +0x142, 0x180061182 shufps xmm4, xmm0, 44h ; 'D' ; +0x146, 0x180061186 movaps xmm5, xmm13 ; +0x14a, 0x18006118a shufps xmm11, xmm0, 0EEh ; +0x14e, 0x18006118e movaps xmm12, xmm8 ; +0x153, 0x180061193 mulps xmm8, xmmword ptr [rbx+280h] ; +0x157, 0x180061197 movaps xmm0, xmm9 ; +0x15f, 0x18006119f shufps xmm0, xmm1, 44h ; 'D' ; +0x163, 0x1800611a3 shufps xmm9, xmm1, 0EEh ; +0x167, 0x1800611a7 shufps xmm5, xmm6, 44h ; 'D' ; +0x16c, 0x1800611ac shufps xmm13, xmm6, 0EEh ; +0x170, 0x1800611b0 movaps xmm6, xmm4 ; +0x175, 0x1800611b5 shufps xmm6, xmm0, 88h ; +0x178, 0x1800611b8 addps xmm6, xmmword ptr [rcx-20h] ; +0x17c, 0x1800611bc shufps xmm4, xmm0, 0DDh ; +0x180, 0x1800611c0 movaps xmm0, xmm11 ; +0x184, 0x1800611c4 mulps xmm12, xmm7 ; +0x188, 0x1800611c8 movaps xmm7, xmm14 ; +0x18c, 0x1800611cc shufps xmm7, xmm3, 44h ; 'D' ; +0x190, 0x1800611d0 shufps xmm14, xmm3, 0EEh ; +0x194, 0x1800611d4 addps xmm6, xmm4 ; +0x199, 0x1800611d9 movaps xmm4, [rsp+108h+var_D8] ; +0x19c, 0x1800611dc shufps xmm0, xmm9, 88h ; +0x1a1, 0x1800611e1 movaps xmm3, xmm12 ; +0x1a6, 0x1800611e6 shufps xmm3, xmm8, 44h ; 'D' ; +0x1aa, 0x1800611ea mulps xmm10, xmm15 ; +0x1af, 0x1800611ef addps xmm6, xmm0 ; +0x1b3, 0x1800611f3 shufps xmm12, xmm8, 0EEh ; +0x1b6, 0x1800611f6 movaps xmm0, xmm13 ; +0x1bb, 0x1800611fb shufps xmm11, xmm9, 0DDh ; +0x1bf, 0x1800611ff movaps xmm1, xmm10 ; +0x1c4, 0x180061204 shufps xmm10, xmm2, 0EEh ; +0x1c8, 0x180061208 shufps xmm1, xmm2, 44h ; 'D' ; +0x1cd, 0x18006120d movaps xmm2, xmm5 ; +0x1d1, 0x180061211 shufps xmm2, xmm1, 88h ; +0x1d4, 0x180061214 addps xmm6, xmm11 ; +0x1d8, 0x180061218 addps xmm2, xmmword ptr [rcx-10h] ; +0x1dc, 0x18006121c shufps xmm5, xmm1, 0DDh ; +0x1e0, 0x180061220 movaps xmm1, xmm7 ; +0x1e4, 0x180061224 shufps xmm1, xmm3, 88h ; +0x1e7, 0x180061227 addps xmm1, xmmword ptr [rcx] ; +0x1eb, 0x18006122b shufps xmm0, xmm10, 88h ; +0x1ee, 0x18006122e addps xmm2, xmm5 ; +0x1f3, 0x180061233 movups xmmword ptr [rcx-20h], xmm6 ; +0x1f6, 0x180061236 movaps xmm5, [rsp+108h+var_C8] ; +0x1fa, 0x18006123a shufps xmm7, xmm3, 0DDh ; +0x1ff, 0x18006123f movaps xmm3, [rsp+108h+var_E8] ; +0x203, 0x180061243 addps xmm1, xmm7 ; +0x208, 0x180061248 shufps xmm13, xmm10, 0DDh ; +0x20b, 0x18006124b addps xmm2, xmm0 ; +0x210, 0x180061250 movaps xmm0, xmm14 ; +0x213, 0x180061253 shufps xmm0, xmm12, 88h ; +0x217, 0x180061257 shufps xmm14, xmm12, 0DDh ; +0x21c, 0x18006125c addps xmm1, xmm0 ; +0x221, 0x180061261 addps xmm2, xmm13 ; +0x224, 0x180061264 addps xmm1, xmm14 ; +0x228, 0x180061268 movups xmmword ptr [rcx-10h], xmm2 ; +0x22c, 0x18006126c movups xmmword ptr [rcx], xmm1 ; +0x230, 0x180061270 add rcx, 30h ; '0' ; +0x233, 0x180061273 sub eax, 1 ; +0x237, 0x180061277 movaps xmm7, [rsp+108h+var_B8] ; +0x23a, 0x18006127a jnz loc_180061130 ; +0x23f, 0x18006127f mov r14, [rsp+108h+arg_0] ; +0x245, 0x180061285 and edi, 1 ; +0x24d, 0x18006128d jz loc_18006146A ; +0x250, 0x180061290 movss xmm8, dword ptr [rbx+4] ; +0x256, 0x180061296 lea rax, [rsi+8] ; +0x25c, 0x18006129c movss xmm9, dword ptr [rbx] ; +0x260, 0x1800612a0 lea rcx, [rbp+8] ; +0x265, 0x1800612a5 movss xmm10, dword ptr [rbx+8] ; +0x269, 0x1800612a9 movss xmm11, dword ptr [rbx+0Ch] ; +0x26f, 0x1800612af movss xmm12, dword ptr [rbx+84h] ; +0x275, 0x1800612b5 movss xmm13, dword ptr [rbx+80h] ; +0x27e, 0x1800612be movss xmm14, dword ptr [rbx+88h] ; +0x287, 0x1800612c7 movss xmm15, dword ptr [rbx+8Ch] ; +0x290, 0x1800612d0 nop dword ptr [rax+00000000h] ; +0x299, 0x1800612d9 movss xmm6, dword ptr [rcx+4] ; +0x2a0, 0x1800612e0 movss xmm4, dword ptr [rcx] ; +0x2a5, 0x1800612e5 movaps xmm2, xmm6 ; +0x2a9, 0x1800612e9 movss xmm5, dword ptr [rcx-4] ; +0x2ac, 0x1800612ec movaps xmm3, xmm6 ; +0x2b1, 0x1800612f1 movss xmm7, dword ptr [rcx-8] ; +0x2b4, 0x1800612f4 movaps xmm0, xmm4 ; +0x2b9, 0x1800612f9 mulss xmm0, xmm10 ; +0x2bc, 0x1800612fc movaps xmm1, xmm5 ; +0x2c1, 0x180061301 add rcx, 10h ; +0x2c4, 0x180061304 mulss xmm2, xmm11 ; +0x2c8, 0x180061308 mulss xmm1, xmm8 ; +0x2cd, 0x18006130d addss xmm2, dword ptr [rax-8] ; +0x2d2, 0x180061312 mulss xmm3, xmm15 ; +0x2d7, 0x180061317 addss xmm3, dword ptr [rax-4] ; +0x2dc, 0x18006131c addss xmm2, xmm0 ; +0x2e1, 0x180061321 movaps xmm0, xmm7 ; +0x2e5, 0x180061325 mulss xmm0, xmm9 ; +0x2e8, 0x180061328 addss xmm1, xmm0 ; +0x2ed, 0x18006132d movaps xmm0, xmm4 ; +0x2f1, 0x180061331 mulss xmm0, xmm14 ; +0x2f4, 0x180061334 addss xmm2, xmm1 ; +0x2f9, 0x180061339 movaps xmm1, xmm7 ; +0x2fd, 0x18006133d addss xmm3, xmm0 ; +0x300, 0x180061340 mulss xmm1, xmm13 ; +0x304, 0x180061344 movaps xmm0, xmm5 ; +0x309, 0x180061349 mulss xmm0, xmm12 ; +0x30c, 0x18006134c movss dword ptr [rax-8], xmm2 ; +0x311, 0x180061351 movaps xmm2, xmm6 ; +0x316, 0x180061356 mulss xmm2, dword ptr [rbx+10Ch] ; +0x319, 0x180061359 addss xmm1, xmm0 ; +0x321, 0x180061361 movaps xmm0, xmm4 ; +0x325, 0x180061365 mulss xmm0, dword ptr [rbx+108h] ; +0x328, 0x180061368 addss xmm2, dword ptr [rax] ; +0x330, 0x180061370 addss xmm3, xmm1 ; +0x334, 0x180061374 movaps xmm1, xmm7 ; +0x338, 0x180061378 mulss xmm1, dword ptr [rbx+100h] ; +0x33b, 0x18006137b addss xmm2, xmm0 ; +0x343, 0x180061383 movaps xmm0, xmm5 ; +0x347, 0x180061387 mulss xmm0, dword ptr [rbx+104h] ; +0x34a, 0x18006138a movss dword ptr [rax-4], xmm3 ; +0x352, 0x180061392 movaps xmm3, xmm6 ; +0x357, 0x180061397 mulss xmm3, dword ptr [rbx+18Ch] ; +0x35a, 0x18006139a addss xmm1, xmm0 ; +0x362, 0x1800613a2 movaps xmm0, xmm4 ; +0x366, 0x1800613a6 mulss xmm0, dword ptr [rbx+188h] ; +0x369, 0x1800613a9 addss xmm3, dword ptr [rax+4] ; +0x371, 0x1800613b1 addss xmm2, xmm1 ; +0x376, 0x1800613b6 movaps xmm1, xmm5 ; +0x37a, 0x1800613ba mulss xmm1, dword ptr [rbx+184h] ; +0x37d, 0x1800613bd addss xmm3, xmm0 ; +0x385, 0x1800613c5 movaps xmm0, xmm7 ; +0x389, 0x1800613c9 mulss xmm0, dword ptr [rbx+180h] ; +0x38c, 0x1800613cc movss dword ptr [rax], xmm2 ; +0x394, 0x1800613d4 movaps xmm2, xmm6 ; +0x398, 0x1800613d8 mulss xmm2, dword ptr [rbx+20Ch] ; +0x39b, 0x1800613db mulss xmm6, dword ptr [rbx+28Ch] ; +0x3a3, 0x1800613e3 addss xmm1, xmm0 ; +0x3ab, 0x1800613eb movaps xmm0, xmm4 ; +0x3af, 0x1800613ef mulss xmm4, dword ptr [rbx+288h] ; +0x3b2, 0x1800613f2 addss xmm2, dword ptr [rax+8] ; +0x3ba, 0x1800613fa addss xmm6, dword ptr [rax+0Ch] ; +0x3bf, 0x1800613ff mulss xmm0, dword ptr [rbx+208h] ; +0x3c4, 0x180061404 addss xmm3, xmm1 ; +0x3cc, 0x18006140c movaps xmm1, xmm7 ; +0x3d0, 0x180061410 mulss xmm7, dword ptr [rbx+280h] ; +0x3d3, 0x180061413 mulss xmm1, dword ptr [rbx+200h] ; +0x3db, 0x18006141b addss xmm2, xmm0 ; +0x3e3, 0x180061423 movaps xmm0, xmm5 ; +0x3e7, 0x180061427 movss dword ptr [rax+4], xmm3 ; +0x3ea, 0x18006142a mulss xmm0, dword ptr [rbx+204h] ; +0x3ef, 0x18006142f addss xmm6, xmm4 ; +0x3f7, 0x180061437 mulss xmm5, dword ptr [rbx+284h] ; +0x3fb, 0x18006143b addss xmm1, xmm0 ; +0x403, 0x180061443 addss xmm7, xmm5 ; +0x407, 0x180061447 addss xmm2, xmm1 ; +0x40b, 0x18006144b addss xmm6, xmm7 ; +0x40f, 0x18006144f movss dword ptr [rax+8], xmm2 ; +0x413, 0x180061453 movss dword ptr [rax+0Ch], xmm6 ; +0x418, 0x180061458 add rax, 18h ; +0x41d, 0x18006145d sub edi, 1 ; +0x421, 0x180061461 jnz loc_1800612E0 ; +0x424, 0x180061464 movaps xmm14, [rsp+108h+var_98] ; +0x42a, 0x18006146a lea r11, [rsp+108h+var_8] ; +0x430, 0x180061470 mov rbx, [r11+18h] ; +0x438, 0x180061478 mov rbp, [r11+20h] ; +0x43c, 0x18006147c mov rsi, [r11+28h] ; +0x440, 0x180061480 movaps xmm7, xmmword ptr [r11-20h] ; +0x444, 0x180061484 movaps xmm13, [rsp+108h+var_88] ; +0x449, 0x180061489 movaps xmm12, [rsp+108h+var_78] ; +0x452, 0x180061492 movaps xmm11, [rsp+108h+var_68] ; +0x45b, 0x18006149b movaps xmm10, [rsp+108h+var_58] ; +0x464, 0x1800614a4 movaps xmm9, [rsp+108h+var_48] ; +0x46d, 0x1800614ad movaps xmm8, [rsp+108h+var_38] ; +0x476, 0x1800614b6 movaps xmm6, [rsp+108h+var_18] ; +0x47f, 0x1800614bf movaps xmm15, [rsp+108h+var_A8] ; +0x487, 0x1800614c7 mov rsp, r11 ; +0x48d, 0x1800614cd pop rdi ; +0x490, 0x1800614d0 retn ; +0x491, 0x1800614d1