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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x18]
mov edx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edi
mov ecx, dword [edi + 4]
mov dword [esp + 0x3c], eax
call fcn.004e41ce
mov esi, dword [edi + 0x1c]
imul edi, dword [edi + 0x14], 0x28
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
add edi, esi
cmp byte [ebx + 0x16], 0
mov dword [esp + 0x34], edi
jne 0x4e55c6
cmp dword [ebx + 0x34], 0
jne 0x4e55c6
jmp 0x4e55be
mov ecx, 0x100
cmp word [esi + 0x10], cx
jne 0x4e55bb
mov ecx, eax
mov eax, edx
not ecx
not eax
and ecx, dword [esi + 0x20]
and eax, dword [esi + 0x24]
and ecx, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x4e55b7
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + 0x160]
mov eax, dword [edx + 0x164]
and ecx, dword [esp + 0x10]
and eax, dword [esp + 0x14]
or ecx, eax
je 0x4e55b3
imul eax, dword [edx + 0x14], 0x28
xorps xmm0, xmm0
mov edi, dword [edx + 0x1c]
xorps xmm2, xmm2
movlpd qword [esp + 0x20], xmm0
xorps xmm3, xmm3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add eax, edi
movsd qword [esp + 0x48], xmm2
mov dword [esp + 0x18], eax
movsd qword [esp + 0x40], xmm3
cmp edi, eax
jae 0x4e554d
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov eax, 0x200
cmp word [edi + 0x10], ax
jne 0x4e548d
mov edx, dword [edi + 0xc]
jmp 0x4e54cd
mov eax, dword [esp + 0x3c]
cmp dword [edi + 8], eax
mov eax, dword [esp + 0x18]
jne 0x4e5542
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x78]
mov byte [esp + 0x88], 0x45
mov dword [esp + 0x94], edi
mov dword [esp + 0x8c], 1
mov eax, dword [ecx]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x50]
push eax
push ecx
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x3c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004e657b
movsd xmm0, qword [esp + 0x84]
add esp, 0x1c
addsd xmm0, qword [esp + 0x48]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
or edx, dword [esp + 0x70]
or ecx, dword [esp + 0x74]
movapd xmm2, xmm0
comisd xmm2, xmmword [eax + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ecx
movsd xmm0, qword [esp + 0x58]
addsd xmm0, qword [esp + 0x40]
movsd qword [esp + 0x48], xmm2
movapd xmm3, xmm0
movsd qword [esp + 0x40], xmm3
jae 0x4e5551
mov eax, dword [esp + 0x18]
add edi, 0x28
cmp edi, eax
jb 0x4e547d
mov eax, dword [esp + 0x1c]
cmp dword [ebp + 0x1c], 0
je 0x4e558b
movsd xmm1, qword [0x58f598]
comisd xmm3, xmm1
movsd xmm0, qword [0x58f570]
jbe 0x4e5583
mulsd xmm1, qword [0x58f598]
addsd xmm0, qword [0x58f570]
comisd xmm3, xmm1
ja 0x4e556d
mulsd xmm0, xmm3
addsd xmm2, xmm0
movsd xmm0, qword [eax + 0x18]
comisd xmm0, xmm2
mov edi, dword [esp + 0x34]
jbe 0x4e55b3
movsd qword [eax + 0x18], xmm2
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
movsd qword [eax + 8], xmm3
mov dword [eax], 0x10000000
mov dword [eax + 0x10], esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add esi, 0x28
cmp esi, edi
jb 0x4e53f3
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret