Function at 0x1400072c0
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.1401d9d20
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1170], rbx
mov rax, qword [0x1402c3930]
xor rax, rbp
mov qword [rbp + 0x1110], rax
mov rbx, rdx
mov qword [rbp + 0x28], rdx
mov r12, rcx
mov qword [rbp + 0x40], rcx
or r15, 0xffffffffffffffff
mov qword [rbp + 0x18], r15
or r13, r15
mov qword [rbp + 0x10], r13
xor r14d, r14d
lea rax, [rbp + 0xcf0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xf00]
lea r8, [rbp + 0xae0]
lea rdx, [rbp + 0x8d0]
mov rcx, rbx
call fcn.1401e1044
lea rdx, [rbp + 0x8d0]
lea rcx, [rbp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0xae0]
lea rcx, [rbp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rbx
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402729a8]
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x2a0]
xor r8d, r8d
lea rdx, [0x1402729b8]
lea rcx, [rbp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400075dc
mov qword [rsp + 0x30], r14
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 r15, rax
mov qword [rbp + 0x18], rax
cmp rax, 0xffffffffffffffff
je 0x1400075dc
movsxd rcx, dword [r12 + 0x4c]
lea rax, [0x140272a50]
mov rax, qword [rax + rcx*8]
mov qword [rbp + 0x38], rax
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x140007407
add r12, 0x58
mov qword [rbp + 0x20], r12
mov rcx, r12
call fcn.140008c30
mov rsi, rax
mov qword [rbp + 0x30], rax
call fcn.140002a40
mov dword [rbp + 4], eax
mov ebx, r14d
mov dword [rbp + 8], ebx
cmp ebx, esi
jge 0x140007530
movsxd rsi, ebx
mov rdx, rsi
mov rcx, r12
call fcn.140008f20
mov r12d, dword [rax + 8]
test r12d, r12d
jle 0x1400074f0
mov rdx, rsi
mov rcx, qword [rbp + 0x20]
call fcn.140008f20
mov rdx, qword [rax]
test rdx, rdx
jne 0x140007471
mov rax, r14
jmp 0x1400074c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140007475
inc eax
cmp eax, 0x3fffffff
jle 0x14000748d
mov rax, r14
jmp 0x1400074c6
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400074a9
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401d9d20
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, dword [rbp + 4]
call fcn.140009d10
mov qword [rsp + 0x20], r14
lea r9, [rbp]
mov r8d, r12d
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400075dc
cmp r12d, dword [rbp]
jne 0x1400075dc
mov rsi, qword [rbp + 0x30]
lea eax, [rsi - 1]
cmp ebx, eax
jge 0x140007525
mov qword [rsp + 0x20], r14
lea r9, [rbp]
mov r8d, edi
mov rdx, qword [rbp + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400075dc
cmp edi, dword [rbp]
jne 0x1400075dc
inc ebx
mov r12, qword [rbp + 0x20]
jmp 0x140007432
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or r15, 0xffffffffffffffff
mov qword [rbp + 0x18], r15
mov r12, qword [rbp + 0x40]
mov rbx, qword [rbp + 0x28]
mov rcx, rbx
cmp dword [r12 + 0x50], 0
je 0x14000759d
lea rdx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
mov qword [rbp + 0x10], rax
cmp rax, r15
je 0x1400075a3
lea rcx, [rbp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x4b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400075dc
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
or r13, r15
mov qword [rbp + 0x10], r13
jmp 0x1400075a3
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rbx
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400075dc
mov rax, qword [r12]
xor edx, edx
mov rcx, r12
call qword [rax + 0xa8]
mov eax, dword [r12 + 0xa8]
mov dword [r12 + 0xac], eax
mov r14d, 1
cmp r13, 0xffffffffffffffff
je 0x1400075eb
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp r15, 0xffffffffffffffff
je 0x1400075fa
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, r14d
mov rcx, qword [rbp + 0x1110]
xor rcx, rbp
call fcn.1401d92b0
mov rbx, qword [rbp + 0x1170]
lea rsp, [rbp + 0x1120]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret