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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 0xc]
jbe 0x64f8c139
sub esp, 0x2c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x64f8c122
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x64f8bed5
lea edx, [ecx - 1]
test ecx, edx
jne 0x64f8c10c
cmp ecx, 0x2000
jbe 0x64f8beda
jmp 0x64f8c0f6
mov ecx, 8
cmp eax, 0x10000
jae 0x64f8bf94
mov dword [esp + 0x10], ecx
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov ebx, dword [edx + 0x18]
nop
inc dword [ebx + 0x78]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x1c], edx
test edx, edx
je 0x64f8bf19
mov ebx, dword [edx + 0x54]
test ebx, ebx
je 0x64f8bf19
test byte [ebx], al
add ebx, 0xb4c
jmp 0x64f8bf3b
nop
nop
lea eax, [0x6517dc70]
mov dword [esp], eax
call fcn.64f89a00
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
lea ebx, [0x6517dc74]
mov dword [esp + 0x20], ebx
mov ebp, dword [ebx + 4]
lea ebp, [ecx + ebp - 1]
neg ecx
mov dword [esp + 0x18], ecx
and ebp, ecx
mov dword [ebx + 4], ebp
add ebp, eax
cmp ebp, 0x40000
ja 0x64f8bf65
mov ebp, dword [ebx]
test ebp, ebp
jne 0x64f8c005
mov dword [esp], 0x40000
lea eax, [0x6517f6c0]
mov dword [esp + 4], eax
call fcn.64f938e0
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [ecx]
test eax, eax
jne 0x64f8bfb8
jmp 0x64f8c0c4
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
call fcn.64f938e0
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], eax
add esp, 0x2c
ret
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov edx, dword [0x6517db4c]
mov dword [eax], edx
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
lea ebx, [0x6517db4c]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.64f82640
movzx eax, byte [esp + 0xc]
test al, al
je 0x64f8bfb4
mov eax, dword [esp + 0x10]
add eax, 3
mov ecx, dword [esp + 0x18]
and eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov ebx, ecx
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
lea esi, [eax + ebp]
mov dword [ebx + 4], esi
nop
mov esi, dword fs:[0x14]
mov esi, dword [esi]
mov edi, dword [edx + 0x78]
lea eax, [edi - 1]
mov dword [edx + 0x78], eax
lea eax, [ecx + ebp]
cmp edi, 1
jne 0x64f8c03e
movzx ecx, byte [esi + 0x65]
test cl, cl
je 0x64f8c03e
mov dword [esi + 8], 0xfffffade
mov dword [esp + 0x24], eax
lea ecx, [0x6517dc74]
cmp ebx, ecx
jne 0x64f8c060
nop
nop
lea eax, [0x6517dc70]
mov dword [esp], eax
call fcn.64f89c00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
lea edx, [0x6517f6c0]
cmp ecx, edx
je 0x64f8c0bc
xor eax, eax
mov edx, dword [esp + 0x30]
sub eax, edx
mov dword [esp + 0x14], eax
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call fcn.64fab6d0
lea eax, [0x6517f6c0]
mov dword [esp], eax
xor eax, eax
mov ecx, dword [esp + 0x30]
sub eax, ecx
mov eax, 0
sbb eax, 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.64fab6d0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
add esp, 0x2c
ret
lea eax, [0x6517dc74]
cmp ecx, eax
je 0x64f8c0e4
lea eax, [0x650a76ca]
mov dword [esp], eax
mov dword [esp + 4], 0x1f
call fcn.64fb29f0
nop
nop
lea eax, [0x6517dc70]
mov dword [esp], eax
call fcn.64f89c00
jmp 0x64f8c0ce
lea eax, [0x650a86e3]
mov dword [esp], eax
mov dword [esp + 4], 0x23
call fcn.64fb29f0
lea eax, [0x650a9b7a]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
call fcn.64fb29f0
lea eax, [0x650a600b]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
call fcn.64fb29f0
nop
call fcn.64fd7800
jmp fcn.64f8be90