Function at 0x14008a950
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x568
mov rax, qword [0x1401c00d8]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x570]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x570]
call fcn.14007aae0
lea r9, [rsp + 0x510]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.14008b7b0
movzx eax, al
test eax, eax
jne 0x14008aa9c
call fcn.1400872a0
cmp eax, 1
jle 0x14008a9cf
jmp 0x14008aa78
lea rcx, [rsp + 0x34]
call fcn.140004910
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x154
lea r8, [0x14016c200]
lea rdx, [0x14016c290]
lea rcx, [rsp + 0x110]
call fcn.1400b5f40
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x50]
call fcn.140004910
lea rdx, str.could_not_read_dos_header_from
mov rcx, rax
call fcn.140003dd0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x570]
mov rcx, rax
call fcn.140004910
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140003a20
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.140004830
nop
mov eax, dword [rsp + 0x30]
and eax, 1
test eax, eax
je 0x14008aa95
and dword [rsp + 0x30], 0xfffffffe
lea rcx, [rsp + 0x110]
call fcn.1400b60e0
xor al, al
jmp 0x14008ae2f
movzx eax, word [rsp + 0x510]
cmp eax, 0x5a4d
je 0x14008aba9
call fcn.1400872a0
cmp eax, 1
jle 0x14008aabe
jmp 0x14008ab85
lea rcx, [rsp + 0x35]
call fcn.140004910
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x15a
lea r8, [0x14016c350]
lea rdx, [0x14016c3e0]
lea rcx, [rsp + 0x210]
call fcn.1400b5f40
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x30]
or eax, 2
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x80]
call fcn.140004910
lea rdx, str.invalid_e_magic_in_dos_header_of
mov rcx, rax
call fcn.140003dd0
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x570]
mov rcx, rax
call fcn.140004910
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.140003a20
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.140004830
nop
mov eax, dword [rsp + 0x30]
and eax, 2
test eax, eax
je 0x14008aba2
and dword [rsp + 0x30], 0xfffffffd
lea rcx, [rsp + 0x210]
call fcn.1400b60e0
xor al, al
jmp 0x14008ae2f
mov rcx, qword [rsp + 0x570]
call fcn.14007aae0
movsxd rcx, dword [rsp + 0x54c]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x570]
mov qword [rsp + 0xa8], rax
mov r9, qword [rsp + 0x578]
mov r8d, 0xf8
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xa8]
call fcn.14008b7b0
movzx eax, al
test eax, eax
jne 0x14008ad01
call fcn.1400872a0
cmp eax, 1
jle 0x14008ac10
jmp 0x14008acdd
lea rcx, [rsp + 0x36]
call fcn.140004910
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x162
lea r8, [0x14016c4a0]
lea rdx, [0x14016c530]
lea rcx, [rsp + 0x310]
call fcn.1400b5f40
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x30]
or eax, 4
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0xb8]
call fcn.140004910
lea rdx, str.could_not_read_nt_headers_from
mov rcx, rax
call fcn.140003dd0
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x570]
mov rcx, rax
call fcn.140004910
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
call fcn.140003a20
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xd8]
call fcn.140004830
nop
mov eax, dword [rsp + 0x30]
and eax, 4
test eax, eax
je 0x14008acfa
and dword [rsp + 0x30], 0xfffffffb
lea rcx, [rsp + 0x310]
call fcn.1400b60e0
xor al, al
jmp 0x14008ae2f
mov rax, qword [rsp + 0x578]
cmp dword [rax], 0x4550
je 0x14008ae12
call fcn.1400872a0
cmp eax, 1
jle 0x14008ad24
jmp 0x14008adf1
lea rcx, [rsp + 0x37]
call fcn.140004910
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x168
lea r8, [0x14016c5e0]
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS__struct__IMAGE_NT_HEADERS__unsigned___int64___const
lea rcx, [rsp + 0x410]
call fcn.1400b5f40
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov eax, dword [rsp + 0x30]
or eax, 8
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0xe8]
call fcn.140004910
lea rdx, str.invalid_signature_in_nt_headers_of
mov rcx, rax
call fcn.140003dd0
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x570]
mov rcx, rax
call fcn.140004910
mov qword [rsp + 0xf0], rax
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call fcn.140003a20
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
call fcn.140004830
nop
mov eax, dword [rsp + 0x30]
and eax, 8
test eax, eax
je 0x14008ae0e
and dword [rsp + 0x30], 0xfffffff7
lea rcx, [rsp + 0x410]
call fcn.1400b60e0
xor al, al
jmp 0x14008ae2f
cmp qword [rsp + 0x580], 0
je 0x14008ae2d
mov rax, qword [rsp + 0x580]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov al, 1
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1400cb890
add rsp, 0x568
ret