Function at 0x409310
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
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x90], 0
jne 0x409399
xor eax, eax
jmp 0x4095d6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x4093af
xor eax, eax
jmp 0x4095d6
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x4093fb
xor eax, eax
jmp 0x4095d6
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x409434
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x88]
add rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x8c]
mov dword [rsp + 0x60], eax
jmp 0x409455
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x78]
add rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x7c]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0
jmp 0x4094a8
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x4095d1
mov word [rsp + 0x78], 0xffff
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x98], 0xffff
ja 0x4094e4
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x78], ax
jmp 0x409534
cmp qword [rsp + 0x98], 0xffff
jbe 0x40952d
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x40952d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x78], ax
jmp 0x409534
xor eax, eax
jmp 0x4095d6
cmp qword [rsp + 0x98], 0xffff
ja 0x40955b
movzx eax, word [rsp + 0x98]
movzx ecx, word [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
add ecx, dword [rdx + 0x10]
cmp eax, ecx
je 0x40957f
cmp qword [rsp + 0x98], 0xffff
jbe 0x4095cc
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call sub.ntoskrnl.exe_strcmp
test eax, eax
jne 0x4095cc
movzx eax, word [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jb 0x4095ca
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x50], rax
ja 0x4095ca
cmp qword [rsp + 0xa0], 0
jne 0x4095ca
xor eax, eax
jmp 0x4095d6
jmp 0x4095d1
jmp 0x40949e
mov rax, qword [rsp + 0x50]
add rsp, 0x88
ret