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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r14, r9
mov r12d, r8d
mov r15, rdx
mov rbx, rcx
xor r13d, r13d
mov esi, r13d
mov dword [rsp + 0x20], r13d
cmp r9, r13
je 0x10064758
mov dword [r9], r13d
cmp r12d, r13d
je 0x100649c6
cmp byte [rbx + 0x59], r13b
je 0x10064908
mov edi, r12d
cmp dword [rbx + 0x5c], r12d
cmovb edi, dword [rbx + 0x5c]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x24], r13d
test edi, edi
je 0x100647f1
cmp byte [rsp + 0xa0], 0
jne 0x10064791
mov byte [rbx + 0x58], 0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x100647cb
mov dword [rsp + 0x98], 0
mov rax, qword [rcx]
lea r9, [rsp + 0x98]
mov r8d, edi
mov rdx, r15
call qword [rax + 0x18]
mov r13d, eax
mov dword [rsp + 0x24], eax
mov edi, dword [rsp + 0x98]
mov dword [rsp + 0x28], edi
cmp byte [rbx + 0x30], 0
je 0x100647f1
cmp qword [rbx + 0x20], 0
je 0x100647f1
mov r8d, edi
mov eax, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x68]
sub rcx, rax
add rcx, qword [rbx + 0x20]
mov rdx, r15
call sub.msvcrt.dll_memcpy
add esi, edi
mov dword [rsp + 0x20], esi
test r14, r14
je 0x100647ff
mov dword [r14], esi
mov ecx, edi
add r15, rcx
mov qword [rsp + 0x88], r15
sub r12d, edi
mov dword [rsp + 0x90], r12d
sub dword [rbx + 0x5c], edi
add qword [rbx + 0x68], rcx
test r13d, r13d
je 0x1006482b
mov eax, r13d
jmp 0x100649d5
xor r13d, r13d
cmp dword [rbx + 0x5c], r13d
jne 0x100648fa
mov al, byte [rbx + 0x58]
neg al
sbb edx, edx
not edx
and edx, 2
mov rcx, rbx
call fcn.10063ac0
cmp eax, r13d
jne 0x100649d5
cmp dword [rbx + 0x2c], r13d
je 0x100648f6
mov rcx, rbx
call fcn.100643d8
mov edi, eax
mov dword [rsp + 0x2c], eax
mov byte [rbx + 0x59], 1
inc dword [rbx + 0x3c]
cmp eax, r13d
jne 0x100648a0
mov rcx, qword [rbx + 0x50]
cmp rcx, r13
je 0x100648a0
mov rdx, qword [rbx + 0x20]
cmp rdx, r13
je 0x100648a0
mov eax, dword [rbx + 0x34]
mov r8, qword [rbx + 0x68]
sub r8, rax
call fcn.1000ac34
mov edi, eax
mov dword [rsp + 0x2c], eax
cmp qword [rbx + 0x20], r13
jne 0x100648c9
cmp byte [rbx + 0x30], r13b
je 0x100648c9
cmp qword [rbx + 0x50], r13
je 0x100648c9
mov edx, 1
mov rcx, rbx
call fcn.10063ac0
cmp eax, r13d
je 0x100648e6
jmp 0x100649d5
mov al, byte [rbx + 0x58]
neg al
sbb edx, edx
not edx
and edx, 2
mov rcx, rbx
call fcn.10063ac0
cmp eax, r13d
jne 0x100649d5
cmp edi, r13d
je 0x10064855
mov eax, edi
jmp 0x100649d5
mov byte [rbx + 0x30], r13b
cmp esi, r13d
ja 0x100649c6
jmp 0x10064758
mov rax, qword [rbx + 0x18]
mov ecx, dword [rbx + 0x3c]
cmp ecx, dword [rax + 0xc]
jl 0x1006491e
mov eax, 0x80004005
jmp 0x100649d5
mov r9, qword [rbx + 0x10]
mov eax, dword [rbx + 0x38]
add eax, ecx
movsxd r8, eax
mov rdx, qword [r9 + 0x30]
movsxd rcx, dword [rdx + r8*8]
mov rax, qword [r9 + 0x10]
mov rax, qword [rax + rcx*8]
movsxd rcx, dword [rdx + r8*8 + 4]
mov rax, qword [rax + 0x90]
mov rdx, qword [rax + rcx*8]
mov eax, dword [rdx + 0x14]
mov dword [rbx + 0x5c], eax
mov eax, dword [rdx + 0x10]
mov rdx, rax
cmp rax, qword [rbx + 0x68]
jae 0x10064963
mov eax, 0x80004005
jmp 0x100649d5
cmp rax, qword [rbx + 0x68]
jbe 0x1006499f
sub eax, dword [rbx + 0x68]
mov ecx, r12d
cmp eax, r12d
cmovb ecx, eax
add esi, ecx
mov dword [rsp + 0x20], esi
cmp r14, r13
je 0x10064983
mov dword [r14], esi
mov eax, ecx
add r15, rax
mov qword [rsp + 0x88], r15
sub r12d, ecx
mov dword [rsp + 0x90], r12d
add qword [rbx + 0x68], rax
cmp rdx, qword [rbx + 0x68]
jne 0x10064758
mov rcx, rbx
call fcn.100643d8
cmp eax, r13d
jne 0x100649d5
mov byte [rbx + 0x59], 1
inc dword [rbx + 0x3c]
mov byte [rbx + 0x58], 1
jmp 0x10064758
mov rcx, rbx
call fcn.10064684
jmp 0x100649d5
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret