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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140004581
xor eax, eax
jmp 0x1400047ee
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x1400045cd
xor eax, eax
jmp 0x1400047ee
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14000461a
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x88]
add rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x8c]
mov dword [rsp + 0x30], eax
jmp 0x14000464f
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x78]
add rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x7c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0xb0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0xb0]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov dword [rsp + 0x24], 0
jmp 0x1400046dd
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x24], eax
jae 0x1400047e9
mov eax, 0xffff
mov word [rsp + 0x20], ax
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0xb8], 0xffff
jae 0x14000471c
movzx eax, word [rsp + 0x24]
mov word [rsp + 0x20], ax
jmp 0x140004779
cmp qword [rsp + 0xb8], 0xffff
jbe 0x140004775
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x24], eax
jae 0x140004775
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0xb0]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x20], ax
jmp 0x140004779
xor eax, eax
jmp 0x1400047ee
cmp qword [rsp + 0xb8], 0xffff
ja 0x1400047a0
movzx eax, word [rsp + 0xb8]
movzx ecx, word [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add ecx, dword [rdx + 0x10]
cmp eax, ecx
je 0x1400047c8
cmp qword [rsp + 0xb8], 0xffff
jbe 0x1400047e4
mov r8b, 1
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x1400047e4
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0xb0]
mov qword [rsp + 0x58], rax
jmp 0x1400047e9
jmp 0x1400046d3
mov rax, qword [rsp + 0x58]
add rsp, 0xa0
pop rdi
ret