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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x300
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x310], 0
jne 0x1400052ca
xor eax, eax
jmp 0x1400057bf
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400052e0
xor eax, eax
jmp 0x1400057bf
mov rax, qword [rsp + 0x78]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x310]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x310]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x14000532f
xor eax, eax
jmp 0x1400057bf
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140005382
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax + 0x88]
add rax, qword [rsp + 0x310]
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx + rax + 0x8c]
mov dword [rsp + 0x48], eax
jmp 0x1400053b7
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x78]
add rax, qword [rsp + 0x310]
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x7c]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x310]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x310]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x310]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x34], 0
jmp 0x140005413
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x34], eax
jae 0x1400057ba
mov eax, 0xffff
mov word [rsp + 0x30], ax
mov qword [rsp + 0x88], 0
cmp qword [rsp + 0x318], 0xffff
ja 0x140005455
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x30], ax
jmp 0x1400054ae
cmp qword [rsp + 0x318], 0xffff
jbe 0x1400054a7
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x34], eax
jae 0x1400054a7
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x310]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xa8]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x30], ax
jmp 0x1400054ae
xor eax, eax
jmp 0x1400057bf
cmp qword [rsp + 0x318], 0xffff
ja 0x1400054d5
movzx eax, word [rsp + 0x318]
movzx ecx, word [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
add ecx, dword [rdx + 0x10]
cmp eax, ecx
je 0x140005504
cmp qword [rsp + 0x318], 0xffff
jbe 0x1400057b5
mov rdx, qword [rsp + 0x318]
mov rcx, qword [rsp + 0x88]
call fcn.140013110
test eax, eax
jne 0x1400057b5
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x310]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x60], rax
jb 0x1400057b3
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x60], rax
ja 0x1400057b3
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
cmp qword [rsp + 0x320], 0
jne 0x1400055ca
xor eax, eax
jmp 0x1400057bf
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8w, 0x200
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x68]
call fcn.14000aba0
xor r8d, r8d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [rsp + 0x38], 0
jmp 0x14000561e
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0xb8], rax
movzx ecx, word [rsp + 0x68]
xor edx, edx
mov eax, ecx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0xb8]
cmp rcx, rax
jae 0x140005681
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
cmp eax, 0x2e
jne 0x14000567f
mov eax, dword [rsp + 0x38]
shl rax, 1
mov word [rsp + 0x68], ax
mov eax, dword [rsp + 0x38]
xor ecx, ecx
mov rdx, qword [rsp + 0x70]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x4c], eax
jmp 0x140005681
jmp 0x140005614
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xc8]
lea rax, [rcx + rax + 1]
mov rdx, rax
lea rcx, [rsp + 0xf0]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [0x1400139c0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x328]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
mov r8d, 1
mov rdx, qword [rsp + 0x320]
xor ecx, ecx
call fcn.140007360
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xe0]
call fcn.140008a20
mov rcx, qword [rsp + 0x320]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x140005743
mov dword [rsp + 0x50], 1
jmp 0x14000574b
mov dword [rsp + 0x50], 0
movzx r8d, byte [rsp + 0x50]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x320]
call fcn.1400058c0
mov qword [rsp + 0x90], rax
lea r9, [rsp + 0xd0]
mov r8, qword [rsp + 0x320]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x90]
call fcn.140005260
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rax, qword [rsp + 0x98]
jmp 0x1400057bf
jmp 0x1400057ba
jmp 0x140005409
mov rax, qword [rsp + 0x60]
add rsp, 0x300
pop rdi
ret