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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x78]
mov dword [esp + 0x4c], esi
call fcn.0064dc20
lea ecx, [esp + 0x90]
call fcn.0064dc20
mov ecx, dword [esi + 0xd4]
mov edi, 1
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edi
jle 0x4fa95e
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x1c], 0x18
mov eax, dword [esi + 0xd0]
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov edx, dword [eax - 0x18]
mov ecx, dword [eax - 0x14]
mov dword [esp + 0x50], edx
mov edx, dword [eax - 0x10]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax - 0xc]
mov dword [esp + 0x40], edx
mov edx, dword [eax]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x58]
lea edx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.004fa2c0
test eax, eax
je 0x4fa93e
mov edx, dword [esi + 0xe4]
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [edx + edi*8 + 4]
lea eax, [edx + edi*8]
lea edx, [esp + 0x74]
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [eax - 4]
push edx
mov edx, dword [eax - 8]
push ecx
push edx
sub esp, 0x18
lea eax, [esp + 0xa8]
mov ecx, esp
push eax
call fcn.0064dc70
mov ecx, esi
call fcn.004f84c0
sub esp, 0x18
lea edx, [esp + 0x90]
mov ecx, esp
push edx
fstp st(0)
call fcn.0064dc70
mov ecx, dword [ebp + 0x14]
call fcn.00472bf0
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], ecx
mov esi, dword [edi + 8]
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x6c], eax
lea edx, [esi + 1]
push edx
call fcn.00473440
mov eax, dword [edi + 4]
xor edi, edi
fld qword [esp + 0x68]
fstp qword [eax + esi*8]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx + 8]
mov esi, ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x20], esi
inc esi
cmp esi, edi
jne 0x4fa801
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x4fa7f6
push eax
mov dword [esp + 0x1c], ecx
call fcn.0065e732
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x4fa924
mov edx, dword [ebx + 4]
cmp edx, edi
jne 0x4fa83c
lea edi, [esi*8]
push edi
call fcn.0065e5d0
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x4fa924
mov edi, dword [ebx + 0xc]
cmp esi, edi
jg 0x4fa87d
cmp ecx, esi
jge 0x4fa86d
mov eax, esi
lea edi, [edx + ecx*8]
sub eax, ecx
lea ecx, [eax*8]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 8], esi
jmp 0x4fa924
jle 0x4fa875
sub ecx, esi
mov dword [esp + 0x18], ecx
mov dword [ebx + 8], esi
jmp 0x4fa924
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4fa8a7
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4fa89b
mov eax, 4
jmp 0x4fa8a7
cmp eax, 0x400
jle 0x4fa8a7
mov eax, 0x400
add eax, edi
cmp esi, eax
mov dword [esp + 0x14], eax
jl 0x4fa8b5
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
lea ecx, [eax*8]
push ecx
call fcn.0065e5d0
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 3
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 8]
lea esi, [ecx + 1]
lea edi, [eax + edx*8]
mov ecx, esi
xor eax, eax
sub ecx, edx
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
push eax
call fcn.0065e732
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [ebx + 4], ecx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edx
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x20]
fld qword [esp + 0x60]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x4c]
fstp qword [eax + ecx*8]
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
inc edi
add ecx, 0x18
cmp edi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
jl 0x4fa6b6
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10