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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x4b7080]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], edx
mov edx, ecx
push esi
mov dword [esp + 0x20], eax
push edi
mov eax, dword [edx + 0xc]
mov edi, dword [0x4be710]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
test al, 0x20
jne 0x40f3e5
cmp dword [edi + 0x37cc], 0xffffffff
je 0x40f3e5
mov cl, 1
jmp 0x40f3e7
xor cl, cl
mov eax, dword [edi + 0x46a0]
mov dword [esp + 0x2c], eax
or eax, 0x10
mov dword [edi + 0x46a0], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 0x148], 1
movss xmm1, dword [edi + 0x37e0]
movss dword [esp + 0x20], xmm1
movaps xmm0, xmm1
movss xmm2, dword [eax + 8]
movaps xmm4, xmm0
movss xmm5, dword [eax + 4]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [edi + 0x3bd4]
movss dword [esp + 0xc], xmm0
movaps xmm3, xmm0
mov dword [esp + 0x38], 0
addss xmm3, xmm1
mov dword [esp + 0x3c], 0
test cl, cl
je 0x40f519
mov eax, dword [edi + 0x37cc]
cmp eax, 1
jne 0x40f47d
movaps xmm0, xmm3
subss xmm2, xmm0
movss dword [esp + 0x18], xmm0
subss xmm2, xmm1
movss dword [esp + 0x38], xmm2
jmp 0x40f4ab
movaps xmm0, xmm4
movss dword [esp + 0x18], xmm0
test eax, eax
jne 0x40f4b1
mov eax, dword [esp + 0x10]
movss dword [esp + 0x18], xmm4
addss xmm0, dword [eax]
subss xmm0, xmm1
movaps xmm1, xmm3
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm5
mov ecx, dword [edx + 0xe4]
mov eax, dword [edx + 0xec]
xor edx, edx
push dword [eax + ecx*4 - 4]
mov ecx, str.COLLAPSE
call fcn.00406e60
mov esi, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, dword [esi]
cmp dword [ecx + 0x3e7c], eax
jne 0x40f4fb
push ecx
push str.COLLAPSE
mov edx, 0xb
mov ecx, eax
call fcn.0041c8b0
mov eax, dword [esp + 0x30]
add esp, 8
lea edx, [esp + 0x38]
mov ecx, eax
call fcn.00431d70
movss xmm0, dword [esp + 0xc]
mov edx, esi
test al, al
je 0x40f519
mov byte [edx + 0xae], 1
test dword [esp + 0x14], 0x100000
xorps xmm7, xmm7
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x148], 0
mov dword [edi + 0x46a0], eax
je 0x40f54a
mulss xmm0, dword [0x4a8e74]
movss dword [esp + 0xc], xmm0
jmp 0x40f550
movss dword [esp + 0xc], xmm7
mov eax, dword [esp + 0x24]
mov ecx, eax
mov esi, dword [0x4be710]
cmp eax, 0xffffffff
jae 0x40f577
mov dl, byte [ecx]
test dl, dl
je 0x40f577
cmp dl, 0x23
jne 0x40f571
cmp byte [ecx + 1], dl
je 0x40f577
inc ecx
cmp ecx, 0xffffffff
jb 0x40f561
movss xmm0, dword [esi + 0x3bd4]
cmp eax, ecx
jne 0x40f588
movaps xmm4, xmm7
jmp 0x40f5d6
movss xmm3, dword [0x4a914c]
movaps xmm2, xmm0
push ecx
push ecx
push eax
push ecx
mov ecx, dword [esi + 0x3bd0]
lea eax, [esp + 0x48]
mov dword [esp], 0xbf800000
push eax
call fcn.0042cd00
movss xmm0, dword [esp + 0x38]
xorps xmm7, xmm7
addss xmm0, dword [0x4a8e80]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x3c]
movd xmm4, eax
cvtdq2ps xmm4, xmm4
movss dword [esp + 0x30], xmm4
addss xmm4, dword [esp + 0xc]
movss xmm2, dword [esp + 0x20]
addss xmm0, xmm7
movss dword [esp + 0x30], xmm4
movss dword [esp + 0x34], xmm0
movss xmm0, dword [edi + 0x37e0]
comiss xmm2, xmm0
jbe 0x40f607
addss xmm2, dword [edi + 0x37f8]
movss xmm3, dword [esp + 0x18]
comiss xmm3, xmm0
jbe 0x40f61a
addss xmm3, dword [edi + 0x37f8]
movss xmm6, dword [edi + 0x37c4]
comiss xmm6, xmm7
movss xmm5, dword [0x4a8e88]
jbe 0x40f6a2
comiss xmm5, xmm6
jbe 0x40f6a2
movaps xmm0, xmm6
movaps xmm1, xmm5
subss xmm0, dword [0x4a8e54]
andps xmm0, xmmword [0x4a94a0]
addss xmm0, xmm0
subss xmm1, xmm0
comiss xmm7, xmm1
jbe 0x40f65b
movaps xmm5, xmm7
jmp 0x40f65f
minss xmm5, xmm1
mov eax, dword [esp + 0x10]
movaps xmm1, xmm2
maxss xmm1, xmm3
movss xmm0, dword [eax + 8]
subss xmm0, dword [eax]
subss xmm0, xmm2
subss xmm0, xmm3
subss xmm0, xmm4
minss xmm1, xmm0
mulss xmm1, xmm5
movss xmm5, dword [0x4a8e88]
movaps xmm0, xmm1
maxss xmm1, xmm3
maxss xmm0, xmm2
movaps xmm3, xmm1
movaps xmm2, xmm0
jmp 0x40f6a6
mov eax, dword [esp + 0x10]
test dword [esp + 0x14], 0x100000
movss xmm7, dword [eax + 8]
movss xmm0, dword [eax + 4]
subss xmm7, xmm3
addss xmm2, dword [eax]
movss xmm1, dword [eax + 0xc]
movaps xmm3, xmm0
movss dword [esp + 0x48], xmm3
movss dword [esp + 0x58], xmm0
movaps xmm3, xmm7
movss dword [esp + 0x5c], xmm7
addss xmm3, dword [edi + 0x37f8]
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x44], xmm2
movss dword [esp + 0x50], xmm1
minss xmm3, dword [eax + 8]
movss dword [esp + 0x20], xmm3
movss dword [esp + 0x4c], xmm3
je 0x40f80f
movaps xmm0, xmm7
subss xmm0, xmm2
subss xmm0, xmm4
mulss xmm0, xmm6
addss xmm0, xmm2
addss xmm0, xmm4
comiss xmm2, xmm0
jbe 0x40f73b
movaps xmm7, xmm2
movss dword [esp + 0x14], xmm2
jmp 0x40f745
minss xmm7, xmm0
movss dword [esp + 0x14], xmm7
comiss xmm7, xmm2
addss xmm1, dword [eax + 4]
mulss xmm1, dword [0x4a8e54]
movss dword [esp + 0x2c], xmm1
jbe 0x40f80f
movaps xmm1, xmm5
xor ecx, ecx
call fcn.004076e0
mov esi, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
movss dword [esp + 0x38], xmm7
mov esi, dword [esi + 0x264]
movss dword [esp + 0x3c], xmm0
mov ecx, dword [esi + 0x2c]
movss xmm2, dword [ecx + 0xc]
mulss xmm2, dword [0x4a8e3c]
test eax, 0xff000000
je 0x40f7e6
movss xmm0, dword [0x4a8e54]
comiss xmm0, xmm2
ja 0x40f7e6
push 7
push ecx
lea eax, [esp + 0x40]
mov dword [esp], 0x40afede0
push eax
xorps xmm3, xmm3
mov ecx, esi
call fcn.00427c30
push dword [esp + 0x28]
mov ecx, esi
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.004273a0
movss xmm7, dword [esp + 0x14]
mov dword [esi + 0x54], 0
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x4a8e54]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
minss xmm7, dword [esp + 0x20]
movss dword [esp + 0x4c], xmm7
lea eax, [esp + 0x44]
push eax
lea eax, [edi + 0x37c4]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x68]
push 0
push eax
lea ecx, [esp + 0x68]
call fcn.00407b90
mov ecx, dword [esp + 0x78]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.00492363
mov esp, ebp
pop ebp
ret