; ; sub_18005C130 from 0x18005c130 to 0x18005c64c (1308 bytes) ; ; 4 xrefs: ; > @ 0x1801ac4c0 ; > @ 0x1801ac530 ; > @ 0x1801ac5a0 ; > @ 0x1801f9084 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 10:53:22 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x18005c130 mov [rsp+arg_8], rbp ; +0x5, 0x18005c135 mov [rsp+arg_10], rsi ; +0xa, 0x18005c13a push rdi ; +0xf, 0x18005c13f sub rsp, 0C0h ; +0x10, 0x18005c140 cmp [rsp+0C8h+arg_30], 0 ; +0x17, 0x18005c147 mov rbx, r9 ; +0x1f, 0x18005c14f movaps [rsp+0C8h+var_58], xmm10 ; +0x22, 0x18005c152 mov esi, r8d ; +0x28, 0x18005c158 movss xmm10, dword ptr [r9] ; +0x2b, 0x18005c15b mov rdi, rdx ; +0x30, 0x18005c160 movaps [rsp+0C8h+var_68], xmm11 ; +0x33, 0x18005c163 mov rbp, rcx ; +0x39, 0x18005c169 movss xmm11, dword ptr [r9+4] ; +0x3c, 0x18005c16c movaps [rsp+0C8h+var_78], xmm12 ; +0x42, 0x18005c172 movss xmm12, dword ptr [r9+8] ; +0x48, 0x18005c178 movaps [rsp+0C8h+var_88], xmm13 ; +0x4e, 0x18005c17e movss xmm13, dword ptr [r9+0Ch] ; +0x54, 0x18005c184 movaps [rsp+0C8h+var_98], xmm14 ; +0x5a, 0x18005c18a movss xmm14, dword ptr [r9+10h] ; +0x60, 0x18005c190 movaps [rsp+0C8h+var_A8], xmm15 ; +0x66, 0x18005c196 movss xmm15, dword ptr [r9+14h] ; +0x6c, 0x18005c19c jz short loc_18005C1BA ; +0x72, 0x18005c1a2 lea eax, [r8+r8*2] ; +0x74, 0x18005c1a4 xor edx, edx; Val ; +0x78, 0x18005c1a8 lea r8d, [rax+rax] ; +0x7a, 0x18005c1aa mov rcx, rdi; void * ; +0x7e, 0x18005c1ae shl r8, 2; Size ; +0x81, 0x18005c1b1 call memset ; +0x85, 0x18005c1b5 movaps [rsp+0C8h+var_18], xmm6 ; +0x8a, 0x18005c1ba mov eax, esi ; +0x92, 0x18005c1c2 movaps [rsp+0C8h+var_28], xmm7 ; +0x94, 0x18005c1c4 shr eax, 2 ; +0x9c, 0x18005c1cc movaps [rsp+0C8h+var_38], xmm8 ; +0x9f, 0x18005c1cf movaps [rsp+0C8h+var_48], xmm9 ; +0xa8, 0x18005c1d8 test eax, eax ; +0xb1, 0x18005c1e1 jz loc_18005C50B ; +0xb3, 0x18005c1e3 nop dword ptr [rax+00000000h] ; +0xb9, 0x18005c1e9 movss xmm4, dword ptr [rbp+0Ch] ; +0xc0, 0x18005c1f0 movss xmm7, dword ptr [rbp+10h] ; +0xc5, 0x18005c1f5 movaps xmm0, xmm4 ; +0xca, 0x18005c1fa mulss xmm4, dword ptr [rbx+8Ch] ; +0xcd, 0x18005c1fd movaps xmm3, xmm7 ; +0xd5, 0x18005c205 mulss xmm7, dword ptr [rbx+90h] ; +0xd8, 0x18005c208 movss xmm5, dword ptr [rbp+14h] ; +0xe0, 0x18005c210 movss xmm6, dword ptr [rbp+0] ; +0xe5, 0x18005c215 movaps xmm1, xmm5 ; +0xea, 0x18005c21a mulss xmm5, dword ptr [rbx+94h] ; +0xed, 0x18005c21d addss xmm7, xmm4 ; +0xf5, 0x18005c225 movss xmm9, dword ptr [rbp+8] ; +0xf9, 0x18005c229 movss xmm8, dword ptr [rbp+4] ; +0xff, 0x18005c22f movaps xmm2, xmm9 ; +0x105, 0x18005c235 mulss xmm9, dword ptr [rbx+88h] ; +0x109, 0x18005c239 addss xmm5, dword ptr [rdi+4] ; +0x112, 0x18005c242 movss xmm4, dword ptr [rbp+24h] ; +0x117, 0x18005c247 mulss xmm3, xmm14 ; +0x11c, 0x18005c24c mulss xmm1, xmm15 ; +0x121, 0x18005c251 addss xmm7, xmm5 ; +0x126, 0x18005c256 mulss xmm0, xmm13 ; +0x12a, 0x18005c25a addss xmm1, dword ptr [rdi] ; +0x12f, 0x18005c25f movss xmm5, dword ptr [rbp+2Ch] ; +0x133, 0x18005c263 addss xmm3, xmm0 ; +0x138, 0x18005c268 mulss xmm2, xmm12 ; +0x13c, 0x18005c26c movaps xmm0, xmm6 ; +0x141, 0x18005c271 mulss xmm6, dword ptr [rbx+80h] ; +0x144, 0x18005c274 mulss xmm0, xmm10 ; +0x14c, 0x18005c27c addss xmm3, xmm1 ; +0x151, 0x18005c281 movaps xmm1, xmm8 ; +0x155, 0x18005c285 mulss xmm8, dword ptr [rbx+84h] ; +0x159, 0x18005c289 addss xmm9, xmm6 ; +0x162, 0x18005c292 movss xmm6, dword ptr [rbp+18h] ; +0x167, 0x18005c297 addss xmm2, xmm0 ; +0x16c, 0x18005c29c mulss xmm1, xmm11 ; +0x170, 0x18005c2a0 movaps xmm0, xmm4 ; +0x175, 0x18005c2a5 mulss xmm4, dword ptr [rbx+8Ch] ; +0x178, 0x18005c2a8 addss xmm9, xmm8 ; +0x180, 0x18005c2b0 movss xmm8, dword ptr [rbp+1Ch] ; +0x185, 0x18005c2b5 addss xmm2, xmm1 ; +0x18b, 0x18005c2bb movaps xmm1, xmm5 ; +0x18f, 0x18005c2bf mulss xmm0, xmm13 ; +0x192, 0x18005c2c2 mulss xmm5, dword ptr [rbx+94h] ; +0x197, 0x18005c2c7 addss xmm7, xmm9 ; +0x19f, 0x18005c2cf movss xmm9, dword ptr [rbp+20h] ; +0x1a4, 0x18005c2d4 addss xmm3, xmm2 ; +0x1aa, 0x18005c2da movaps xmm2, xmm9 ; +0x1ae, 0x18005c2de mulss xmm1, xmm15 ; +0x1b2, 0x18005c2e2 mulss xmm9, dword ptr [rbx+88h] ; +0x1b7, 0x18005c2e7 addss xmm1, dword ptr [rdi+18h] ; +0x1c0, 0x18005c2f0 addss xmm5, dword ptr [rdi+1Ch] ; +0x1c5, 0x18005c2f5 movss dword ptr [rdi+4], xmm7 ; +0x1ca, 0x18005c2fa movss xmm7, dword ptr [rbp+28h] ; +0x1cf, 0x18005c2ff movss dword ptr [rdi], xmm3 ; +0x1d4, 0x18005c304 movaps xmm3, xmm7 ; +0x1d8, 0x18005c308 mulss xmm7, dword ptr [rbx+90h] ; +0x1db, 0x18005c30b mulss xmm3, xmm14 ; +0x1e3, 0x18005c313 addss xmm7, xmm4 ; +0x1e8, 0x18005c318 mulss xmm2, xmm12 ; +0x1ec, 0x18005c31c movss xmm4, dword ptr [rbp+3Ch] ; +0x1f1, 0x18005c321 addss xmm3, xmm0 ; +0x1f6, 0x18005c326 movaps xmm0, xmm6 ; +0x1fa, 0x18005c32a mulss xmm6, dword ptr [rbx+80h] ; +0x1fd, 0x18005c32d addss xmm7, xmm5 ; +0x205, 0x18005c335 mulss xmm0, xmm10 ; +0x209, 0x18005c339 addss xmm3, xmm1 ; +0x20e, 0x18005c33e movaps xmm1, xmm8 ; +0x212, 0x18005c342 mulss xmm8, dword ptr [rbx+84h] ; +0x216, 0x18005c346 addss xmm9, xmm6 ; +0x21f, 0x18005c34f movss xmm6, dword ptr [rbp+30h] ; +0x224, 0x18005c354 addss xmm2, xmm0 ; +0x229, 0x18005c359 mulss xmm1, xmm11 ; +0x22d, 0x18005c35d addss xmm9, xmm8 ; +0x232, 0x18005c362 movss xmm8, dword ptr [rbp+34h] ; +0x237, 0x18005c367 addss xmm2, xmm1 ; +0x23d, 0x18005c36d addss xmm7, xmm9 ; +0x241, 0x18005c371 movss xmm9, dword ptr [rbp+38h] ; +0x246, 0x18005c376 addss xmm3, xmm2 ; +0x24c, 0x18005c37c movss dword ptr [rdi+1Ch], xmm7 ; +0x250, 0x18005c380 movss xmm7, dword ptr [rbp+40h] ; +0x255, 0x18005c385 movss dword ptr [rdi+18h], xmm3 ; +0x25a, 0x18005c38a movss xmm5, dword ptr [rbp+44h] ; +0x25f, 0x18005c38f movaps xmm3, xmm7 ; +0x264, 0x18005c394 mulss xmm7, dword ptr [rbx+90h] ; +0x267, 0x18005c397 movaps xmm2, xmm9 ; +0x26f, 0x18005c39f mulss xmm9, dword ptr [rbx+88h] ; +0x273, 0x18005c3a3 movaps xmm1, xmm5 ; +0x27c, 0x18005c3ac mulss xmm5, dword ptr [rbx+94h] ; +0x27f, 0x18005c3af movaps xmm0, xmm4 ; +0x287, 0x18005c3b7 mulss xmm4, dword ptr [rbx+8Ch] ; +0x28a, 0x18005c3ba addss xmm5, dword ptr [rdi+34h] ; +0x292, 0x18005c3c2 mulss xmm1, xmm15 ; +0x297, 0x18005c3c7 addss xmm7, xmm4 ; +0x29c, 0x18005c3cc mulss xmm3, xmm14 ; +0x2a0, 0x18005c3d0 addss xmm1, dword ptr [rdi+30h] ; +0x2a5, 0x18005c3d5 movss xmm4, dword ptr [rbp+54h] ; +0x2aa, 0x18005c3da mulss xmm0, xmm13 ; +0x2af, 0x18005c3df addss xmm7, xmm5 ; +0x2b4, 0x18005c3e4 mulss xmm2, xmm12 ; +0x2b8, 0x18005c3e8 movss xmm5, dword ptr [rbp+5Ch] ; +0x2bd, 0x18005c3ed addss xmm3, xmm0 ; +0x2c2, 0x18005c3f2 movaps xmm0, xmm6 ; +0x2c6, 0x18005c3f6 mulss xmm6, dword ptr [rbx+80h] ; +0x2c9, 0x18005c3f9 mulss xmm0, xmm10 ; +0x2d1, 0x18005c401 addss xmm3, xmm1 ; +0x2d6, 0x18005c406 movaps xmm1, xmm8 ; +0x2da, 0x18005c40a mulss xmm8, dword ptr [rbx+84h] ; +0x2de, 0x18005c40e addss xmm9, xmm6 ; +0x2e7, 0x18005c417 movss xmm6, dword ptr [rbp+48h] ; +0x2ec, 0x18005c41c addss xmm2, xmm0 ; +0x2f1, 0x18005c421 mulss xmm1, xmm11 ; +0x2f5, 0x18005c425 movaps xmm0, xmm4 ; +0x2fa, 0x18005c42a mulss xmm4, dword ptr [rbx+8Ch] ; +0x2fd, 0x18005c42d addss xmm9, xmm8 ; +0x305, 0x18005c435 movss xmm8, dword ptr [rbp+4Ch] ; +0x30a, 0x18005c43a addss xmm2, xmm1 ; +0x310, 0x18005c440 movaps xmm1, xmm5 ; +0x314, 0x18005c444 mulss xmm0, xmm13 ; +0x317, 0x18005c447 mulss xmm5, dword ptr [rbx+94h] ; +0x31c, 0x18005c44c addss xmm7, xmm9 ; +0x324, 0x18005c454 movss xmm9, dword ptr [rbp+50h] ; +0x329, 0x18005c459 addss xmm3, xmm2 ; +0x32f, 0x18005c45f movaps xmm2, xmm9 ; +0x333, 0x18005c463 mulss xmm1, xmm15 ; +0x337, 0x18005c467 addss xmm5, dword ptr [rdi+4Ch] ; +0x33c, 0x18005c46c mulss xmm9, dword ptr [rbx+88h] ; +0x341, 0x18005c471 addss xmm1, dword ptr [rdi+48h] ; +0x34a, 0x18005c47a movss dword ptr [rdi+34h], xmm7 ; +0x34f, 0x18005c47f movss xmm7, dword ptr [rbp+58h] ; +0x354, 0x18005c484 add rbp, 60h ; '`' ; +0x359, 0x18005c489 movss dword ptr [rdi+30h], xmm3 ; +0x35d, 0x18005c48d movaps xmm3, xmm7 ; +0x362, 0x18005c492 mulss xmm7, dword ptr [rbx+90h] ; +0x365, 0x18005c495 mulss xmm3, xmm14 ; +0x36d, 0x18005c49d mulss xmm2, xmm12 ; +0x372, 0x18005c4a2 addss xmm7, xmm4 ; +0x377, 0x18005c4a7 addss xmm3, xmm0 ; +0x37b, 0x18005c4ab movaps xmm0, xmm6 ; +0x37f, 0x18005c4af mulss xmm6, dword ptr [rbx+80h] ; +0x382, 0x18005c4b2 mulss xmm0, xmm10 ; +0x38a, 0x18005c4ba addss xmm7, xmm5 ; +0x38f, 0x18005c4bf addss xmm3, xmm1 ; +0x393, 0x18005c4c3 movaps xmm1, xmm8 ; +0x397, 0x18005c4c7 mulss xmm8, dword ptr [rbx+84h] ; +0x39b, 0x18005c4cb addss xmm9, xmm6 ; +0x3a4, 0x18005c4d4 addss xmm2, xmm0 ; +0x3a9, 0x18005c4d9 mulss xmm1, xmm11 ; +0x3ad, 0x18005c4dd addss xmm9, xmm8 ; +0x3b2, 0x18005c4e2 addss xmm2, xmm1 ; +0x3b7, 0x18005c4e7 addss xmm7, xmm9 ; +0x3bb, 0x18005c4eb addss xmm3, xmm2 ; +0x3c0, 0x18005c4f0 movss dword ptr [rdi+4Ch], xmm7 ; +0x3c4, 0x18005c4f4 movss dword ptr [rdi+48h], xmm3 ; +0x3c9, 0x18005c4f9 add rdi, 60h ; '`' ; +0x3ce, 0x18005c4fe add eax, 0FFFFFFFFh ; +0x3d2, 0x18005c502 jnz loc_18005C1F0 ; +0x3d5, 0x18005c505 and esi, 3 ; +0x3db, 0x18005c50b jz loc_18005C5F1 ; +0x3de, 0x18005c50e lea rax, [rbp+8] ; +0x3e4, 0x18005c514 nop dword ptr [rax+rax+00000000h] ; +0x3e8, 0x18005c518 movss xmm4, dword ptr [rax+4] ; +0x3f0, 0x18005c520 movss xmm7, dword ptr [rax+8] ; +0x3f5, 0x18005c525 movaps xmm0, xmm4 ; +0x3fa, 0x18005c52a movss xmm5, dword ptr [rax+0Ch] ; +0x3fd, 0x18005c52d movaps xmm3, xmm7 ; +0x402, 0x18005c532 movss xmm9, dword ptr [rax-8] ; +0x405, 0x18005c535 movaps xmm1, xmm5 ; +0x40b, 0x18005c53b movss xmm6, dword ptr [rax] ; +0x40e, 0x18005c53e movaps xmm2, xmm9 ; +0x412, 0x18005c542 mulss xmm7, dword ptr [rbx+90h] ; +0x416, 0x18005c546 movss xmm8, dword ptr [rax-4] ; +0x41e, 0x18005c54e add rax, 18h ; +0x424, 0x18005c554 mulss xmm9, dword ptr [rbx+80h] ; +0x428, 0x18005c558 mulss xmm4, dword ptr [rbx+8Ch] ; +0x431, 0x18005c561 mulss xmm5, dword ptr [rbx+94h] ; +0x439, 0x18005c569 mulss xmm3, xmm14 ; +0x441, 0x18005c571 addss xmm7, xmm4 ; +0x446, 0x18005c576 addss xmm5, dword ptr [rdi+4] ; +0x44a, 0x18005c57a mulss xmm0, xmm13 ; +0x44f, 0x18005c57f mulss xmm1, xmm15 ; +0x454, 0x18005c584 addss xmm3, xmm0 ; +0x459, 0x18005c589 mulss xmm2, xmm10 ; +0x45d, 0x18005c58d movaps xmm0, xmm6 ; +0x462, 0x18005c592 addss xmm7, xmm5 ; +0x465, 0x18005c595 addss xmm1, dword ptr [rdi] ; +0x469, 0x18005c599 mulss xmm6, dword ptr [rbx+88h] ; +0x46d, 0x18005c59d mulss xmm0, xmm12 ; +0x475, 0x18005c5a5 addss xmm3, xmm1 ; +0x47a, 0x18005c5aa movaps xmm1, xmm8 ; +0x47e, 0x18005c5ae mulss xmm8, dword ptr [rbx+84h] ; +0x482, 0x18005c5b2 addss xmm9, xmm6 ; +0x48b, 0x18005c5bb addss xmm2, xmm0 ; +0x490, 0x18005c5c0 mulss xmm1, xmm11 ; +0x494, 0x18005c5c4 addss xmm9, xmm8 ; +0x499, 0x18005c5c9 addss xmm2, xmm1 ; +0x49e, 0x18005c5ce addss xmm7, xmm9 ; +0x4a2, 0x18005c5d2 addss xmm3, xmm2 ; +0x4a7, 0x18005c5d7 movss dword ptr [rdi+4], xmm7 ; +0x4ab, 0x18005c5db movss dword ptr [rdi], xmm3 ; +0x4b0, 0x18005c5e0 add rdi, 18h ; +0x4b4, 0x18005c5e4 add esi, 0FFFFFFFFh ; +0x4b8, 0x18005c5e8 jnz loc_18005C520 ; +0x4bb, 0x18005c5eb movaps xmm9, [rsp+0C8h+var_48] ; +0x4c1, 0x18005c5f1 lea r11, [rsp+0C8h+var_8] ; +0x4ca, 0x18005c5fa mov rbx, [r11+10h] ; +0x4d2, 0x18005c602 mov rbp, [r11+18h] ; +0x4d6, 0x18005c606 mov rsi, [r11+20h] ; +0x4da, 0x18005c60a movaps xmm10, xmmword ptr [r11-50h] ; +0x4de, 0x18005c60e movaps xmm11, xmmword ptr [r11-60h] ; +0x4e3, 0x18005c613 movaps xmm12, xmmword ptr [r11-70h] ; +0x4e8, 0x18005c618 movaps xmm13, xmmword ptr [r11-80h] ; +0x4ed, 0x18005c61d movaps xmm8, [rsp+0C8h+var_38] ; +0x4f2, 0x18005c622 movaps xmm7, [rsp+0C8h+var_28] ; +0x4fb, 0x18005c62b movaps xmm6, [rsp+0C8h+var_18] ; +0x503, 0x18005c633 movaps xmm14, [rsp+0C8h+var_98] ; +0x50b, 0x18005c63b movaps xmm15, [rsp+0C8h+var_A8] ; +0x511, 0x18005c641 mov rsp, r11 ; +0x517, 0x18005c647 pop rdi ; +0x51a, 0x18005c64a retn ; +0x51b, 0x18005c64b