Function at 0x14000abe0
Capabilities:
Copy file
Delete file
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6c0
mov rax, qword [0x140025100]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
mov dword [rsp + 0x164], 0
mov r9, qword [rsp + 0x6d0]
lea r8, [0x140003030]
mov edx, 0x400
lea rcx, [rsp + 0x2a0]
call fcn.14001f670
mov dword [rsp + 0x290], eax
cmp dword [rsp + 0x290], 0
jne 0x14000aef4
xor edx, edx
lea rcx, [rsp + 0x2a0]
call fcn.14000b630
mov qword [rsp + 0x6a8], rax
cmp qword [rsp + 0x6a8], 0xffffffffffffffff
je 0x14000aef2
mov r9, qword [rsp + 0x6d0]
lea r8, [0x140003040]
mov edx, 0x105
lea rcx, [rsp + 0x50]
call fcn.14001f670
mov dword [rsp + 0x290], eax
cmp dword [rsp + 0x290], 0
jne 0x14000aed0
mov r9, qword [rsp + 0x6d0]
lea r8, [0x140003058]
mov edx, 0x105
lea rcx, [rsp + 0x180]
call fcn.14001f670
mov dword [rsp + 0x290], eax
cmp dword [rsp + 0x290], 0
jne 0x14000aeba
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x6a0], rax
cmp qword [rsp + 0x6a0], 0xffffffffffffffff
je 0x14000aeb8
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x170], rax
cmp qword [rsp + 0x170], 0xffffffffffffffff
je 0x14000ae9f
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x2a0]
mov edx, 0x400
mov rcx, qword [rsp + 0x6a0]
call fcn.140020a50
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 1
jbe 0x14000ae34
mov r8d, 0xa
mov rdx, qword [rsp + 0x6d8]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
je 0x14000ae2f
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x2a0]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x160]
mov r8d, eax
lea rdx, [rsp + 0x2a0]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x160]
mov r8d, 2
lea rdx, [0x140002e20]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000ad63
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x6a0], 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x14000ae91
mov edx, 0x80
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [rsp + 0x164], 1
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp qword [rsp + 0x6a0], 0xffffffffffffffff
je 0x14000aeb8
mov rcx, qword [rsp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000aece
mov eax, dword [rsp + 0x290]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000aee4
mov eax, dword [rsp + 0x290]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x6a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000af08
mov eax, dword [rsp + 0x290]
and eax, 0xffff
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x164]
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.140021740
add rsp, 0x6c0
pop rdi
ret