Function at 0x140026b14
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp - 0x31], rax
xor r12d, r12d
test rax, rax
jne 0x140026b70
mov eax, r12d
jmp 0x140026b79
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
dec eax
cmp word [rbx + rax*2], 0x5c
je 0x140026bb3
lea rcx, [0x14003f0d0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.14000a054
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.14000a054
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp - 0x29], rax
test rax, rax
jne 0x140026c02
mov eax, r12d
jmp 0x140026c0b
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
dec eax
cmp word [rbx + rax*2], 0x5c
je 0x140026c45
lea rcx, [0x14003f0d0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.14000a054
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.14000a054
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r12w
jne 0x140026c76
test rax, rax
jne 0x140026c9d
mov rbx, qword [rbp - 0x29]
mov rdx, rbx
mov rdi, qword [rbp - 0x31]
mov rcx, rdi
call fcn.140021b30
jmp case.default.0x140026f0d
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], r12
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.140028b28
mov rdi, qword [rbp - 0x31]
mov rdx, rdi
lea rcx, str.backing_up_partial_file__s_n
call sub.msvcrt.dll_wprintf
mov rbx, qword [rbp - 0x29]
mov rcx, rbx
call fcn.140021ccc
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov esi, 3
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi - 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
lea r15, [0x14003f0a8]
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], rax
cmp rax, 0xffffffffffffffff
jne 0x140026d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, si
or r8d, 0x80070000
test esi, esi
cmovle r8d, esi
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, str.CreateFile_failed_on_source_of_partial_file_backup_with_error_code_0x_08lx
call fcn.14001b970
jmp 0x140026ebf
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, esi
mov edx, 0xc0000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x27], rax
cmp rax, 0xffffffffffffffff
jne 0x140026d97
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateFile_failed_on_destination_of_partial_file_backup
jmp 0x140026f49
mov ecx, 0x100000
call fcn.14002bfd8
mov qword [rbp - 9], rax
test rax, rax
jne 0x140026dbb
lea rdx, str.out_of_memory
mov ecx, 0x8007000e
call fcn.14001aa8c
mov r15d, r12d
cmp dword [rbp - 0x19], r12d
jle 0x140026e9c
mov rax, r12
mov qword [rbp - 1], rax
mov r12, qword [rbp - 0x21]
test rax, rax
js 0x140026f70
cmp r15d, dword [rbp - 0x19]
jge 0x140026f70
xor r9d, r9d
xor r8d, r8d
mov edx, dword [r12]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140026f61
and dword [rbp - 0x39], 0
and dword [rbp - 0x35], 0
mov esi, dword [r12 + 8]
test esi, esi
je 0x140026e7d
mov eax, 0x100000
cmp esi, eax
cmovb eax, esi
mov dword [rbp - 0x11], eax
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x39]
mov r8d, eax
mov rdx, qword [rbp - 9]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026f39
mov r8d, dword [rbp - 0x39]
cmp r8d, dword [rbp - 0x11]
cmovb esi, r8d
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x35]
mov rdx, qword [rbp - 9]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140026f2a
mov eax, dword [rbp - 0x39]
cmp eax, dword [rbp - 0x35]
jne 0x140026f14
sub esi, eax
jne 0x140026e13
inc r15d
mov rax, qword [rbp - 1]
inc rax
mov qword [rbp - 1], rax
add r12, 0x10
cmp r15d, dword [rbp - 0x19]
jl 0x140026dd3
xor r12d, r12d
mov rcx, qword [rbp - 9]
call fcn.14002bfcc
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop
cmp r14, 0xffffffffffffffff
je 0x140026ebf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp r13, 0xffffffffffffffff
je 0x140026ecf
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x21], r12
je case.default.0x140026f0d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rdi
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
jmp qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rdx, str.couldnt_finish_writing_to_destination_file_of_partial_file_backup
mov ecx, 0x8000ffff
call fcn.14001b970
xor r12d, r12d
jmp 0x140026eaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.WriteFile_failed_on_destination_of_partial_file_backup
jmp 0x140026f46
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.ReadFile_failed_on_source_of_partial_file_backup
xor r12d, r12d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14001b970
jmp 0x140026eaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SetFilePointer_failed_on_source_of_partial_file_backup
jmp 0x140026f46
mov edx, 1
mov ecx, 0xc000008c
call fcn.140028b14
int3