Function at 0x14000a894
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rdi, rdx
test rdx, rdx
je 0x14000ab6f
movzx ecx, word [rdx]
call fcn.14000a284
mov esi, eax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000aa04
lea edx, [rsi + 2]
mov r9d, 1
xor r8d, r8d
lea rcx, [rsp + 0x60]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Array_unsigned_char_::constructor_int__int____ptr64]
nop dword [rax + rax]
nop
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.unbcl.dll_public_virtual:_unsigned_char____ptr64___cdecl_UnBCL::Array_unsigned_char_::GetBuffer_int____ptr64]
nop dword [rax + rax]
mov r14, rax
and dword [rbp + 0x50], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x50]
mov r8d, esi
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r12d, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
je 0x14000aac0
cmp esi, dword [rbp + 0x50]
jne 0x14000aac0
mov byte [rsi + r14], 0
lea eax, [rsi + 1]
mov byte [rax + r14], 0
mov ecx, 0x18
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp + 0x58], rax
test rax, rax
je 0x14000a9db
mov rdx, r14
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::String::constructor_unsigned_short_int_const____ptr64____ptr64]
nop dword [rax + rax]
lea rax, vtable.UnBCL::String.0
mov qword [rbx], rax
jmp 0x14000a9dd
xor ebx, ebx
lea rcx, [rsp + 0x60]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Array_unsigned_char_::vbase_dtor_void____ptr64]
nop dword [rax + rax]
mov rax, rbx
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rdx, rdi
lea rcx, str.Failed_to_open_file___s_.
call qword [sym.imp.unbcl.dll_public:_static_class_UnBCL::String____ptr64___cdecl_UnBCL::String::Format_unsigned_short_int_const____ptr64_]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::constructor_class_UnBCL::String____ptr64____ptr64]
nop dword [rax + rax]
nop
mov ecx, 0x40
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14000aa9a
lea rcx, [rsp + 0x40]
call qword [sym.imp.unbcl.dll_public:_class_UnBCL::String____ptr64___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::operator___void_const___ptr64]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_unsigned_short_int_const____ptr64___cdecl_UnBCL::String::get_CString_void_const___ptr64]
nop dword [rax + rax]
mov r8, rax
mov edx, esi
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Win32Exception::constructor_unsigned_long_int__unsigned_short_int_const____ptr64____ptr64]
nop dword [rax + rax]
lea rax, vtable.UnBCL::Win32Exception.0
mov qword [rbx], rax
jmp 0x14000aa9c
xor ebx, ebx
lea rdx, str.class_UnBCL::String___cdecl_OSRollbackService::CCheckpointImpressario::ReadCheckpoint_const_unsigned_short__
mov rcx, rbx
call fcn.140009764
mov qword [rbp + 0x58], rax
lea rdx, [0x140014408]
lea rcx, [rbp + 0x58]
call sub.msvcrt.dll__CxxThrowException
nop
mov rdx, rdi
lea rcx, str.Failed_to_read_checkpoint___s__file.
call qword [sym.imp.unbcl.dll_public:_static_class_UnBCL::String____ptr64___cdecl_UnBCL::String::Format_unsigned_short_int_const____ptr64_]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::constructor_class_UnBCL::String____ptr64____ptr64]
nop dword [rax + rax]
nop
mov ecx, 0x40
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14000ab49
lea rcx, [rsp + 0x40]
call qword [sym.imp.unbcl.dll_public:_class_UnBCL::String____ptr64___cdecl_UnBCL::SmartPtr_class_UnBCL::String_::operator___void_const___ptr64]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_unsigned_short_int_const____ptr64___cdecl_UnBCL::String::get_CString_void_const___ptr64]
nop dword [rax + rax]
mov r8, rax
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::Win32Exception::constructor_unsigned_long_int__unsigned_short_int_const____ptr64____ptr64]
nop dword [rax + rax]
lea rax, vtable.UnBCL::Win32Exception.0
mov qword [rbx], rax
jmp 0x14000ab4b
xor ebx, ebx
lea rdx, str.class_UnBCL::String___cdecl_OSRollbackService::CCheckpointImpressario::ReadCheckpoint_const_unsigned_short__
mov rcx, rbx
call fcn.140009764
mov qword [rbp + 0x58], rax
lea rdx, [0x140014408]
lea rcx, [rbp + 0x58]
call sub.msvcrt.dll__CxxThrowException
nop
mov ecx, 0x38
call qword [sym.imp.unbcl.dll_public:_static_void____ptr64___cdecl_UnBCL::Object::operator_new_unsigned_long_long_unsigned___int64__]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x14000abae
lea rdx, str.checkpointFile
mov rcx, rax
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::ArgumentNullException::constructor_unsigned_short_int_const____ptr64____ptr64]
nop dword [rax + rax]
lea rax, vtable.UnBCL::ArgumentNullException.0
mov qword [rbx], rax
jmp 0x14000abb0
xor ebx, ebx
lea rdx, str.class_UnBCL::String___cdecl_OSRollbackService::CCheckpointImpressario::ReadCheckpoint_const_unsigned_short__
mov rcx, rbx
call fcn.140009764
mov qword [rbp + 0x58], rax
lea rdx, [0x140014360]
lea rcx, [rbp + 0x58]
call sub.msvcrt.dll__CxxThrowException
int3