Function at 0x1400a1040
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r15, r8
xor r12d, r12d
mov dword [rsp + 0x30], r12d
cmp qword [rdx + 0x18], 0x10
jb 0x1400a108a
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400a12bc
mov qword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
jne 0x1400a1244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
call fcn.140004970
test rax, rax
je 0x1400a1236
call fcn.140004970
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
test al, al
je 0x1400a1236
call fcn.140004970
mov rbx, rax
lea rax, [0x14013d738]
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP120.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x38], rsi
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x88]
mov dword [rsp + rcx + 0x34], r8d
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140006d80
nop
lea rdx, str.Vector_read:_MapViewOfFile_failed:_0x
lea rcx, [rsp + 0x38]
call fcn.140008b50
lea rdx, [0x1400197a0]
mov rcx, rax
call qword [sym.imp.MSVCP120.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 rcx, rax
mov edx, r14d
call qword [sym.imp.MSVCP120.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, [0x140008260]
call qword [sym.imp.MSVCP120.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, rax
lea rdx, [rbp + 0x28]
call fcn.140005af0
nop
mov r9, qword [rbx]
mov edx, 3
mov r8, rax
mov rcx, rbx
call qword [r9 + 0x28]
nop
cmp qword [rbp + 0x40], 0x10
jb 0x1400a11e3
mov rcx, qword [rbp + 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp + 0x40], shutdown
mov qword [rbp + 0x38], r12
mov byte [rbp + 0x28], 0
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x38], rsi
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov rax, rcx
mov dword [rsp + rcx + 0x34], edx
lea rcx, [rsp + 0x40]
call fcn.140005b20
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, rdi
call qword [0x14011e328]
jmp 0x1400a1477
mov ebx, dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
cmp ebx, 4
jb 0x1400a1239
mov r14d, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x1400a1236
add ebx, 0xfffffffc
je 0x1400a1296
mov edx, ebx
mov rcx, r15
call fcn.140014680
lea rdx, [rsi + 4]
mov r8d, ebx
mov rcx, qword [r15]
call sub.MSVCR120.dll_memcpy
mov r8, r14
xor edx, edx
mov rcx, rsi
call sub.MSVCR120.dll_memset
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [0x14011e328]
mov al, 1
jmp 0x1400a1479
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140004970
test rax, rax
je 0x1400a1477
call fcn.140004970
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
test al, al
je 0x1400a1477
call fcn.140004970
mov rbx, rax
lea rax, [0x14013d738]
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14011e760]
mov qword [rbp - 0x40], rcx
mov dword [rsp + 0x30], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP120.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x38], rsi
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x34], edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea r14, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x40], r14
mov qword [rbp - 0x58], r12
mov dword [rbp - 0x50], 4
lea rdx, str.Vector_read:_OpenFileMappingA_failed:_0x
lea rcx, [rsp + 0x38]
call fcn.140008b50
lea rdx, [0x1400197a0]
mov rcx, rax
call qword [sym.imp.MSVCP120.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 rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP120.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, [0x140008260]
call qword [sym.imp.MSVCP120.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, rax
lea rdx, [rbp + 0x28]
call fcn.140005af0
nop
mov r9, qword [rbx]
mov edx, 3
mov r8, rax
mov rcx, rbx
call qword [r9 + 0x28]
nop
cmp qword [rbp + 0x40], 0x10
jb 0x1400a13dd
mov rcx, qword [rbp + 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbp + 0x40], shutdown
mov qword [rbp + 0x38], r12
mov byte [rbp + 0x28], 0
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x38], rsi
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x34], edx
mov qword [rsp + 0x40], r14
test byte [rbp - 0x50], 1
je 0x1400a1426
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP120.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rax, qword [rsp + 0x60]
mov qword [rax], r12
mov rax, qword [rbp - 0x80]
mov qword [rax], r12
mov rax, qword [rbp - 0x68]
mov dword [rax], r12d
mov qword [rbp - 0x58], r12
and dword [rbp - 0x50], 0xfffffffe
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP120.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor al, al
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14010a480
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret