Function at 0x1400054cc
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.140079100
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x1170], rbx
mov rax, qword [0x1400b2c70]
xor rax, rbp
mov qword [rbp + 0x1110], rax
mov r15, rdx
mov r14, rcx
or rbx, 0xffffffffffffffff
mov r12, rbx
mov qword [rbp + 0x10], rbx
mov r13, rbx
mov qword [rbp + 0x20], rbx
xor esi, esi
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.1400603c4
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, [0x1400933e8]
lea rcx, [rbp + 0x6c0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, esi
je 0x1400057df
mov qword [rsp + 0x30], rsi
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 r12, rax
mov qword [rbp + 0x10], rax
cmp rax, rbx
je 0x1400057df
movsxd rcx, dword [r14 + 0x4c]
lea rdx, [0x1415102a8]
mov rdx, qword [rdx + rcx*8]
mov qword [rbp + 0x40], rdx
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov qword [rbp + 0x30], rcx
lea rcx, [r14 + 0x58]
call fcn.140006c20
mov qword [rbp + 0x28], rax
call fcn.140003e38
mov dword [rbp + 0x18], eax
mov edi, esi
mov dword [rbp + 8], esi
cmp edi, dword [rbp + 0x28]
jge 0x140005739
movsxd rdx, edi
lea rcx, [r14 + 0x58]
call fcn.140006ef4
mov eax, dword [rax + 8]
mov dword [rbp + 4], eax
cmp eax, esi
jle 0x1400056f6
movsxd rdx, edi
lea rcx, [r14 + 0x58]
call fcn.140006ef4
mov rax, qword [rax]
mov qword [rbp + 0x38], rax
cmp rax, rsi
jne 0x140005675
mov rax, rsi
jmp 0x1400056c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x14000568c
mov rax, rsi
jmp 0x1400056c9
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400056a8
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140079100
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, dword [rbp + 0x18]
mov rdx, qword [rbp + 0x38]
call fcn.140007b80
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
mov r8d, dword [rbp + 4]
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
je 0x1400057df
mov eax, dword [rbp + 4]
cmp eax, dword [rbp]
jne 0x1400057df
mov rax, qword [rbp + 0x28]
dec eax
cmp edi, eax
jge 0x14000572f
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
mov r8d, dword [rbp + 0x30]
mov rdx, qword [rbp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, esi
je 0x1400057df
mov rax, qword [rbp + 0x30]
cmp eax, dword [rbp]
jne 0x1400057df
inc edi
mov dword [rbp + 8], edi
jmp 0x140005635
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, rbx
mov qword [rbp + 0x10], rbx
cmp dword [r14 + 0x50], esi
je 0x14000579b
lea rdx, [rbp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
mov qword [rbp + 0x20], rax
cmp rax, rbx
je 0x1400057a4
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, esi
je 0x1400057df
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r13, rbx
mov qword [rbp + 0x20], rbx
jmp 0x1400057a4
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, esi
je 0x1400057df
mov edi, 1
cmp edi, esi
je 0x1400057dd
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0xa8]
mov edx, dword [r14 + 0xa8]
mov dword [r14 + 0xac], edx
mov esi, edi
cmp r13, rbx
je 0x1400057ed
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp r12, rbx
je 0x1400057fb
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
mov rcx, qword [rbp + 0x1110]
xor rcx, rbp
call fcn.14005f880
mov rbx, qword [rbp + 0x1170]
lea rsp, [rbp + 0x1120]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret