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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rcx, qword [rsp + 0xc8]
call fcn.180001060
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0xc0], 0
jne 0x180001441
xor eax, eax
jmp 0x1800016ef
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180001457
xor eax, eax
jmp 0x1800016ef
mov rax, qword [rsp + 0x78]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x4550
je 0x180001494
xor eax, eax
jmp 0x1800016ef
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x1800014ae
mov dword [rsp + 0x40], 1
jmp 0x1800014b6
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test rax, rax
je 0x1800014e1
mov rax, qword [rsp + 0xa0]
add rax, 0x88
mov qword [rsp + 0x80], rax
jmp 0x1800014f2
mov rax, qword [rsp + 0x48]
add rax, 0x78
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 4]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x5c], eax
cmp qword [rsp + 0x90], 0
je 0x1800015c3
cmp qword [rsp + 0x50], 0
je 0x1800015c3
cmp qword [rsp + 0x98], 0
jne 0x1800015ca
xor eax, eax
jmp 0x1800016ef
mov dword [rsp + 0x24], 0
jmp 0x1800015de
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
cmp dword [rsp + 0x24], eax
jae 0x1800016ed
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x90]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x24], eax
jae 0x180001618
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x2c], eax
jb 0x18000161d
jmp 0x1800016ed
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x30]
cmp dword [rcx + rax*4], edx
jb 0x18000164d
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x60]
mov edx, dword [rsp + 0x30]
add edx, ecx
mov ecx, edx
mov rdx, qword [rsp + 0x50]
cmp dword [rdx + rax*4], ecx
jb 0x1800016e8
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax]
mov rcx, qword [rsp + 0x68]
movsx ecx, byte [rcx]
cmp eax, ecx
jne 0x1800016c5
cmp dword [rsp + 0x28], 0
je 0x1800016c5
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
inc rax
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
jmp 0x180001684
cmp dword [rsp + 0x28], 0
jne 0x1800016e8
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
jmp 0x1800016ef
jmp 0x1800015d4
xor eax, eax
add rsp, 0xb8
ret