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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x48b040]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [0x48d2c8]
push edi
mov edi, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], edx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], eax
test al, 0x20
jne 0x40ce08
cmp dword [esi + 0x38d0], 0xffffffff
je 0x40ce08
mov dl, 1
jmp 0x40ce0a
xor dl, dl
mov eax, dword [esi + 0x48dc]
mov dword [esp + 0x34], eax
or eax, 0x10
cmp dword [esp + 0x28], 0
mov dword [esi + 0x48dc], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 0x150], 1
movss xmm2, dword [esi + 0x38e4]
movss xmm4, dword [esi + 0x3cf4]
movaps xmm3, xmm2
movss xmm5, dword [eax + 8]
movss xmm6, dword [eax + 4]
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x2c], xmm3
movss dword [esp + 0x10], xmm4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
je 0x40ceb8
movaps xmm0, xmm6
movaps xmm1, xmm5
addss xmm0, dword [esi + 0x38e8]
subss xmm1, xmm3
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm4
addss xmm0, dword [esi + 0x38fc]
subss xmm1, xmm4
addss xmm3, xmm0
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x2c], xmm3
test dl, dl
je 0x40cf84
mov eax, dword [esi + 0x38d0]
cmp eax, 1
jne 0x40cef0
movaps xmm0, xmm4
subss xmm5, xmm3
addss xmm0, dword [esi + 0x38fc]
subss xmm5, xmm4
addss xmm3, xmm0
movss dword [esp + 0x1c], xmm5
movss dword [esp + 0x2c], xmm3
jmp 0x40cf1a
test eax, eax
jne 0x40cf28
mov edx, dword [esp + 0xc]
movaps xmm0, xmm2
addss xmm0, dword [edx]
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm4
addss xmm0, dword [esi + 0x38fc]
addss xmm2, xmm0
movss dword [esp + 0x24], xmm2
addss xmm6, dword [esi + 0x38e8]
movss dword [esp + 0x20], xmm6
mov ecx, dword [edi + 0xec]
xor edx, edx
mov eax, dword [edi + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, str.COLLAPSE
call fcn.00403de0
mov ecx, dword [edi]
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [ecx + 0x3fc4], eax
jne 0x40cf6e
push ecx
push str.COLLAPSE
mov edx, 0xb
mov ecx, eax
call fcn.00419c90
mov eax, dword [esp + 0x20]
add esp, 8
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.00430720
test al, al
je 0x40cf84
mov byte [edi + 0xb2], 1
cmp dword [esp + 0x28], 0
je 0x40cfe7
mov ecx, dword [edi + 0xec]
xor edx, edx
mov eax, dword [edi + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, str.CLOSE
call fcn.00403de0
mov ecx, dword [edi]
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [ecx + 0x3fc4], eax
jne 0x40cfd1
push ecx
push str.CLOSE
mov edx, 0xb
mov ecx, eax
call fcn.00419c90
mov eax, dword [esp + 0x20]
add esp, 8
lea edx, [esp + 0x38]
mov ecx, eax
call fcn.004303c0
test al, al
je 0x40cfe7
mov eax, dword [esp + 0x28]
mov byte [eax], 0
test dword [esp + 0x14], 0x40000
xorps xmm7, xmm7
mov eax, dword [esp + 0x34]
mov dword [edi + 0x150], 0
mov dword [esi + 0x48dc], eax
je 0x40d01e
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x483490]
movss dword [esp + 0x10], xmm0
jmp 0x40d024
movss dword [esp + 0x10], xmm7
mov eax, dword [esp + 0x30]
mov ecx, eax
cmp eax, 0xffffffff
jae 0x40d046
nop
mov dl, byte [ecx]
test dl, dl
je 0x40d046
cmp dl, 0x23
jne 0x40d040
cmp byte [ecx + 1], dl
je 0x40d046
inc ecx
cmp ecx, 0xffffffff
jb 0x40d030
mov edx, dword [0x48d2c8]
movss xmm0, dword [edx + 0x3cf4]
cmp eax, ecx
jne 0x40d05d
movaps xmm4, xmm7
jmp 0x40d0ab
movss xmm3, dword [0x483544]
movaps xmm2, xmm0
push ecx
push ecx
push eax
push ecx
mov ecx, dword [edx + 0x3cf0]
lea eax, [esp + 0x48]
mov dword [esp], 0xbf800000
push eax
call fcn.0042a660
movss xmm0, dword [esp + 0x38]
xorps xmm7, xmm7
addss xmm0, dword [0x48349c]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x3c]
movd xmm4, eax
cvtdq2ps xmm4, xmm4
movss dword [esp + 0x1c], xmm4
addss xmm4, dword [esp + 0x10]
movss xmm2, dword [esp + 0x24]
addss xmm0, xmm7
movss dword [esp + 0x1c], xmm4
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esi + 0x38e4]
comiss xmm2, xmm0
jbe 0x40d0dc
addss xmm2, dword [esi + 0x38fc]
movss xmm3, dword [esp + 0x2c]
comiss xmm3, xmm0
jbe 0x40d0ef
addss xmm3, dword [esi + 0x38fc]
movss xmm6, dword [esi + 0x38c8]
comiss xmm6, xmm7
movss xmm5, dword [0x4834a4]
jbe 0x40d177
comiss xmm5, xmm6
jbe 0x40d177
movaps xmm0, xmm6
movaps xmm1, xmm5
subss xmm0, dword [0x48346c]
andps xmm0, xmmword [0x483680]
addss xmm0, xmm0
subss xmm1, xmm0
comiss xmm7, xmm1
jbe 0x40d130
movaps xmm5, xmm7
jmp 0x40d134
minss xmm5, xmm1
mov eax, dword [esp + 0xc]
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 [0x4834a4]
movaps xmm0, xmm1
maxss xmm1, xmm3
maxss xmm0, xmm2
movaps xmm3, xmm1
movaps xmm2, xmm0
jmp 0x40d17b
mov eax, dword [esp + 0xc]
test dword [esp + 0x14], 0x40000
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 [esi + 0x38fc]
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 + 0x24], xmm3
movss dword [esp + 0x4c], xmm3
je 0x40d2e0
movaps xmm0, xmm7
subss xmm0, xmm2
subss xmm0, xmm4
mulss xmm0, xmm6
addss xmm0, xmm2
addss xmm0, xmm4
comiss xmm2, xmm0
jbe 0x40d210
movaps xmm7, xmm2
movss dword [esp + 0x14], xmm2
jmp 0x40d21a
minss xmm7, xmm0
movss dword [esp + 0x14], xmm7
comiss xmm7, xmm2
addss xmm1, dword [eax + 4]
mulss xmm1, dword [0x48346c]
movss dword [esp + 0x34], xmm1
jbe 0x40d2e0
movaps xmm1, xmm5
xor ecx, ecx
call fcn.00404650
mov edi, dword [edi + 0x270]
movss xmm0, dword [esp + 0x34]
mov dword [esp + 0x18], eax
movss dword [esp + 0x38], xmm7
mov ecx, dword [edi + 0x2c]
movss dword [esp + 0x3c], xmm0
movss xmm2, dword [ecx + 0xc]
mulss xmm2, dword [0x48344c]
test eax, 0xff000000
je 0x40d2b7
movss xmm0, dword [0x48346c]
comiss xmm0, xmm2
ja 0x40d2b7
push 7
push ecx
lea eax, [esp + 0x40]
mov dword [esp], 0x40afede0
push eax
xorps xmm3, xmm3
mov ecx, edi
call fcn.00425c90
push dword [esp + 0x18]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.00425440
movss xmm7, dword [esp + 0x14]
mov dword [edi + 0x54], 0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x48346c]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm7, xmm0
minss xmm7, dword [esp + 0x24]
movss dword [esp + 0x4c], xmm7
lea eax, [esp + 0x44]
push eax
lea eax, [esi + 0x38c8]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x68]
push ecx
push eax
lea ecx, [esp + 0x68]
call fcn.004048e0
mov ecx, dword [esp + 0x78]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.0044c777
mov esp, ebp
pop ebp
ret