; ; sub_180067CD0 from 0x180067cd0 to 0x180068263 (1427 bytes) ; ; 4 xrefs: ; > sub_180066F80 @ 0x180067097 ; > @ 0x180182e50 ; > @ 0x180182e60 ; > @ 0x1801f942c ; ; 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:26 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x180067cd0 mov [rsp+arg_18], r9 ; +0x5, 0x180067cd5 mov [rsp+arg_10], r8 ; +0xa, 0x180067cda mov [rsp+arg_8], rdx ; +0xf, 0x180067cdf push rbp ; +0x14, 0x180067ce4 push rsi ; +0x15, 0x180067ce5 push rdi ; +0x16, 0x180067ce6 push r12 ; +0x17, 0x180067ce7 push r13 ; +0x19, 0x180067ce9 push r14 ; +0x1b, 0x180067ceb push r15 ; +0x1d, 0x180067ced sub rsp, 90h ; +0x1f, 0x180067cef mov rbx, [rsp+0C8h+arg_60] ; +0x26, 0x180067cf6 mov rax, r8 ; +0x2e, 0x180067cfe mov r8, [rsp+0C8h+arg_50] ; +0x31, 0x180067d01 mov rbp, [rsp+0C8h+arg_20] ; +0x39, 0x180067d09 mov r13, [rsp+0C8h+arg_28] ; +0x41, 0x180067d11 mov r9, [rsp+0C8h+arg_68] ; +0x49, 0x180067d19 mov ecx, [r8] ; +0x51, 0x180067d21 mov r15d, [rsp+0C8h+arg_58] ; +0x54, 0x180067d24 mov r12d, [rbx] ; +0x5c, 0x180067d2c mov esi, [rbp+0] ; +0x5f, 0x180067d2f mov r14d, [r13+0] ; +0x62, 0x180067d32 mov edi, [r9] ; +0x66, 0x180067d36 mov r10, [rax] ; +0x69, 0x180067d39 mov r11, [rdx] ; +0x6c, 0x180067d3c mov [rsp+0C8h+var_C8], ecx ; +0x6f, 0x180067d3f test ecx, ecx ; +0x72, 0x180067d42 jz loc_180068230 ; +0x74, 0x180067d44 mov r9d, [rsp+0C8h+arg_30] ; +0x7a, 0x180067d4a movaps [rsp+0C8h+var_48], xmm6 ; +0x82, 0x180067d52 movss xmm6, cs:X ; +0x8a, 0x180067d5a movaps [rsp+0C8h+var_58], xmm7 ; +0x92, 0x180067d62 movss xmm7, cs:dword_180164BB8 ; +0x97, 0x180067d67 movaps [rsp+0C8h+var_68], xmm8 ; +0x9f, 0x180067d6f movss xmm8, cs:dword_180145744 ; +0xa5, 0x180067d75 movaps [rsp+0C8h+var_78], xmm9 ; +0xae, 0x180067d7e movss xmm9, [rsp+0C8h+arg_48] ; +0xb4, 0x180067d84 movaps [rsp+0C8h+var_88], xmm10 ; +0xbe, 0x180067d8e movss xmm10, [rsp+0C8h+arg_40] ; +0xc4, 0x180067d94 movaps [rsp+0C8h+var_98], xmm11 ; +0xce, 0x180067d9e movss xmm11, [rsp+0C8h+arg_38] ; +0xd4, 0x180067da4 movaps [rsp+0C8h+var_A8], xmm12 ; +0xde, 0x180067dae movss xmm12, cs:dword_180167D7C ; +0xe4, 0x180067db4 movaps [rsp+0C8h+var_B8], xmm13 ; +0xed, 0x180067dbd movss xmm13, cs:dword_180167D84 ; +0xf3, 0x180067dc3 nop dword ptr [rax+00h] ; +0xfc, 0x180067dcc test r12d, r12d ; +0x100, 0x180067dd0 jz loc_1800681C7 ; +0x103, 0x180067dd3 lea eax, [rdi+rcx] ; +0x109, 0x180067dd9 mov edx, r9d ; +0x10c, 0x180067ddc cmp eax, r9d ; +0x10f, 0x180067ddf mov r8d, r9d ; +0x112, 0x180067de2 mov ebx, r12d ; +0x115, 0x180067de5 cmovb edx, eax ; +0x118, 0x180067de8 lea eax, [rsi+rcx] ; +0x11b, 0x180067deb sub edx, edi ; +0x11e, 0x180067dee cmp eax, r9d ; +0x120, 0x180067df0 cmovb r8d, eax ; +0x123, 0x180067df3 lea eax, [r14+rcx] ; +0x127, 0x180067df7 sub r8d, esi ; +0x12b, 0x180067dfb mov ecx, r9d ; +0x12e, 0x180067dfe cmp eax, r9d ; +0x131, 0x180067e01 cmovb ecx, eax ; +0x134, 0x180067e04 mov eax, esi ; +0x137, 0x180067e07 sub ecx, r14d ; +0x139, 0x180067e09 cmp edx, r8d ; +0x13c, 0x180067e0c cmovb r8d, edx ; +0x13f, 0x180067e0f cmp ecx, r12d ; +0x143, 0x180067e13 cmovb ebx, ecx ; +0x146, 0x180067e16 cmp r8d, ebx ; +0x149, 0x180067e19 cmovb ebx, r8d ; +0x14c, 0x180067e1c mov r8, [rsp+0C8h+arg_18] ; +0x150, 0x180067e20 imul eax, r15d ; +0x158, 0x180067e28 mov [rsp+0C8h+var_C4], ebx ; +0x15c, 0x180067e2c lea rdx, [r8+rax*2] ; +0x160, 0x180067e30 mov eax, r14d ; +0x164, 0x180067e34 imul eax, r15d ; +0x167, 0x180067e37 lea rcx, [r8+rax*2] ; +0x16b, 0x180067e3b mov eax, edi ; +0x16f, 0x180067e3f imul eax, r15d ; +0x171, 0x180067e41 lea r8, [r8+rax*2] ; +0x175, 0x180067e45 test ebx, ebx ; +0x179, 0x180067e49 jz loc_1800681B9 ; +0x17b, 0x180067e4b mov r13d, ebx ; +0x181, 0x180067e51 nop dword ptr [rax+00h] ; +0x184, 0x180067e54 nop dword ptr [rax+rax+00000000h] ; +0x188, 0x180067e58 xorps xmm5, xmm5 ; +0x190, 0x180067e60 mov eax, r12d ; +0x193, 0x180067e63 xor ebp, ebp ; +0x196, 0x180067e66 cvtsi2ss xmm5, rax ; +0x198, 0x180067e68 mulss xmm5, xmm13 ; +0x19d, 0x180067e6d cmp r15d, 4 ; +0x1a2, 0x180067e72 jl loc_180068095 ; +0x1a6, 0x180067e76 lea eax, [r15-4] ; +0x1ac, 0x180067e7c movaps xmm4, xmm8 ; +0x1b0, 0x180067e80 shr eax, 2 ; +0x1b4, 0x180067e84 subss xmm4, xmm5 ; +0x1b7, 0x180067e87 inc eax ; +0x1bb, 0x180067e8b mov r9d, 7FFFh ; +0x1bd, 0x180067e8d mov ebx, eax ; +0x1c3, 0x180067e93 lea ebp, ds:0[rax*4] ; +0x1c5, 0x180067e95 nop dword ptr [rax+00h] ; +0x1cc, 0x180067e9c movsx eax, word ptr [rdx] ; +0x1d0, 0x180067ea0 xorps xmm3, xmm3 ; +0x1d3, 0x180067ea3 movss xmm2, dword ptr [r10] ; +0x1d6, 0x180067ea6 xorps xmm0, xmm0 ; +0x1db, 0x180067eab cvtsi2ss xmm3, eax ; +0x1de, 0x180067eae movsx eax, word ptr [r8] ; +0x1e2, 0x180067eb2 cvtsi2ss xmm0, eax ; +0x1e6, 0x180067eb6 mulss xmm3, xmm4 ; +0x1ea, 0x180067eba mulss xmm0, xmm5 ; +0x1ee, 0x180067ebe addss xmm3, xmm0 ; +0x1f2, 0x180067ec2 movaps xmm0, xmm2 ; +0x1f6, 0x180067ec6 mulss xmm0, xmm10 ; +0x1f9, 0x180067ec9 mulss xmm3, xmm12 ; +0x1fe, 0x180067ece movaps xmm1, xmm3 ; +0x203, 0x180067ed3 mulss xmm3, xmm9 ; +0x206, 0x180067ed6 mulss xmm1, xmm11 ; +0x20b, 0x180067edb addss xmm3, xmm2 ; +0x210, 0x180067ee0 addss xmm1, xmm0 ; +0x214, 0x180067ee4 comiss xmm3, xmm8 ; +0x218, 0x180067ee8 movss dword ptr [r11], xmm1 ; +0x21c, 0x180067eec jbe short loc_180067EF9 ; +0x221, 0x180067ef1 movzx eax, r9w ; +0x223, 0x180067ef3 jmp short loc_180067F0D ; +0x227, 0x180067ef7 comiss xmm3, xmm6 ; +0x229, 0x180067ef9 jnb short loc_180067F05 ; +0x22c, 0x180067efc mov eax, 0FFFF8000h ; +0x22e, 0x180067efe jmp short loc_180067F0D ; +0x233, 0x180067f03 mulss xmm3, xmm7 ; +0x235, 0x180067f05 cvttss2si eax, xmm3 ; +0x239, 0x180067f09 xorps xmm3, xmm3 ; +0x23d, 0x180067f0d mov [rcx], ax ; +0x240, 0x180067f10 movsx eax, word ptr [rdx+2] ; +0x243, 0x180067f13 xorps xmm0, xmm0 ; +0x247, 0x180067f17 movss xmm2, dword ptr [r10+4] ; +0x24a, 0x180067f1a cvtsi2ss xmm3, eax ; +0x250, 0x180067f20 movsx eax, word ptr [r8+2] ; +0x254, 0x180067f24 cvtsi2ss xmm0, eax ; +0x259, 0x180067f29 mulss xmm3, xmm4 ; +0x25d, 0x180067f2d mulss xmm0, xmm5 ; +0x261, 0x180067f31 addss xmm3, xmm0 ; +0x265, 0x180067f35 movaps xmm0, xmm2 ; +0x269, 0x180067f39 mulss xmm0, xmm10 ; +0x26c, 0x180067f3c mulss xmm3, xmm12 ; +0x271, 0x180067f41 movaps xmm1, xmm3 ; +0x276, 0x180067f46 mulss xmm3, xmm9 ; +0x279, 0x180067f49 mulss xmm1, xmm11 ; +0x27e, 0x180067f4e addss xmm3, xmm2 ; +0x283, 0x180067f53 addss xmm1, xmm0 ; +0x287, 0x180067f57 comiss xmm3, xmm8 ; +0x28b, 0x180067f5b movss dword ptr [r11+4], xmm1 ; +0x28f, 0x180067f5f jbe short loc_180067F6D ; +0x295, 0x180067f65 movzx eax, r9w ; +0x297, 0x180067f67 jmp short loc_180067F81 ; +0x29b, 0x180067f6b comiss xmm3, xmm6 ; +0x29d, 0x180067f6d jnb short loc_180067F79 ; +0x2a0, 0x180067f70 mov eax, 0FFFF8000h ; +0x2a2, 0x180067f72 jmp short loc_180067F81 ; +0x2a7, 0x180067f77 mulss xmm3, xmm7 ; +0x2a9, 0x180067f79 cvttss2si eax, xmm3 ; +0x2ad, 0x180067f7d xorps xmm3, xmm3 ; +0x2b1, 0x180067f81 mov [rcx+2], ax ; +0x2b4, 0x180067f84 movsx eax, word ptr [rdx+4] ; +0x2b8, 0x180067f88 xorps xmm0, xmm0 ; +0x2bc, 0x180067f8c movss xmm2, dword ptr [r10+8] ; +0x2bf, 0x180067f8f cvtsi2ss xmm3, eax ; +0x2c5, 0x180067f95 movsx eax, word ptr [r8+4] ; +0x2c9, 0x180067f99 cvtsi2ss xmm0, eax ; +0x2ce, 0x180067f9e mulss xmm3, xmm4 ; +0x2d2, 0x180067fa2 mulss xmm0, xmm5 ; +0x2d6, 0x180067fa6 addss xmm3, xmm0 ; +0x2da, 0x180067faa movaps xmm0, xmm2 ; +0x2de, 0x180067fae mulss xmm0, xmm10 ; +0x2e1, 0x180067fb1 mulss xmm3, xmm12 ; +0x2e6, 0x180067fb6 movaps xmm1, xmm3 ; +0x2eb, 0x180067fbb mulss xmm3, xmm9 ; +0x2ee, 0x180067fbe mulss xmm1, xmm11 ; +0x2f3, 0x180067fc3 addss xmm3, xmm2 ; +0x2f8, 0x180067fc8 addss xmm1, xmm0 ; +0x2fc, 0x180067fcc comiss xmm3, xmm8 ; +0x300, 0x180067fd0 movss dword ptr [r11+8], xmm1 ; +0x304, 0x180067fd4 jbe short loc_180067FE2 ; +0x30a, 0x180067fda movzx eax, r9w ; +0x30c, 0x180067fdc jmp short loc_180067FF6 ; +0x310, 0x180067fe0 comiss xmm3, xmm6 ; +0x312, 0x180067fe2 jnb short loc_180067FEE ; +0x315, 0x180067fe5 mov eax, 0FFFF8000h ; +0x317, 0x180067fe7 jmp short loc_180067FF6 ; +0x31c, 0x180067fec mulss xmm3, xmm7 ; +0x31e, 0x180067fee cvttss2si eax, xmm3 ; +0x322, 0x180067ff2 xorps xmm3, xmm3 ; +0x326, 0x180067ff6 mov [rcx+4], ax ; +0x329, 0x180067ff9 movsx eax, word ptr [rdx+6] ; +0x32d, 0x180067ffd xorps xmm0, xmm0 ; +0x331, 0x180068001 movss xmm2, dword ptr [r10+0Ch] ; +0x334, 0x180068004 cvtsi2ss xmm3, eax ; +0x33a, 0x18006800a movsx eax, word ptr [r8+6] ; +0x33e, 0x18006800e cvtsi2ss xmm0, eax ; +0x343, 0x180068013 mulss xmm3, xmm4 ; +0x347, 0x180068017 mulss xmm0, xmm5 ; +0x34b, 0x18006801b addss xmm3, xmm0 ; +0x34f, 0x18006801f movaps xmm0, xmm2 ; +0x353, 0x180068023 mulss xmm0, xmm10 ; +0x356, 0x180068026 mulss xmm3, xmm12 ; +0x35b, 0x18006802b movaps xmm1, xmm3 ; +0x360, 0x180068030 mulss xmm3, xmm9 ; +0x363, 0x180068033 mulss xmm1, xmm11 ; +0x368, 0x180068038 addss xmm3, xmm2 ; +0x36d, 0x18006803d addss xmm1, xmm0 ; +0x371, 0x180068041 comiss xmm3, xmm8 ; +0x375, 0x180068045 movss dword ptr [r11+0Ch], xmm1 ; +0x379, 0x180068049 jbe short loc_180068057 ; +0x37f, 0x18006804f movzx eax, r9w ; +0x381, 0x180068051 jmp short loc_18006806B ; +0x385, 0x180068055 comiss xmm3, xmm6 ; +0x387, 0x180068057 jnb short loc_180068063 ; +0x38a, 0x18006805a mov eax, 0FFFF8000h ; +0x38c, 0x18006805c jmp short loc_18006806B ; +0x391, 0x180068061 mulss xmm3, xmm7 ; +0x393, 0x180068063 cvttss2si eax, xmm3 ; +0x397, 0x180068067 mov [rcx+6], ax ; +0x39b, 0x18006806b add r8, 8 ; +0x39f, 0x18006806f add rcx, 8 ; +0x3a3, 0x180068073 add rdx, 8 ; +0x3a7, 0x180068077 add r11, 10h ; +0x3ab, 0x18006807b add r10, 10h ; +0x3af, 0x18006807f sub rbx, 1 ; +0x3b3, 0x180068083 jnz loc_180067EA0 ; +0x3b7, 0x180068087 mov r9d, [rsp+0C8h+arg_30] ; +0x3bd, 0x18006808d cmp ebp, r15d ; +0x3c5, 0x180068095 jge loc_180068147 ; +0x3c8, 0x180068098 movaps xmm4, xmm8 ; +0x3ce, 0x18006809e mov ebx, r15d ; +0x3d2, 0x1800680a2 subss xmm4, xmm5 ; +0x3d5, 0x1800680a5 sub ebx, ebp ; +0x3d9, 0x1800680a9 mov r9d, 7FFFh ; +0x3db, 0x1800680ab movsx eax, word ptr [rdx] ; +0x3e1, 0x1800680b1 xorps xmm3, xmm3 ; +0x3e4, 0x1800680b4 movss xmm2, dword ptr [r10] ; +0x3e7, 0x1800680b7 xorps xmm0, xmm0 ; +0x3ec, 0x1800680bc cvtsi2ss xmm3, eax ; +0x3ef, 0x1800680bf movsx eax, word ptr [r8] ; +0x3f3, 0x1800680c3 cvtsi2ss xmm0, eax ; +0x3f7, 0x1800680c7 mulss xmm3, xmm4 ; +0x3fb, 0x1800680cb mulss xmm0, xmm5 ; +0x3ff, 0x1800680cf addss xmm3, xmm0 ; +0x403, 0x1800680d3 movaps xmm0, xmm2 ; +0x407, 0x1800680d7 mulss xmm0, xmm10 ; +0x40a, 0x1800680da mulss xmm3, xmm12 ; +0x40f, 0x1800680df movaps xmm1, xmm3 ; +0x414, 0x1800680e4 mulss xmm3, xmm9 ; +0x417, 0x1800680e7 mulss xmm1, xmm11 ; +0x41c, 0x1800680ec addss xmm3, xmm2 ; +0x421, 0x1800680f1 addss xmm1, xmm0 ; +0x425, 0x1800680f5 comiss xmm3, xmm8 ; +0x429, 0x1800680f9 movss dword ptr [r11], xmm1 ; +0x42d, 0x1800680fd jbe short loc_18006810A ; +0x432, 0x180068102 movzx eax, r9w ; +0x434, 0x180068104 jmp short loc_18006811E ; +0x438, 0x180068108 comiss xmm3, xmm6 ; +0x43a, 0x18006810a jnb short loc_180068116 ; +0x43d, 0x18006810d mov eax, 0FFFF8000h ; +0x43f, 0x18006810f jmp short loc_18006811E ; +0x444, 0x180068114 mulss xmm3, xmm7 ; +0x446, 0x180068116 cvttss2si eax, xmm3 ; +0x44a, 0x18006811a mov [rcx], ax ; +0x44e, 0x18006811e add r8, 2 ; +0x451, 0x180068121 add rcx, 2 ; +0x455, 0x180068125 add rdx, 2 ; +0x459, 0x180068129 add r11, 4 ; +0x45d, 0x18006812d add r10, 4 ; +0x461, 0x180068131 sub rbx, 1 ; +0x465, 0x180068135 jnz loc_1800680B1 ; +0x469, 0x180068139 mov r9d, [rsp+0C8h+arg_30] ; +0x46f, 0x18006813f add edi, 1 ; +0x477, 0x180068147 jns short loc_180068155 ; +0x47a, 0x18006814a nop dword ptr [rax+00h] ; +0x47c, 0x18006814c add edi, r9d ; +0x480, 0x180068150 js short loc_180068150 ; +0x483, 0x180068153 cmp edi, r9d ; +0x485, 0x180068155 jl short loc_180068168 ; +0x488, 0x180068158 nop word ptr [rax+rax+00h] ; +0x48a, 0x18006815a sub edi, r9d ; +0x490, 0x180068160 cmp edi, r9d ; +0x493, 0x180068163 jge short loc_180068160 ; +0x496, 0x180068166 add esi, 1 ; +0x498, 0x180068168 jns short loc_180068175 ; +0x49b, 0x18006816b nop dword ptr [rax] ; +0x49d, 0x18006816d add esi, r9d ; +0x4a0, 0x180068170 js short loc_180068170 ; +0x4a3, 0x180068173 cmp esi, r9d ; +0x4a5, 0x180068175 jl short loc_180068188 ; +0x4a8, 0x180068178 nop word ptr [rax+rax+00h] ; +0x4aa, 0x18006817a sub esi, r9d ; +0x4b0, 0x180068180 cmp esi, r9d ; +0x4b3, 0x180068183 jge short loc_180068180 ; +0x4b6, 0x180068186 add r14d, 1 ; +0x4b8, 0x180068188 jns short loc_180068195 ; +0x4bc, 0x18006818c xchg ax, ax ; +0x4be, 0x18006818e add r14d, r9d ; +0x4c0, 0x180068190 js short loc_180068190 ; +0x4c3, 0x180068193 cmp r14d, r9d ; +0x4c5, 0x180068195 jl short loc_1800681A8 ; +0x4c8, 0x180068198 nop word ptr [rax+rax+00h] ; +0x4ca, 0x18006819a sub r14d, r9d ; +0x4d0, 0x1800681a0 cmp r14d, r9d ; +0x4d3, 0x1800681a3 jge short loc_1800681A0 ; +0x4d6, 0x1800681a6 dec r12d ; +0x4d8, 0x1800681a8 sub r13, 1 ; +0x4db, 0x1800681ab jnz loc_180067E60 ; +0x4df, 0x1800681af mov ebx, [rsp+0C8h+var_C4] ; +0x4e5, 0x1800681b5 mov ecx, [rsp+0C8h+var_C8] ; +0x4e9, 0x1800681b9 sub ecx, ebx ; +0x4ec, 0x1800681bc mov [rsp+0C8h+var_C8], ecx ; +0x4ee, 0x1800681be jnz loc_180067DD0 ; +0x4f1, 0x1800681c1 mov rax, [rsp+0C8h+arg_10] ; +0x4f7, 0x1800681c7 mov rdx, [rsp+0C8h+arg_8] ; +0x4ff, 0x1800681cf mov r8, [rsp+0C8h+arg_50] ; +0x507, 0x1800681d7 mov rbx, [rsp+0C8h+arg_60] ; +0x50f, 0x1800681df mov rbp, [rsp+0C8h+arg_20] ; +0x517, 0x1800681e7 mov r13, [rsp+0C8h+arg_28] ; +0x51f, 0x1800681ef mov r9, [rsp+0C8h+arg_68] ; +0x527, 0x1800681f7 movaps xmm13, [rsp+0C8h+var_B8] ; +0x52f, 0x1800681ff movaps xmm12, [rsp+0C8h+var_A8] ; +0x535, 0x180068205 movaps xmm11, [rsp+0C8h+var_98] ; +0x53b, 0x18006820b movaps xmm10, [rsp+0C8h+var_88] ; +0x541, 0x180068211 movaps xmm9, [rsp+0C8h+var_78] ; +0x547, 0x180068217 movaps xmm8, [rsp+0C8h+var_68] ; +0x54d, 0x18006821d movaps xmm7, [rsp+0C8h+var_58] ; +0x553, 0x180068223 movaps xmm6, [rsp+0C8h+var_48] ; +0x558, 0x180068228 mov [rbp+0], esi ; +0x560, 0x180068230 mov [r13+0], r14d ; +0x563, 0x180068233 mov [r9], edi ; +0x567, 0x180068237 mov [rbx], r12d ; +0x56a, 0x18006823a mov rbx, [rsp+0C8h+arg_0] ; +0x56d, 0x18006823d mov [rax], r10 ; +0x575, 0x180068245 xor eax, eax ; +0x578, 0x180068248 mov [rdx], r11 ; +0x57a, 0x18006824a mov [r8], ecx ; +0x57d, 0x18006824d add rsp, 90h ; +0x580, 0x180068250 pop r15 ; +0x587, 0x180068257 pop r14 ; +0x589, 0x180068259 pop r13 ; +0x58b, 0x18006825b pop r12 ; +0x58d, 0x18006825d pop rdi ; +0x58f, 0x18006825f pop rsi ; +0x590, 0x180068260 pop rbp ; +0x591, 0x180068261 retn ; +0x592, 0x180068262