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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x5e000c]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], eax
cmp dword [edi + 0xac], 0
je 0x4e507e
cmp dword [edi + 0xb0], 0
je 0x4e507e
movss xmm0, dword [edi + 8]
lea eax, [esp + 0x80]
push ecx
movss dword [esp], xmm0
push eax
mov dword [esp + 0xc0], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0xc4], 0x3f800000
mov dword [esp + 0xb0], 0x3f800000
mov dword [esp + 0x9c], 0x3f800000
mov dword [esp + 0x88], 0x3f800000
call dword [0x5a6978]
lea ecx, [esp + 0xc4]
mov dword [esp + 0x108], 0
push ecx
lea esi, [edi + 0x20]
mov dword [esp + 0x108], 0
lea eax, [edi + 0x14]
mov dword [esp + 0x104], 0
push esi
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0xdc]
push eax
mov dword [esp + 0x10c], 0
mov dword [esp + 0x104], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0x11c], 0x3f800000
mov dword [esp + 0x108], 0x3f800000
mov dword [esp + 0xf4], 0x3f800000
mov dword [esp + 0xe0], 0x3f800000
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0x3f800000
mov dword [esp + 0xdc], 0
call dword [0x5a6960]
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x118]
push eax
call dword [0x5a6954]
movaps xmm0, xmmword [esp + 0x110]
lea eax, [esp + 0x74]
movaps xmmword [esp + 0x80], xmm0
movaps xmm0, xmmword [esp + 0x120]
movaps xmmword [esp + 0x90], xmm0
movaps xmm0, xmmword [esp + 0x130]
movaps xmmword [esp + 0xa0], xmm0
movaps xmm0, xmmword [esp + 0x140]
movaps xmmword [esp + 0xb0], xmm0
movss xmm0, dword [esi]
subss xmm0, dword [edi + 0x14]
push eax
push eax
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esi + 4]
subss xmm0, dword [edi + 0x18]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esi + 8]
subss xmm0, dword [edi + 0x1c]
movss dword [esp + 0x84], xmm0
call dword [0x5a6984]
movss xmm0, dword [0x5c8f0c]
call fcn.004d1950
movss xmm1, dword [edi + 0x90]
movaps xmm2, xmm0
mulss xmm2, dword [edi + 0x84]
xorps xmm0, xmm0
xor ecx, ecx
mov eax, dword [esp + 0x18]
mulss xmm1, dword [0x5c8ef4]
mov dword [esp + 0x14], ecx
addss xmm2, xmm0
subss xmm0, dword [eax]
subss xmm1, dword [edi + 0x18]
mov eax, dword [edi + 0xb8]
sub eax, dword [edi + 0xb4]
subss xmm2, dword [edi + 0x1c]
mulss xmm0, dword [esp + 0x74]
sar eax, 2
mulss xmm1, dword [esp + 0x78]
mov dword [esp + 0x1c], eax
mulss xmm2, dword [esp + 0x7c]
addss xmm1, xmm0
addss xmm2, xmm1
andps xmm2, xmmword [0x5c94b0]
movss dword [esp + 0x38], xmm2
test eax, eax
je 0x4e4d35
nop dword [eax]
nop word [eax + eax]
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x34], 0x3f800000
mov esi, dword [eax + ecx*4]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x2c]
push eax
movss xmm0, dword [esi]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esi + 4]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esi + 8]
push eax
movss dword [esp + 0x3c], xmm0
call dword [0x5a6974]
movss xmm4, dword [esi + 0x18]
movss xmm5, dword [esp + 0x28]
movaps xmm0, xmm4
movss xmm3, dword [esp + 0x2c]
movaps xmm1, xmm5
movss xmm2, dword [esp + 0x30]
subss xmm1, xmm4
addss xmm0, xmm3
mov ecx, dword [esp + 0x14]
movss dword [esp + 0x4c], xmm2
inc ecx
mov eax, dword [esp + 0x4c]
movss dword [esp + 0x58], xmm2
movss dword [esp + 0x64], xmm2
unpcklps xmm1, xmm0
movaps xmm0, xmm3
addss xmm0, xmm4
movq qword [esi + 0x40], xmm1
movaps xmm1, xmm5
mov dword [esi + 0x48], eax
addss xmm1, xmm4
mov eax, dword [esp + 0x58]
movss dword [esp + 0x70], xmm2
mov dword [esp + 0x14], ecx
unpcklps xmm1, xmm0
movaps xmm0, xmm3
subss xmm0, xmm4
movq qword [esi + 0x4c], xmm1
subss xmm3, xmm4
movaps xmm1, xmm5
subss xmm1, xmm4
mov dword [esi + 0x54], eax
addss xmm5, xmm4
mov eax, dword [esp + 0x64]
unpcklps xmm1, xmm0
movq qword [esi + 0x58], xmm1
unpcklps xmm5, xmm3
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x70]
movq qword [esi + 0x64], xmm5
mov dword [esi + 0x6c], eax
cmp ecx, dword [esp + 0x1c]
jb 0x4e4c40
mov ecx, dword [0x5e64f8]
lea eax, [esp + 0x20]
mov esi, dword [esp + 0x24]
push 0
push eax
xor eax, eax
mov dword [esp + 0x20], 0x208
mov edx, dword [esi]
test ecx, ecx
sete al
test ecx, ecx
push eax
push 0
mov eax, 8
cmovne eax, dword [esp + 0x28]
push eax
mov eax, dword [edi + 0xb8]
sub eax, dword [edi + 0xb4]
sar eax, 2
lea eax, [eax + eax*2]
shl eax, 4
push eax
push esi
call dword [edx + 0x68]
mov eax, dword [0x5e64f8]
mov ecx, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0x2000
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x40]
push eax
push 0
push 0
push ecx
call dword [edx + 0x2c]
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x1c], ecx
jbe 0x4e4e1c
xor esi, esi
mov eax, dword [edi + 0xb4]
lea esi, [esi + 0x30]
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + ecx*4]
movq xmm0, qword [ecx + 0x40]
movq qword [esi + edx - 0x30], xmm0
mov eax, dword [ecx + 0x48]
mov dword [esi + edx - 0x28], eax
movq xmm0, qword [ecx + 0x4c]
movq qword [esi + edx - 0x24], xmm0
mov eax, dword [ecx + 0x54]
mov dword [esi + edx - 0x1c], eax
movq xmm0, qword [ecx + 0x58]
movq qword [esi + edx - 0x18], xmm0
mov eax, dword [ecx + 0x60]
mov dword [esi + edx - 0x10], eax
movq xmm0, qword [ecx + 0x64]
movq qword [esi + edx - 0xc], xmm0
mov eax, dword [ecx + 0x6c]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esi + edx - 4], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x1c]
jb 0x4e4db1
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esi]
push 0xc
push 0
push dword [esp + 0x28]
push 0
push esi
call dword [eax + 0x190]
mov eax, dword [esi]
push 8
push 0
push dword [edi + 0x7c]
push 1
push esi
call dword [eax + 0x190]
movaps xmm0, xmmword [0x5c9350]
movsx eax, word [edi + 0x80]
movups xmmword [esp + 0x11c], xmm0
mov dword [esp + 0x110], 1
movaps xmm0, xmmword [0x5c9520]
lea eax, [eax + eax*2]
mov dword [esp + 0x114], 0xffffffff
mov dword [esp + 0x118], 0
movups xmmword [esp + 0x12c], xmm0
mov dword [esp + 0x13c], 0
cmp dword [esp + eax*4 + 0x110], 0xffffffff
mov dword [esp + 0x14], 0
je 0x4e5070
mov eax, dword [edi + 0xac]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xfc]
movsx ecx, word [edi + 0x80]
mov eax, dword [esp + 0x14]
mov edx, dword [edi + 0xac]
lea eax, [eax + ecx*2]
mov esi, dword [edx]
add eax, ecx
push dword [esp + eax*4 + 0x110]
push edx
call dword [esi + 0x100]
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], eax
jbe 0x4e502f
mov esi, dword [edi + 0xac]
nop dword [eax]
nop dword [eax + eax]
lea ecx, [eax*4]
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x40], ecx
mov eax, dword [ecx + eax]
mov ecx, dword [ebp + 0x20]
movss xmm0, dword [eax + 0x40]
movss xmm1, dword [eax + 0x44]
subss xmm1, dword [edi + 0x18]
subss xmm0, dword [edi + 0x14]
mulss xmm1, dword [esp + 0x78]
mulss xmm0, dword [esp + 0x74]
addss xmm1, xmm0
movss xmm0, dword [eax + 0x48]
subss xmm0, dword [edi + 0x1c]
mulss xmm0, dword [esp + 0x7c]
addss xmm1, xmm0
andps xmm1, xmmword [0x5c94b0]
cmp ecx, 1
jne 0x4e4f7e
movss xmm0, dword [esp + 0x38]
mov ecx, esi
comiss xmm0, xmm1
ja 0x4e501a
jmp 0x4e4f90
cmp ecx, 2
jne 0x4e4f90
comiss xmm1, dword [esp + 0x38]
mov ecx, esi
jae 0x4e501a
movss xmm0, dword [eax + 0x20]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 0x24]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [eax + 0x28]
movss dword [esp + 0x30], xmm0
movsd xmm0, qword [eax + 0x38]
subsd xmm0, qword [eax + 0x30]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x5c9190]
cvtps2pd xmm0, xmm0
divsd xmm0, qword [eax + 0x38]
call fcn.00582c53
mov eax, dword [esi]
lea ecx, [esp + 0x28]
cvtsd2ss xmm0, xmm0
push ecx
push str.g_Color
push esi
mulss xmm0, dword [edi + 0x10]
movss dword [esp + 0x40], xmm0
call dword [eax + 0x88]
mov eax, dword [esi]
push esi
call dword [eax + 0x104]
mov ecx, dword [esp + 0x24]
push 2
push dword [esp + 0x44]
mov eax, dword [ecx]
push 5
push ecx
call dword [eax + 0x144]
mov ecx, dword [edi + 0xac]
mov eax, dword [esp + 0x18]
mov esi, ecx
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jb 0x4e4f10
mov eax, dword [edi + 0xac]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x108]
mov eax, dword [edi + 0xac]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10c]
mov eax, dword [esp + 0x14]
movsx ecx, word [edi + 0x80]
inc eax
mov dword [esp + 0x14], eax
lea eax, [eax + ecx*2]
add eax, ecx
cmp dword [esp + eax*4 + 0x110], 0xffffffff
jne 0x4e4eb5
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4e507e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
call fcn.0052f4c5
mov esp, ebp
pop ebp
ret 0x1c