Function at 0x1401be880
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rcx, qword [rsp + 0x88]
call fcn.140001dd0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x1401be905
mov byte [rsp + 0x44], 0
mov rcx, qword [rsp + 0x88]
call fcn.140002650
movzx eax, byte [rsp + 0x44]
jmp 0x1401beb84
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x8000004
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
cmp qword [rsp + 0x58], 0
jne 0x1401be98f
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], 0xffffffffffffffff
mov byte [rsp + 0x45], 0
mov rcx, qword [rsp + 0x88]
call fcn.140002650
movzx eax, byte [rsp + 0x45]
jmp 0x1401beb84
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
cmp qword [rsp + 0x60], 0
jne 0x1401bea33
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x10], 0xffffffffffffffff
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], 0xffffffffffffffff
mov byte [rsp + 0x46], 0
mov rcx, qword [rsp + 0x88]
call fcn.140002650
movzx eax, byte [rsp + 0x46]
jmp 0x1401beb84
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x18]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401beac1
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x10], 0xffffffffffffffff
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], 0xffffffffffffffff
mov byte [rsp + 0x47], 0
mov rcx, qword [rsp + 0x88]
call fcn.140002650
movzx eax, byte [rsp + 0x47]
jmp 0x1401beb84
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x20]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x28]
cmp dword [rax], 0x4550
je 0x1401beb5a
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x10], 0xffffffffffffffff
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], 0xffffffffffffffff
mov byte [rsp + 0x48], 0
mov rcx, qword [rsp + 0x88]
call fcn.140002650
movzx eax, byte [rsp + 0x48]
jmp 0x1401beb84
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x28]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x40], eax
mov byte [rsp + 0x49], 1
mov rcx, qword [rsp + 0x88]
call fcn.140002650
movzx eax, byte [rsp + 0x49]
add rsp, 0x78
ret