Function at 0x1400f4978
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 rdi, rcx
mov rbp, r9
mov ecx, r8d
mov ebx, r8d
mov r15, rdx
call fcn.14008ca18
or qword [rsp + 0x48], 0xffffffffffffffff
lea rsi, [0x14016d090]
mov r13d, eax
lea r14, [0x1401533a8]
xor eax, eax
mov dword [rsp + 0x40], eax
and r13d, 1
je 0x1400f4aa5
mov rcx, rdi
mov r12, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400f4a1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400f4a1e
mov rcx, qword [0x14016d090]
cmp rcx, rsi
je 0x1400f4a1e
test byte [rcx + 0x1c], 1
je 0x1400f4a1e
cmp byte [rcx + 0x19], 3
jb 0x1400f4a1e
mov rcx, qword [rcx + 0x10]
mov edx, 0x14
mov r9, rdi
mov dword [rsp + 0x20], eax
mov r8, r14
call fcn.1400058c8
lea rcx, [rsp + 0x48]
cmp ebx, 4
mov qword [rsp + 0x38], rcx
mov r9d, 2
setne al
mov edx, 0xc0000000
mov byte [rsp + 0x30], al
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x20], 0x80
call fcn.140086590
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x1400f4b2c
mov rcx, qword [0x14016d090]
cmp rcx, rsi
je 0x1400f4a93
test byte [rcx + 0x1c], 1
je 0x1400f4a93
cmp byte [rcx + 0x19], 2
jb 0x1400f4a93
mov rcx, qword [rcx + 0x10]
mov edx, 0x16
mov r9, r12
mov dword [rsp + 0x20], eax
mov r8, r14
call fcn.1400058c8
mov rcx, qword [0x14016d090]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x80]
jmp 0x1400f4ca7
mov rcx, r15
mov r12, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400f4a1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x1400f4a1e
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
lea r14, [0x1401533a8]
cmp rcx, rsi
je 0x1400f4b0f
test byte [rcx + 0x1c], 1
je 0x1400f4b0f
cmp byte [rcx + 0x19], 2
jb 0x1400f4b0f
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8, r14
call fcn.1400058c8
mov rcx, qword [0x14016d090]
mov r12, qword [rsp + 0x80]
xor ebp, ebp
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400f4cbf
test rbp, rbp
jne 0x1400f4b4b
lea r8, str.lpDataToDump
mov edx, 0x191
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140081b60
xor ecx, ecx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], cx
jne 0x1400f4b4f
mov rdi, qword [rsp + 0x48]
lea r8d, [rax*2 + 2]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
test eax, eax
jne 0x1400f4bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, qword [0x14016d090]
cmp rcx, rsi
je 0x1400f4bc1
test byte [rcx + 0x1c], 1
je 0x1400f4bc1
cmp byte [rcx + 0x19], 2
jb 0x1400f4bc1
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r9, r12
mov dword [rsp + 0x20], eax
mov r8, r14
call fcn.1400058c8
mov rcx, qword [0x14016d090]
mov r12, qword [rsp + 0x80]
jmp 0x1400f4c99
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1400f4c21
call qword [sym.imp.ntdll.dll_RtlGetLastNtStatus]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, qword [0x14016d090]
cmp rcx, rsi
je 0x1400f4bc1
test byte [rcx + 0x1c], 1
je 0x1400f4bc1
cmp byte [rcx + 0x19], 2
jb 0x1400f4bc1
mov rcx, qword [rcx + 0x10]
mov edx, 0x18
mov dword [rsp + 0x28], ebx
mov r9, r12
mov r8, r14
mov dword [rsp + 0x20], eax
call fcn.14000fd50
jmp 0x1400f4bba
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x80]
or rdi, 0xffffffffffffffff
test r13d, r13d
jne 0x1400f4d0c
lea r8d, [rdi + 0xa]
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400f4d0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, qword [0x14016d090]
cmp rcx, rsi
je 0x1400f4c99
test byte [rcx + 0x1c], 1
je 0x1400f4c99
cmp byte [rcx + 0x19], 2
jb 0x1400f4c99
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x1a]
mov dword [rsp + 0x28], eax
mov r9, r15
mov r8, r14
mov qword [rsp + 0x20], r12
call fcn.1400059f4
mov rcx, qword [0x14016d090]
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
cmp rdi, 0xffffffffffffffff
je 0x1400f4cbd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016d090]
xor ebp, ebp
test ebx, ebx
jns 0x1400f4cec
cmp rcx, rsi
je 0x1400f4cec
test byte [rcx + 0x1c], 1
je 0x1400f4cec
cmp byte [rcx + 0x19], 2
jb 0x1400f4cec
mov rcx, qword [rcx + 0x10]
mov edx, 0x1a
mov r9, r12
mov dword [rsp + 0x20], ebx
mov r8, r14
call fcn.1400058c8
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
mov rcx, qword [0x14016d090]
jmp 0x1400f4cbf