Function at 0x14000a3e4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x110
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rdi, r8
mov rsi, rdx
xor r13d, r13d
test rdx, rdx
je 0x14000a713
test r8, r8
je 0x14000a779
movzx ecx, word [rdx]
call fcn.14000a284
mov r12d, eax
lea edx, [r12 + r12]
lea r9d, [r13 + 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
lea edx, [r12 - 1]
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 r15, rax
and r15, 0xfffffffffffffe00
mov ebx, r12d
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r13w
jne 0x14000a478
add rax, rax
cmp rax, rbx
ja 0x14000a7df
mov r8, rbx
xor edx, edx
mov rcx, r15
call sub.msvcrt.dll_memset
shr rbx, 1
je 0x14000a4e0
mov rcx, r15
mov edx, 0x7ffffffe
sub rdx, rbx
mov r8, rdi
sub r8, r15
lea rax, [rdx + rbx]
test rax, rax
je 0x14000a4d1
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000a4d1
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x14000a4b1
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], r13w
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xa0000080
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000a59d
mov dword [rbp + 0x50], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x50]
mov r8d, r12d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r15d, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
je 0x14000a660
cmp r12d, dword [rbp + 0x50]
jne 0x14000a660
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 rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
nop
mov r14d, eax
mov r8, rdi
mov rdx, rsi
lea rcx, str.Failed_to_open_file___s__for___s__checkpoint.
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 + 0x68], rax
test rax, rax
je 0x14000a639
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, r14d
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 0x14000a63c
mov rbx, r13
lea rdx, str.void___cdecl_OSRollbackService::CCheckpointImpressario::WriteCheckpoint_const_unsigned_short__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 r8, rsi
mov rdx, rdi
lea rcx, str.Failed_to_write_checkpoint___s__checkpoint_to___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 + 0x68], rax
test rax, rax
je 0x14000a6ec
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, r15d
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 0x14000a6ef
mov rbx, r13
lea rdx, str.void___cdecl_OSRollbackService::CCheckpointImpressario::WriteCheckpoint_const_unsigned_short__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 + 0x68], rax
test rax, rax
je 0x14000a752
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 0x14000a755
mov rbx, r13
lea rdx, str.void___cdecl_OSRollbackService::CCheckpointImpressario::WriteCheckpoint_const_unsigned_short__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
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 + 0x68], rax
test rax, rax
je 0x14000a7b8
lea rdx, str.checkpointName
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 0x14000a7bb
mov rbx, r13
lea rdx, str.void___cdecl_OSRollbackService::CCheckpointImpressario::WriteCheckpoint_const_unsigned_short__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
nop
mov rdx, rdi
lea rcx, str.New_checkpoint___s__is_too_long.
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, 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 + 0x68], rax
test rax, rax
je 0x14000a865
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 rdx, rax
mov rcx, rbx
call qword [sym.imp.unbcl.dll_public:_void___cdecl_UnBCL::ArgumentException::constructor_unsigned_short_int_const____ptr64____ptr64]
nop dword [rax + rax]
lea rax, vtable.UnBCL::ArgumentException.0
mov qword [rbx], rax
jmp 0x14000a868
mov rbx, r13
lea rdx, str.void___cdecl_OSRollbackService::CCheckpointImpressario::WriteCheckpoint_const_unsigned_short__const_unsigned_short__
mov rcx, rbx
call fcn.140009764
mov qword [rbp + 0x58], rax
lea rdx, [0x140014218]
lea rcx, [rbp + 0x58]
call sub.msvcrt.dll__CxxThrowException
int3