Function at 0x6620a5b0
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 0x6620a5e8
mov eax, 0xc000000d
jmp 0x6620ab02
movzx eax, word [rdx + 0x14]
mov ebx, 0x10b
cmp ax, 2
jb 0x6620a601
cmp word [rdx + 0x18], bx
jne 0x6620a601
mov dl, 1
jmp 0x6620a603
xor dl, dl
cmp ax, 2
jb 0x6620a61c
cmp word [r14 + 0x18], bx
jne 0x6620a61c
mov edi, 1
mov ecx, edi
xor r12d, r12d
jmp 0x6620a627
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 0x6620a651
cmp word [r14 + 0x18], bx
mov eax, edi
je 0x6620a654
mov eax, r12d
test al, al
je 0x6620a65e
mov eax, dword [r14 + 0x34]
jmp 0x6620a662
mov rax, qword [r14 + 0x30]
mov qword [rsp + 0x78], rax
mov r13, qword [r14 + 0x110]
sub r13, rax
mov qword [rsp + 0x80], r13
jne 0x6620a682
xor eax, eax
jmp 0x6620ab02
add rax, r13
mov qword [rsp + 0x78], rax
test r8b, r8b
je 0x6620a6be
test dl, dl
mov rdx, qword [r14 + 0x108]
je 0x6620a6a0
add rdx, 0x34
jmp 0x6620a6a4
add rdx, 0x30
mov byte [rsp + 0x20], 0
lea r8, [rsp + 0x78]
mov rcx, rsi
call fcn.6620b630
test eax, eax
js 0x6620ab02
test byte [r14 + 0x16], 1
je 0x6620a6cf
mov eax, 0xc0000269
jmp 0x6620ab02
mov r8d, 5
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov rdx, r14
mov rcx, rsi
call fcn.6620abf0
cmp eax, 0xc000007a
jne 0x6620a6fd
xor eax, eax
jmp 0x6620ab02
test eax, eax
js 0x6620ab02
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x6620ab02
mov r15, qword [rsp + 0x48]
lea rcx, [r15 + rax]
mov qword [rsp + 0x80], rcx
cmp word [r14 + 0x14], 2
jb 0x6620a731
cmp word [r14 + 0x18], bx
je 0x6620a734
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 0x6620aaea
mov r9d, 8
lea r8, [rsp + 0x60]
mov rdx, r15
mov rcx, rsi
call fcn.6620a180
test eax, eax
js 0x6620ab02
mov eax, dword [rsp + 0x64]
cmp eax, 8
jb 0x6620aae3
test al, 1
jne 0x6620aae3
mov rax, qword [rsp + 0x60]
lea ecx, [rax + 0x1000]
cmp ecx, ebx
jb 0x6620a7a5
mov eax, 0xc000007b
jmp 0x6620ab02
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.6620b2e0
test eax, eax
js 0x6620ab02
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 0x6620aac2
cmp byte [rsi + 0x70], 0
je 0x6620a828
mov r8d, 2
mov rdx, r14
lea rcx, [rsp + 0x34]
call fcn.6620ec30
jmp 0x6620a89e
mov qword [rsp + 0x50], r12
call fcn.66209d70
test rax, rax
je 0x6620a866
cmp byte [rax + 0x3c], 0
je 0x6620a866
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.6620a240
jmp 0x6620a888
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 0x6620a899
cmp qword [rsp + 0x50], 2
je 0x6620a89e
mov eax, 0xc0000004
jmp 0x6620ab02
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 0x6620aaa9
cmp edi, 2
jbe 0x6620a9d8
cmp edi, 3
je 0x6620a91f
cmp edi, 0xa
jne 0x6620aa9a
lea r9d, [rdi - 2]
lea r8, [rsp + 0x58]
mov rdx, rbx
mov rcx, rsi
call fcn.6620a180
test eax, eax
js 0x6620ab02
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.6620b630
test eax, eax
jns 0x6620aaa7
jmp 0x6620ab02
cmp byte [rsi + 0x70], 0
je 0x6620a93a
mov r8d, 4
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.6620ec30
jmp 0x6620a9b0
mov qword [rsp + 0x68], r12
call fcn.66209d70
test rax, rax
je 0x6620a978
cmp byte [rax + 0x3c], 0
je 0x6620a978
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.6620a240
jmp 0x6620a99a
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 0x6620a9ab
cmp qword [rsp + 0x68], 4
je 0x6620a9b0
mov eax, 0xc0000004
jmp 0x6620ab02
mov r8d, dword [rsp + 0x38]
add r8d, r13d
mov dword [rsp + 0x38], r8d
xor r9d, r9d
mov rdx, rbx
mov rcx, rsi
call fcn.6620b8a0
test eax, eax
jns 0x6620aaa7
jmp 0x6620ab02
cmp byte [rsi + 0x70], 0
je 0x6620a9f3
mov r8d, 2
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.6620ec30
jmp 0x6620aa69
mov qword [rsp + 0x48], r12
call fcn.66209d70
test rax, rax
je 0x6620aa31
cmp byte [rax + 0x3c], 0
je 0x6620aa31
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.6620a240
jmp 0x6620aa53
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 0x6620aa64
cmp qword [rsp + 0x48], 2
je 0x6620aa69
mov eax, 0xc0000004
jmp 0x6620ab02
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.6620b970
test eax, eax
jns 0x6620aaa7
jmp 0x6620ab02
mov al, 1
mov byte [rsp + 0xf8], al
mov byte [rsp + 0x40], al
jmp 0x6620aaa9
inc r15d
mov dword [rsp + 0x74], r15d
add r14, 2
mov rcx, qword [rsp + 0x98]
jmp 0x6620a7fc
mov r15, qword [rsp + 0x88]
mov r14, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x80]
mov ebx, dword [rsp + 0x3c]
jmp 0x6620a750
mov eax, 0xc000007b
jmp 0x6620ab02
movzx ecx, byte [rsp + 0xf8]
neg cl
sbb eax, eax
and eax, 0xc000000d
jmp 0x6620ab02
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