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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x5475b0]
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.004a8256
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 0x4a9659
mov ecx, 0x100
cmp word [esi + 0x10], cx
jne 0x4a9656
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 0x4a9652
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 0x4a964e
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 0x4a95e2
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov eax, 0x200
cmp word [edi + 0x10], ax
jne 0x4a952c
mov edx, dword [edi + 0xc]
jmp 0x4a956c
mov eax, dword [esp + 0x3c]
cmp dword [edi + 8], eax
mov eax, dword [esp + 0x18]
jne 0x4a95d7
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.004a9f97
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 0x4a95e2
mov eax, dword [esp + 0x18]
add edi, 0x28
cmp edi, eax
jb 0x4a951c
cmp dword [ebp + 0x14], 0
je 0x4a961c
movsd xmm1, qword [0x530b40]
comisd xmm3, xmm1
movsd xmm0, qword [0x530b18]
jbe 0x4a9614
mulsd xmm1, qword [0x530b40]
addsd xmm0, qword [0x530b18]
comisd xmm3, xmm1
ja 0x4a95fe
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 0x4a9648
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 0x4a9656
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add esi, 0x28
cmp esi, edi
jb 0x4a9492
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d9731
mov esp, ebp
pop ebp
ret