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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x47d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x48536c]
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
cmp byte [edi + 0x7d], 0
movss xmm1, dword [edi + 0x3c]
movss xmm0, dword [edi + 0x40]
mov ebx, dword [edi + 8]
mov byte [edi + 0x7f], 0
movss dword [ebp - 0x10], xmm1
movss dword [ebp - 0x28], xmm0
je 0x40eac4
cmp byte [ebp + 8], 0
movss xmm1, dword [esi + 0x1564]
movss dword [ebp - 8], xmm1
movss dword [esi + 0x1564], xmm0
je 0x40ea78
cmp byte [esi + 0x1bf2], 0
mov ecx, 0xb
je 0x40ea7d
mov ecx, 0xc
push dword [edx + 0xc]
movss xmm1, dword [0x475a9c]
push dword [edx + 8]
push dword [edx + 4]
push dword [edx]
call fcn.00408200
movss xmm2, dword [ebp - 0x10]
mov dl, 1
mov ecx, eax
call fcn.00408d40
movss xmm0, dword [ebp - 8]
add esp, 0x10
movss dword [esi + 0x1564], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044096c
mov esp, ebp
pop ebp
ret
movss xmm7, dword [0x475a9c]
test bl, bl
js 0x40ec0a
test ebx, 0x6000000
je 0x40eae3
mov ecx, 4
jmp 0x40eaf4
mov ecx, ebx
and ecx, 0x1000000
or ecx, 0x2000000
shr ecx, 0x18
movaps xmm1, xmm7
call fcn.00408200
test byte [esi + 0x1af0], 0x40
mov edx, eax
xorps xmm2, xmm2
je 0x40eb42
movss xmm1, dword [esi + 0x1b44]
comiss xmm2, xmm1
jbe 0x40eb1c
xorps xmm0, xmm0
jmp 0x40eb23
movaps xmm0, xmm7
minss xmm0, xmm1
mulss xmm0, dword [0x475b7c]
and edx, 0xffffff
addss xmm0, dword [0x475a68]
cvttss2si eax, xmm0
shl eax, 0x18
or edx, eax
movss xmm3, dword [edi + 0xc]
mov ecx, ebx
movss xmm4, dword [edi + 0x10]
movaps xmm0, xmm3
addss xmm0, dword [edi + 0x14]
and ecx, 1
mov dword [ebp - 0xc], ecx
movss dword [ebp - 0x24], xmm0
movaps xmm0, xmm4
addss xmm0, dword [edi + 0x18]
movss dword [ebp - 0x20], xmm0
je 0x40eb75
xorps xmm0, xmm0
jmp 0x40ebb1
mov eax, dword [0x48536c]
movss xmm1, dword [eax + 0x1930]
mov eax, dword [edi + 0x330]
mulss xmm1, dword [edi + 0x288]
test eax, eax
je 0x40eb9c
mulss xmm1, dword [eax + 0x288]
mov eax, dword [0x48536c]
movss xmm0, dword [eax + 0x155c]
addss xmm0, xmm0
addss xmm0, xmm1
movss xmm1, dword [ebp - 0x10]
addss xmm3, xmm2
test ecx, ecx
mov dword [ebp - 8], 0xf
mov eax, 0xc
addss xmm0, xmm4
cmovne eax, dword [ebp - 8]
push eax
push ecx
mov ecx, dword [edi + 0x290]
lea eax, [ebp - 0x24]
movss dword [esp], xmm1
push edx
push eax
lea eax, [ebp - 0x1c]
movss dword [ebp - 0x1c], xmm3
push eax
movss dword [ebp - 0x18], xmm0
call fcn.004223f0
movss xmm7, dword [0x475a9c]
movss xmm1, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
jmp 0x40ec12
mov eax, ebx
and eax, 1
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40ec3e
push 3
push ecx
movzx ecx, byte [ebp + 8]
movss dword [esp], xmm1
add ecx, 0xa
movaps xmm1, xmm7
call fcn.00408200
mov ecx, dword [edi + 0x290]
push eax
lea eax, [edx + 8]
push eax
push edx
call fcn.004223f0
test ebx, 0x400
je 0x40ed80
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.004073d0
cmp dword [ebp - 0xc], 0
xorps xmm2, xmm2
movss xmm0, dword [edi + 0xc]
movss xmm1, dword [edi + 0x10]
movss xmm7, dword [ebp - 0x38]
movss xmm6, dword [ebp - 0x34]
maxss xmm7, xmm0
addss xmm0, dword [edi + 0x14]
movss xmm5, dword [ebp - 0x30]
maxss xmm6, xmm1
addss xmm1, dword [edi + 0x18]
movss xmm3, dword [ebp - 0x2c]
movss dword [ebp - 0x14], xmm7
minss xmm5, xmm0
minss xmm3, xmm1
movss dword [ebp - 0x30], xmm5
movss dword [ebp - 8], xmm3
movss dword [ebp - 0x2c], xmm3
je 0x40ecb1
movss xmm4, dword [ebp - 0x10]
jmp 0x40ecb4
xorps xmm4, xmm4
subss xmm5, dword [ebp - 0x28]
movss xmm1, dword [0x475a9c]
addss xmm6, xmm2
movaps xmm0, xmm7
addss xmm0, dword [ebp - 0x28]
push 3
push ecx
mov ecx, 0xd
movss dword [ebp - 0x18], xmm6
movss dword [ebp - 0x24], xmm5
movss dword [ebp - 0x1c], xmm0
movaps xmm0, xmm3
subss xmm0, xmm2
movss dword [esp], xmm4
movss dword [ebp - 0x20], xmm0
call fcn.00408200
mov ecx, dword [edi + 0x290]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004223f0
movss xmm2, dword [esi + 0x1564]
comiss xmm2, dword [0x475a28]
jbe 0x40ed80
movss xmm0, dword [edi + 0x18]
addss xmm0, dword [edi + 0x10]
movss xmm1, dword [ebp - 8]
comiss xmm0, xmm1
jbe 0x40ed80
mov ecx, dword [ebp - 0x2c]
sub esp, 8
movss xmm0, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
movss dword [ebp - 0x18], xmm1
movss xmm1, dword [0x475a9c]
mov dword [ebp - 0x20], ecx
mov ecx, 5
movss dword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], eax
movss dword [esp + 4], xmm2
call fcn.00408200
mov ecx, dword [edi + 0x290]
add esp, 4
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004221f0
cmp byte [edi + 0x78], 0
je 0x40ee64
mov esi, dword [0x48536c]
xor edx, edx
mov eax, dword [esi + 0x1a68]
mov dword [ebp - 8], eax
mov ecx, dword [eax + 0xbc]
mov eax, dword [eax + 0xc4]
push dword [eax + ecx*4 - 4]
mov ecx, str.SCROLLX
call fcn.00407b70
mov edx, eax
add esp, 4
cmp dword [esi + 0x1aa0], edx
jne 0x40edc8
mov dword [esi + 0x1aa4], edx
cmp dword [esi + 0x1adc], edx
jne 0x40edd7
mov byte [esi + 0x1ae0], 1
mov ecx, dword [ebp - 8]
xor eax, eax
movss xmm2, dword [ecx + 0x10]
cmp byte [ecx + 0x79], al
movaps xmm3, xmm2
addss xmm3, dword [ecx + 0x18]
movups xmm1, xmmword [ecx + 0x1fc]
sete al
movss dword [ebp - 0x38], xmm1
movaps xmm0, xmm3
shufps xmm1, xmm1, 0xaa
subss xmm0, dword [ecx + 0x40]
lea eax, [eax*8 + 4]
movss dword [ebp - 0x30], xmm1
push eax
sub esp, 8
movss dword [ebp - 0x2c], xmm3
lea eax, [ecx + 0x50]
subss xmm0, dword [ecx + 0x74]
maxss xmm2, xmm0
movss xmm0, dword [ecx + 0x34]
addss xmm0, xmm0
movss dword [ebp - 0x34], xmm2
addss xmm0, dword [ecx + 0x24]
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + 0x204]
subss xmm0, dword [ecx + 0x1fc]
lea ecx, [ebp - 0x38]
movss dword [esp], xmm0
push eax
push 0
call fcn.00429860
add esp, 0x14
cmp byte [edi + 0x79], 0
je 0x40ee74
mov ecx, 1
call fcn.004296f0
test bl, 2
jne 0x40f080
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], eax
jle 0x40f080
movss xmm4, dword [ebp - 0x28]
mov ebx, 0x480290
movaps xmm0, xmm4
mov dword [ebp - 0x3c], ebx
addss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x44], xmm0
nop word [eax + eax]
movss xmm0, dword [edi + 0xc]
and eax, 1
movss xmm1, dword [edi + 0x10]
movaps xmm2, xmm0
addss xmm2, dword [edi + 0x14]
mov dword [ebp - 0x40], eax
subss xmm2, xmm0
mulss xmm2, dword [ebx - 8]
addss xmm2, xmm0
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x18]
movss dword [ebp - 0x14], xmm2
subss xmm0, xmm1
mulss xmm0, dword [ebx - 4]
addss xmm0, xmm1
movss dword [ebp - 8], xmm0
je 0x40ef00
movss xmm3, dword [ebp + 0x14]
movaps xmm1, xmm4
jmp 0x40ef08
movss xmm1, dword [ebp + 0x14]
movaps xmm3, xmm4
mulss xmm1, dword [ebx]
mulss xmm3, dword [ebx + 4]
mov ebx, dword [edi + 0x290]
addss xmm1, xmm2
addss xmm3, xmm0
mov ecx, dword [ebx + 0x54]
mov esi, dword [ebx + 0x58]
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x18], xmm3
cmp ecx, esi
jne 0x40ef65
inc ecx
test esi, esi
je 0x40ef43
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x40ef48
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x54]
call fcn.00417a30
movss xmm2, dword [ebp - 0x14]
movss xmm0, dword [ebp - 8]
movss xmm4, dword [ebp - 0x28]
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
inc dword [ebx + 0x54]
cmp dword [ebp - 0x40], 0
je 0x40ef8b
movss xmm1, dword [ebp + 0x14]
movaps xmm3, xmm4
jmp 0x40ef93
movss xmm3, dword [ebp + 0x14]
movaps xmm1, xmm4
mov eax, dword [ebp - 0x3c]
mov ebx, dword [edi + 0x290]
mulss xmm1, dword [eax]
mov ecx, dword [ebx + 0x54]
mulss xmm3, dword [eax + 4]
mov esi, dword [ebx + 0x58]
addss xmm1, xmm2
addss xmm3, xmm0
movss dword [ebp - 0x24], xmm1
movss dword [ebp - 0x20], xmm3
cmp ecx, esi
jne 0x40efe9
inc ecx
test esi, esi
je 0x40efd1
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x40efd6
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [ebx + 0x54]
call fcn.00417a30
movss xmm2, dword [ebp - 0x14]
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
movss xmm0, dword [ebp - 0x44]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
lea eax, [ebp - 0x30]
inc dword [ebx + 0x54]
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [edi + 0x290]
mulss xmm0, dword [ebx]
push dword [ebx + 0xc]
push dword [ebx + 8]
addss xmm0, xmm2
movss xmm2, dword [ebp - 0x10]
push eax
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x44]
mulss xmm0, dword [ebx + 4]
addss xmm0, dword [ebp - 8]
movss dword [ebp - 0x2c], xmm0
call fcn.00421c10
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [edi + 0x290]
push dword [ecx + eax*4]
mov ecx, esi
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.00421840
mov eax, dword [ebp - 0xc]
add ebx, 0x18
movss xmm4, dword [ebp - 0x28]
inc eax
mov dword [esi + 0x54], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], ebx
cmp eax, dword [ebp + 0xc]
jl 0x40eeb0
mov ecx, edi
call fcn.0040e710
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044096c
mov esp, ebp
pop ebp
ret