Function at 0x140006ce8
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, 0x1140
call fcn.1401bc630
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1150], rbx
mov rax, qword [0x140287940]
xor rax, rbp
mov qword [rbp + 0x10f0], rax
mov r13, 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 + 0xcd0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xee0]
lea r8, [rbp + 0xac0]
lea rdx, [rbp + 0x8b0]
mov rcx, r13
call fcn.1401c4a84
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0xac0]
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r13
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140247a78]
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x280]
xor r8d, r8d
lea rdx, [0x140247a88]
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000701f
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 + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rbp + 0x18], rax
cmp rax, 0xffffffffffffffff
je 0x14000701f
movsxd rcx, dword [r14 + 0x4c]
lea rdx, [0x140247b10]
mov rdx, qword [rdx + rcx*8]
mov qword [rbp + 0x20], rdx
or r12, 0xffffffffffffffff
inc r12
cmp byte [rdx + r12], bl
jne 0x140006e25
mov eax, dword [r14 + 0x68]
mov dword [rbp + 8], eax
mov r15d, ebx
mov dword [rbp + 0xc], ebx
cmp r15d, eax
jge 0x140006f81
movsxd rax, r15d
test r15d, r15d
js 0x140007075
cmp rax, qword [r14 + 0x68]
jge 0x140007075
lea rcx, [rax + rax*4]
mov rax, qword [r14 + 0x60]
mov r10d, dword [rax + rcx*4 + 8]
mov dword [rbp], r10d
test r10d, r10d
jle 0x140006f3d
mov r8, qword [rax + rcx*4]
test r8, r8
je 0x140006f0d
or r9, 0xffffffffffffffff
mov rax, r9
inc rax
cmp word [r8 + rax*2], bx
jne 0x140006e88
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140006f0d
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140006eba
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401bc630
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov qword [rbp + 0x28], rcx
test rcx, rcx
je 0x140006f09
mov byte [rcx], bl
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb rdx, rdx
and rdx, qword [rbp + 0x28]
mov r10d, dword [rbp]
jmp 0x140006f10
mov r10d, dword [rbp]
mov rdx, rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 4]
mov r8d, r10d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000701f
mov eax, dword [rbp]
cmp eax, dword [rbp + 4]
jne 0x14000701f
mov rdx, qword [rbp + 0x20]
mov eax, dword [rbp + 8]
dec eax
cmp r15d, eax
jge 0x140006f6e
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 4]
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000701f
cmp r12d, dword [rbp + 4]
jne 0x14000701f
inc r15d
mov dword [rbp + 0xc], r15d
mov eax, dword [rbp + 8]
mov rdx, qword [rbp + 0x20]
jmp 0x140006e3b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x18], rdi
mov rcx, r13
cmp dword [r14 + 0x50], ebx
je 0x140006fe4
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov qword [rbp + 0x10], rax
cmp rax, rdi
je 0x140006fea
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x490]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000701f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
or rsi, rdi
mov qword [rbp + 0x10], rsi
jmp 0x140006fea
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, r13
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000701f
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 0x14000702e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp rdi, 0xffffffffffffffff
je 0x14000703d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rbp + 0x10f0]
xor rcx, rbp
call fcn.1401bbe60
mov rbx, qword [rbp + 0x1150]
lea rsp, [rbp + 0x1100]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001ec08
nop
int3