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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
lea rax, [rsp + 0xf8]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.180008540
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, rax
call fcn.1800098a0
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x180040890
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x58]
call fcn.180009710
mov rcx, qword [rsp + 0x58]
call fcn.180040b90
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18004091e
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x88]
jmp 0x180040b85
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180040972
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x90]
jmp 0x180040b85
mov rax, qword [rsp + 0x68]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0x4550
je 0x1800409d3
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x98]
jmp 0x180040b85
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
cmp dword [rcx + rax + 0x88], 0
jne 0x180040a26
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0xa0]
jmp 0x180040b85
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x20], 0
jmp 0x180040ab0
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x1c]
cmp dword [rsp + 0x20], eax
jae 0x180040b4f
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x108]
call fcn.1800402e0
test eax, eax
jne 0x180040b4a
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xb0]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0xb8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0xc0]
jmp 0x180040b85
jmp 0x180040aa6
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0xc8]
add rsp, 0xf8
ret