Function at 0x140006120
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, 0x1160
call fcn.14007bdf0
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1178], rbx
mov rax, qword [0x1413a08d0]
xor rax, rbp
mov qword [rbp + 0x1110], rax
mov dword [rbp + 0x18], r9d
mov r14d, r8d
mov r15, rdx
mov qword [rbp + 0x30], rdx
mov r12, rcx
or rdi, 0xffffffffffffffff
mov rsi, rdi
mov qword [rbp + 0x20], rdi
mov r13, rdi
mov qword [rbp + 0x10], rdi
xor ebx, ebx
lea rax, [rbp + 0xf00]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xcf0]
lea r8, [rbp + 0x8d0]
lea rdx, [rbp + 0xae0]
mov rcx, r15
call fcn.14006356c
lea rdx, [rbp + 0xae0]
lea rcx, [rbp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0x8d0]
lea rcx, [rbp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r15
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..bak
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x2a0]
xor r8d, r8d
lea rdx, [0x1400859c0]
lea rcx, [rbp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
je 0x1400064b5
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 + 0x2a0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rbp + 0x20], rax
cmp rax, rdi
je 0x1400064b5
cmp r14d, edi
jne 0x14000625d
mov r14d, dword [r12 + 0x4c]
movsxd rcx, r14d
lea rax, [0x1400b41c8]
mov rax, qword [rax + rcx*8]
mov qword [rbp + 0x48], rax
mov rcx, rax
call fcn.140063210
mov r8, rax
mov qword [rbp + 0x40], rax
mov rax, qword [r12 + 0x68]
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x28], rax
mov r14d, ebx
mov dword [rbp + 8], ebx
cmp r14d, eax
jge 0x140006404
movsxd rdx, r14d
cmp rdx, rbx
jl 0x1400063ff
cmp rdx, qword [r12 + 0x68]
jge 0x1400063ff
lea rcx, [rdx + rdx*4]
mov rax, qword [r12 + 0x60]
mov r15d, dword [rax + rcx*4 + 8]
mov dword [rbp + 4], r15d
cmp r15d, ebx
jle 0x1400063b8
cmp rdx, rbx
jl 0x1400063af
cmp rdx, qword [r12 + 0x68]
jge 0x1400063af
lea rcx, [rdx + rdx*4]
mov rax, qword [rax + rcx*4]
mov qword [rbp + 0x28], rax
cmp rax, rbx
jne 0x1400062f9
mov rdx, rbx
jmp 0x140006387
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9d, [rax + 1]
cmp r9d, 0x3fffffff
jle 0x140006314
mov rdx, rbx
jmp 0x140006387
movsxd rax, r9d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000632d
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14007bdf0
sub rsp, rcx
lea r15, [rsp + 0x40]
cmp r15, rbx
je 0x140006380
mov byte [r15], bl
lea eax, [r9 + r9]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9d, edi
mov r8, qword [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb rdx, rdx
and rdx, r15
mov r15d, dword [rbp + 4]
jmp 0x140006387
mov rdx, rbx
mov r15d, dword [rbp + 4]
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
mov r8d, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x1400064b5
cmp r15d, dword [rbp]
je 0x1400063b4
jmp 0x1400064b5
call fcn.14001f118
mov r8, qword [rbp + 0x40]
mov rax, qword [rbp + 0x38]
dec eax
cmp r14d, eax
jge 0x1400063ef
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
mov rdx, qword [rbp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x1400064b5
mov r8, qword [rbp + 0x40]
cmp r8d, dword [rbp]
jne 0x1400064b5
inc r14d
mov dword [rbp + 8], r14d
mov rax, qword [rbp + 0x38]
jmp 0x140006291
call fcn.14001f118
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, rdi
mov qword [rbp + 0x20], rdi
cmp dword [r12 + 0x50], ebx
je 0x14000646b
lea rdx, [rbp + 0x50]
mov r15, qword [rbp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
mov qword [rbp + 0x10], rax
cmp rax, rdi
je 0x140006478
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x4b0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebx
je 0x1400064b5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r13, rdi
mov qword [rbp + 0x10], rdi
jmp 0x140006478
mov r15, qword [rbp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, r15
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebx
je 0x1400064b5
cmp dword [rbp + 0x18], ebx
je 0x1400064b0
mov rax, qword [r12]
xor edx, edx
mov rcx, r12
call qword [rax + 0xa8]
mov r11d, dword [r12 + 0xa8]
mov dword [r12 + 0xac], r11d
mov ebx, 1
cmp r13, rdi
je 0x1400064c3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp rsi, rdi
je 0x1400064d1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rbp + 0x1110]
xor rcx, rbp
call fcn.140062ce0
mov rbx, qword [rbp + 0x1178]
lea rsp, [rbp + 0x1120]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret