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

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb0
mov rsi, rcx
movzx ecx, word [rdx + 0x14]
mov rdi, rdx
mov r15, r9
mov r12, r8
mov edx, 0x10b
cmp cx, 2
jb 0x6620955e
cmp word [rdi + 0x18], dx
jne 0x6620955e
mov eax, dword [rdi + 0x74]
jmp 0x66209564
mov eax, dword [rdi + 0x84]
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xa0], r14
test eax, eax
je 0x662096b8
cmp cx, 2
jb 0x66209594
lea rax, [rdi + 0x78]
cmp word [rdi + 0x18], dx
je 0x6620959b
lea rax, [rdi + 0x88]
test rax, rax
je 0x662096b8
mov ebx, dword [rax]
test ebx, ebx
je 0x662096b8
cmp byte [rdi + 0x118], 0
mov r13d, dword [rax + 4]
jne 0x662095fe
mov eax, dword [rdi + 0x54]
cmp ebx, eax
jb 0x662095fe
lea rax, [rbp - 0x11]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.6620aac0
test eax, eax
js 0x662096bd
mov eax, dword [rbp - 5]
mov r14, qword [rdi + 0x110]
sub r14, rax
mov eax, dword [rbp + 3]
add r14, rax
mov eax, ebx
add r14, rbx
jmp 0x66209608
mov r14, rbx
add r14, qword [rdi + 0x110]
cmp byte [rsi + 0x70], 0
je 0x662096e4
lea rcx, [rbp - 0x41]
mov r8d, 0x28
mov rdx, r14
call fcn.6620e700
movzx eax, r12w
sub ax, word [rbp - 0x31]
mov word [rbp - 0x51], ax
cmp r12, 0xffff
jbe 0x662097a0
mov r8d, dword [rbp - 0x21]
lea r9, [rbp + 0x67]
mov rdx, rdi
mov rcx, rsi
call fcn.6620ac10
test eax, eax
js 0x662096bd
xor ebx, ebx
cmp dword [rbp - 0x29], ebx
jbe 0x662096b8
mov r15, qword [rbp + 0x67]
nop
lea rdx, [r15 + rbx*4]
lea r8, [rbp - 0x49]
mov rcx, rsi
call fcn.6620a1d0
test eax, eax
js 0x662096bd
mov r8d, dword [rbp - 0x49]
test r8d, r8d
je 0x662096b1
lea r9, [rbp - 0x19]
mov rdx, rdi
mov rcx, rsi
call fcn.6620ac10
test eax, eax
js 0x662096bd
mov rdx, qword [rbp - 0x19]
lea r9, [rbp + 0x67]
mov r8, r12
mov rcx, rsi
call fcn.66208bb0
test eax, eax
js 0x662096bd
cmp byte [rbp + 0x67], 0
jne 0x66209758
inc ebx
cmp ebx, dword [rbp - 0x29]
jb 0x66209660
mov eax, 0xc000007a
mov r14, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.66209a30
test rax, rax
je 0x6620971b
cmp byte [rax + 0x3c], 0
je 0x6620971b
mov rdx, qword [rsi + 0x58]
lea rcx, [rbp + 0x67]
lea r9, [rbp - 0x41]
mov qword [rsp + 0x28], rcx
mov r8, r14
mov rcx, rax
mov qword [rsp + 0x20], 0x28
call fcn.66209ef0
jmp 0x6620973b
mov rcx, qword [rsi + 0x58]
lea rax, [rbp + 0x67]
lea r8, [rbp - 0x41]
mov r9d, 0x28
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x662096bd
cmp qword [rbp + 0x67], 0x28
je 0x66209624
mov eax, 0xc0000004
jmp 0x662096bd
cmp ebx, dword [rbp - 0x29]
jae 0x662096b8
mov r8d, dword [rbp - 0x1d]
lea r9, [rbp + 0x67]
mov rdx, rdi
mov rcx, rsi
call fcn.6620ac10
test eax, eax
js 0x662096bd
mov rax, qword [rbp + 0x67]
lea r8, [rbp - 0x51]
mov rcx, rsi
lea rdx, [rax + rbx*2]
call fcn.6620a290
test eax, eax
js 0x662096bd
movzx eax, word [rbp - 0x51]
mov r15, qword [rbp + 0x77]
movzx eax, ax
cmp eax, dword [rbp - 0x2d]
jae 0x662096b8
mov r8d, dword [rbp - 0x25]
lea r9, [rbp + 0x67]
mov rdx, rdi
mov rcx, rsi
call fcn.6620ac10
test eax, eax
js 0x662096bd
movzx ecx, word [rbp - 0x51]
mov rax, qword [rbp + 0x67]
lea r8, [rbp - 0x4d]
lea rdx, [rax + rcx*4]
mov rcx, rsi
call fcn.6620a1d0
test eax, eax
js 0x662096bd
mov r8d, dword [rbp - 0x4d]
lea r9, [rbp + 0x67]
mov rdx, rdi
mov rcx, rsi
call fcn.6620ac10
test eax, eax
js 0x662096bd
mov rcx, qword [rbp + 0x67]
cmp rcx, r14
jb 0x66209818
lea rax, [r14 + r13]
cmp rcx, rax
jae 0x66209818
mov al, 1
jmp 0x6620981a
xor al, al
mov rdx, qword [rbp + 0x7f]
test rdx, rdx
je 0x6620982f
mov byte [rdx], al
mov qword [r15], rcx
xor eax, eax
jmp 0x662096bd
test al, al
je 0x66209825
mov eax, 0xc000000d
jmp 0x662096bd