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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x4ef400]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x34], edx
mov edx, dword [0x4f0690]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x10]
test byte [edi + 8], 0x42
mov dword [esp + 0x38], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], edx
jne 0x40d498
cmp byte [edi + 0xd8], 0
jg 0x40d498
cmp byte [edi + 0xd9], 0
jg 0x40d498
cmp byte [edi + 0xc0], 0
je 0x40d498
movss xmm2, dword [edx + 0x19e4]
xor eax, eax
movss xmm0, dword [edi + 0x78]
movaps xmm1, xmm2
addss xmm0, dword [0x4e6934]
mulss xmm2, dword [0x4e68d8]
mov esi, 4
mov cl, byte [edx + 0xbc]
mulss xmm1, dword [0x4e6944]
test cl, cl
mov byte [esp + 0xf], 0
addss xmm0, xmm2
cmovne eax, esi
mov dword [esp + 0x54], eax
maxss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x4e6910]
cvttss2si esi, xmm0
je 0x40c967
movss xmm0, dword [0x4e6990]
jmp 0x40c96a
xorps xmm0, xmm0
test dword [edx + 0xc], 0x800
movss dword [esp + 0x10], xmm0
movss xmm0, dword [0x4e6a84]
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x14], xmm0
je 0x40c9ad
mov eax, dword [edx + 0xfc]
cmp eax, dword [edi + 0x30]
jne 0x40c9ad
mov eax, dword [edi + 0x2c]
test byte [eax + 4], 8
jne 0x40c9e8
mov eax, dword [edi + 0x2c]
movss xmm0, dword [eax + 0xc]
movss xmm1, dword [eax + 8]
movss dword [esp + 0x44], xmm1
addss xmm1, dword [eax + 0x10]
movss dword [esp + 0x48], xmm0
addss xmm0, dword [eax + 0x14]
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x50], xmm0
movups xmm0, xmmword [esp + 0x44]
movups xmmword [edi + 0x21c], xmm0
mov dword [edi + 0x150], 1
mov eax, dword [edx + 0x1c4c]
xor edx, edx
add eax, 0xf8
mov dword [esp + 0x28], eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
push dword [eax + ecx*4 - 4]
mov ecx, str.RESIZE
call fcn.00403960
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
cmp dword [eax + 0x1c70], ecx
jne 0x40ca42
push ecx
push str.RESIZE
mov edx, 0xb
call fcn.00422df0
mov ecx, dword [esp + 0x24]
add esp, 8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.00422fc0
xor edx, edx
mov dword [esp + 0x28], edx
cmp dword [ebp + 0xc], edx
jle 0x40ce62
movss xmm0, dword [edi + 0x40]
lea ecx, [edx + edx*2]
movss xmm1, dword [edi + 0x44]
movaps xmm3, xmm0
addss xmm3, dword [edi + 0x48]
movaps xmm2, xmm1
mov dword [esp + 0x1c], ecx
addss xmm2, dword [edi + 0x4c]
xorps xmm6, xmm6
cvtsi2ss xmm6, esi
subss xmm3, xmm0
subss xmm2, xmm1
mulss xmm3, dword [ecx*8 + 0x4ef490]
mulss xmm2, dword [ecx*8 + 0x4ef494]
addss xmm3, xmm0
movss xmm0, dword [ecx*8 + 0x4ef498]
movaps xmm5, xmm0
mulss xmm0, dword [esp + 0x10]
addss xmm2, xmm1
mulss xmm5, xmm6
movss xmm1, dword [ecx*8 + 0x4ef49c]
movaps xmm4, xmm1
mulss xmm1, dword [esp + 0x10]
mulss xmm4, xmm6
addss xmm5, xmm3
subss xmm3, xmm0
addss xmm4, xmm2
subss xmm2, xmm1
movss dword [esp + 0x4c], xmm5
comiss xmm3, xmm5
movss dword [esp + 0x44], xmm3
movss dword [esp + 0x48], xmm2
movss dword [esp + 0x50], xmm4
jbe 0x40cb12
movss dword [esp + 0x44], xmm5
movss dword [esp + 0x4c], xmm3
comiss xmm2, xmm4
jbe 0x40cb23
movss dword [esp + 0x48], xmm4
movss dword [esp + 0x50], xmm2
push edx
mov ecx, edi
call fcn.00406940
push 0x40800
lea ecx, [esp + 0x12]
mov edx, eax
push ecx
lea ecx, [esp + 0x15]
push ecx
lea ecx, [esp + 0x50]
call fcn.00438dc0
mov cl, byte [esp + 0x19]
add esp, 0xc
test cl, cl
jne 0x40cb5c
mov al, byte [esp + 0xe]
test al, al
je 0x40cef7
mov edx, dword [esp + 0x28]
mov eax, edx
mov ecx, dword [esp + 0x30]
not eax
and eax, 1
add eax, 5
mov dword [ecx + 0x1fc8], eax
mov al, byte [esp + 0xe]
test al, al
je 0x40ce1c
cmp word [ecx + 0x3ea], 2
jne 0x40cbd8
test edx, edx
jne 0x40cbd8
push dword [esp + 0x34]
mov edx, edi
lea ecx, [esp + 0x70]
call fcn.0040c230
add esp, 4
mov byte [esp + 0xf], 1
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x14], xmm2
call fcn.00406ac0
mov edx, dword [esp + 0x28]
cmp byte [esp + 0xe], 0
je 0x40ce34
mov ecx, 0x20
jmp 0x40ce40
mov edx, dword [esp + 0x1c]
movss xmm3, dword [0x4e6934]
movss xmm2, dword [0x4e6aa8]
movss xmm0, dword [edx*8 + 0x4ef494]
ucomiss xmm0, xmm3
lahf
test ah, 0x44
jp 0x40cc08
mov eax, dword [ebp + 0x14]
movss xmm6, dword [eax + 4]
jmp 0x40cc0b
movaps xmm6, xmm2
movss xmm1, dword [edx*8 + 0x4ef490]
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x40cc26
mov eax, dword [ebp + 0x14]
movss xmm4, dword [eax]
jmp 0x40cc29
movaps xmm4, xmm2
xorps xmm2, xmm2
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x40cc4d
mov eax, dword [ebp + 0x14]
movss xmm0, dword [eax + 0xc]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [0x4e6a84]
jmp 0x40cc5b
movss xmm0, dword [0x4e6a84]
movss dword [esp + 0x18], xmm0
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jp 0x40cc6e
mov eax, dword [ebp + 0x14]
movss xmm7, dword [eax + 8]
jmp 0x40cc71
movaps xmm7, xmm0
movss xmm5, dword [edx*8 + 0x4ef498]
xorps xmm3, xmm3
movss xmm2, dword [edx*8 + 0x4ef49c]
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x10]
movaps xmm1, xmm2
mulss xmm1, dword [esp + 0x10]
cvtsi2ss xmm3, esi
xorps xmm3, xmmword [0x4e7230]
mulss xmm5, xmm3
mulss xmm2, xmm3
subss xmm5, xmm0
subss xmm2, xmm1
mulss xmm5, dword [edx*8 + 0x4ef490]
mulss xmm2, dword [edx*8 + 0x4ef494]
addss xmm5, xmm0
movss xmm0, dword [ecx + 0xe4]
subss xmm0, dword [ecx + 0x1cb0]
addss xmm2, xmm1
addss xmm5, xmm0
movss xmm0, dword [ecx + 0xe8]
subss xmm0, dword [ecx + 0x1cb4]
addss xmm0, xmm2
comiss xmm6, xmm0
ja 0x40cd04
movss xmm6, dword [esp + 0x18]
minss xmm6, xmm0
comiss xmm4, xmm5
ja 0x40cd10
movaps xmm4, xmm7
minss xmm4, xmm5
movss xmm0, dword [edi + 0x40]
lea eax, [esp + 0x64]
movss xmm1, dword [edi + 0x44]
lea ecx, [esp + 0x3c]
movss xmm5, dword [edx*8 + 0x4ef490]
movaps xmm2, xmm0
movss xmm7, dword [edx*8 + 0x4ef494]
subss xmm2, xmm4
addss xmm0, dword [edi + 0x48]
movaps xmm3, xmm1
mov edx, edi
addss xmm1, dword [edi + 0x4c]
subss xmm3, xmm6
mulss xmm2, xmm5
push eax
mulss xmm3, xmm7
addss xmm2, xmm4
subss xmm4, xmm0
addss xmm3, xmm6
subss xmm6, xmm1
movss dword [esp + 0x24], xmm2
mulss xmm4, xmm5
movss dword [esp + 0x28], xmm3
mulss xmm6, xmm7
addss xmm4, xmm0
addss xmm6, xmm1
subss xmm4, xmm2
subss xmm6, xmm3
movss dword [esp + 0x68], xmm4
movss dword [esp + 0x6c], xmm6
call fcn.0040c230
mov ecx, dword [esp + 0x20]
add esp, 4
movss xmm3, dword [esp + 0x3c]
xorps xmm2, xmm2
movss dword [esp + 0x18], xmm3
movss xmm0, dword [ecx*8 + 0x4ef490]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x40cddd
movss xmm1, dword [esp + 0x20]
movaps xmm0, xmm3
subss xmm0, dword [esp + 0x64]
subss xmm1, xmm0
movss dword [esp + 0x20], xmm1
movss xmm0, dword [ecx*8 + 0x4ef494]
ucomiss xmm0, xmm2
movss xmm2, dword [esp + 0x40]
movss dword [esp + 0x14], xmm2
lahf
test ah, 0x44
jp 0x40ce14
movss xmm1, dword [esp + 0x24]
movaps xmm0, xmm2
subss xmm0, dword [esp + 0x68]
subss xmm1, xmm0
movss dword [esp + 0x24], xmm1
mov edx, dword [esp + 0x28]
mov al, byte [esp + 0xe]
mov cl, byte [esp + 0xd]
test edx, edx
je 0x40cbc3
test al, al
jne 0x40cbce
test cl, cl
je 0x40ce54
xor ecx, ecx
cmp byte [esp + 0xd], cl
setne cl
add ecx, 0x1e
movss xmm1, dword [0x4e6934]
call fcn.00404de0
mov ecx, dword [esp + 0x58]
mov dword [ecx + edx*4], eax
inc edx
mov dword [esp + 0x28], edx
cmp edx, dword [ebp + 0xc]
jl 0x40ca63
xor edi, edi
cmp dword [esp + 0x54], edi
jbe 0x40d20f
nop
lea eax, [edi*8]
sub eax, edi
shl eax, 2
mov dword [esp + 0x34], eax
test edi, edi
je 0x40cf00
cmp edi, 1
je 0x40cf00
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], 1
movss xmm4, dword [ecx + 0x40]
movss xmm3, dword [ecx + 0x44]
movaps xmm1, xmm4
addss xmm1, dword [ecx + 0x48]
movaps xmm2, xmm3
addss xmm2, dword [ecx + 0x4c]
cmp edi, 2
jne 0x40cfb2
movd xmm5, esi
movaps xmm0, xmm3
subss xmm0, dword [0x4e6990]
addss xmm3, dword [0x4e6990]
cvtdq2ps xmm5, xmm5
movss dword [esp + 0x70], xmm0
addss xmm4, xmm5
movss dword [esp + 0x78], xmm3
subss xmm1, xmm5
movss dword [esp + 0x6c], xmm4
movss dword [esp + 0x74], xmm1
jmp 0x40cffb
mov edx, dword [esp + 0x28]
jmp 0x40ce20
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x10], eax
movss xmm4, dword [ecx + 0x40]
movss xmm3, dword [ecx + 0x44]
movaps xmm1, xmm4
movaps xmm2, xmm3
addss xmm1, dword [ecx + 0x48]
addss xmm2, dword [ecx + 0x4c]
test edi, edi
jne 0x40cf67
movaps xmm0, xmm4
subss xmm0, dword [0x4e6990]
addss xmm4, dword [0x4e6990]
movss dword [esp + 0x6c], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x74], xmm4
addss xmm3, xmm0
subss xmm2, xmm0
movss dword [esp + 0x70], xmm3
movss dword [esp + 0x78], xmm2
jmp 0x40cffb
cmp edi, 1
jne 0x40ceaf
movaps xmm0, xmm1
xor eax, eax
subss xmm0, dword [0x4e6990]
addss xmm1, dword [0x4e6990]
mov dword [esp + 0x10], eax
movss dword [esp + 0x6c], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x74], xmm1
addss xmm3, xmm0
subss xmm2, xmm0
movss dword [esp + 0x70], xmm3
movss dword [esp + 0x78], xmm2
jmp 0x40cffb
cmp edi, 3
jne 0x40cff3
movd xmm5, esi
movaps xmm0, xmm2
subss xmm0, dword [0x4e6990]
addss xmm2, dword [0x4e6990]
cvtdq2ps xmm5, xmm5
movss dword [esp + 0x70], xmm0
addss xmm4, xmm5
movss dword [esp + 0x78], xmm2
subss xmm1, xmm5
movss dword [esp + 0x6c], xmm4
movss dword [esp + 0x74], xmm1
jmp 0x40cffb
xorps xmm0, xmm0
movups xmmword [esp + 0x6c], xmm0
lea eax, [edi + 4]
push eax
call fcn.00406940
push 0x40800
lea ecx, [esp + 0x11]
mov edx, eax
push ecx
lea ecx, [esp + 0x16]
push ecx
lea ecx, [esp + 0x78]
call fcn.00438dc0
mov edx, dword [esp + 0x3c]
add esp, 0xc
cmp byte [esp + 0xe], 0
je 0x40d03d
movss xmm0, dword [edx + 0x1c80]
comiss xmm0, dword [0x4e68c0]
ja 0x40d048
cmp byte [esp + 0xd], 0
je 0x40d204
mov ecx, dword [esp + 0x10]
mov eax, ecx
xor eax, 1
add eax, 3
cmp byte [esp + 0xd], 0
mov dword [edx + 0x1fc8], eax
je 0x40d204
mov eax, dword [esp + 0x5c]
mov dword [eax], edi
cmp edi, 3
jne 0x40d26e
mov eax, dword [ebp + 0x14]
movss xmm4, dword [0x4e6aa8]
movss xmm3, dword [eax + 4]
movss xmm1, dword [0x4e6a84]
movss xmm5, dword [0x4e6a84]
mov eax, dword [esp + 0x38]
movss xmm0, dword [eax + 0x40]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [eax + 0x44]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [edx + ecx*4 + 0xe4]
subss xmm0, dword [edx + ecx*4 + 0x1cb0]
addss xmm0, dword [0x4e6990]
movss dword [esp + ecx*4 + 0x64], xmm0
movss xmm0, dword [esp + 0x68]
comiss xmm3, xmm0
ja 0x40d0e0
movaps xmm3, xmm1
minss xmm3, xmm0
movss xmm0, dword [esp + 0x64]
comiss xmm4, xmm0
ja 0x40d0f2
movaps xmm4, xmm5
minss xmm4, xmm0
mov ecx, dword [esp + 0x34]
mov edx, eax
movss xmm0, dword [eax + 0x40]
movss xmm1, dword [eax + 0x44]
movaps xmm5, xmm0
addss xmm0, dword [eax + 0x48]
movss xmm7, dword [ecx + 0x4ef4fc]
subss xmm5, xmm4
minss xmm7, dword [ecx + 0x4ef504]
movss xmm2, dword [ecx + 0x4ef4f8]
movaps xmm6, xmm1
minss xmm2, dword [ecx + 0x4ef500]
addss xmm1, dword [eax + 0x4c]
subss xmm6, xmm3
lea ecx, [esp + 0x28]
movss dword [esp + 0x1c], xmm7
push ecx
mulss xmm5, xmm2
lea ecx, [esp + 0x40]
mulss xmm6, xmm7
addss xmm5, xmm4
movss dword [esp + 0x38], xmm2
subss xmm4, xmm0
addss xmm6, xmm3
subss xmm3, xmm1
movss dword [esp + 0x24], xmm5
mulss xmm4, xmm2
mulss xmm3, xmm7
addss xmm4, xmm0
movss dword [esp + 0x28], xmm6
addss xmm3, xmm1
subss xmm4, xmm5
subss xmm3, xmm6
movss dword [esp + 0x2c], xmm4
movss dword [esp + 0x30], xmm3
call fcn.0040c230
movss xmm0, dword [esp + 0x38]
add esp, 4
xorps xmm2, xmm2
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x18], xmm0
lahf
test ah, 0x44
jp 0x40d1d3
subss xmm0, dword [esp + 0x28]
movss xmm1, dword [esp + 0x20]
subss xmm1, xmm0
movss dword [esp + 0x20], xmm1
movss xmm0, dword [esp + 0x1c]
ucomiss xmm0, xmm2
movss xmm0, dword [esp + 0x40]
movss dword [esp + 0x14], xmm0
lahf
test ah, 0x44
jp 0x40d204
subss xmm0, dword [esp + 0x2c]
movss xmm1, dword [esp + 0x24]
subss xmm1, xmm0
movss dword [esp + 0x24], xmm1
inc edi
cmp edi, dword [esp + 0x54]
jl 0x40ce70
mov edx, dword [0x4f0690]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov eax, dword [edx + 0x1c4c]
dec dword [eax + 0xf8]
mov dword [esi + 0x150], 0
mov eax, dword [edi + 0x1fac]
test eax, eax
je 0x40d3d8
cmp dword [eax + 0x318], esi
jne 0x40d3d8
mov eax, dword [edi + 0x1e90]
cmp eax, 2
jne 0x40d2c2
cmp byte [edi + 0x101], 0
je 0x40d3d8
lea edx, [eax - 1]
lea ecx, [esp + 0x6c]
jmp 0x40d2d2
movss xmm1, dword [0x4e6aa8]
movaps xmm3, xmm1
movaps xmm0, xmm3
cmp edi, 1
jne 0x40d28d
mov eax, dword [ebp + 0x14]
movss xmm4, dword [eax]
jmp 0x40d084
movaps xmm4, xmm1
movaps xmm2, xmm4
cmp edi, 2
jne 0x40d2a5
mov eax, dword [ebp + 0x14]
movss xmm1, dword [eax + 0xc]
jmp 0x40d08c
movss xmm1, dword [0x4e6a84]
test edi, edi
jne 0x40d08c
mov eax, dword [ebp + 0x14]
movss xmm5, dword [eax + 8]
jmp 0x40d094
cmp eax, 3
jne 0x40d3d8
lea edx, [eax + 1]
lea ecx, [esp + 0x64]
sub esp, 8
xorps xmm3, xmm3
mov dword [esp + 4], 0
call fcn.004153b0
add esp, 8
xorps xmm5, xmm5
movss xmm4, dword [eax]
movss xmm3, dword [eax + 4]
ucomiss xmm4, xmm5
lahf
test ah, 0x44
jp 0x40d30a
ucomiss xmm3, xmm5
lahf
test ah, 0x44
jnp 0x40d3e3
movss xmm1, dword [edi + 0xa8]
mov ecx, 0x20
movss xmm0, dword [edi + 0x18]
mulss xmm0, dword [0x4e6a68]
minss xmm1, dword [edi + 0xac]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movss xmm1, dword [0x4e6934]
movd xmm2, eax
mov eax, dword [ebp + 0x14]
cvtdq2ps xmm2, xmm2
movss xmm0, dword [eax]
subss xmm0, dword [esi + 0x40]
movaps xmm7, xmm2
mulss xmm3, xmm2
mulss xmm7, xmm4
subss xmm0, dword [esi + 0x48]
maxss xmm7, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [esi + 0x44]
subss xmm0, dword [esi + 0x4c]
mov byte [edi + 0x1fc0], 0
mov byte [edi + 0x1e9b], 1
maxss xmm3, xmm0
movss dword [esp + 0x5c], xmm3
call fcn.00404de0
mov ecx, dword [esp + 0x58]
mov edx, esi
movss xmm0, dword [esp + 0x5c]
mov dword [ecx], eax
lea eax, [esp + 0x3c]
addss xmm7, dword [esi + 0x50]
addss xmm0, dword [esi + 0x54]
push eax
lea ecx, [esp + 0x60]
movss dword [esp + 0x40], xmm7
movss dword [esp + 0x44], xmm0
call fcn.0040c230
add esp, 4
xorps xmm5, xmm5
movss xmm0, dword [eax]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [eax + 4]
jmp 0x40d3e9
movss xmm0, dword [esp + 0x14]
xorps xmm5, xmm5
jmp 0x40d3ef
movss xmm0, dword [esp + 0x14]
mov edx, dword [0x4f0690]
movss xmm1, dword [0x4e6a84]
movss xmm2, dword [esp + 0x18]
ucomiss xmm2, xmm1
lahf
test ah, 0x44
jnp 0x40d42b
test dword [esi + 8], 0x100
movss dword [esi + 0x50], xmm2
movss dword [esi + 0x54], xmm0
jne 0x40d42b
comiss xmm5, dword [edx + 0x30a0]
jb 0x40d42b
mov eax, dword [edx + 0x1c]
mov dword [edx + 0x30a0], eax
movss xmm0, dword [esp + 0x20]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40d477
test dword [esi + 8], 0x100
cvttss2si eax, xmm0
movd xmm1, eax
cvttss2si eax, dword [esp + 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esi + 0x40], xmm1
movss dword [esi + 0x44], xmm0
jne 0x40d477
comiss xmm5, dword [edx + 0x30a0]
jb 0x40d477
mov ecx, dword [edx + 0x1c]
mov dword [edx + 0x30a0], ecx
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov al, byte [esp + 0xf]
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], edx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.004ca5c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x7c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004ca5c5
mov esp, ebp
pop ebp
ret