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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x4c], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
push edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x28], ecx
je 0x40410a
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 0
jmp 0x404122
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 2
movd xmm0, dword [ecx + 0x44]
movss xmm1, dword [0x46cf88]
cvtdq2ps xmm0, xmm0
mov edi, dword [edx + 0x54]
mov eax, dword [0x474940]
add edi, eax
mov dword [esp + 0x1c], edi
mov edi, dword [edx + 0x58]
movaps xmm2, xmm1
mov edx, dword [edx + 0x64]
divss xmm2, xmm0
add edi, eax
add edx, eax
push ecx
push 0x46c4d8
push esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edx
movd xmm0, dword [ecx + 0x48]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x38], xmm2
divss xmm1, xmm0
movss dword [esp + 0x3c], xmm1
call fcn.00401040
add esp, 0xc
xor edi, edi
mov eax, dword [esp + edi*4 + 0x48]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov esi, dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
movsx eax, word [esi]
movzx ecx, byte [eax + ecx]
lea eax, [eax + eax*2]
movss xmm4, dword [edx + eax*4 + 4]
movss xmm2, dword [edx + eax*4]
movaps xmm0, xmm4
movss xmm1, dword [edx + eax*4 + 8]
mov dword [esp + 0x40], ecx
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ecx, dword [0x473f04]
movsx eax, word [esi + 2]
mov edx, dword [esp + 0x24]
mulss xmm0, dword [ecx + 4]
lea eax, [eax + eax*2]
movss xmm3, dword [ecx]
mulss xmm3, xmm2
movss xmm7, dword [ecx + 0x20]
mulss xmm7, xmm2
addss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [ecx + 8]
addss xmm3, xmm0
movss xmm0, dword [ecx + 0x14]
mulss xmm0, xmm4
addss xmm3, dword [ecx + 0xc]
movss dword [esp + 0x3c], xmm3
movss xmm3, dword [ecx + 0x10]
mulss xmm3, xmm2
movss xmm2, dword [edx + eax*4 + 4]
addss xmm3, xmm0
movss xmm0, dword [ecx + 0x18]
mulss xmm0, xmm1
addss xmm3, xmm0
movss xmm0, dword [ecx + 0x24]
mulss xmm0, xmm4
movss xmm4, dword [edx + eax*4]
addss xmm7, xmm0
movss xmm0, dword [ecx + 0x28]
mulss xmm0, xmm1
movss xmm1, dword [edx + eax*4 + 8]
addss xmm3, dword [ecx + 0x1c]
addss xmm7, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [ecx]
movss dword [esp + 0x38], xmm3
addss xmm7, dword [ecx + 0x2c]
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [ecx + 4]
movss dword [esp + 0x34], xmm7
movss xmm7, dword [esp + 0x10]
addss xmm7, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [ecx + 8]
addss xmm7, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [ecx + 0x10]
mulss xmm4, dword [ecx + 0x20]
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [ecx + 0x14]
mulss xmm2, dword [ecx + 0x24]
movss dword [esp + 0x10], xmm7
movss xmm7, dword [esp + 0xc]
addss xmm7, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [ecx + 0x18]
addss xmm4, xmm2
mulss xmm1, dword [ecx + 0x28]
addss xmm7, xmm0
addss xmm4, xmm1
movaps xmm1, xmm7
movss dword [esp + 0xc], xmm7
mulss xmm1, xmm7
movss dword [esp + 0x14], xmm4
movss xmm0, dword [esp + 0x10]
mulss xmm0, xmm0
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm4
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x404315
sqrtsd xmm0, xmm0
jmp 0x40431a
call fcn.004624f0
movss xmm3, dword [0x46cf88]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x40433f
movaps xmm0, xmm3
divss xmm0, xmm1
movaps xmm1, xmm0
mov eax, dword [esp + 0x28]
movss xmm5, dword [esp + 0x10]
movss xmm6, dword [esp + 0xc]
movss xmm4, dword [esp + 0x14]
cmp dword [eax + 0x40], 0
mulss xmm5, xmm1
mulss xmm6, xmm1
mulss xmm4, xmm1
jge 0x40442d
movzx eax, word [esi + 4]
mov edx, eax
and eax, 0x7fff
and edx, 0xffff8000
shl edx, 0x10
cmp eax, 0x3ff
jbe 0x404392
add eax, 0x1c000
shl eax, 0xd
or edx, eax
jmp 0x4043be
mov ecx, eax
and ecx, 0x3ff
je 0x4043be
shr eax, 0xa
nop
add ecx, ecx
dec eax
test ecx, 0x400
je 0x4043a0
and ecx, 0x3ff
add eax, 0x71
shl ecx, 0xd
shl eax, 0x17
or ecx, eax
or edx, ecx
movzx eax, word [esi + 6]
mov dword [esp + 0xc], edx
mov edx, eax
and edx, 0xffff8000
and eax, 0x7fff
shl edx, 0x10
cmp eax, 0x3ff
jbe 0x4043e9
add eax, 0x1c000
shl eax, 0xd
or edx, eax
jmp 0x404414
mov ecx, eax
and ecx, 0x3ff
je 0x404414
shr eax, 0xa
add ecx, ecx
dec eax
test ecx, 0x400
je 0x4043f6
and ecx, 0x3ff
add eax, 0x71
shl ecx, 0xd
shl eax, 0x17
or ecx, eax
or edx, ecx
movss xmm2, dword [esp + 0xc]
mov dword [esp + 0x14], edx
movss xmm1, dword [esp + 0x14]
xorps xmm1, xmmword [0x46d080]
jmp 0x40445a
movsx eax, word [esi + 4]
movaps xmm1, xmm3
movd xmm2, eax
movsx eax, word [esi + 6]
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm2, xmm3
mulss xmm0, dword [esp + 0x30]
mulss xmm2, dword [esp + 0x2c]
subss xmm1, xmm0
xorps xmm0, xmm0
sub esp, 0x40
cvtss2sd xmm0, xmm1
movsd qword [esp + 0x38], xmm0
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x30], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm4
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
movsd qword [esp + 0x20], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm5
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x74]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x78]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esp + 0x7c]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [esp + 0x80]
push str._3i__f__f__f__f__f__f__f__f_n
push dword [esp + 0x8c]
call fcn.00401040
inc edi
add esp, 0x4c
cmp edi, 3
jl 0x404182
mov ecx, dword [esp + 0x54]
pop edi
pop esi
xor ecx, esp
call fcn.0040b758
mov esp, ebp
pop ebp
ret