Function at 0x140016520
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
sub rsp, 0x68
mov rax, qword [0x14008d030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140016559
mov rcx, qword [rcx + 0x10]
cmp rdx, rcx
je 0x140016559
test rcx, rcx
jle 0x140016555
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rdi
mov r10, qword [rbx + 0x10]
test r10, r10
jne 0x14001656c
mov eax, 0xc0000141
jmp 0x140016891
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x14001688c
movsxd rdx, dword [r10 + 0x3c]
add rdx, r10
mov qword [rbx + 0x20], rdx
mov qword [rbx + 0x28], rdx
cmp dword [rdx], 0x4550
jne 0x14001688c
mov eax, 0x20b
mov qword [rsp + 0x88], rbp
mov r9, rdx
cmp word [rdx + 0x18], ax
jne 0x1400165c0
mov byte [rbx + 0x19], 1
lea rbp, [rdx + 0x108]
mov rax, qword [rdx + 0x30]
mov r8b, 1
jmp 0x1400165d1
mov byte [rbx + 0x19], 0
lea rbp, [rdx + 0xf8]
mov eax, dword [rdx + 0x34]
xor r8b, r8b
mov qword [rbx + 0x30], rax
mov eax, dword [rdx + 0x50]
mov dword [rbx + 0x38], eax
mov eax, dword [rdx + 0x54]
mov dword [rbx + 0x40], eax
mov eax, dword [rdx + 0x28]
mov dword [rbx + 0x3c], eax
mov eax, 0x5e
movzx r11d, word [rdx + 0x5c]
mov dword [rbx + 0x54], r11d
movzx eax, word [r9 + rax]
mov dword [rbx + 0x5c], eax
movzx eax, word [rdx + 0x16]
shr ax, 0xd
not al
and al, 1
mov byte [rbx + 0x1a], al
test r8b, r8b
je 0x14001661a
add rdx, 0xf8
jmp 0x140016621
add rdx, 0xe8
mov eax, dword [rdx]
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
test eax, eax
je 0x140016673
cmp byte [rbx + 0x18], 0
mov r8d, eax
je 0x1400166e9
mov rcx, qword [rbx + 0x60]
mov r9, qword [rbx + 0x68]
cmp rcx, r9
je 0x140016673
mov edx, dword [rcx + 0xc]
cmp r8, rdx
jb 0x14001666a
mov eax, dword [rcx + 8]
add eax, edx
cmp r8, rax
jb 0x1400166db
add rcx, 0x28
cmp rcx, r9
jne 0x140016658
mov byte [rbx + 0x1b], 0
mov rax, qword [rbx + 0x20]
xor edi, edi
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
cmp di, word [rax + 6]
jae 0x140016878
nop word [rax + rax]
mov rdx, qword [rbx + 0x68]
cmp rdx, qword [rbx + 0x70]
je 0x140016856
mov ecx, 0x28
call fcn.1400011d0
movups xmm0, xmmword [rbp]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rbp + 0x20]
movsd qword [rax + 0x20], xmm0
add qword [rbx + 0x68], 0x28
jmp 0x140016862
mov eax, dword [rcx + 0x14]
sub rax, rdx
add rax, r10
add rax, r8
jmp 0x1400166ec
add rax, r10
test rax, rax
je 0x140016673
test byte [rax + 0x10], 1
je 0x140016673
sub eax, r10d
mov byte [rbx + 0x1b], 1
add eax, 0x10
lea r14, [rbx + 0x138]
lea rsi, [rbx + 0xf8]
mov dword [rbx + 0x58], eax
cmp r14, rsi
je 0x140016745
mov rcx, r14
call fcn.1400035e0
mov rcx, rsi
call fcn.1400035e0
mov rdi, qword [rsi + 0x10]
mov rcx, rsi
call fcn.140004700
mov r8, rdi
mov rdx, rax
mov rcx, r14
call fcn.140004bc0
cmp qword [r14 + 0x30], 0
lea r15, [r14 + 0x30]
jne 0x140016787
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x140016677
xor edx, edx
mov qword [rsp + 0x20], r15
lea r9, [0x14007f210]
lea rcx, [0x14007f1f0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140016677
cmp qword [r14 + 0x38], 0
lea r12, [r14 + 0x38]
jne 0x140016826
mov rsi, qword [r15]
mov rcx, r14
mov rax, qword [rsi]
mov rdi, qword [rax + 0x20]
call fcn.140003d90
lea r9, [0x14007f1e0]
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call rdi
cmp eax, 0x80131110
jne 0x14001681e
mov rcx, qword [r15]
lea r8, [rsp + 0x30]
mov eax, 0x13
mov dword [rsp + 0x38], 4
mov word [rsp + 0x30], ax
lea rdx, [0x14007f200]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x140016677
mov rsi, qword [r15]
mov rcx, r14
mov rax, qword [rsi]
mov rdi, qword [rax + 0x20]
call fcn.140003d90
lea r9, [0x14007f1e0]
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call rdi
test eax, eax
js 0x140016677
cmp qword [r14 + 0x40], 0
lea r8, [r14 + 0x40]
jne 0x140016849
mov rcx, qword [r12]
lea rdx, [0x14007f238]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140016677
mov rcx, r14
call fcn.140032b10
jmp 0x140016677
mov r8, rbp
lea rcx, [rbx + 0x60]
call fcn.140017870
mov rax, qword [rbx + 0x20]
inc edi
add rbp, 0x28
movzx ecx, word [rax + 6]
cmp edi, ecx
jl 0x1400166a0
mov rsi, qword [rsp + 0x90]
xor eax, eax
mov rbp, qword [rsp + 0x88]
jmp 0x140016891
mov eax, 0xc000007b
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003ecb0
add rsp, 0x68
pop rdi
pop rbx
ret