; ; sub_18004E310 from 0x18004e310 to 0x18004e5e0 (720 bytes) ; ; 4 xrefs: ; > sub_18004DA30 @ 0x18004dbe2 ; > @ 0x180181918 ; > @ 0x180181958 ; > @ 0x1801f87a8 ; ; 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:16 +0000 ; mov [rsp+arg_10], r8d ; +0x0, 0x18004e310 mov [rsp+arg_8], rdx ; +0x5, 0x18004e315 push rbx ; +0xa, 0x18004e31a push r13 ; +0xb, 0x18004e31b sub rsp, 48h ; +0xd, 0x18004e31d mov rax, [rcx+8] ; +0x11, 0x18004e321 mov ebx, r8d ; +0x15, 0x18004e325 mov [rsp+58h+var_28], r12 ; +0x18, 0x18004e328 mov r13, rdx ; +0x1d, 0x18004e32d mov [rsp+58h+var_38], r15 ; +0x20, 0x18004e330 mov r15d, [rcx+4] ; +0x25, 0x18004e335 sub r15d, 6 ; +0x29, 0x18004e339 mov [rsp+58h+arg_0], rax ; +0x2d, 0x18004e33d test r15d, r15d ; +0x32, 0x18004e342 jle short loc_18004E34F ; +0x35, 0x18004e345 mov rcx, rax ; +0x37, 0x18004e347 call sub_18004EB00 ; +0x3a, 0x18004e34a dec r15d ; +0x3f, 0x18004e34f mov r12d, 1 ; +0x42, 0x18004e352 test r15d, r15d ; +0x48, 0x18004e358 jle loc_18004E5B0 ; +0x4b, 0x18004e35b mov [rsp+58h+arg_18], rbp ; +0x51, 0x18004e361 mov ebp, 2 ; +0x56, 0x18004e366 mov [rsp+58h+var_18], rsi ; +0x5b, 0x18004e36b mov [rsp+58h+var_20], rdi ; +0x60, 0x18004e370 mov [rsp+58h+var_30], r14 ; +0x65, 0x18004e375 nop word ptr [rax+rax+00h] ; +0x6a, 0x18004e37a test ebp, ebp ; +0x70, 0x18004e380 jle loc_18004E58B ; +0x72, 0x18004e382 movsxd rdi, ebx ; +0x78, 0x18004e388 mov ecx, r12d ; +0x7b, 0x18004e38b sar rdi, cl ; +0x7e, 0x18004e38e mov eax, 4 ; +0x81, 0x18004e391 shl eax, cl ; +0x86, 0x18004e396 mov rsi, rdi ; +0x88, 0x18004e398 sar rsi, 1 ; +0x8b, 0x18004e39b mov r9, r13 ; +0x8e, 0x18004e39e mov r13, [rsp+58h+arg_0] ; +0x91, 0x18004e3a1 movsxd rbx, ebx ; +0x96, 0x18004e3a6 cdqe ; +0x99, 0x18004e3a9 sar rbx, cl ; +0x9b, 0x18004e3ab lea r11, [rsi-8] ; +0x9e, 0x18004e3ae shl rbx, 2 ; +0xa2, 0x18004e3b2 mov r10d, ebp ; +0xa6, 0x18004e3b6 lea r14, ds:0[rax*4] ; +0xa9, 0x18004e3b9 mov r8, rdi ; +0xb1, 0x18004e3c1 lea rdx, [r9+r11*4] ; +0xb4, 0x18004e3c4 sub r8, rsi ; +0xb8, 0x18004e3c8 mov rcx, r13 ; +0xbb, 0x18004e3cb add r8, 7 ; +0xbe, 0x18004e3ce add r8, r11 ; +0xc2, 0x18004e3d2 lea r8, [r9+r8*4] ; +0xc5, 0x18004e3d5 nop dword ptr [rax+00000000h] ; +0xc9, 0x18004e3d9 movss xmm1, dword ptr [rdx+18h] ; +0xd0, 0x18004e3e0 movss xmm2, dword ptr [r8-4] ; +0xd5, 0x18004e3e5 movss xmm0, dword ptr [r8] ; +0xdb, 0x18004e3eb movaps xmm4, xmm2 ; +0xe0, 0x18004e3f0 subss xmm4, xmm1 ; +0xe3, 0x18004e3f3 movaps xmm3, xmm0 ; +0xe7, 0x18004e3f7 subss xmm3, dword ptr [rdx+1Ch] ; +0xea, 0x18004e3fa addss xmm1, xmm2 ; +0xef, 0x18004e3ff movss dword ptr [r8-4], xmm1 ; +0xf3, 0x18004e403 movaps xmm1, xmm3 ; +0xf9, 0x18004e409 addss xmm0, dword ptr [rdx+1Ch] ; +0xfc, 0x18004e40c movss dword ptr [r8], xmm0 ; +0x101, 0x18004e411 movaps xmm0, xmm4 ; +0x106, 0x18004e416 mulss xmm1, dword ptr [rcx+4] ; +0x109, 0x18004e419 mulss xmm0, dword ptr [rcx] ; +0x10e, 0x18004e41e addss xmm1, xmm0 ; +0x112, 0x18004e422 movss dword ptr [rdx+18h], xmm1 ; +0x116, 0x18004e426 mulss xmm3, dword ptr [rcx] ; +0x11b, 0x18004e42b mulss xmm4, dword ptr [rcx+4] ; +0x11f, 0x18004e42f add rcx, r14 ; +0x124, 0x18004e434 movss xmm1, dword ptr [rdx+10h] ; +0x127, 0x18004e437 subss xmm3, xmm4 ; +0x12c, 0x18004e43c movss dword ptr [rdx+1Ch], xmm3 ; +0x130, 0x18004e440 movss xmm2, dword ptr [r8-0Ch] ; +0x135, 0x18004e445 movss xmm0, dword ptr [r8-8] ; +0x13b, 0x18004e44b movaps xmm4, xmm2 ; +0x141, 0x18004e451 subss xmm4, xmm1 ; +0x144, 0x18004e454 movaps xmm3, xmm0 ; +0x148, 0x18004e458 subss xmm3, dword ptr [rdx+14h] ; +0x14b, 0x18004e45b addss xmm1, xmm2 ; +0x150, 0x18004e460 movss dword ptr [r8-0Ch], xmm1 ; +0x154, 0x18004e464 movaps xmm1, xmm3 ; +0x15a, 0x18004e46a addss xmm0, dword ptr [rdx+14h] ; +0x15d, 0x18004e46d movss dword ptr [r8-8], xmm0 ; +0x162, 0x18004e472 movaps xmm0, xmm4 ; +0x168, 0x18004e478 mulss xmm0, dword ptr [rcx] ; +0x16b, 0x18004e47b mulss xmm1, dword ptr [rcx+4] ; +0x16f, 0x18004e47f addss xmm1, xmm0 ; +0x174, 0x18004e484 movss dword ptr [rdx+10h], xmm1 ; +0x178, 0x18004e488 mulss xmm3, dword ptr [rcx] ; +0x17d, 0x18004e48d mulss xmm4, dword ptr [rcx+4] ; +0x181, 0x18004e491 add rcx, r14 ; +0x186, 0x18004e496 movss xmm1, dword ptr [rdx+8] ; +0x189, 0x18004e499 subss xmm3, xmm4 ; +0x18e, 0x18004e49e movss dword ptr [rdx+14h], xmm3 ; +0x192, 0x18004e4a2 movss xmm2, dword ptr [r8-14h] ; +0x197, 0x18004e4a7 movss xmm0, dword ptr [r8-10h] ; +0x19d, 0x18004e4ad movaps xmm4, xmm2 ; +0x1a3, 0x18004e4b3 subss xmm4, xmm1 ; +0x1a6, 0x18004e4b6 movaps xmm3, xmm0 ; +0x1aa, 0x18004e4ba subss xmm3, dword ptr [rdx+0Ch] ; +0x1ad, 0x18004e4bd addss xmm1, xmm2 ; +0x1b2, 0x18004e4c2 movss dword ptr [r8-14h], xmm1 ; +0x1b6, 0x18004e4c6 movaps xmm1, xmm3 ; +0x1bc, 0x18004e4cc addss xmm0, dword ptr [rdx+0Ch] ; +0x1bf, 0x18004e4cf movss dword ptr [r8-10h], xmm0 ; +0x1c4, 0x18004e4d4 movaps xmm0, xmm4 ; +0x1ca, 0x18004e4da mulss xmm0, dword ptr [rcx] ; +0x1cd, 0x18004e4dd mulss xmm1, dword ptr [rcx+4] ; +0x1d1, 0x18004e4e1 movss xmm2, dword ptr [rdx] ; +0x1d6, 0x18004e4e6 addss xmm1, xmm0 ; +0x1da, 0x18004e4ea movss dword ptr [rdx+8], xmm1 ; +0x1de, 0x18004e4ee mulss xmm3, dword ptr [rcx] ; +0x1e3, 0x18004e4f3 mulss xmm4, dword ptr [rcx+4] ; +0x1e7, 0x18004e4f7 add rcx, r14 ; +0x1ec, 0x18004e4fc subss xmm3, xmm4 ; +0x1ef, 0x18004e4ff movss dword ptr [rdx+0Ch], xmm3 ; +0x1f3, 0x18004e503 movss xmm1, dword ptr [r8-1Ch] ; +0x1f8, 0x18004e508 movss xmm0, dword ptr [r8-18h] ; +0x1fe, 0x18004e50e movaps xmm4, xmm1 ; +0x204, 0x18004e514 movaps xmm3, xmm0 ; +0x207, 0x18004e517 subss xmm4, xmm2 ; +0x20a, 0x18004e51a subss xmm3, dword ptr [rdx+4] ; +0x20e, 0x18004e51e addss xmm2, xmm1 ; +0x213, 0x18004e523 movaps xmm1, xmm3 ; +0x217, 0x18004e527 movss dword ptr [r8-1Ch], xmm2 ; +0x21a, 0x18004e52a addss xmm0, dword ptr [rdx+4] ; +0x220, 0x18004e530 movss dword ptr [r8-18h], xmm0 ; +0x225, 0x18004e535 movaps xmm0, xmm4 ; +0x22b, 0x18004e53b mulss xmm0, dword ptr [rcx] ; +0x22e, 0x18004e53e mulss xmm1, dword ptr [rcx+4] ; +0x232, 0x18004e542 addss xmm1, xmm0 ; +0x237, 0x18004e547 sub r8, 20h ; ' ' ; +0x23b, 0x18004e54b movss dword ptr [rdx], xmm1 ; +0x23f, 0x18004e54f mulss xmm3, dword ptr [rcx] ; +0x243, 0x18004e553 mulss xmm4, dword ptr [rcx+4] ; +0x247, 0x18004e557 add rcx, r14 ; +0x24c, 0x18004e55c subss xmm3, xmm4 ; +0x24f, 0x18004e55f movss dword ptr [rdx+4], xmm3 ; +0x253, 0x18004e563 sub rdx, 20h ; ' ' ; +0x258, 0x18004e568 cmp rdx, r9 ; +0x25c, 0x18004e56c jnb loc_18004E3E0 ; +0x25f, 0x18004e56f add r9, rbx ; +0x265, 0x18004e575 sub r10, 1 ; +0x268, 0x18004e578 jnz loc_18004E3C1 ; +0x26c, 0x18004e57c mov r13, [rsp+58h+arg_8] ; +0x272, 0x18004e582 mov ebx, [rsp+58h+arg_10] ; +0x277, 0x18004e587 inc r12d ; +0x27b, 0x18004e58b rol ebp, 1 ; +0x27e, 0x18004e58e dec r15d ; +0x280, 0x18004e590 test r15d, r15d ; +0x283, 0x18004e593 jg loc_18004E380 ; +0x286, 0x18004e596 mov r14, [rsp+58h+var_30] ; +0x28c, 0x18004e59c mov rdi, [rsp+58h+var_20] ; +0x291, 0x18004e5a1 mov rsi, [rsp+58h+var_18] ; +0x296, 0x18004e5a6 mov rbp, [rsp+58h+arg_18] ; +0x29b, 0x18004e5ab mov r15, [rsp+58h+var_38] ; +0x2a0, 0x18004e5b0 mov r12, [rsp+58h+var_28] ; +0x2a5, 0x18004e5b5 test ebx, ebx ; +0x2aa, 0x18004e5ba jle short loc_18004E5D8 ; +0x2ac, 0x18004e5bc lea edx, [rbx-1] ; +0x2ae, 0x18004e5be shr edx, 5 ; +0x2b1, 0x18004e5c1 inc edx ; +0x2b4, 0x18004e5c4 mov rcx, r13 ; +0x2b6, 0x18004e5c6 call sub_18004E730 ; +0x2b9, 0x18004e5c9 sub r13, 0FFFFFFFFFFFFFF80h ; +0x2be, 0x18004e5ce sub rdx, 1 ; +0x2c2, 0x18004e5d2 jnz short loc_18004E5C6 ; +0x2c6, 0x18004e5d6 add rsp, 48h ; +0x2c8, 0x18004e5d8 pop r13 ; +0x2cc, 0x18004e5dc pop rbx ; +0x2ce, 0x18004e5de retn ; +0x2cf, 0x18004e5df