Function at 0x180005be4
Capabilities:
Parse pe header

Disassembly:
mov rcx, 0
mov rdx, qword [rbp - 0x18]
mov r8, 0x3000
mov r9, 4
sub rsp, 0x20
mov rax, qword [rbp - 0xd0]
call rax
add rsp, 0x20
test rax, rax
je 0x180005d41
mov qword [rbp - 0x28], rax
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp - 0xf8]
lea r8, [rbp - 0x30]
mov r9, 8
push 0
lea rax, [rbp - 0x20]
loopne 0x180005ad2
sub rsp, 0x20
mov rax, qword [rbp - 0x98]
call rax
sub rsp, 0x30
test rax, rax
jne 0x180005d41
mov rcx, qword [rbp - 0x38]
sub rsp, 0x20
mov rax, qword [rbp - 0xd8]
call rax
add rsp, 0x20
cmp qword [rbp - 0x30], rax
jg 0x180005d41
mov rcx, 0
mov rdx, qword [rbp - 0x30]
mov r8, 0x3000
mov r9, 4
sub rsp, 0x20
mov rax, qword [rbp - 0xd0]
call rax
add rsp, 0x20
test rax, rax
je 0x180005d41
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x38]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rbp - 0x108]
sub rsp, 0x20
mov rax, qword [rbp - 0xe0]
call rax
add rsp, 0x20
sub rsp, 8
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp - 0x100]
mov r8, qword [rbp - 0x108]
mov r9, rax
push 0
sub rsp, 0x20
mov rax, qword [rbp - 0xa0]
call rax
add rsp, 0x30
test rax, rax
jne 0x180005d41
mov rcx, qword [rbp - 0x40]
sub rsp, 0x20
mov rax, qword [rbp - 0xd8]
call rax
add rsp, 0x20
sub rsp, 8
mov rcx, qword [rbp - 8]
lea rdx, [rbp - 0x50]
mov r8, qword [rbp - 0x28]
mov r9, qword [rbp - 0x18]
push 0
push rax
mov rax, qword [rbp - 0x40]
push rax
sub rsp, 0x20
mov rax, qword [rbp - 0xa8]
call rax
add rsp, 0x40
test rax, rax
jne 0x180005d41
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x68]
mov r9, 0
push 1
lea rax, [rbp - 0x58]
push rax
push 0
push 0
mov rax, qword [rbp - 0x30]
push rax
mov rax, qword [rbp - 0x48]
push rax
sub rsp, 0x20
mov rax, qword [rbp - 0xb0]
call rax
add rsp, 0x50
test rax, rax
jne 0x180005d41
mov rcx, 0
mov rdx, qword [rbp - 0x58]
test al, 0x49
mov eax, 0x3000
mov r9, 4
sub rsp, 0x20
mov rax, qword [rbp - 0xd0]
call rax
add rsp, 0x20
test rax, rax
je 0x180005d41
mov qword [rbp - 0x60], rax
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x68]
mov r9, 0
push 1
lea rax, [rbp - 0x58]
push rax
mov rax, qword [rbp - 0x58]
push rax
mov rax, qword [rbp - 0x60]
push rax
mov rax, qword [rbp - 0x30]
push rax
mov rax, qword [rbp - 0x48]
push rax
sub rsp, 0x20
mov rax, qword [rbp - 0xb0]
call rax
add rsp, 0x50
test rax, rax
jne 0x180005d41
mov r15, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x58]
mov rsi, qword [rbp - 0x60]
mov rdi, qword [rbp - 0x78]
rep movsb byte [rdi], byte [rsi]
mov byte [rdi], 0
mov rcx, qword [rbp - 0x50]
sub rsp, 0x20
mov rax, qword [rbp - 0xb8]
call rax
add rsp, 0x20
push rdx
xor rdx, rdx
test rdx, rdx
jne 0x180005a2e
inc rdx
test rdx, rdx
je 0x18000526a
pop rdx
mov rcx, qword [rbp - 8]
mov rdx, 0
sub rsp, 0x20
mov rax, qword [rbp - 0xc0]
call rax
add rsp, 0x20
mov rcx, qword [rbp - 0x28]
xor rdx, rdx
mov r8, 0x8000
sub rsp, 0x20
mov rax, qword [rbp - 0xc8]
call rax
add rsp, 0x20
mov rcx, qword [rbp - 0x48]
xor rdx, rdx
mov r8, 0x8000
sub rsp, 0x20
mov rax, qword [rbp - 0xc8]
call rax
add rsp, 0x20
mov rcx, qword [rbp - 0x60]
xor rdx, rdx
mov r8, 0x8000
sub rsp, 0x20
mov rax, qword [rbp - 0xc8]
call qword [rbp - 0xc8]
add rsp, 0x20
mov rcx, r14
xor rdx, rdx
mov r8, 0x8000
sub rsp, 0x20
mov rax, qword [rbp - 0xc8]
call qword [rbp - 0xc8]
add rsp, 0x20
mov rax, r15
jmp 0x180005d48
mov rax, 0
mov rsp, rbp
pop r15
pop r14
push rax