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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [esp + 0x34], ebx
movd xmm1, dword [esi + 8]
cvtdq2pd xmm1, xmm1
movaps xmm0, xmm1
mulsd xmm0, qword [0x4a7b70]
mulsd xmm0, xmm1
call fcn.00484760
movss xmm2, dword [esi + 0x7c]
xorps xmm3, xmm3
movss xmm1, dword [esi + 0x84]
cvtsd2ss xmm3, xmm0
movss xmm0, dword [esi + 0x80]
comiss xmm0, xmm2
movss dword [esp + 0x24], xmm3
jbe 0x40e216
comiss xmm1, xmm0
ja 0x40e222
movaps xmm0, xmm1
maxss xmm0, xmm2
jmp 0x40e222
comiss xmm0, xmm1
ja 0x40e222
movaps xmm0, xmm1
minss xmm0, xmm2
movss xmm1, dword [esi + 0x78]
comiss xmm1, xmm0
jbe 0x40e234
movss dword [esi + 0x78], xmm0
movaps xmm1, xmm0
cvtps2pd xmm0, xmm1
comisd xmm0, xmmword [0x4a7910]
jbe 0x40e249
movss xmm1, dword [0x4a77a8]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x48]
sub eax, ecx
shl eax, 2
push eax
mulss xmm1, xmm3
lea eax, [edx + ecx*4]
push eax
push edx
movss dword [esp + 0x1c], xmm1
call fcn.004674e0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x50]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push eax
push edx
call fcn.004674e0
mov ecx, dword [ebp + 8]
add esp, 0x18
mov edx, dword [esi + 0x1c]
mov eax, ecx
neg eax
shl edx, 2
and eax, 3
add eax, edx
add ecx, eax
lea eax, [ecx + 4]
sub eax, edx
sub eax, 4
mov dword [esp + 0x14], eax
lea eax, [ecx + 4]
neg eax
add ecx, 8
and eax, 3
add eax, edx
add eax, ecx
mov ecx, eax
mov edi, eax
sub ecx, edx
neg edi
sub ecx, 4
and edi, 3
mov dword [esp + 0x18], ecx
add edi, eax
xor ecx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
cmp dword [esi + 0x14], ecx
jle 0x40e584
movss xmm3, dword [0x4a77b4]
movss xmm1, dword [0x4a7744]
movaps xmm0, xmm3
subss xmm0, dword [esp + 0x10]
movss xmm6, dword [0x4a7790]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
nop dword [eax + eax]
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x54]
imul eax, ecx
mov ecx, dword [esi + 0x4c]
shl eax, 2
add ecx, eax
add ebx, eax
cmp dword [esi + 0x94], 0
mov dword [esp + 0xc], ecx
je 0x40e3b8
mov ecx, dword [esi + 0x90]
mov eax, dword [esi + 0x8c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x40e353
movss xmm4, dword [eax + 0x30]
movss xmm5, dword [eax + 0x34]
jmp 0x40e359
movaps xmm5, xmm1
movaps xmm4, xmm1
movaps xmm0, xmm4
mov edx, dword [esp + 0x14]
mulss xmm0, xmm6
movaps xmm2, xmm3
mov ecx, dword [esi + 0x68]
movaps xmm1, xmm3
push dword [esi + 0x1c]
subss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm6
subss xmm1, xmm0
movaps xmm0, xmm4
divss xmm2, xmm1
subss xmm3, xmm2
divss xmm3, xmm6
call fcn.004198c0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x68]
push dword [esi + 0x1c]
movaps xmm0, xmm5
call fcn.004198c0
push dword [esi + 0x1c]
mov ecx, dword [esi + 0x68]
mov edx, edi
movaps xmm0, xmm3
call fcn.004198c0
add esp, 0xc
mov ecx, dword [esi + 0xc]
xor eax, eax
xorps xmm1, xmm1
test ecx, ecx
jle 0x40e3e2
mov edx, dword [esi + 0x58]
nop word [eax + eax]
movss xmm0, dword [edx + eax*4]
inc eax
mulss xmm0, xmm0
addss xmm1, xmm0
cmp eax, ecx
jl 0x40e3d0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x40e3ff
sqrtsd xmm0, xmm0
jmp 0x40e404
call fcn.00485ad0
mov edx, dword [esi + 0x10]
xor edi, edi
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x28], xmm0
test edx, edx
jle 0x40e4ba
movsd xmm0, qword [esp + 0x38]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x40e430
sqrtsd xmm0, xmm0
jmp 0x40e435
call fcn.00485ad0
movss xmm1, dword [esp + 0x24]
cvtps2pd xmm1, xmm1
mulsd xmm0, xmm1
movsd qword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x28]
mulss xmm0, dword [0x4a79f0]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
nop
call fcn.0046fd60
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
mov eax, edi
sub eax, dword [esi + 0x74]
divss xmm0, dword [0x4a7ae8]
cvtps2pd xmm0, xmm0
subsd xmm0, qword [0x4a78b8]
mulsd xmm0, qword [esp + 0x28]
cvtpd2ps xmm2, xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [ebx + eax*4]
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm2
mulsd xmm0, qword [esp + 0x40]
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [ebx + edi*4], xmm0
inc edi
mov edx, dword [esi + 0x10]
cmp edi, edx
jl 0x40e460
xor edi, edi
test edx, edx
jle 0x40e4d7
mov ecx, dword [esp + 0xc]
sub ebx, ecx
mov eax, dword [ecx + ebx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc edi
mov edx, dword [esi + 0x10]
cmp edi, edx
jl 0x40e4c6
cmp dword [esi + 0x94], 0
mov ecx, dword [esi + 0x1c]
je 0x40e51f
mov eax, dword [esi + 0x6c]
mov ebx, dword [esp + 0xc]
lea eax, [eax + ecx*4]
push eax
push ecx
push edx
mov edx, dword [esp + 0x24]
mov ecx, ebx
push ebx
push dword [esp + 0x24]
call fcn.00419990
push dword [esi + 0x6c]
mov edi, dword [esp + 0x34]
mov ecx, ebx
push dword [esi + 0x1c]
mov edx, edi
push dword [esi + 0x10]
push ebx
push dword [esi + 0x68]
call fcn.00419990
add esp, 0x28
jmp 0x40e556
xor edx, edx
test ecx, ecx
jle 0x40e539
mov eax, dword [esi + 0x6c]
add ecx, edx
inc edx
mov dword [eax + ecx*4], 0
mov ecx, dword [esi + 0x1c]
cmp edx, ecx
jl 0x40e525
push dword [esi + 0x6c]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x68]
push ecx
push dword [esi + 0x10]
mov ecx, eax
push eax
call fcn.00419b40
mov edi, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x20]
movss xmm1, dword [0x4a7744]
inc ecx
movss xmm3, dword [0x4a77b4]
movss xmm6, dword [0x4a7790]
mov dword [esp + 0x20], ecx
cmp ecx, dword [esi + 0x14]
jl 0x40e310
mov ebx, dword [esp + 0x34]
movss xmm0, dword [esi + 0x3c]
mov ecx, 1
mov eax, dword [esi + 0x4c]
mulss xmm0, dword [esi + 0x40]
addss xmm0, dword [eax]
movss dword [ebx], xmm0
mov eax, dword [esi + 0xc]
cmp eax, ecx
jle 0x40e5d0
nop word [eax + eax]
movss xmm0, dword [ebx + ecx*4 - 4]
mov eax, dword [esi + 0x4c]
mulss xmm0, dword [esi + 0x3c]
addss xmm0, dword [eax + ecx*4]
movss dword [ebx + ecx*4], xmm0
inc ecx
mov eax, dword [esi + 0xc]
cmp ecx, eax
jl 0x40e5b0
mov eax, dword [ebx + eax*4 - 4]
inc dword [esi + 8]
movss xmm0, dword [esp + 0x10]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x88]
mov dword [esi + 4], 0
movss dword [esi + eax*4 + 0x7c], xmm0
inc dword [esi + 0x88]
cmp dword [esi + 0x88], 2
jle 0x40e60c
mov dword [esi + 0x88], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret