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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [0x57d070]
xor eax, esp
mov dword [esp + 0x7c], eax
and dword [esp + 4], 0
push esi
push edi
mov edi, ecx
call fcn.004a9a2e
mov eax, dword [eax + 0x20]
mov esi, dword [eax + 0x20]
mov eax, dword [eax + 0x28]
lea eax, [esi + eax*4]
mov dword [esp + 0x2c], eax
jmp 0x4d2321
mov ecx, dword [esi]
cmp byte [ecx + 0x24], 0
je 0x4d231e
push ecx
push 0
call fcn.004a8f9c
mov eax, dword [edi + 0xec]
cmp eax, 2
jne 0x4d2082
mov ecx, edi
call fcn.004d01c0
jmp 0x4d20a9
cmp eax, 1
jne 0x4d2090
mov ecx, edi
call fcn.004d0179
jmp 0x4d20a9
lea eax, [esp + 0x70]
push eax
lea ecx, [edi + 0x28]
call fcn.00455c95
or dword [esp + 0xc], 1
mov ecx, eax
call fcn.0043d20d
mov eax, dword [esp + 0xc]
movsd qword [esp + 0x10], xmm0
test al, 1
je 0x4d20cc
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x78]
and eax, 0xfffffffe
mov dword [esp + 0xc], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, edi
call fcn.004cfb07
test al, al
je 0x4d228e
mov ecx, dword [esi]
lea eax, [esp + 0x20]
push eax
call fcn.004a8daa
mov esi, dword [edi + 0x14]
movsd xmm0, qword [edi + 0x98]
push ecx
push ecx
mov eax, dword [esi]
mov ecx, esi
movsd qword [esp], xmm0
call dword [eax + 0xc4]
mov eax, dword [esi]
movsd xmm0, qword [esp + 0x10]
push ecx
push ecx
fstp qword [esp + 0x20]
mov ecx, esi
movsd qword [esp], xmm0
call dword [eax + 0xc4]
cmp dword [edi + 0x18], 5
movd xmm0, dword [edi + 0xf0]
fsubr qword [esp + 0x18]
cvtdq2pd xmm0, xmm0
fstp qword [esp + 0x18]
mulsd xmm0, qword [esp + 0x18]
cvtpd2ps xmm2, xmm0
jne 0x4d2165
xorps xmm2, xmmword [0x559c00]
addss xmm2, dword [esp + 0x20]
movss xmm0, dword [esp + 0x24]
addss xmm0, dword [0x559510]
movss dword [esp + 0x10], xmm2
jmp 0x4d21b3
cmp dword [edi + 0x18], 6
jne 0x4d218b
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [0x559510]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x24]
addss xmm0, xmm2
jmp 0x4d21b3
movaps xmm1, xmm2
movaps xmm0, xmm2
mulss xmm1, dword [0x5599dc]
mulss xmm0, dword [0x5595f4]
addss xmm1, dword [esp + 0x20]
addss xmm0, dword [esp + 0x24]
movss dword [esp + 0x10], xmm1
lea eax, [esp + 0x40]
movss dword [esp + 8], xmm0
push eax
push 4
lea eax, [esp + 0x58]
push eax
push ecx
mov ecx, dword [edi + 0x14]
lea eax, [esp + 0x70]
push eax
call fcn.004a5614
pop ecx
mov ecx, eax
call fcn.0043491d
mov ecx, eax
call fcn.0048b909
movss xmm1, dword [esp + 8]
movss xmm3, dword [eax + 4]
comiss xmm3, xmm1
movss dword [esp + 0x18], xmm3
ja 0x4d2207
addss xmm3, dword [eax + 0xc]
minss xmm3, xmm1
movss dword [esp + 0x18], xmm3
movss xmm2, dword [eax]
movss xmm1, dword [esp + 0x10]
comiss xmm2, xmm1
movss dword [esp + 8], xmm2
ja 0x4d222b
addss xmm2, dword [eax + 8]
minss xmm2, xmm1
movss dword [esp + 8], xmm2
push ecx
push ecx
mov eax, esp
push 0
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
lea eax, [esp + 0x44]
mov ecx, dword [edi + 0x14]
push eax
call fcn.004a56cc
movss xmm1, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [edi + 0xdc], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0xe0], eax
mov eax, ecx
mov dword [edi + 0xd4], eax
mov eax, dword [edi + 0xe0]
mov dword [edi + 0xd8], eax
movsd xmm0, qword [edi + 0x90]
movsd qword [edi + 0x98], xmm0
movss xmm0, dword [esp + 8]
jmp 0x4d2308
movsd xmm0, qword [esp + 0x10]
movaps xmm1, xmm0
call fcn.004d0697
mov ecx, edi
call fcn.004cfae9
test al, al
je 0x4d22ac
movaps xmm1, xmm0
jmp 0x4d22bf
mov eax, dword [edi + 0x14]
movd xmm1, dword [eax + 0x1c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x5595f4]
mov ecx, edi
call fcn.004cfacc
test al, al
jne 0x4d22dd
mov eax, dword [edi + 0x14]
movd xmm0, dword [eax + 0x18]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x5595f4]
mov ecx, dword [edi + 0x14]
xor edx, edx
push ecx
push ecx
mov eax, esp
push ecx
lea ecx, [esp + 0x3c]
movss dword [eax], xmm0
movss dword [eax + 4], xmm1
call fcn.004eaa69
movss xmm0, dword [esp + 0x3c]
add esp, 0xc
movss xmm1, dword [esp + 0x34]
push ecx
push ecx
mov eax, esp
movss dword [eax], xmm0
movss dword [eax + 4], xmm1
call fcn.004a845e
mov eax, dword [esp + 0x2c]
add esi, 4
mov dword [esp + 0x28], esi
cmp esi, eax
jne 0x4d205a
mov ecx, dword [esp + 0x84]
pop edi
pop esi
xor ecx, esp
call fcn.004f7fa1
mov esp, ebp
pop ebp
ret