Function at 0x140006f8c
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.1401bfa40
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1160], rbx
mov rax, qword [0x1402a48e0]
xor rax, rbp
mov qword [rbp + 0x1100], rax
mov r13, rdx
mov qword [rbp + 0x38], rdx
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x20], rdi
or rsi, rdi
mov qword [rbp + 0x18], 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, r13
call fcn.1401c6f44
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, r13
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140259b08]
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x290]
xor r8d, r8d
lea rdx, [0x140259b18]
lea rcx, [rbp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400072e7
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 + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x1400072e7
movsxd rcx, dword [r14 + 0x4c]
lea r10, [0x140259ba0]
mov r10, qword [r10 + rcx*8]
mov qword [rbp + 0x30], r10
or r12, 0xffffffffffffffff
inc r12
cmp byte [r10 + r12], bl
jne 0x1400070cd
mov rax, qword [r14 + 0x68]
mov qword [rbp + 0x28], rax
mov qword [rbp + 8], rax
mov r15d, ebx
mov dword [rbp + 0x10], ebx
cmp r15d, eax
jge 0x140007245
movsxd rcx, r15d
test r15d, r15d
js 0x140007342
cmp rcx, qword [r14 + 0x68]
jge 0x140007342
mov rdx, qword [r14 + 0x60]
lea rax, [rcx + rcx*4]
mov r13d, dword [rdx + rax*4 + 8]
mov dword [rbp + 8], r13d
test r13d, r13d
jle 0x1400071fc
test r15d, r15d
js 0x14000733d
cmp rcx, qword [r14 + 0x68]
jge 0x14000733d
lea rax, [rcx + rcx*4]
mov r8, qword [rdx + rax*4]
test r8, r8
je 0x1400071ce
or r9, 0xffffffffffffffff
mov rax, r9
inc rax
cmp word [r8 + rax*2], bx
jne 0x14000714c
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x1400071ce
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000717e
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401bfa40
sub rsp, rcx
lea r13, [rsp + 0x40]
test r13, r13
je 0x1400071ca
mov byte [r13], bl
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb rdx, rdx
and rdx, r13
mov r13d, dword [rbp + 8]
jmp 0x1400071d1
mov r13d, dword [rbp + 8]
mov rdx, rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400072e7
cmp r13d, dword [rbp]
jne 0x1400072e7
mov r10, qword [rbp + 0x30]
mov rax, qword [rbp + 0x28]
dec eax
cmp r15d, eax
jge 0x140007231
mov qword [rsp + 0x20], rbx
lea r9, [rbp]
mov r8d, r12d
mov rdx, r10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400072e7
cmp r12d, dword [rbp]
jne 0x1400072e7
inc r15d
mov dword [rbp + 0x10], r15d
mov rax, qword [rbp + 0x28]
mov r10, qword [rbp + 0x30]
jmp 0x1400070e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x20], rdi
mov r13, qword [rbp + 0x38]
mov rcx, r13
cmp dword [r14 + 0x50], ebx
je 0x1400072ac
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov qword [rbp + 0x18], rax
cmp rax, rdi
je 0x1400072b2
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x4a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400072e7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
or rsi, rdi
mov qword [rbp + 0x18], rsi
jmp 0x1400072b2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, r13
lea rcx, [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400072e7
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 0x1400072f6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp rdi, 0xffffffffffffffff
je 0x140007305
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.1401bf180
mov rbx, qword [rbp + 0x1160]
lea rsp, [rbp + 0x1110]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001f644
call fcn.14001f644
nop
int3