Function at 0x1800013a0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000142e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_DLL_file._Error_code:
mov ebx, eax
call fcn.1800030f0
mov rcx, rax
mov edx, ebx
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]
mov rcx, rax
lea rdx, [0x1800032c0]
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]
xor eax, eax
jmp 0x1800015c8
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, 0x40
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180001496
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_read_DOS_header._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov ebx, eax
call fcn.1800030f0
mov rcx, rax
mov edx, ebx
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]
mov rcx, rax
lea rdx, [0x1800032c0]
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 rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800015c8
mov eax, 0x5a4d
cmp word [rsp + 0x60], ax
je 0x1800014b7
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Invalid_DOS_header_signature.
call fcn.1800030f0
jmp 0x180001476
mov edx, dword [rsp + 0x9c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1800014e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_move_file_pointer_to_PE_header._Error_code:
jmp 0x18000145d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180001518
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_read_PE_signature._Error_code:
jmp 0x18000145d
cmp dword [rsp + 0x44], 0x4550
je 0x18000153a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Invalid_PE_signature.
call fcn.1800030f0
jmp 0x180001476
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, 0x14
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000156e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_read_file_header._Error_code:
jmp 0x18000145d
movzx eax, word [rsp + 0x48]
mov ecx, 0x14c
cmp ax, cx
jne 0x180001586
lea rdx, str.The_DLL_is_32_bit.
jmp 0x18000159e
mov ecx, 0x8664
lea rdx, str.The_DLL_is_64_bit.
cmp ax, cx
je 0x18000159e
lea rdx, str.Unknown_architecture.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1800030f0
lea rdx, [0x1800032c0]
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 rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [rsp + 0x48]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800056f0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret