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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1150
call fcn.1401d75c0
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1160], rbx
mov rax, qword [0x1402c0930]
xor rax, rbp
mov qword [rbp + 0x1100], rax
mov r12, rdx
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x18], rdi
or rsi, rdi
mov qword [rbp + 0x10], rsi
xor ebx, ebx
lea rax, [rbp + 0xce0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xef0]
lea r8, [rbp + 0xad0]
lea rdx, [rbp + 0x8c0]
mov rcx, r12
call fcn.1401dea10
lea rdx, [rbp + 0x8c0]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0xad0]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r12
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140274298]
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x290]
xor r8d, r8d
lea rdx, [0x1402742a8]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140006cdb
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rbp + 0x18], rax
cmp rax, 0xffffffffffffffff
je 0x140006cdb
movsxd rcx, dword [r14 + 0x4c]
lea rax, [0x140274340]
mov rax, qword [rax + rcx*8]
mov qword [rbp + 0x30], rax
mov rcx, rax
call fcn.1401db780
mov qword [rbp + 0x20], rax
lea rcx, [r14 + 0x58]
call fcn.140008130
mov r13, rax
mov qword [rbp + 0x28], rax
call fcn.14000289c
mov dword [rbp + 4], eax
mov r15d, ebx
mov dword [rbp + 0xc], ebx
cmp r15d, r13d
jge 0x140006c3d
movsxd r13, r15d
mov rdx, r13
lea rcx, [r14 + 0x58]
call fcn.1400083f0
mov eax, dword [rax + 8]
mov dword [rbp + 8], eax
test eax, eax
jle 0x140006bf5
mov rdx, r13
lea rcx, [r14 + 0x58]
call fcn.1400083f0
mov r13, qword [rax]
test r13, r13
je 0x140006b86
mov rcx, r13
call fcn.1401db750
inc eax
cmp eax, 0x3fffffff
jle 0x140006b8b
mov rax, rbx
jmp 0x140006bc7
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140006ba7
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401d75c0
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, dword [rbp + 4]
mov rdx, r13
call fcn.14000902c
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
mov r13d, dword [rbp + 8]
mov r8d, r13d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006cdb
cmp r13d, dword [rbp]
jne 0x140006cdb
mov r13, qword [rbp + 0x28]
lea eax, [r13 - 1]
cmp r15d, eax
jge 0x140006c31
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
mov r8d, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006cdb
mov rax, qword [rbp + 0x20]
cmp eax, dword [rbp]
jne 0x140006cdb
inc r15d
mov dword [rbp + 0xc], r15d
jmp 0x140006b3b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x18], rdi
mov rcx, r12
cmp dword [r14 + 0x50], ebx
je 0x140006ca0
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov qword [rbp + 0x10], rax
cmp rax, rdi
je 0x140006ca6
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x4a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140006cdb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
or rsi, rdi
mov qword [rbp + 0x10], rsi
jmp 0x140006ca6
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, r12
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140006cdb
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0xa8]
mov eax, dword [r14 + 0xa8]
mov dword [r14 + 0xac], eax
mov ebx, 1
cmp rsi, 0xffffffffffffffff
je 0x140006cea
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp rdi, 0xffffffffffffffff
je 0x140006cf9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rbp + 0x1100]
xor rcx, rbp
call fcn.1401d6b50
mov rbx, qword [rbp + 0x1160]
lea rsp, [rbp + 0x1110]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret