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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov r8d, 0x1c8
mov rcx, rbx
xor edx, edx
call fcn.180014d70
xor r9d, r9d
mov eax, 0x5a4d
mov qword [rbx], rdi
mov qword [rbx + 0x18], rdi
mov dword [rbx + 8], r9d
cmp word [rdi], ax
jne 0x180005609
movsxd rcx, dword [rdi + 0x3c]
add rcx, rdi
cmp dword [rcx], 0x4550
jne 0x180005609
cmp word [rcx + 6], r9w
je 0x180005609
movzx eax, word [rcx + 0x14]
mov edx, pe_nt_image_headers64
lea r8d, [rdx + 0x6c]
cmp ax, dx
jne 0x1800052de
cmp word [rcx + 4], r8w
jne 0x1800052de
mov edx, 0x10b
cmp word [rcx + 0x18], dx
je 0x18000530a
mov edx, 0xf0
cmp ax, dx
jne 0x180005609
mov eax, 0x8664
cmp word [rcx + 4], ax
jne 0x180005609
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180005609
lea rax, [rdi + 0x40]
mov qword [rbx + 0x20], rax
mov eax, dword [rdi + 0x3c]
sub eax, 0x40
mov dword [rbx + 0x28], eax
cmp word [rcx + 4], r8w
lea r8, [rcx + 0x18]
jne 0x18000533c
mov dword [rbx + 0x10], r9d
mov qword [rbx + 0x30], rcx
mov qword [rbx + 0x38], rcx
mov qword [rbx + 0x40], r9
lea rdx, [rcx + 0x78]
jmp 0x180005356
mov dword [rbx + 0x10], 1
mov qword [rbx + 0x30], r9
mov qword [rbx + 0x38], r9
mov qword [rbx + 0x40], rcx
lea rdx, [rcx + 0x88]
mov eax, dword [rcx + 0x3c]
mov dword [rbx + 0x48], eax
mov eax, dword [rcx + 0x38]
mov dword [rbx + 0x4c], eax
mov eax, dword [rcx + 0x54]
mov qword [rbx + 0x58], rdx
mov dword [rbx + 0x50], eax
movzx eax, word [rcx + 6]
mov dword [rbx + 0x60], eax
movzx eax, word [rcx + 0x14]
add r8, rax
mov eax, dword [rbx + 0x60]
lea rcx, [rax + rax*4]
mov qword [rbx + 0x68], r8
lea rax, [r8 + rcx*8]
mov qword [rbx + 0x70], rax
mov eax, dword [rdx]
test eax, eax
je 0x1800053a0
cmp dword [rdx + 4], r9d
je 0x1800053a0
add rax, rdi
mov qword [rbx + 0x78], rax
mov eax, dword [rdx + 8]
test eax, eax
je 0x1800053b7
cmp dword [rdx + 0xc], r9d
je 0x1800053b7
add rax, rdi
mov qword [rbx + 0x80], rax
mov eax, dword [rdx + 0x10]
test eax, eax
je 0x1800053ce
cmp dword [rdx + 0x14], r9d
je 0x1800053ce
add rax, rdi
mov qword [rbx + 0x88], rax
cmp dword [rdx + 0x18], r9d
je 0x1800053e5
cmp dword [rdx + 0x1c], r9d
je 0x1800053e5
lea rax, [rdx + 0x30]
mov qword [rbx + 0x90], rax
cmp dword [rdx + 0x20], r9d
je 0x1800053fc
cmp dword [rdx + 0x24], r9d
je 0x1800053fc
lea rax, [rdx + 0x40]
mov qword [rbx + 0x98], rax
mov eax, dword [rdx + 0x28]
test eax, eax
je 0x180005413
cmp dword [rdx + 0x2c], r9d
je 0x180005413
add rax, rdi
mov qword [rbx + 0xa0], rax
mov eax, dword [rdx + 0x30]
test eax, eax
je 0x18000542a
cmp dword [rdx + 0x34], r9d
je 0x18000542a
add rax, rdi
mov qword [rbx + 0xa8], rax
cmp dword [rdx + 0x38], r9d
je 0x180005441
cmp dword [rdx + 0x3c], r9d
je 0x180005441
lea rax, [rdx + 0x70]
mov qword [rbx + 0xb0], rax
cmp dword [rdx + 0x40], r9d
je 0x18000545b
cmp dword [rdx + 0x44], r9d
je 0x18000545b
lea rax, [rdx + 0x80]
mov qword [rbx + 0xb8], rax
mov eax, dword [rdx + 0x48]
test eax, eax
je 0x18000548c
cmp dword [rdx + 0x4c], r9d
je 0x18000548c
cmp dword [rbx + 0x10], r9d
je 0x18000547a
add rax, rdi
mov qword [rbx + 0xd0], rax
jmp 0x18000548c
lea rcx, [rdi + rax]
mov qword [rbx + 0xc0], rcx
mov qword [rbx + 0xc8], rcx
mov eax, dword [rdx + 0x50]
test eax, eax
je 0x1800054bd
cmp dword [rdx + 0x54], r9d
je 0x1800054bd
cmp dword [rbx + 0x10], r9d
je 0x1800054ab
add rax, rdi
mov qword [rbx + 0xe8], rax
jmp 0x1800054bd
lea rcx, [rdi + rax]
mov qword [rbx + 0xd8], rcx
mov qword [rbx + 0xe0], rcx
mov eax, dword [rdx + 0x58]
test eax, eax
je 0x1800054d4
cmp dword [rdx + 0x5c], r9d
je 0x1800054d4
add rax, rdi
mov qword [rbx + 0xf0], rax
mov eax, dword [rdx + 0x60]
test eax, eax
je 0x180005502
mov ecx, dword [rdx + 0x64]
test ecx, ecx
je 0x180005502
add rax, rdi
mov qword [rbx + 0x108], rcx
mov qword [rbx + 0xf8], rax
add rax, rcx
mov qword [rbx + 0x100], rax
jmp 0x1800055c0
cmp qword [rbx + 0x80], r9
je 0x1800055c0
mov qword [rbx + 0xf8], r9
mov qword [rbx + 0x100], r9
mov qword [rbx + 0x108], r9
mov r8, qword [rbx + 0x80]
cmp dword [r8], r9d
je 0x1800055c0
mov eax, dword [r8 + 0x10]
test eax, eax
je 0x1800055b2
cmp qword [rdi + rax], 0
lea rcx, [rdi + rax]
mov rax, rcx
je 0x18000555a
nop word [rax + rax]
add rax, 8
cmp qword [rax], 0
jne 0x180005550
cmp qword [rbx + 0xf8], rcx
ja 0x18000556d
cmp qword [rbx + 0x108], 0
jne 0x180005574
mov qword [rbx + 0xf8], rcx
sub rax, rcx
add rax, 8
sar rax, 3
lea r9, [rcx + rax*8]
cmp qword [rbx + 0x100], r9
jb 0x180005596
cmp qword [rbx + 0x108], 0
jne 0x18000559d
mov qword [rbx + 0x100], r9
mov rax, qword [rbx + 0x100]
sub rax, qword [rbx + 0xf8]
mov qword [rbx + 0x108], rax
add r8, 0x14
cmp dword [r8], 0
jne 0x180005534
mov eax, dword [rdx + 0x68]
test eax, eax
je 0x1800055d7
cmp dword [rdx + 0x6c], 0
je 0x1800055d7
add rax, rdi
mov qword [rbx + 0x110], rax
cmp dword [rdx + 0x70], 0
je 0x1800055f1
cmp dword [rdx + 0x74], 0
je 0x1800055f1
lea rcx, [rdx + 0xe0]
mov qword [rbx + 0x118], rcx
mov rcx, rbx
call fcn.180005620
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret