Function at 0x140005920
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140094fc0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, r8
mov r14, rdx
xor esi, esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x68]
call fcn.140005820
nop
lea r9d, [rsi + 0x18]
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x140005997
lea rdx, str.Failed_to_retrieve_module_information._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x140005af8
mov qword [rsp + 0x20], rsi
mov r9d, 0x40
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140005abd
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x140005abd
movsxd rbx, dword [rbp - 0x74]
add rbx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rsi
mov r9d, pe_nt_image_headers64
lea r8, [rbp - 0x50]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140005a8c
cmp dword [rbp - 0x50], 0x4550
jne 0x140005a8c
mov edi, dword [rbp - 0x24]
add rdi, qword [rsp + 0x38]
mov r15d, dword [rbp - 0x34]
add r15, rdi
mov r8, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x60]
mov rcx, rdx
sub rcx, r8
mov rax, r15
sub rax, rcx
cmp rdi, rax
jae 0x140005b2b
mov rbx, rsi
cmp rdx, r8
je 0x140005b28
nop
lea rdx, [rbx + rdi]
mov qword [rsp + 0x20], rsi
mov r9d, 1
lea r8, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r8, qword [rbp - 0x68]
test eax, eax
je 0x140005a87
movzx eax, byte [r8 + rbx]
cmp al, 0x3f
je 0x140005a72
cmp al, byte [rbp - 0x70]
jne 0x140005a87
inc rbx
mov rax, qword [rbp - 0x60]
sub rax, r8
cmp rbx, rax
jae 0x140005b28
jmp 0x140005a40
inc rdi
jmp 0x140005a19
lea rdx, str.Invalid_NT_header_at_address:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000a1e0
lea rdx, [0x140005800]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
jmp 0x140005aee
lea rdx, str.Invalid_DOS_header_at_base_address:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000a1e0
lea rdx, [0x140005800]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, str.._Error_Code:
mov rcx, rax
call fcn.14000a1e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x14000a3b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdi, rsi
mov r8, qword [rbp - 0x68]
mov rsi, rdi
test r8, r8
je 0x140005b67
mov rdx, qword [rbp - 0x58]
sub rdx, r8
mov rax, r8
cmp rdx, 0x1000
jb 0x140005b5f
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140061e8c
mov rax, rsi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140061870
mov rbx, qword [rsp + 0x200]
add rsp, 0x1d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret