Function at 0x40da70
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, 0x28
push esi
mov esi, dword [0x46ed48]
push edi
mov al, byte [esi + 8]
and al, 1
mov byte [esi + 0x35b], 0
test byte [esi + 8], 2
mov byte [ebp - 2], al
je 0x40daf9
test byte [esi + 0xc], 1
je 0x40daf9
movss xmm0, dword [esi + 0x304]
lea ecx, [esi + 0x304]
xorps xmm1, xmm1
mov byte [ebp - 1], 1
comiss xmm0, xmm1
ja 0x40daed
movss xmm0, dword [esi + 0x30c]
comiss xmm0, xmm1
ja 0x40daed
movss xmm0, dword [esi + 0x308]
comiss xmm0, xmm1
ja 0x40daed
movss xmm0, dword [esi + 0x310]
comiss xmm0, xmm1
jbe 0x40db06
mov dword [esi + 0x1b68], 4
jmp 0x40db06
mov byte [ebp - 1], 0
lea ecx, [esi + 0x304]
xorps xmm1, xmm1
test al, al
je 0x40dc75
mov edx, dword [esi + 0x64]
test edx, edx
js 0x40db35
mov eax, dword [0x46ed48]
mov al, byte [edx + eax + 0x104]
test al, al
je 0x40db35
mov dword [ecx], 0x3f800000
mov dword [esi + 0x1b68], 3
mov ecx, dword [esi + 0x68]
test ecx, ecx
js 0x40db60
mov eax, dword [0x46ed48]
mov al, byte [ecx + eax + 0x104]
test al, al
je 0x40db60
mov dword [esi + 0x30c], 0x3f800000
mov dword [esi + 0x1b68], 3
mov ecx, dword [esi + 0x6c]
test ecx, ecx
js 0x40db8b
mov eax, dword [0x46ed48]
mov al, byte [ecx + eax + 0x104]
test al, al
je 0x40db8b
mov dword [esi + 0x308], 0x3f800000
mov dword [esi + 0x1b68], 3
mov ecx, dword [esi + 0x38]
test ecx, ecx
js 0x40dbb6
mov eax, dword [0x46ed48]
mov al, byte [ecx + eax + 0x104]
test al, al
je 0x40dbb6
mov dword [esi + 0x348], 0x3f800000
mov dword [esi + 0x1b68], 3
mov ecx, dword [esi + 0x3c]
test ecx, ecx
js 0x40dbe1
mov eax, dword [0x46ed48]
mov al, byte [ecx + eax + 0x104]
test al, al
je 0x40dbe1
mov dword [esi + 0x34c], 0x3f800000
mov dword [esi + 0x1b68], 3
mov ecx, dword [esi + 0x40]
test ecx, ecx
js 0x40dc0c
mov eax, dword [0x46ed48]
mov al, byte [ecx + eax + 0x104]
test al, al
je 0x40dc0c
mov dword [esi + 0x350], 0x3f800000
mov dword [esi + 0x1b68], 3
mov ecx, dword [esi + 0x44]
test ecx, ecx
js 0x40dc37
mov eax, dword [0x46ed48]
mov al, byte [ecx + eax + 0x104]
test al, al
je 0x40dc37
mov dword [esi + 0x354], 0x3f800000
mov dword [esi + 0x1b68], 3
mov al, byte [esi + 0x100]
test al, al
je 0x40dc4b
mov dword [esi + 0x33c], 0x3f800000
cmp byte [esi + 0x101], 0
je 0x40dc5e
mov dword [esi + 0x340], 0x3f800000
cmp byte [esi + 0x102], 0
je 0x40dc75
test al, al
jne 0x40dc75
mov dword [esi + 0x344], 0x3f800000
movups xmm0, xmmword [esi + 0x1460]
mov eax, dword [esi + 0x14b0]
lea ecx, [esi + 0x1460]
movss xmm2, dword [0x45b8a4]
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
movss xmm0, dword [ecx - 0x115c]
comiss xmm0, xmm1
jbe 0x40dcf2
movss xmm0, dword [ecx]
comiss xmm1, xmm0
jbe 0x40dceb
movaps xmm0, xmm1
jmp 0x40dcf5
addss xmm0, dword [esi + 0x18]
jmp 0x40dcf5
movaps xmm0, xmm2
movss dword [ecx], xmm0
add ecx, 4
sub eax, 1
jne 0x40dcd0
mov edx, dword [esi + 0x1b90]
test edx, edx
je 0x40ddc8
cmp byte [esi + 0x1b8a], al
je 0x40dd23
cmp byte [esi + 0x1b8e], al
je 0x40ddc8
cmp dword [esi + 0x1b38], 0
je 0x40ddc8
cmp byte [esi + 0x1b8e], 0
mov edi, dword [esi + 0x1b80]
je 0x40dd8a
mov ecx, dword [0x46ed48]
mov eax, dword [ecx + 0x1b38]
mov dword [ecx + 0x1b3c], edx
mov dword [ecx + 0x1b40], 0
mov dword [eax + edi*4 + 0x308], edx
lea eax, [edi + 0x31]
movups xmm0, xmmword [esi + 0x1b94]
shl eax, 4
add eax, dword [ecx + 0x1b38]
movups xmmword [eax], xmm0
mov word [ecx + 0x1b89], 1
mov byte [ecx + 0x1b8b], 1
jmp 0x40ddac
mov eax, dword [0x46ed48]
mov dword [eax + 0x1b3c], edx
mov dword [eax + 0x1b40], 0
mov eax, dword [eax + 0x1b38]
mov dword [eax + edi*4 + 0x308], edx
mov eax, dword [esi + 0x1b80]
movups xmm0, xmmword [esi + 0x1b94]
add eax, 0x31
shl eax, 4
add eax, dword [esi + 0x1b38]
movups xmmword [eax], xmm0
cmp byte [esi + 0x1ba5], 0
mov word [esi + 0x1b8d], 0
mov dword [esi + 0x1b90], 0
mov dword [esi + 0x1b58], 0
je 0x40ddf3
call fcn.0040ed50
cmp dword [esi + 0x1bac], 2
jne 0x40de1f
cmp dword [esi + 0x1bc4], 0
jne 0x40de15
cmp dword [esi + 0x1c14], 0
jne 0x40de15
mov byte [esi + 0x1b8a], 0
mov dword [esi + 0x1bac], 0
cmp byte [esi + 0x1b89], 0
je 0x40de9b
cmp byte [esi + 0x1b88], 0
je 0x40de9b
test byte [esi + 8], 4
je 0x40de94
test byte [esi + 0xc], 4
je 0x40de94
cmp byte [esi + 0x1b8a], 0
jne 0x40de94
cmp byte [esi + 0x1b8b], 0
je 0x40de94
cmp dword [esi + 0x1b38], 0
je 0x40de94
lea eax, [ebp - 0x18]
push eax
call fcn.0040cd80
add esp, 4
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss dword [esi + 0x384], xmm0
movss dword [esi + 0x388], xmm1
movss dword [esi + 0xe8], xmm0
movss dword [esi + 0xec], xmm1
mov byte [esi + 0x35b], 1
mov byte [esi + 0x1b89], 0
mov edx, dword [esi + 0x1b38]
mov byte [esi + 0x1b88], 0
mov dword [esi + 0x1b54], 0
test edx, edx
je 0x40dee5
mov ecx, edx
nop dword [eax + eax]
mov eax, dword [ecx + 8]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x40dedb
mov ecx, dword [ecx + 0x2f4]
test ecx, ecx
jne 0x40dec0
jmp 0x40dee5
cmp ecx, edx
je 0x40dee5
mov dword [ecx + 0x304], edx
mov eax, dword [esi + 0x1b38]
test eax, eax
je 0x40df0b
cmp dword [eax + 0x304], 0
je 0x40df0b
cmp dword [esi + 0x1b80], 0
jne 0x40df0b
mov dword [eax + 0x304], 0
call fcn.0040f320
cmp byte [ebp - 2], 0
jne 0x40df1c
cmp byte [ebp - 1], 0
je 0x40df79
mov eax, dword [esi + 0x1b38]
test eax, eax
je 0x40df79
test dword [eax + 8], 0x40000
jne 0x40df79
cmp dword [esi + 0x1b3c], 0
mov byte [esi + 0x35d], 1
je 0x40df80
cmp byte [esi + 0x1b8a], 0
jne 0x40df80
mov al, 1
mov byte [esi + 0x35e], al
xorps xmm1, xmm1
mov ecx, dword [0x46ed48]
movss xmm0, dword [ecx + 0x1464]
comiss xmm1, xmm0
ja 0x40df8d
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x40df8d
movss xmm0, dword [0x45b844]
jmp 0x40df90
mov byte [esi + 0x35d], 0
cmp dword [esi + 0x1c38], 0
jne 0x40df48
xor al, al
jmp 0x40df4a
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x40dfbd
cmp dword [esi + 0x1a3c], 0
je 0x40e06e
mov eax, dword [ecx + 0x1a54]
shr eax, 1
test al, 1
jne 0x40dfbd
push 0
push 0
call fcn.00413b10
add esp, 8
xorps xmm1, xmm1
mov ecx, dword [esi + 0x1b3c]
mov dword [esi + 0x1b50], 0
mov dword [esi + 0x1b4c], 0
mov dword [esi + 0x1b48], 0
mov dword [esi + 0x1b44], 0
test ecx, ecx
je 0x40e259
cmp byte [esi + 0x1b8a], 0
jne 0x40e259
cmp dword [esi + 0x1c38], 0
jne 0x40e259
mov eax, dword [esi + 0x1b38]
test eax, eax
je 0x40e259
test dword [eax + 8], 0x40000
jne 0x40e259
mov eax, dword [0x46ed48]
movss xmm0, dword [eax + 0x304]
comiss xmm0, xmm1
seta dh
test dh, dh
je 0x40e1e6
movss xmm0, dword [eax + 0x1460]
comiss xmm1, xmm0
ja 0x40e1da
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x40e1da
movss xmm0, dword [0x45b844]
jmp 0x40e1dd
mov edi, dword [esi + 0x1b38]
test edi, edi
je 0x40e0de
mov eax, dword [edi + 8]
and eax, 0x5000000
cmp eax, 0x1000000
jne 0x40e0de
mov eax, dword [edi + 0x2f4]
test eax, eax
je 0x40e0de
push eax
call fcn.00409c00
mov eax, dword [0x46ed48]
add esp, 4
mov ecx, dword [edi + 0x4c]
mov dword [eax + 0x1b3c], ecx
mov dword [eax + 0x1b40], 0
mov eax, dword [eax + 0x1b38]
mov dword [eax + 0x308], ecx
cmp byte [esi + 0x1b8b], 0
mov byte [esi + 0x1b88], 0
je 0x40dfba
mov byte [esi + 0x1b89], 1
jmp 0x40dfba
mov edx, dword [esi + 0x1b20]
test edx, edx
jle 0x40e112
mov eax, dword [esi + 0x1b28]
lea ecx, [edx + edx*8]
mov eax, dword [eax + ecx*4 - 0x20]
test dword [eax + 8], 0x8000000
jne 0x40dfbd
lea eax, [edx - 1]
push 1
push eax
call fcn.00407eb0
jmp 0x40dfb7
cmp dword [esi + 0x1b80], 0
je 0x40e1a2
mov edx, dword [ecx + 0x1b38]
mov dword [ecx + 0x1b80], 0
mov eax, dword [edx + 0x304]
test eax, eax
cmovne edx, eax
mov dword [ecx + 0x1b38], edx
mov edi, dword [edx + 0x308]
test edi, edi
je 0x40e195
mov ecx, dword [0x46ed48]
mov eax, dword [ecx + 0x1b38]
mov dword [ecx + 0x1b3c], edi
mov dword [ecx + 0x1b40], 0
mov dword [eax + 0x308], edi
movups xmm0, xmmword [edx + 0x310]
mov eax, dword [ecx + 0x1b38]
movups xmmword [eax + 0x310], xmm0
mov word [ecx + 0x1b89], 1
mov byte [ecx + 0x1b8b], 1
jmp 0x40dfbd
push 1
push edx
call fcn.0040cea0
jmp 0x40dfb7
test edi, edi
je 0x40e1c1
mov eax, dword [edi + 8]
test eax, 0x4000000
jne 0x40e1b7
test eax, 0x1000000
jne 0x40e1c1
mov dword [edi + 0x308], 0
mov dword [esi + 0x1b40], 0
mov dword [esi + 0x1b3c], 0
jmp 0x40dfbd
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x40e1e6
mov dl, 1
jmp 0x40e1e8
xor dl, dl
mov eax, dword [esi + 0x1a3c]
test eax, eax
jne 0x40e1fe
test dl, dl
je 0x40e202
mov dword [esi + 0x1b44], ecx
jmp 0x40e202
cmp eax, ecx
jne 0x40e259
test dh, dh
je 0x40e20c
mov dword [esi + 0x1b48], ecx
test eax, eax
je 0x40e214
cmp eax, ecx
jne 0x40e259
test dl, dl
je 0x40e21e
mov dword [esi + 0x1b4c], ecx
test eax, eax
je 0x40e226
cmp eax, ecx
jne 0x40e259
mov eax, dword [0x46ed48]
movss xmm0, dword [eax + 0x1468]
comiss xmm1, xmm0
ja 0x40e24b
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x40e24b
movss xmm0, dword [0x45b844]
jmp 0x40e24e
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x40e259
mov dword [esi + 0x1b50], ecx
mov ecx, dword [esi + 0x1b38]
test ecx, ecx
je 0x40e273
test dword [ecx + 8], 0x40000
je 0x40e273
mov byte [esi + 0x1b8a], 1
mov eax, dword [esi + 0x1b64]
mov byte [esi + 0x1ba5], 0
test eax, eax
je 0x40e29c
mov dword [esi + 0x1b50], eax
mov dword [esi + 0x1b4c], eax
mov dword [esi + 0x1b48], eax
mov dword [esi + 0x1b44], eax
cmp dword [esi + 0x1bac], 0
mov dword [esi + 0x1b64], 0
jne 0x40e6fe
mov dword [esi + 0x1bb4], 0xffffffff
mov dword [esi + 0x1ba8], 0
test ecx, ecx
je 0x40e6f0
cmp dword [esi + 0x1c38], 0
jne 0x40e6f0
test dword [ecx + 8], 0x40000
jne 0x40e6f0
mov edi, dword [0x46ed48]
movss xmm3, dword [0x45b83c]
movss xmm4, dword [0x45b830]
test byte [edi + 0x1a50], 1
jne 0x40e408
movss xmm2, dword [edi + 0x1470]
lea eax, [edi + 0x90]
comiss xmm1, xmm2
lea ecx, [edi + 0x8c]
lea edx, [edi + 0x18]
jbe 0x40e32d
xorps xmm0, xmm0
jmp 0x40e38c
movss xmm0, dword [eax]
sub esp, 0x10
mulss xmm0, xmm3
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ecx]
mulss xmm0, xmm4
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm2
subss xmm2, dword [edx]
movss dword [esp], xmm2
call fcn.00407550
movss xmm3, dword [0x45b83c]
lea ecx, [edi + 0x8c]
movss xmm4, dword [0x45b830]
lea edx, [edi + 0x18]
add esp, 0x10
xorps xmm1, xmm1
movd xmm0, eax
lea eax, [edi + 0x90]
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
ja 0x40e3e8
movss xmm2, dword [edi + 0x14a4]
comiss xmm1, xmm2
jbe 0x40e3a3
xorps xmm0, xmm0
jmp 0x40e3e3
movss xmm0, dword [eax]
sub esp, 0x10
mulss xmm0, xmm3
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ecx]
mulss xmm0, xmm4
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm2
subss xmm2, dword [edx]
movss dword [esp], xmm2
call fcn.00407550
add esp, 0x10
xorps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x40e3f8
mov dword [esi + 0x1bb4], 0
mov edi, dword [0x46ed48]
movss xmm4, dword [0x45b830]
movss xmm3, dword [0x45b83c]
mov eax, dword [edi + 0x1a50]
shr eax, 1
test al, 1
jne 0x40e4fc
movss xmm2, dword [edi + 0x1474]
lea eax, [edi + 0x90]
comiss xmm1, xmm2
lea ecx, [edi + 0x8c]
lea edx, [edi + 0x18]
jbe 0x40e439
xorps xmm0, xmm0
jmp 0x40e488
movss xmm0, dword [eax]
sub esp, 0x10
mulss xmm0, xmm3
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ecx]
mulss xmm0, xmm4
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm2
subss xmm2, dword [edx]
movss dword [esp], xmm2
call fcn.00407550
add esp, 0x10
lea ecx, [edi + 0x8c]
lea edx, [edi + 0x18]
xorps xmm1, xmm1
movd xmm0, eax
lea eax, [edi + 0x90]
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
ja 0x40e4ec
movss xmm2, dword [edi + 0x14a8]
comiss xmm1, xmm2
jbe 0x40e49f
xorps xmm0, xmm0
jmp 0x40e4e7
movss xmm0, dword [eax]
sub esp, 0x10
mulss xmm0, dword [0x45b83c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ecx]
mulss xmm0, dword [0x45b830]
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm2
subss xmm2, dword [edx]
movss dword [esp], xmm2
call fcn.00407550
add esp, 0x10
xorps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x40e4fc
mov dword [esi + 0x1bb4], 1
mov edi, dword [0x46ed48]
mov eax, dword [edi + 0x1a50]
shr eax, 2
test al, 1
jne 0x40e5f9
movss xmm2, dword [edi + 0x1478]
lea eax, [edi + 0x90]
comiss xmm1, xmm2
lea ecx, [edi + 0x8c]
lea edx, [edi + 0x18]
jbe 0x40e52e
xorps xmm0, xmm0
jmp 0x40e585
movss xmm0, dword [eax]
sub esp, 0x10
mulss xmm0, dword [0x45b83c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ecx]
mulss xmm0, dword [0x45b830]
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm2
subss xmm2, dword [edx]
movss dword [esp], xmm2
call fcn.00407550
add esp, 0x10
lea ecx, [edi + 0x8c]
lea edx, [edi + 0x18]
xorps xmm1, xmm1
movd xmm0, eax
lea eax, [edi + 0x90]
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
ja 0x40e5e9
movss xmm2, dword [edi + 0x14ac]
comiss xmm1, xmm2
jbe 0x40e59c
xorps xmm0, xmm0
jmp 0x40e5e4
movss xmm0, dword [eax]
sub esp, 0x10
mulss xmm0, dword [0x45b83c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ecx]
mulss xmm0, dword [0x45b830]
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm2
subss xmm2, dword [edx]
movss dword [esp], xmm2
call fcn.00407550
add esp, 0x10
xorps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x40e5f9
mov dword [esi + 0x1bb4], 2
mov edi, dword [0x46ed48]
mov eax, dword [edi + 0x1a50]
shr eax, 3
test al, 1
jne 0x40e6f0
movss xmm2, dword [edi + 0x147c]
lea eax, [edi + 0x90]
comiss xmm1, xmm2
lea ecx, [edi + 0x8c]
lea edx, [edi + 0x18]
jbe 0x40e62b
xorps xmm0, xmm0
jmp 0x40e682
movss xmm0, dword [eax]
sub esp, 0x10
mulss xmm0, dword [0x45b83c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ecx]
mulss xmm0, dword [0x45b830]
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm2
subss xmm2, dword [edx]
movss dword [esp], xmm2
call fcn.00407550
add esp, 0x10
lea ecx, [edi + 0x8c]
lea edx, [edi + 0x18]
xorps xmm1, xmm1
movd xmm0, eax
lea eax, [edi + 0x90]
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
ja 0x40e6e6
movss xmm2, dword [edi + 0x14b0]
comiss xmm1, xmm2
jbe 0x40e699
xorps xmm0, xmm0
jmp 0x40e6e1
movss xmm0, dword [eax]
sub esp, 0x10
mulss xmm0, dword [0x45b83c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [ecx]
mulss xmm0, dword [0x45b830]
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm2
subss xmm2, dword [edx]
movss dword [esp], xmm2
call fcn.00407550
add esp, 0x10
xorps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x40e6f0
mov dword [esi + 0x1bb4], 3
mov eax, dword [esi + 0x1bb4]
mov dword [esi + 0x1bbc], eax
jmp 0x40e708
mov dword [esi + 0x1bac], 2
cmp byte [ebp - 2], 0
movss dword [ebp - 0xc], xmm1
je 0x40e725
call fcn.0040ef90
fstp dword [ebp - 0xc]
movss xmm1, dword [ebp - 0xc]
movss dword [ebp - 0xc], xmm1
mov ecx, dword [esi + 0x1bb4]
cmp ecx, 0xffffffff
je 0x40e749
mov eax, dword [esi + 0x380]
mov byte [esi + 0x1ba5], 1
mov dword [esi + 0x1bb0], eax
mov dword [esi + 0x1bb8], ecx
cmp byte [esi + 0x1ba5], 0
je 0x40e775
cmp dword [esi + 0x1b3c], 0
jne 0x40e775
mov word [esi + 0x1b8d], 0x101
mov dword [esi + 0x1b90], 0
mov byte [esi + 0x1b8a], 0
mov eax, dword [0x46ed48]
cmp byte [eax + 0x1ba5], 0
jne 0x40e790
cmp byte [eax + 0x1b8d], 0
jne 0x40e790
xor cl, cl
jmp 0x40e792
mov cl, 1
movss xmm2, dword [0x45b81c]
mov byte [eax + 0x1b8c], cl
mov edi, dword [esi + 0x1b38]
test edi, edi
je 0x40e95c
test dword [edi + 8], 0x40000
jne 0x40e95c
cmp dword [esi + 0x1c38], 0
jne 0x40e95c
mov eax, dword [0x46ed48]
movss xmm0, dword [eax + 0x18d4]
mov eax, dword [edi + 0x2f4]
mulss xmm0, dword [edi + 0x270]
test eax, eax
je 0x40e7ef
mulss xmm0, dword [eax + 0x270]
cmp dword [edi + 0x13c], 0
mulss xmm0, dword [0x45b884]
mulss xmm0, dword [esi + 0x18]
addss xmm0, xmm2
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [ebp - 8], xmm1
jne 0x40e8ba
cmp byte [edi + 0x149], 0
je 0x40e8ba
cmp byte [esi + 0x1ba5], 0
je 0x40e8ba
mov eax, dword [esi + 0x1bb4]
test eax, eax
je 0x40e850
cmp eax, 1
jne 0x40e878
movss xmm0, dword [0x45b844]
jmp 0x40e858
movss xmm0, dword [0x45b8a4]
mulss xmm0, xmm1
mov dword [edi + 0x68], 0
addss xmm0, dword [edi + 0x50]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x60], xmm0
mov eax, dword [esi + 0x1bb4]
cmp eax, 2
je 0x40e892
cmp eax, 3
jne 0x40e8ba
movss xmm0, dword [0x45b844]
jmp 0x40e89a
movss xmm0, dword [0x45b8a4]
mulss xmm0, xmm1
mov dword [edi + 0x6c], 0
addss xmm0, dword [edi + 0x54]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x64], xmm0
sub esp, 8
lea eax, [ebp - 0x18]
mov dword [esp + 4], 0x41200000
mov dword [esp], 0x3dcccccd
push 0
push 4
push eax
call fcn.0040a7d0
movss xmm0, dword [ebp - 0x18]
add esp, 0x14
movss xmm2, dword [ebp - 8]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40e91f
cmp byte [edi + 0x78], 0
je 0x40e91f
mulss xmm0, xmm2
mov dword [edi + 0x68], 0
addss xmm0, dword [edi + 0x50]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x60], xmm0
mov byte [esi + 0x1ba4], 1
movss xmm0, dword [ebp - 0x14]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x40e954
mulss xmm0, xmm2
mov dword [edi + 0x6c], 0
addss xmm0, dword [edi + 0x54]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x64], xmm0
mov byte [esi + 0x1ba4], 1
movss xmm2, dword [0x45b81c]
mov dword [esi + 0x1bc0], 0
mov dword [esi + 0x1bc8], 0
mov dword [esi + 0x1bc4], 0
mov dword [esi + 0x1bd4], 0x7f7fffff
mov dword [esi + 0x1bd0], 0x7f7fffff
mov dword [esi + 0x1bcc], 0x7f7fffff
mov dword [esi + 0x1bd8], 0
mov dword [esi + 0x1bdc], 0
mov dword [esi + 0x1be0], 0
mov dword [esi + 0x1be4], 0
mov dword [esi + 0x1be8], 0
mov dword [esi + 0x1bf0], 0
mov dword [esi + 0x1bec], 0
mov dword [esi + 0x1bfc], 0x7f7fffff
mov dword [esi + 0x1bf8], 0x7f7fffff
mov dword [esi + 0x1bf4], 0x7f7fffff
mov dword [esi + 0x1c00], 0
mov dword [esi + 0x1c04], 0
mov dword [esi + 0x1c08], 0
mov dword [esi + 0x1c0c], 0
mov dword [esi + 0x1c10], 0
mov dword [esi + 0x1c18], 0
mov dword [esi + 0x1c14], 0
mov dword [esi + 0x1c24], 0x7f7fffff
mov dword [esi + 0x1c20], 0x7f7fffff
mov dword [esi + 0x1c1c], 0x7f7fffff
mov dword [esi + 0x1c28], 0
mov dword [esi + 0x1c2c], 0
mov dword [esi + 0x1c30], 0
mov dword [esi + 0x1c34], 0
cmp byte [esi + 0x1ba5], 0
je 0x40ebf4
cmp byte [esi + 0x1ba4], 0
je 0x40ebf4
mov edx, dword [esi + 0x1b80]
test edx, edx
jne 0x40ebf4
mov ecx, dword [esi + 0x1b38]
movss xmm3, dword [0x45b844]
movss xmm7, dword [ecx + 0x1fc]
subss xmm7, dword [ecx + 0xc]
movss xmm4, dword [ecx + 0x204]
movss xmm5, dword [ecx + 0x208]
movss xmm6, dword [ecx + 0x200]
subss xmm4, dword [ecx + 0xc]
subss xmm5, dword [ecx + 0x10]
subss xmm6, dword [ecx + 0x10]
movss xmm0, dword [ecx + 0x310]
subss xmm7, xmm3
movss dword [ebp - 8], xmm0
addss xmm4, xmm3
addss xmm5, xmm3
subss xmm6, xmm3
comiss xmm0, xmm7
jb 0x40eb37
movss xmm0, dword [ecx + 0x314]
comiss xmm0, xmm6
jb 0x40eb37
comiss xmm4, dword [ecx + 0x318]
jb 0x40eb37
comiss xmm5, dword [ecx + 0x31c]
jae 0x40ebed
mov eax, dword [0x46ed48]
movss xmm3, dword [eax + 0x18d4]
mov eax, dword [ecx + 0x2f4]
mulss xmm3, dword [ecx + 0x270]
test eax, eax
je 0x40eb5e
mulss xmm3, dword [eax + 0x270]
mulss xmm3, xmm2
lea eax, [edx + 0x31]
add eax, eax
movaps xmm1, xmm4
movaps xmm2, xmm5
subss xmm1, xmm7
subss xmm2, xmm6
movss xmm0, dword [ecx + eax*8 + 4]
minss xmm1, xmm3
minss xmm2, xmm3
movss xmm3, dword [ebp - 8]
xorps xmm1, xmmword [0x45b990]
xorps xmm2, xmmword [0x45b990]
subss xmm7, xmm1
subss xmm6, xmm2
addss xmm4, xmm1
addss xmm5, xmm2
maxss xmm3, xmm7
maxss xmm0, xmm6
movss dword [ecx + eax*8], xmm3
movss dword [ecx + eax*8 + 4], xmm0
movss xmm1, dword [ecx + eax*8 + 8]
movss xmm0, dword [ecx + eax*8 + 0xc]
minss xmm1, xmm4
minss xmm0, xmm5
movss dword [ecx + eax*8 + 8], xmm1
movss dword [ecx + eax*8 + 0xc], xmm0
mov dword [esi + 0x1b40], 0
mov dword [esi + 0x1b3c], 0
mov byte [esi + 0x1ba4], 0
mov ecx, dword [esi + 0x1b38]
test ecx, ecx
je 0x40ec36
mov eax, dword [esi + 0x1b80]
add eax, 0x31
add eax, eax
movss xmm0, dword [ecx + eax*8]
comiss xmm0, dword [ecx + eax*8 + 8]
ja 0x40ec36
movss xmm0, dword [ecx + eax*8 + 4]
comiss xmm0, dword [ecx + eax*8 + 0xc]
ja 0x40ec36
movups xmm0, xmmword [ecx + eax*8]
lea eax, [ebp - 0x20]
movups xmmword [ebp - 0x20], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x20], xmm0
jmp 0x40ec4b
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x20], xmm0
test ecx, ecx
je 0x40ec85
movss xmm2, dword [ecx + 0xc]
movss xmm0, dword [ecx + 0x10]
movaps xmm3, xmm2
addss xmm3, dword [ebp - 0x18]
addss xmm2, dword [ebp - 0x20]
movaps xmm1, xmm0
addss xmm1, dword [ebp - 0x14]
addss xmm0, dword [ebp - 0x1c]
movss dword [ebp - 0x18], xmm3
movss dword [ebp - 0x20], xmm2
movss dword [ebp - 0x14], xmm1
movss dword [ebp - 0x1c], xmm0
jmp 0x40ecac
mov eax, dword [0x46ed48]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movss xmm0, dword [eax + 0x10]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 0x14]
movss dword [ebp - 0x14], xmm0
movss xmm1, dword [ebp - 0xc]
lea eax, [ebp - 0x20]
movups xmm0, xmmword [eax]
pop edi
movups xmmword [esi + 0x1b6c], xmm0
movaps xmm0, xmm1
addss xmm0, dword [esi + 0x1b70]
addss xmm1, dword [esi + 0x1b78]
movss dword [esi + 0x1b70], xmm0
movss dword [esi + 0x1b78], xmm1
movss xmm0, dword [esi + 0x1b6c]
addss xmm0, dword [0x45b844]
mov dword [esi + 0x1b7c], 0
minss xmm0, dword [esi + 0x1b74]
movss dword [esi + 0x1b6c], xmm0
movss dword [esi + 0x1b74], xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret