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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, dword [0x4c8150]
push edi
mov al, byte [esi + 8]
and al, 1
mov byte [esi + 0x35b], 0
test byte [esi + 8], 2
mov dword [esi + 0x1c50], 0
mov dword [esi + 0x1c54], 0
mov byte [ebp - 2], al
je 0x40eeb7
test byte [esi + 0xc], 1
je 0x40eeb7
movss xmm0, dword [esi + 0x304]
xorps xmm1, xmm1
comiss xmm0, xmm1
mov byte [ebp - 1], 1
ja 0x40eeab
movss xmm0, dword [esi + 0x30c]
comiss xmm0, xmm1
ja 0x40eeab
movss xmm0, dword [esi + 0x308]
comiss xmm0, xmm1
ja 0x40eeab
movss xmm0, dword [esi + 0x310]
comiss xmm0, xmm1
jbe 0x40eebe
mov dword [esi + 0x1b80], 4
jmp 0x40eebe
mov byte [ebp - 1], 0
xorps xmm1, xmm1
test al, al
je 0x40f00e
mov eax, dword [esi + 0x64]
test eax, eax
js 0x40eeec
mov al, byte [esi + eax + 0x104]
test al, al
je 0x40eeec
mov dword [esi + 0x304], 0x3f800000
mov dword [esi + 0x1b80], 3
mov eax, dword [esi + 0x68]
test eax, eax
js 0x40ef12
mov al, byte [eax + esi + 0x104]
test al, al
je 0x40ef12
mov dword [esi + 0x30c], 0x3f800000
mov dword [esi + 0x1b80], 3
mov eax, dword [esi + 0x6c]
test eax, eax
js 0x40ef38
mov al, byte [eax + esi + 0x104]
test al, al
je 0x40ef38
mov dword [esi + 0x308], 0x3f800000
mov dword [esi + 0x1b80], 3
mov eax, dword [esi + 0x38]
test eax, eax
js 0x40ef5e
mov al, byte [eax + esi + 0x104]
test al, al
je 0x40ef5e
mov dword [esi + 0x348], 0x3f800000
mov dword [esi + 0x1b80], 3
mov eax, dword [esi + 0x3c]
test eax, eax
js 0x40ef84
mov al, byte [eax + esi + 0x104]
test al, al
je 0x40ef84
mov dword [esi + 0x34c], 0x3f800000
mov dword [esi + 0x1b80], 3
mov eax, dword [esi + 0x40]
test eax, eax
js 0x40efaa
mov al, byte [eax + esi + 0x104]
test al, al
je 0x40efaa
mov dword [esi + 0x350], 0x3f800000
mov dword [esi + 0x1b80], 3
mov eax, dword [esi + 0x44]
test eax, eax
js 0x40efd0
mov al, byte [eax + esi + 0x104]
test al, al
je 0x40efd0
mov dword [esi + 0x354], 0x3f800000
mov dword [esi + 0x1b80], 3
mov al, byte [esi + 0x100]
test al, al
je 0x40efe4
mov dword [esi + 0x33c], 0x3f800000
cmp byte [esi + 0x101], 0
je 0x40eff7
mov dword [esi + 0x340], 0x3f800000
cmp byte [esi + 0x102], 0
je 0x40f00e
test al, al
jne 0x40f00e
mov dword [esi + 0x344], 0x3f800000
movups xmm0, xmmword [esi + 0x1460]
mov eax, dword [esi + 0x14b0]
lea ecx, [esi + 0x1460]
movss xmm2, dword [0x4be06c]
movups xmmword [esi + 0x14b4], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [esi + 0x14c4], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [esi + 0x14d4], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [esi + 0x14e4], xmm0
movups xmm0, xmmword [ecx + 0x40]
movups xmmword [esi + 0x14f4], xmm0
mov dword [esi + 0x1504], eax
mov eax, 0x15
nop word [eax + eax]
movss xmm0, dword [ecx - 0x115c]
comiss xmm0, xmm1
jbe 0x40f0a6
movss xmm2, dword [ecx]
comiss xmm1, xmm2
jbe 0x40f093
movss xmm2, dword [0x4be06c]
movaps xmm0, xmm1
jmp 0x40f0a9
movss xmm0, dword [esi + 0x18]
addss xmm0, xmm2
movss xmm2, dword [0x4be06c]
jmp 0x40f0a9
movaps xmm0, xmm2
movss dword [ecx], xmm0
add ecx, 4
sub eax, 1
jne 0x40f070
mov ecx, dword [esi + 0x1ba8]
test ecx, ecx
je 0x40f14c
cmp byte [esi + 0x1ba2], al
je 0x40f0d3
cmp byte [esi + 0x1ba6], al
je 0x40f14c
cmp dword [esi + 0x1b50], 0
je 0x40f14c
mov edx, dword [esi + 0x1b98]
mov eax, dword [esi + 0x1b50]
cmp byte [esi + 0x1ba6], 0
mov dword [esi + 0x1b54], ecx
mov dword [esi + 0x1b58], 0
mov dword [eax + edx*4 + 0x344], ecx
je 0x40f12f
mov eax, dword [esi + 0x1b50]
add edx, edx
movups xmm0, xmmword [esi + 0x1bac]
movups xmmword [eax + edx*8 + 0x34c], xmm0
mov word [esi + 0x1ba1], 1
mov byte [esi + 0x1ba3], 1
mov ecx, dword [esi + 0x1b98]
mov eax, dword [esi + 0x1b50]
add ecx, ecx
movups xmm0, xmmword [esi + 0x1bac]
movups xmmword [eax + ecx*8 + 0x34c], xmm0
cmp byte [esi + 0x1bbd], 0
mov word [esi + 0x1ba5], 0
mov dword [esi + 0x1ba8], 0
mov dword [esi + 0x1b70], 0
je 0x40f177
call fcn.0040fd70
cmp dword [esi + 0x1bc4], 2
jne 0x40f1a3
cmp dword [esi + 0x1bdc], 0
jne 0x40f199
cmp dword [esi + 0x1c2c], 0
jne 0x40f199
mov byte [esi + 0x1ba2], 0
mov dword [esi + 0x1bc4], 0
cmp byte [esi + 0x1ba1], 0
je 0x40f217
cmp byte [esi + 0x1ba0], 0
je 0x40f217
test byte [esi + 8], 4
je 0x40f210
test byte [esi + 0xc], 4
je 0x40f210
cmp byte [esi + 0x1ba2], 0
jne 0x40f210
cmp byte [esi + 0x1ba3], 0
je 0x40f210
cmp dword [esi + 0x1b50], 0
je 0x40f210
lea ecx, [ebp - 0x14]
call fcn.0040eb70
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x388], eax
mov eax, ecx
mov dword [esi + 0x384], ecx
mov ecx, dword [esi + 0x388]
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], ecx
mov byte [esi + 0x35b], 1
mov byte [esi + 0x1ba1], 0
mov edx, dword [esi + 0x1b50]
mov byte [esi + 0x1ba0], 0
mov dword [esi + 0x1b6c], 0
test edx, edx
je 0x40f265
mov ecx, edx
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ecx + 8]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x40f25b
mov ecx, dword [ecx + 0x330]
test ecx, ecx
jne 0x40f240
jmp 0x40f265
cmp ecx, edx
je 0x40f265
mov dword [ecx + 0x340], edx
mov eax, dword [esi + 0x1b50]
test eax, eax
je 0x40f28b
cmp dword [eax + 0x340], 0
je 0x40f28b
cmp dword [esi + 0x1b98], 0
jne 0x40f28b
mov dword [eax + 0x340], 0
call fcn.004107f0
cmp byte [ebp - 2], 0
jne 0x40f29c
cmp byte [ebp - 1], 0
je 0x40f311
mov eax, dword [esi + 0x1b50]
test eax, eax
je 0x40f311
test dword [eax + 8], 0x40000
jne 0x40f311
cmp dword [esi + 0x1b54], 0
mov byte [esi + 0x35d], 1
je 0x40f318
cmp byte [esi + 0x1ba2], 0
jne 0x40f318
mov al, 1
mov edx, 1
mov byte [esi + 0x35e], al
mov ecx, edx
call fcn.0040eca0
xorps xmm5, xmm5
comiss xmm0, xmm5
jbe 0x40f484
cmp dword [esi + 0x1a50], 0
je 0x40f325
mov edi, dword [0x4c8150]
mov eax, dword [edi + 0x1a68]
shr eax, 1
test dl, al
jne 0x40f48a
call fcn.00404ce0
jmp 0x40f48a
mov byte [esi + 0x35d], 0
cmp dword [esi + 0x1c58], 0
jne 0x40f2c8
xor al, al
jmp 0x40f2ca
mov edi, dword [esi + 0x1b50]
test edi, edi
je 0x40f395
mov eax, dword [edi + 8]
and eax, 0x5000000
cmp eax, 0x1000000
jne 0x40f395
mov ecx, dword [edi + 0x330]
test ecx, ecx
je 0x40f395
call fcn.0040cc70
mov ecx, dword [edi + 0x4c]
xorps xmm5, xmm5
mov edi, dword [0x4c8150]
mov eax, dword [edi + 0x1b50]
mov dword [edi + 0x1b54], ecx
mov dword [edi + 0x1b58], 0
mov dword [eax + 0x344], ecx
cmp byte [esi + 0x1ba3], 0
mov byte [esi + 0x1ba0], 0
je 0x40f48a
mov byte [esi + 0x1ba1], 1
jmp 0x40f48a
mov edx, dword [esi + 0x1b38]
test edx, edx
jle 0x40f3cb
mov eax, dword [esi + 0x1b40]
lea ecx, [edx + edx*8]
mov eax, dword [eax + ecx*4 - 0x20]
test dword [eax + 8], 0x8000000
jne 0x40f484
lea ecx, [edx - 1]
mov dl, 1
call fcn.0040db40
xorps xmm5, xmm5
jmp 0x40f484
cmp dword [esi + 0x1b98], 0
je 0x40f451
mov edi, dword [0x4c8150]
mov eax, dword [edi + 0x1b50]
mov dword [edi + 0x1b98], 0
mov ecx, dword [eax + 0x340]
test ecx, ecx
je 0x40f3fa
cmp byte [ecx + 0x7b], 0
jne 0x40f3fc
mov ecx, eax
mov dword [edi + 0x1b50], ecx
mov eax, dword [ecx + 0x344]
test eax, eax
je 0x40f448
mov dword [edi + 0x1b54], eax
mov dword [edi + 0x1b58], 0
mov dword [ecx + 0x344], eax
movups xmm0, xmmword [ecx + 0x34c]
mov eax, dword [edi + 0x1b50]
movups xmmword [eax + 0x34c], xmm0
mov word [edi + 0x1ba1], 1
mov byte [edi + 0x1ba3], 1
jmp 0x40f48a
mov dl, 1
call fcn.0040ead0
jmp 0x40f48a
test edi, edi
je 0x40f470
mov eax, dword [edi + 8]
test eax, 0x4000000
jne 0x40f466
test eax, 0x1000000
jne 0x40f470
mov dword [edi + 0x344], 0
mov dword [esi + 0x1b58], 0
mov dword [esi + 0x1b54], 0
mov edi, dword [0x4c8150]
cmp dword [esi + 0x1b54], 0
mov dword [esi + 0x1b68], 0
mov dword [esi + 0x1b64], 0
mov dword [esi + 0x1b60], 0
mov dword [esi + 0x1b5c], 0
je 0x40f59c
cmp byte [esi + 0x1ba2], 0
jne 0x40f59c
cmp dword [esi + 0x1c58], 0
jne 0x40f59c
mov eax, dword [esi + 0x1b50]
test eax, eax
je 0x40f59c
test dword [eax + 8], 0x40000
jne 0x40f59c
movss xmm0, dword [edi + 0x304]
comiss xmm0, xmm5
seta al
mov byte [ebp - 3], al
test al, al
je 0x40f51e
mov edx, 1
xor ecx, ecx
call fcn.0040eca0
comiss xmm0, xmm5
jbe 0x40f51e
mov al, dl
jmp 0x40f520
xor al, al
mov edx, dword [esi + 0x1a50]
mov ecx, dword [esi + 0x1b54]
mov byte [ebp - 1], al
test edx, edx
jne 0x40f53f
test al, al
je 0x40f543
mov dword [esi + 0x1b5c], ecx
jmp 0x40f543
cmp edx, ecx
jne 0x40f59c
cmp byte [ebp - 3], 0
mov eax, dword [esi + 0x1b60]
cmovne eax, ecx
mov dword [esi + 0x1b60], eax
test edx, edx
je 0x40f55e
cmp edx, ecx
jne 0x40f59c
cmp byte [ebp - 1], 0
mov eax, dword [esi + 0x1b64]
cmovne eax, ecx
mov dword [esi + 0x1b64], eax
test edx, edx
je 0x40f579
cmp edx, ecx
jne 0x40f59c
mov edx, 1
lea ecx, [edx + 1]
call fcn.0040eca0
mov eax, dword [esi + 0x1b68]
comiss xmm0, xmm5
cmova eax, dword [esi + 0x1b54]
mov dword [esi + 0x1b68], eax
mov ecx, dword [esi + 0x1b50]
test ecx, ecx
je 0x40f5b6
test dword [ecx + 8], 0x40000
je 0x40f5b6
mov byte [esi + 0x1ba2], 1
mov eax, dword [esi + 0x1b7c]
mov byte [esi + 0x1bbd], 0
test eax, eax
je 0x40f5df
mov dword [esi + 0x1b68], eax
mov dword [esi + 0x1b64], eax
mov dword [esi + 0x1b60], eax
mov dword [esi + 0x1b5c], eax
cmp dword [esi + 0x1bc4], 0
mov dword [esi + 0x1b7c], 0
jne 0x40f773
or eax, 0xffffffff
mov dword [esi + 0x1bcc], 0xffffffff
mov dword [esi + 0x1bc0], 0
test ecx, ecx
je 0x40f76b
or eax, eax
cmp dword [esi + 0x1c58], 0
jne 0x40f76b
or eax, 0xffffffff
test dword [ecx + 8], 0x40000
jne 0x40f76b
test byte [edi + 0x1a64], 1
mov dword [ebp - 8], eax
jne 0x40f672
lea edx, [eax + 4]
lea ecx, [eax + 5]
call fcn.0040eca0
comiss xmm0, xmm5
ja 0x40f663
or eax, 0xffffffff
lea ecx, [edx + 0xe]
mov dword [ebp - 8], eax
call fcn.0040eca0
comiss xmm0, xmm5
jbe 0x40f672
xor eax, eax
mov dword [esi + 0x1bcc], 0
mov dword [ebp - 8], eax
mov ecx, dword [edi + 0x1a64]
mov eax, ecx
shr eax, 1
mov dword [ebp - 0xc], ecx
test al, 1
jne 0x40f6d0
mov edx, 3
lea ecx, [edx + 2]
call fcn.0040eca0
comiss xmm0, xmm5
ja 0x40f6b1
mov eax, dword [ebp - 8]
lea ecx, [edx + 0xf]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x1a64]
mov dword [ebp - 0xc], eax
call fcn.0040eca0
comiss xmm0, xmm5
jbe 0x40f6cd
mov dword [esi + 0x1bcc], 1
mov ecx, dword [edi + 0x1a64]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], ecx
jmp 0x40f6d0
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 2
test al, 1
jne 0x40f721
mov edx, 3
lea ecx, [edx + 3]
call fcn.0040eca0
comiss xmm0, xmm5
ja 0x40f704
mov eax, dword [ebp - 8]
lea ecx, [edx + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.0040eca0
comiss xmm0, xmm5
jbe 0x40f71e
mov eax, 2
mov dword [esi + 0x1bcc], 2
mov ecx, dword [edi + 0x1a64]
mov dword [ebp - 8], eax
jmp 0x40f724
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
shr ecx, 3
test cl, 1
jne 0x40f76b
mov edx, 3
lea ecx, [edx + 4]
call fcn.0040eca0
comiss xmm0, xmm5
ja 0x40f751
mov eax, dword [ebp - 8]
lea ecx, [edx + 0x11]
mov dword [ebp - 8], eax
call fcn.0040eca0
comiss xmm0, xmm5
jbe 0x40f768
mov eax, 3
mov dword [esi + 0x1bcc], 3
mov dword [esi + 0x1bd4], eax
jmp 0x40f77d
mov eax, dword [ebp - 8]
mov dword [esi + 0x1bd4], eax
jmp 0x40f77d
mov dword [esi + 0x1bc4], 2
cmp byte [ebp - 2], 0
movss dword [ebp - 0x10], xmm5
je 0x40f795
call fcn.0040ffb0
movss dword [ebp - 0x10], xmm0
xorps xmm5, xmm5
mov ecx, dword [esi + 0x1bcc]
cmp ecx, 0xffffffff
je 0x40f7b9
mov eax, dword [esi + 0x380]
mov byte [esi + 0x1bbd], 1
mov dword [esi + 0x1bc8], eax
mov dword [esi + 0x1bd0], ecx
cmp byte [esi + 0x1bbd], 0
je 0x40f7e5
cmp dword [esi + 0x1b54], 0
jne 0x40f7e5
mov word [esi + 0x1ba5], 0x101
mov dword [esi + 0x1ba8], 0
mov byte [esi + 0x1ba2], 0
cmp byte [edi + 0x1bbd], 0
jne 0x40f7fb
cmp byte [edi + 0x1ba5], 0
jne 0x40f7fb
xor al, al
jmp 0x40f7fd
mov al, 1
movss xmm2, dword [0x4bdf74]
mov byte [edi + 0x1ba4], al
mov ecx, dword [esi + 0x1b50]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x40fa02
test dword [ecx + 8], 0x40000
jne 0x40fa02
cmp dword [esi + 0x1c58], 0
jne 0x40fa02
movss xmm1, dword [edi + 0x18e4]
mov eax, dword [ecx + 0x330]
mulss xmm1, dword [ecx + 0x288]
test eax, eax
je 0x40f858
mulss xmm1, dword [eax + 0x288]
cmp dword [ecx + 0x13c], 0
mulss xmm1, dword [0x4be028]
mulss xmm1, dword [esi + 0x18]
addss xmm1, xmm2
cvttss2si eax, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [ebp - 0xc], xmm1
jne 0x40f923
cmp byte [ecx + 0x149], 0
je 0x40f923
cmp byte [esi + 0x1bbd], 0
je 0x40f923
mov eax, dword [esi + 0x1bcc]
test eax, eax
je 0x40f8b9
cmp eax, 1
jne 0x40f8e7
movss xmm0, dword [0x4bdfa8]
jmp 0x40f8c1
movss xmm0, dword [0x4be06c]
mulss xmm0, xmm1
mov dword [ecx + 0x68], 0
addss xmm0, dword [ecx + 0x50]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x60], xmm0
mov eax, dword [esi + 0x1bcc]
cmp eax, 2
je 0x40f8fb
cmp eax, 3
jne 0x40f923
movss xmm0, dword [0x4bdfa8]
jmp 0x40f903
movss xmm0, dword [0x4be06c]
mulss xmm0, xmm1
mov dword [ecx + 0x6c], 0
addss xmm0, dword [ecx + 0x54]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x64], xmm0
xor edx, edx
lea ecx, [edx + 9]
call fcn.0040eca0
lea ecx, [edx + 8]
movaps xmm7, xmm0
call fcn.0040eca0
subss xmm7, xmm0
lea ecx, [edx + 0xb]
addss xmm7, xmm5
call fcn.0040eca0
lea ecx, [edx + 0xa]
movaps xmm6, xmm0
call fcn.0040eca0
movss xmm1, dword [edi + 0x33c]
subss xmm6, xmm0
comiss xmm1, xmm5
addss xmm6, xmm5
jbe 0x40f978
mulss xmm7, dword [0x4bdf54]
mulss xmm6, dword [0x4bdf54]
movss xmm0, dword [edi + 0x340]
comiss xmm0, xmm5
jbe 0x40f995
mulss xmm7, dword [0x4be000]
mulss xmm6, dword [0x4be000]
mov ecx, dword [ebp - 8]
movss xmm1, dword [ebp - 0xc]
ucomiss xmm7, xmm5
lahf
test ah, 0x44
jnp 0x40f9ce
cmp byte [ecx + 0x78], dl
je 0x40f9ce
mulss xmm7, xmm1
mov dword [ecx + 0x68], edx
addss xmm7, dword [ecx + 0x50]
cvttss2si eax, xmm7
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x60], xmm0
mov byte [esi + 0x1bbc], 1
movss xmm2, dword [0x4bdf74]
ucomiss xmm6, xmm5
lahf
test ah, 0x44
jnp 0x40fa02
mulss xmm6, xmm1
mov dword [ecx + 0x6c], edx
addss xmm6, dword [ecx + 0x54]
cvttss2si eax, xmm6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x64], xmm0
mov byte [esi + 0x1bbc], 1
mov dword [esi + 0x1bd8], 0
xorps xmm0, xmm0
mov dword [esi + 0x1be0], 0
mov dword [esi + 0x1bdc], 0
mov dword [esi + 0x1bec], 0x7f7fffff
mov dword [esi + 0x1be8], 0x7f7fffff
mov dword [esi + 0x1be4], 0x7f7fffff
movups xmmword [esi + 0x1bf0], xmm0
mov dword [esi + 0x1c00], 0
mov dword [esi + 0x1c08], 0
mov dword [esi + 0x1c04], 0
mov dword [esi + 0x1c14], 0x7f7fffff
mov dword [esi + 0x1c10], 0x7f7fffff
mov dword [esi + 0x1c0c], 0x7f7fffff
movups xmmword [esi + 0x1c18], xmm0
mov dword [esi + 0x1c28], 0
mov dword [esi + 0x1c30], 0
mov dword [esi + 0x1c2c], 0
mov dword [esi + 0x1c3c], 0x7f7fffff
mov dword [esi + 0x1c38], 0x7f7fffff
mov dword [esi + 0x1c34], 0x7f7fffff
movups xmmword [esi + 0x1c40], xmm0
cmp byte [esi + 0x1bbd], 0
je 0x40fc3e
cmp byte [esi + 0x1bbc], 0
je 0x40fc3e
cmp dword [esi + 0x1b98], 0
jne 0x40fc3e
mov eax, dword [esi + 0x1b50]
movss xmm3, dword [0x4bdfa8]
movss xmm7, dword [eax + 0x1fc]
subss xmm7, dword [eax + 0xc]
movss xmm5, dword [eax + 0x204]
movss xmm6, dword [eax + 0x208]
movss xmm4, dword [eax + 0x200]
subss xmm5, dword [eax + 0xc]
subss xmm6, dword [eax + 0x10]
subss xmm4, dword [eax + 0x10]
movss xmm0, dword [eax + 0x34c]
subss xmm7, xmm3
movss dword [ebp - 0xc], xmm0
addss xmm5, xmm3
addss xmm6, xmm3
subss xmm4, xmm3
comiss xmm0, xmm7
jb 0x40fb7c
movss xmm0, dword [eax + 0x350]
comiss xmm0, xmm4
jb 0x40fb7c
comiss xmm5, dword [eax + 0x354]
jb 0x40fb7c
comiss xmm6, dword [eax + 0x358]
jae 0x40fc37
movss xmm1, dword [edi + 0x18e4]
mov ecx, dword [eax + 0x330]
mulss xmm1, dword [eax + 0x288]
test ecx, ecx
je 0x40fb9e
mulss xmm1, dword [ecx + 0x288]
movss xmm0, dword [eax + 0x350]
movaps xmm3, xmm6
mulss xmm1, xmm2
subss xmm3, xmm4
movaps xmm2, xmm5
subss xmm2, xmm7
minss xmm3, xmm1
minss xmm2, xmm1
movss xmm1, dword [ebp - 0xc]
xorps xmm3, xmmword [0x4be510]
subss xmm4, xmm3
addss xmm3, xmm6
xorps xmm2, xmmword [0x4be510]
subss xmm7, xmm2
addss xmm2, xmm5
maxss xmm0, xmm4
maxss xmm1, xmm7
movss dword [eax + 0x350], xmm0
movss dword [eax + 0x34c], xmm1
movss xmm1, dword [eax + 0x354]
movss xmm0, dword [eax + 0x358]
minss xmm1, xmm2
minss xmm0, xmm3
movss dword [eax + 0x354], xmm1
movss dword [eax + 0x358], xmm0
mov dword [esi + 0x1b58], 0
mov dword [esi + 0x1b54], 0
mov byte [esi + 0x1bbc], 0
mov eax, dword [esi + 0x1b50]
test eax, eax
je 0x40fc80
mov ecx, dword [esi + 0x1b98]
add ecx, ecx
movss xmm0, dword [eax + ecx*8 + 0x34c]
comiss xmm0, dword [eax + ecx*8 + 0x354]
ja 0x40fc80
movss xmm0, dword [eax + ecx*8 + 0x350]
comiss xmm0, dword [eax + ecx*8 + 0x358]
ja 0x40fc80
movups xmm0, xmmword [eax + ecx*8 + 0x34c]
jmp 0x40fc83
xorps xmm0, xmm0
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x30], xmm0
test eax, eax
je 0x40fccf
movss xmm2, dword [eax + 0xc]
movss xmm0, dword [eax + 0x10]
movaps xmm3, xmm2
addss xmm3, dword [ebp - 0x28]
addss xmm2, dword [ebp - 0x30]
movaps xmm1, xmm0
addss xmm1, dword [ebp - 0x24]
addss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x28], xmm3
movss dword [ebp - 0x30], xmm2
movss dword [ebp - 0x24], xmm1
movss dword [ebp - 0x2c], xmm0
jmp 0x40fcf1
movss xmm0, dword [edi + 0x10]
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [edi + 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movss dword [ebp - 0x24], xmm0
lea eax, [ebp - 0x30]
movups xmm0, xmmword [eax]
pop edi
movups xmmword [esi + 0x1b84], xmm0
movss xmm0, dword [esi + 0x1b88]
addss xmm0, dword [ebp - 0x10]
movss dword [esi + 0x1b88], xmm0
movss xmm0, dword [esi + 0x1b90]
addss xmm0, dword [ebp - 0x10]
movss dword [esi + 0x1b90], xmm0
movss xmm0, dword [esi + 0x1b84]
addss xmm0, dword [0x4bdfa8]
mov dword [esi + 0x1b94], 0
minss xmm0, dword [esi + 0x1b8c]
movss dword [esi + 0x1b84], xmm0
movss dword [esi + 0x1b8c], xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret