Function at 0x1400389e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov dword [rsp + 0x30], 0
add rcx, 0x20
call fcn.140049890
lea r9, [rsp + 0x140]
mov r8d, 0x40
mov rdx, rax
mov rcx, rbx
call fcn.140039d90
test al, al
jne 0x140038aa1
mov dword [rsp + 0x20], 1
mov r9d, 0x154
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpad_snapshotwinpe_image_reader.cc
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS__struct__IMAGE_NT_HEADERS__unsigned___int64___const
lea rcx, [rsp + 0x38]
call fcn.14004dc10
nop
mov dword [rsp + 0x30], 1
lea rdx, str.could_not_read_dos_header_from
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140038a84
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x38]
call fcn.14004de20
xor al, al
jmp 0x140038c24
mov eax, 0x5a4d
cmp word [rsp + 0x140], ax
je 0x140038b19
mov dword [rsp + 0x20], 1
mov r9d, 0x15a
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpad_snapshotwinpe_image_reader.cc
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS__struct__IMAGE_NT_HEADERS__unsigned___int64___const
lea rcx, [rsp + 0x38]
call fcn.14004dc10
nop
mov dword [rsp + 0x30], 2
lea rdx, str.invalid_e_magic_in_dos_header_of
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140038afc
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x38]
call fcn.14004de20
xor al, al
jmp 0x140038c24
lea rcx, [rbx + 0x20]
call fcn.140049890
movsxd rdi, dword [rsp + 0x17c]
add rdi, rax
mov r9, rbp
mov r8d, 0xf8
mov rdx, rdi
mov rcx, rbx
call fcn.140039d90
test al, al
jne 0x140038bab
mov dword [rsp + 0x20], 1
mov r9d, 0x162
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpad_snapshotwinpe_image_reader.cc
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS__struct__IMAGE_NT_HEADERS__unsigned___int64___const
lea rcx, [rsp + 0x38]
call fcn.14004dc10
nop
mov dword [rsp + 0x30], 4
lea rdx, str.could_not_read_nt_headers_from
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140038b91
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x38]
call fcn.14004de20
xor al, al
jmp 0x140038c24
cmp dword [rbp], 0x4550
je 0x140038c1a
mov dword [rsp + 0x20], 1
mov r9d, 0x168
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpad_snapshotwinpe_image_reader.cc
lea rdx, str.bool___cdecl_crashpad::PEImageReader::ReadNtHeaders_struct__IMAGE_NT_HEADERS__struct__IMAGE_NT_HEADERS__unsigned___int64___const
lea rcx, [rsp + 0x38]
call fcn.14004dc10
nop
mov dword [rsp + 0x30], 8
lea rdx, str.invalid_signature_in_nt_headers_of
mov rcx, rax
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140038c00
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rsp + 0x38]
call fcn.14004de20
xor al, al
jmp 0x140038c24
test rsi, rsi
je 0x140038c22
mov qword [rsi], rdi
mov al, 1
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140056a30
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret