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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov r14, rdx
mov rsi, rcx
cmp byte [rdx + 0x118], 0
jne 0x6620a5d8
mov eax, 0xc000000d
jmp 0x6620aaf2
movzx eax, word [rdx + 0x14]
mov ebx, 0x10b
cmp ax, 2
jb 0x6620a5f1
cmp word [rdx + 0x18], bx
jne 0x6620a5f1
mov dl, 1
jmp 0x6620a5f3
xor dl, dl
cmp ax, 2
jb 0x6620a60c
cmp word [r14 + 0x18], bx
jne 0x6620a60c
mov edi, 1
mov ecx, edi
xor r12d, r12d
jmp 0x6620a617
xor r12d, r12d
mov ecx, r12d
lea edi, [r12 + 1]
mov r9d, 8
mov r10d, 4
test cl, cl
cmovne r9d, r10d
xor cl, cl
mov byte [rsp + 0xf8], cl
cmp ax, 2
jb 0x6620a641
cmp word [r14 + 0x18], bx
mov eax, edi
je 0x6620a644
mov eax, r12d
test al, al
je 0x6620a64e
mov eax, dword [r14 + 0x34]
jmp 0x6620a652
mov rax, qword [r14 + 0x30]
mov qword [rsp + 0x78], rax
mov r13, qword [r14 + 0x110]
sub r13, rax
mov qword [rsp + 0x80], r13
jne 0x6620a672
xor eax, eax
jmp 0x6620aaf2
add rax, r13
mov qword [rsp + 0x78], rax
test r8b, r8b
je 0x6620a6ae
test dl, dl
mov rdx, qword [r14 + 0x108]
je 0x6620a690
add rdx, 0x34
jmp 0x6620a694
add rdx, 0x30
mov byte [rsp + 0x20], 0
lea r8, [rsp + 0x78]
mov rcx, rsi
call fcn.6620b620
test eax, eax
js 0x6620aaf2
test byte [r14 + 0x16], 1
je 0x6620a6bf
mov eax, 0xc0000269
jmp 0x6620aaf2
mov r8d, 5
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov rdx, r14
mov rcx, rsi
call fcn.6620abe0
cmp eax, 0xc000007a
jne 0x6620a6ed
xor eax, eax
jmp 0x6620aaf2
test eax, eax
js 0x6620aaf2
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x6620aaf2
mov r15, qword [rsp + 0x48]
lea rcx, [r15 + rax]
mov qword [rsp + 0x80], rcx
cmp word [r14 + 0x14], 2
jb 0x6620a721
cmp word [r14 + 0x18], bx
je 0x6620a724
mov edi, r12d
mov ebx, dword [r14 + 0x50]
mov dword [rsp + 0x3c], ebx
mov eax, r13d
shr eax, 0x10
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x88], r15
nop
cmp r15, rcx
jae 0x6620aada
mov r9d, 8
lea r8, [rsp + 0x60]
mov rdx, r15
mov rcx, rsi
call fcn.6620a170
test eax, eax
js 0x6620aaf2
mov eax, dword [rsp + 0x64]
cmp eax, 8
jb 0x6620aad3
test al, 1
jne 0x6620aad3
mov rax, qword [rsp + 0x60]
lea ecx, [rax + 0x1000]
cmp ecx, ebx
jb 0x6620a795
mov eax, 0xc000007b
jmp 0x6620aaf2
mov eax, eax
add rax, qword [r14 + 0x110]
mov qword [rsp + 0xa0], rax
mov r9b, 1
mov r8d, 0x1000
mov rdx, rax
mov rcx, rsi
call fcn.6620b2d0
test eax, eax
js 0x6620aaf2
lea r14, [r15 + 8]
mov eax, dword [rsp + 0x64]
lea rcx, [rax - 8]
shr rcx, 1
mov qword [rsp + 0x98], rcx
add r15, rax
mov qword [rsp + 0x88], r15
mov r15d, r12d
mov dword [rsp + 0x74], r12d
mov qword [rsp + 0x90], r14
cmp r15d, ecx
jae 0x6620aab2
cmp byte [rsi + 0x70], 0
je 0x6620a818
mov r8d, 2
mov rdx, r14
lea rcx, [rsp + 0x34]
call fcn.6620ec20
jmp 0x6620a88e
mov qword [rsp + 0x50], r12
call fcn.66209d60
test rax, rax
je 0x6620a856
cmp byte [rax + 0x3c], 0
je 0x6620a856
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 2
lea r9, [rsp + 0x34]
mov r8, r14
mov rdx, qword [rsi + 0x58]
mov rcx, rax
call fcn.6620a230
jmp 0x6620a878
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [rsp + 0x34]
mov rdx, r14
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x6620a889
cmp qword [rsp + 0x50], 2
je 0x6620a88e
mov eax, 0xc0000004
jmp 0x6620aaf2
movzx eax, word [rsp + 0x34]
mov edi, eax
shr edi, 0xc
and eax, 0xfff
mov ebx, eax
add rbx, qword [rsp + 0xa0]
test edi, edi
je 0x6620aa99
cmp edi, 2
jbe 0x6620a9c8
cmp edi, 3
je 0x6620a90f
cmp edi, 0xa
jne 0x6620aa8a
lea r9d, [rdi - 2]
lea r8, [rsp + 0x58]
mov rdx, rbx
mov rcx, rsi
call fcn.6620a170
test eax, eax
js 0x6620aaf2
add qword [rsp + 0x58], r13
mov byte [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x58]
mov rdx, rbx
mov rcx, rsi
call fcn.6620b620
test eax, eax
jns 0x6620aa97
jmp 0x6620aaf2
cmp byte [rsi + 0x70], 0
je 0x6620a92a
mov r8d, 4
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.6620ec20
jmp 0x6620a9a0
mov qword [rsp + 0x68], r12
call fcn.66209d60
test rax, rax
je 0x6620a968
cmp byte [rax + 0x3c], 0
je 0x6620a968
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov r8, rbx
mov rdx, qword [rsi + 0x58]
mov rcx, rax
call fcn.6620a230
jmp 0x6620a98a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x6620a99b
cmp qword [rsp + 0x68], 4
je 0x6620a9a0
mov eax, 0xc0000004
jmp 0x6620aaf2
mov r8d, dword [rsp + 0x38]
add r8d, r13d
mov dword [rsp + 0x38], r8d
xor r9d, r9d
mov rdx, rbx
mov rcx, rsi
call fcn.6620b890
test eax, eax
jns 0x6620aa97
jmp 0x6620aaf2
cmp byte [rsi + 0x70], 0
je 0x6620a9e3
mov r8d, 2
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.6620ec20
jmp 0x6620aa59
mov qword [rsp + 0x48], r12
call fcn.66209d60
test rax, rax
je 0x6620aa21
cmp byte [rax + 0x3c], 0
je 0x6620aa21
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 2
lea r9, [rsp + 0x30]
mov r8, rbx
mov rdx, qword [rsi + 0x58]
mov rcx, rax
call fcn.6620a230
jmp 0x6620aa43
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, qword [rsi + 0x58]
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x6620aa54
cmp qword [rsp + 0x48], 2
je 0x6620aa59
mov eax, 0xc0000004
jmp 0x6620aaf2
movzx ecx, r13w
cmp edi, 1
cmove cx, word [rsp + 0x70]
movzx eax, word [rsp + 0x30]
add ecx, eax
mov word [rsp + 0x30], cx
xor r9d, r9d
movzx r8d, cx
mov rdx, rbx
mov rcx, rsi
call fcn.6620b960
test eax, eax
jns 0x6620aa97
jmp 0x6620aaf2
mov al, 1
mov byte [rsp + 0xf8], al
mov byte [rsp + 0x40], al
jmp 0x6620aa99
inc r15d
mov dword [rsp + 0x74], r15d
add r14, 2
mov rcx, qword [rsp + 0x98]
jmp 0x6620a7ec
mov r15, qword [rsp + 0x88]
mov r14, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x80]
mov ebx, dword [rsp + 0x3c]
jmp 0x6620a740
mov eax, 0xc000007b
jmp 0x6620aaf2
movzx ecx, byte [rsp + 0xf8]
neg cl
sbb eax, eax
and eax, 0xc000000d
jmp 0x6620aaf2
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret