Function at 0x140103cf4
Capabilities:
Check if file exists
Delete file
Move file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
mov rdi, r9
mov ecx, r8d
mov r12d, r8d
mov r14, rdx
call fcn.14009c21c
or qword [rsp + 0x48], 0xffffffffffffffff
lea rsi, [0x140173048]
and dword [rsp + 0x40], 0
lea rbp, [0x14015eef8]
mov r13d, eax
and r13d, 1
je 0x140103e2e
mov rcx, rbx
mov r15, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140103da5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140103da5
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x140103da5
test byte [rcx + 0x1c], 1
je 0x140103da5
cmp byte [rcx + 0x19], 3
jb 0x140103da5
mov rcx, qword [rcx + 0x10]
mov edx, 0x14
mov r9, rbx
mov dword [rsp + 0x20], eax
mov r8, rbp
call fcn.14003fe00
lea rcx, [rsp + 0x48]
cmp r12d, 4
mov qword [rsp + 0x38], rcx
mov r9d, 2
setne al
mov edx, 0xc0000000
mov byte [rsp + 0x30], al
xor r8d, r8d
mov rcx, r15
mov dword [rsp + 0x20], 0x80
call fcn.1400980b4
xor r12d, r12d
mov ebx, eax
test eax, eax
jns 0x140103ec2
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x140103e1c
test byte [rcx + 0x1c], 1
je 0x140103e1c
cmp byte [rcx + 0x19], 2
jb 0x140103e1c
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x16]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, rbp
call fcn.1400151b8
mov rcx, qword [0x140173048]
mov rdi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x80]
jmp 0x140104075
mov rcx, r14
mov r15, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140103da5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
je 0x140103da5
mov rcx, qword [0x140173048]
lea rsi, [0x140173048]
lea rbp, [0x14015eef8]
cmp rcx, rsi
je 0x140103ea4
test byte [rcx + 0x1c], 1
je 0x140103ea4
cmp byte [rcx + 0x19], 2
jb 0x140103ea4
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r9, r14
mov dword [rsp + 0x20], eax
mov r8, rbp
call fcn.14003fe00
mov rcx, qword [0x140173048]
mov r15, qword [rsp + 0x80]
test ebx, ebx
jle 0x140104093
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140104091
test rdi, rdi
jne 0x140103edf
lea r8, str.lpDataToDump
mov edx, 0x191
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.1400906e0
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r12w
jne 0x140103ee3
mov rdx, rdi
mov qword [rsp + 0x20], r12
mov rdi, qword [rsp + 0x48]
lea r8d, [rax*2 + 2]
mov rcx, rdi
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140103f74
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x140103f5f
test byte [rcx + 0x1c], 1
je 0x140103f5f
cmp byte [rcx + 0x19], 2
jb 0x140103f5f
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, rbp
call fcn.14003fe00
mov rcx, qword [0x140173048]
mov r15, qword [rsp + 0x80]
test ebx, ebx
jle 0x140104075
jmp 0x14010406c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop dword [rax + rax]
test eax, eax
jne 0x140103fde
call qword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
nop dword [rax + rax]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x140103f5f
test byte [rcx + 0x1c], 1
je 0x140103f5f
cmp byte [rcx + 0x19], 2
jb 0x140103f5f
mov rcx, qword [rcx + 0x10]
mov edx, 0x18
mov dword [rsp + 0x28], r14d
mov r9, r15
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.14003fff4
jmp 0x140103f58
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or rdi, 0xffffffffffffffff
test r13d, r13d
jne 0x1401040be
mov r15, qword [rsp + 0x80]
lea r8d, [rdi + 0xa]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x1401040be
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x140104068
test byte [rcx + 0x1c], 1
je 0x140104068
cmp byte [rcx + 0x19], 2
jb 0x140104068
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x1a]
mov dword [rsp + 0x28], eax
mov r9, r14
mov r8, rbp
mov qword [rsp + 0x20], r15
call fcn.1400152ec
mov rcx, qword [0x140173048]
test ebx, ebx
jle 0x140104093
movzx ebx, bx
or ebx, 0x80070000
cmp rdi, 0xffffffffffffffff
je 0x140104091
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test ebx, ebx
jns 0x1401040be
cmp rcx, rsi
je 0x1401040be
test byte [rcx + 0x1c], 1
je 0x1401040be
cmp byte [rcx + 0x19], 2
jb 0x1401040be
mov rcx, qword [rcx + 0x10]
mov edx, 0x1a
mov r9, r15
mov dword [rsp + 0x20], ebx
mov r8, rbp
call fcn.1400151b8
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret