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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x5415b0]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, edx
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 0x18]
mov edx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], edi
mov ecx, dword [edi + 4]
mov dword [esp + 0x3c], eax
call fcn.004a4064
mov esi, dword [edi + 0x1c]
imul edi, dword [edi + 0x14], 0x28
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
add edi, esi
mov dword [esp + 0x1c], edi
jmp 0x4a5467
mov ecx, 0x100
cmp word [esi + 0x10], cx
jne 0x4a5464
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 0x4a5460
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 0x4a545c
imul eax, dword [edx + 0x14], 0x28
xorps xmm0, xmm0
mov edi, dword [edx + 0x1c]
xorps xmm2, xmm2
movlpd qword [esp + 0x30], xmm0
xorps xmm3, xmm3
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add eax, edi
movsd qword [esp + 0x48], xmm2
mov dword [esp + 0x18], eax
movsd qword [esp + 0x40], xmm3
cmp edi, eax
jae 0x4a53f0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov eax, 0x200
cmp word [edi + 0x10], ax
jne 0x4a533a
mov edx, dword [edi + 0xc]
jmp 0x4a537a
mov eax, dword [esp + 0x3c]
cmp dword [edi + 8], eax
mov eax, dword [esp + 0x18]
jne 0x4a53e5
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 + 0x10]
mov ecx, dword [esp + 0x34]
push dword [ebp + 0xc]
push dword [esp + 0x3c]
call fcn.004a5da5
movsd xmm0, qword [esp + 0x74]
add esp, 0x14
addsd xmm0, qword [esp + 0x48]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
or edx, dword [esp + 0x70]
or ecx, dword [esp + 0x74]
movapd xmm2, xmm0
mov dword [esp + 0x24], edx
comisd xmm2, xmmword [ebx + 0x10]
mov dword [esp + 0x20], ecx
movsd xmm0, qword [esp + 0x68]
addsd xmm0, qword [esp + 0x40]
movsd qword [esp + 0x48], xmm2
movapd xmm3, xmm0
movsd qword [esp + 0x40], xmm3
jae 0x4a53f0
mov eax, dword [esp + 0x18]
add edi, 0x28
cmp edi, eax
jb 0x4a532a
cmp dword [ebp + 0x14], 0
je 0x4a542a
movsd xmm1, qword [0x52c048]
comisd xmm3, xmm1
movsd xmm0, qword [0x52c020]
jbe 0x4a5422
mulsd xmm1, qword [0x52c048]
addsd xmm0, qword [0x52c020]
comisd xmm3, xmm1
ja 0x4a540c
mulsd xmm0, xmm3
addsd xmm2, xmm0
movsd xmm0, qword [ebx + 0x10]
comisd xmm0, xmm2
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
jbe 0x4a5456
movsd qword [ebx + 0x10], xmm2
movsd qword [ebx + 0x18], xmm3
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], ecx
mov dword [ebx], 0x10000000
mov dword [ebx + 8], esi
mov edx, dword [esp + 0x14]
jmp 0x4a5464
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add esi, 0x28
cmp esi, edi
jb 0x4a52a0
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret