Function at 0x10065940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x44
push ebx
push esi
mov esi, edx
movaps xmm0, xmm1
movss dword [esp + 0x10], xmm0
push edi
mov edi, ecx
cmp esi, 0xffffffff
je 0x10065c89
mov eax, dword [edi + 0x28]
mov ecx, 4
mov eax, dword [eax + 8]
mov ebx, dword [eax + 0x30]
lea eax, [esp + 0x30]
nop
mov dword [eax + 4], 0
lea eax, [eax + 8]
mov dword [eax - 8], 0
sub ecx, 1
jne 0x10065970
cmp esi, 8
ja 0x10065c89
test byte [ebx + 4], 2
jne 0x10065c89
mov eax, dword [ebx + 0x458]
lea esi, [esi + esi*2]
mov ecx, dword [ebx + 0x48]
movss xmm2, dword [esi*8 + 0x101eb07c]
movss xmm5, dword [esi*8 + 0x101eb078]
lea edx, [eax*8]
movss dword [esp + 0x10], xmm2
sub edx, eax
movss dword [esp + 0xc], xmm5
movzx eax, word [ecx + edx*4 + 4]
movd xmm4, eax
movzx eax, word [ecx + edx*4 + 6]
mov ecx, edi
cvtdq2ps xmm4, xmm4
movd xmm3, eax
addss xmm4, dword [esi*8 + 0x101eb070]
cvtdq2ps xmm3, xmm3
movaps xmm1, xmm4
mulss xmm1, dword [ebx + 0x24]
addss xmm3, dword [esi*8 + 0x101eb074]
movaps xmm0, xmm3
addss xmm2, xmm3
mulss xmm0, dword [ebx + 0x28]
movss dword [esp + 0x30], xmm1
movaps xmm1, xmm5
addss xmm1, xmm4
addss xmm4, dword [0x101c74d0]
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [ebx + 0x28]
mulss xmm1, dword [ebx + 0x24]
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm4
addss xmm4, xmm5
movss dword [esp + 0x38], xmm1
mulss xmm0, dword [ebx + 0x24]
mulss xmm3, dword [ebx + 0x28]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x60]
subss xmm0, dword [esi*8 + 0x101eb080]
movss dword [esp + 0x44], xmm3
mulss xmm4, dword [ebx + 0x24]
mulss xmm2, dword [ebx + 0x28]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x64]
subss xmm0, dword [esi*8 + 0x101eb084]
movss dword [esp + 0x48], xmm4
movss dword [esp + 0x4c], xmm2
movss dword [esp + 0x64], xmm0
mov esi, dword [ebx + 8]
push esi
call fcn.1005c870
movss xmm0, dword [esp + 0xc]
lea eax, [esp + 0x48]
addss xmm0, dword [0x101c736c]
movss xmm4, dword [esp + 0x14]
xorps xmm5, xmm5
movss xmm3, dword [esp + 0x10]
movss xmm1, dword [esp + 0x60]
addss xmm3, xmm5
movss xmm2, dword [esp + 0x64]
mulss xmm0, xmm4
push 0x30000000
push eax
mulss xmm3, xmm4
lea eax, [esp + 0x48]
push eax
addss xmm0, xmm1
addss xmm1, xmm4
movss dword [esp + 0x24], xmm3
lea eax, [esp + 0x2c]
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm2
addss xmm0, xmm3
movss dword [esp + 0x34], xmm1
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm4
mulss xmm0, xmm5
addss xmm2, xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x38], xmm2
push eax
lea eax, [esp + 0x38]
mov ecx, edi
push eax
push esi
call fcn.1005f7c0
movss xmm0, dword [esp + 0xc]
lea eax, [esp + 0x48]
addss xmm0, dword [0x101c73d0]
movss xmm3, dword [esp + 0x14]
mov ecx, edi
movss xmm2, dword [esp + 0x64]
push 0x30000000
push eax
mulss xmm0, xmm3
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
push eax
addss xmm0, dword [esp + 0x70]
lea eax, [esp + 0x30]
push eax
push esi
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm2
addss xmm0, dword [esp + 0x30]
addss xmm2, dword [esp + 0x34]
movss dword [esp + 0x44], xmm0
movaps xmm0, xmm3
addss xmm0, xmm3
movss dword [esp + 0x3c], xmm2
addss xmm0, dword [esp + 0x78]
movss dword [esp + 0x38], xmm0
call fcn.1005f7c0
movss xmm1, dword [esp + 0xc]
lea eax, [esp + 0x48]
mulss xmm1, dword [esp + 0x14]
mov ecx, edi
push 0xff000000
movss xmm0, dword [esp + 0x64]
movss xmm2, dword [esp + 0x14]
mulss xmm2, dword [esp + 0x18]
addss xmm0, xmm1
push eax
lea eax, [esp + 0x48]
movss dword [esp + 0x14], xmm1
push eax
lea eax, [esp + 0x34]
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x70]
push eax
addss xmm0, xmm2
lea eax, [esp + 0x70]
push eax
push esi
movss dword [esp + 0x44], xmm0
call fcn.1005f7c0
movss xmm0, dword [esp + 0x60]
lea eax, [esp + 0x38]
addss xmm0, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x38]
mov ecx, edi
push eax
movss dword [esp + 0x34], xmm0
lea eax, [esp + 0x34]
movss xmm0, dword [esp + 0x70]
addss xmm0, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x70]
push eax
push esi
movss dword [esp + 0x44], xmm0
call fcn.1005f7c0
mov ecx, dword [edi + 0x48]
sub ecx, 1
mov dword [edi + 0x48], ecx
jne 0x10065c78
xor eax, eax
mov ecx, edi
mov dword [edi + 0x70], eax
call fcn.1005c600
pop edi
pop esi
pop ebx
add esp, 0x44
ret
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, edi
mov dword [edi + 0x70], eax
call fcn.1005c600
pop edi
pop esi
pop ebx
add esp, 0x44
ret