Function at 0x14000be98
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
mov eax, 0x1170
call fcn.1401e8ac0
sub rsp, rax
lea rbp, [rsp + 0x40]
mov rax, qword [0x141724cd0]
xor rax, rbp
mov qword [rbp + 0x1120], rax
mov qword [rbp + 8], 0xffffffffffffffff
mov qword [rbp + 0x10], 0xffffffffffffffff
mov dword [rbp + 0x2c], 0
lea rax, [rbp + 0xd00]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xf10]
lea r8, [rbp + 0xaf0]
lea rdx, [rbp + 0x8e0]
mov rcx, qword [rbp + 0x1148]
call fcn.1401f0c80
lea rdx, [rbp + 0x8e0]
lea rcx, [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0xaf0]
lea rcx, [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rbp + 0x1148]
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..bak
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x2b0]
xor r8d, r8d
lea rdx, [0x140221600]
lea rcx, [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14000bf8b
jmp 0x14000c274
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14000bfcc
jmp 0x14000c274
cmp dword [rbp + 0x1150], 0xffffffff
jne 0x14000bfe5
mov rax, qword [rbp + 0x1140]
mov eax, dword [rax + 0x4c]
mov dword [rbp + 0x1150], eax
movsxd rax, dword [rbp + 0x1150]
lea rcx, section..data
mov rax, qword [rcx + rax*8]
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x50]
call fcn.1401ed8c0
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x1140]
add rax, 0x58
mov rcx, rax
call fcn.140023588
mov dword [rbp + 0x24], eax
call fcn.14017f048
mov dword [rbp + 0x30], eax
mov dword [rbp], 0
jmp 0x14000c036
mov eax, dword [rbp]
inc eax
mov dword [rbp], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp], eax
jge 0x14000c194
movsxd rax, dword [rbp]
mov rcx, qword [rbp + 0x1140]
add rcx, 0x58
mov rdx, rax
call fcn.14000890c
mov eax, dword [rax + 8]
mov dword [rbp + 0x1c], eax
cmp dword [rbp + 0x1c], 0
jle 0x14000c150
movsxd rax, dword [rbp]
mov rcx, qword [rbp + 0x1140]
add rcx, 0x58
mov rdx, rax
call fcn.14000890c
mov rax, qword [rax]
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x14000c09b
mov qword [rbp + 0x48], 0
jmp 0x14000c11b
mov rcx, qword [rbp + 0x38]
call fcn.1401ed4a8
inc eax
mov dword [rbp + 0x18], eax
cmp dword [rbp + 0x18], 0x3fffffff
jle 0x14000c0bc
mov qword [rbp + 0x40], 0
jmp 0x14000c113
movsxd rax, dword [rbp + 0x18]
shl rax, 1
mov qword [rbp + 0x58], rax
movsxd rcx, dword [rbp + 0x18]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x14000c0e4
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1401e8ac0
sub rsp, rax
lea rax, [rsp + 0x40]
mov r9d, dword [rbp + 0x30]
mov rcx, qword [rbp + 0x58]
mov r8d, ecx
mov rdx, qword [rbp + 0x38]
mov rcx, rax
call fcn.140008fec
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
mov r8d, dword [rbp + 0x1c]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c143
jmp 0x14000c274
mov eax, dword [rbp + 0x20]
cmp dword [rbp + 0x1c], eax
je 0x14000c150
jmp 0x14000c274
mov eax, dword [rbp + 0x24]
dec eax
cmp dword [rbp], eax
jge 0x14000c18f
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
mov r8d, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000c182
jmp 0x14000c274
mov eax, dword [rbp + 0x20]
cmp dword [rbp + 0x28], eax
je 0x14000c18f
jmp 0x14000c274
jmp 0x14000c02e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 8], 0xffffffffffffffff
mov rax, qword [rbp + 0x1140]
cmp dword [rax + 0x50], 0
je 0x14000c20a
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp + 0x1148]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0xffffffffffffffff
je 0x14000c208
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x4c0]
mov rcx, qword [rbp + 0x1148]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000c1f6
jmp 0x14000c274
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbp + 0x10], 0xffffffffffffffff
jmp 0x14000c217
mov rcx, qword [rbp + 0x1148]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp + 0x1148]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14000c231
jmp 0x14000c274
cmp dword [rbp + 0x1158], 0
je 0x14000c26d
mov rax, qword [rbp + 0x1140]
mov rax, qword [rax]
xor edx, edx
mov rcx, qword [rbp + 0x1140]
call qword [rax + 0xa8]
mov rax, qword [rbp + 0x1140]
mov rcx, qword [rbp + 0x1140]
mov ecx, dword [rcx + 0xa8]
mov dword [rax + 0xac], ecx
mov dword [rbp + 0x2c], 1
cmp qword [rbp + 0x10], 0xffffffffffffffff
je 0x14000c285
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x14000c296
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [rbp + 0x2c]
mov rcx, qword [rbp + 0x1120]
xor rcx, rbp
call fcn.1401e8b30
lea rsp, [rbp + 0x1130]
pop rbp
ret