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

Disassembly:
push r14
sub rsp, 0x70
mov eax, dword [rdx + 0x90]
mov r9, rdx
mov r14, rcx
test eax, eax
je 0x140105227
cmp dword [rdx + 0x94], 0
je 0x140105227
movzx r10d, word [r9 + 6]
xor edx, edx
mov qword [rsp + 0x50], r12
lea r12, [rcx + rax]
test r10d, r10d
je 0x140104f1e
movzx r11d, word [r9 + 0x14]
lea rcx, [rdx + rdx*4]
lea r8, [r11 + rcx*8]
mov ecx, dword [r8 + r9 + 0x24]
lea rax, [rcx + r14]
cmp r12, rax
jb 0x140104f17
mov eax, dword [r8 + r9 + 0x28]
add rax, rcx
add rax, r14
cmp r12, rax
jb 0x140104f2f
inc edx
cmp edx, r10d
jb 0x140104ef1
mov r12, qword [rsp + 0x50]
mov eax, 0xc0000049
add rsp, 0x70
pop r14
ret
mov edx, dword [r8 + r9 + 0x20]
mov rax, rcx
add rax, r14
je 0x140104f1e
test rdx, rdx
je 0x140104f1e
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x98]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x98], rdx
mov r9d, 4
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x68], rbp
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov ebp, eax
test eax, eax
js 0x14010512c
mov ecx, dword ds:[r12 + 0xc]
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r15
test ecx, ecx
je 0x1401051d8
mov esi, 0x5a4d
nop dword [rax]
mov eax, dword [r12]
lea rdx, [0x1401c86f8]
mov ebx, ecx
mov r13, r12
mov ecx, dword [r12 + 0x10]
add rbx, r14
test eax, eax
cmove eax, ecx
mov edi, eax
lea r15, [r14 + rcx]
mov rcx, rbx
add rdi, r14
call fcn.140183a40
nop
test eax, eax
jne 0x140105006
mov rbx, qword [sym.ProcessHacker.exe_PhInstanceHandle]
xor r10d, r10d
mov ebp, r10d
jmp 0x14010508d
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140105010
mov rcx, rbx
call sym.ProcessHacker.exe_PhZeroExtendToUtf16Ex
mov rsi, rax
mov rcx, qword [rax + 8]
call fcn.1401047c0
mov rbx, rax
test rax, rax
jne 0x140105065
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14010504b
xor ebp, ebp
jmp 0x140105065
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test eax, eax
jle 0x140105065
movzx ebp, ax
or ebp, 0xc0070000
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14010507d
call fcn.140106290
test ebp, ebp
js 0x140105220
mov esi, 0x5a4d
xor r10d, r10d
nop dword [rax]
test rbx, rbx
je 0x140105216
mov rax, qword [rdi]
test rax, rax
je 0x1401051c3
sub r15, rdi
test rax, rax
nop dword [rax + rax]
jns 0x14010513d
movzx edx, word [rdi]
cmp word [rbx], si
jne 0x14010510b
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0xffffffe
ja 0x14010510b
cmp dword [rcx + rbx], 0x4550
jne 0x14010510b
lea r8, [rbx + 0x88]
add r8, rcx
mov eax, dword [r8]
test eax, eax
je 0x14010510b
cmp dword [r8 + 4], 0
je 0x14010510b
mov word [rsp + 0x28], dx
lea r9, [rbx + rax]
mov rcx, rbx
mov qword [rsp + 0x20], r10
call fcn.140104bd0
test rax, rax
jne 0x1401051a8
mov eax, 0xc0000138
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x68]
mov r12, qword [rsp + 0x50]
add rsp, 0x70
pop r14
ret
lea rdx, [rax + 2]
cmp word [rbx], si
jne 0x14010520c
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0xffffffe
ja 0x14010520c
cmp dword [rcx + rbx], 0x4550
jne 0x14010520c
lea r8, [rbx + 0x88]
add r8, rcx
mov eax, dword [r8]
test eax, eax
je 0x14010520c
cmp dword [r8 + 4], 0
je 0x14010520c
lea r9, [rbx + rax]
mov word [rsp + 0x28], r10w
lea rax, [rdx + r14]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140104bd0
test rax, rax
je 0x14010520c
mov qword [rdi + r15], rax
mov r10d, 0
mov rax, qword [rdi + 8]
add rdi, 8
test rax, rax
jne 0x1401050ab
mov ecx, dword ds:[r13 + 0x20]
add r12, 0x14
test ecx, ecx
jne 0x140104fc0
mov r9d, dword [rsp + 0x88]
lea rax, [rsp + 0x88]
lea r8, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
jmp 0x140105110
mov eax, 0xc000007a
jmp 0x140105110
mov eax, 0xc0000001
jmp 0x140105110
mov eax, ebp
jmp 0x140105110
mov eax, 0xc0000020
add rsp, 0x70
pop r14
ret