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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [0x634254]
xor eax, esp
mov dword [esp + 0x1d8], eax
mov eax, dword [ebp + 0x20]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 0x20]
mov edx, eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x3c], eax
call fcn.004a5975
cmp byte [edi + 0x1d], 0
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jne 0x4a7327
cmp dword [edi + 0x3c], 0
jne 0x4a7327
test byte [ebx + 0x16], 0x80
jne 0x4a7327
imul edi, dword [ebx + 0x18], 0x28
add edi, esi
mov dword [esp + 0x38], edi
jmp 0x4a731f
mov ecx, 0x100
cmp word [esi + 0x10], cx
jne 0x4a731c
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 0x4a7318
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 0x16c]
and ecx, dword [edx + 0x168]
and eax, dword [esp + 0x14]
or ecx, eax
je 0x4a7314
imul eax, dword [edx + 0x18], 0x28
xorps xmm0, xmm0
mov edi, dword [edx + 0x20]
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 + 0x40], xmm2
mov dword [esp + 0x18], eax
movsd qword [esp + 0x48], xmm3
cmp edi, eax
jae 0x4a72ae
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], edx
mov eax, 0x200
cmp word [edi + 0x10], ax
jne 0x4a71e6
mov edx, dword [edi + 0xc]
jmp 0x4a7233
mov eax, dword [esp + 0x3c]
cmp dword [edi + 8], eax
mov eax, dword [esp + 0x18]
jne 0x4a72a3
mov eax, dword [ebx]
lea edx, [esp + 0x78]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x88], ebx
mov byte [esp + 0x8c], 0x45
mov dword [esp + 0x98], edi
mov word [esp + 0x8e], ax
mov dword [esp + 0x90], 1
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 dword [esp + 0x44]
call fcn.004a8394
movsd xmm2, qword [esp + 0x84]
add esp, 0x1c
addsd xmm2, qword [esp + 0x40]
movsd xmm3, qword [esp + 0x58]
addsd xmm3, qword [esp + 0x48]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
or edx, dword [esp + 0x70]
or ecx, dword [esp + 0x74]
comisd xmm2, xmmword [eax + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
movsd qword [esp + 0x40], xmm2
movsd qword [esp + 0x48], xmm3
jae 0x4a72b2
mov eax, dword [esp + 0x18]
add edi, 0x28
cmp edi, eax
jb 0x4a71d6
mov eax, dword [esp + 0x1c]
cmp dword [ebp + 0x1c], 0
je 0x4a72ec
movsd xmm1, qword [0x615628]
comisd xmm3, xmm1
movsd xmm0, qword [0x615600]
jbe 0x4a72e4
mulsd xmm1, qword [0x615628]
addsd xmm0, qword [0x615600]
comisd xmm3, xmm1
ja 0x4a72ce
mulsd xmm0, xmm3
addsd xmm2, xmm0
movsd xmm0, qword [eax + 0x18]
comisd xmm0, xmm2
mov edi, dword [esp + 0x38]
jbe 0x4a7314
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 0x4a714c
mov ecx, dword [esp + 0x1e4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056d855
mov esp, ebp
pop ebp
ret