Function at 0x14005c520
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
movzx r12d, r8b
mov r14, rcx
mov r15, qword [rbp + 0x858]
xor edx, edx
mov esi, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], dx
jne 0x14005c570
cmp rax, 1
jbe 0x14005c945
test r15, r15
je 0x14005c5cc
mov edi, edx
mov rcx, qword [r15]
mov rax, qword [r15 + 8]
sub rax, rcx
sar rax, 3
test eax, eax
jle 0x14005c5cc
mov rbx, rdx
nop
mov rdx, r14
mov rcx, qword [rbx + rcx]
call fcn.14006ee9c
test eax, eax
je 0x14005c945
inc edi
add rbx, 8
mov rcx, qword [r15]
mov rax, qword [r15 + 8]
sub rax, rcx
sar rax, 3
cmp edi, eax
jl 0x14005c5a0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.1400659a0
mov qword [rsp + 0x20], r14
lea r9, str._s
mov edx, 0x104
mov r8, 0xffffffffffffffff
lea rcx, [rbp + 0x1b0]
call fcn.14005cac0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
movzx r13d, byte [rbp + 0x868]
cmp rax, 0xffffffffffffffff
jne 0x14005c631
mov esi, 0x54f
jmp 0x14005c8ef
movzx ebx, byte [rbp + 0x860]
nop dword [rax + rax]
movzx ecx, word [rbp - 0x74]
movzx eax, word [rbp - 0x72]
cmp cx, 0x2e
jne 0x14005c66c
test ax, ax
je 0x14005c8c4
cmp cx, cx
jne 0x14005c66c
cmp ax, cx
jne 0x14005c66c
cmp word [rbp - 0x70], 0
je 0x14005c8c4
mov r8, r14
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.14006e2a0
lea rdx, [rbp - 0x74]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp + 0x1b0]
test byte [rsp + 0x60], 0x10
je 0x14005c6c8
mov byte [rsp + 0x38], r13b
mov byte [rsp + 0x30], bl
mov qword [rsp + 0x28], r15
xor eax, eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
movzx r8d, r12b
lea edx, [rax + 1]
call fcn.14005c520
jmp 0x14005c8c4
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14005c8c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r12b, r12b
je 0x14005c8c2
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], ax
lea rax, [rbp + 0x1b0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14005c720
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x40]
call fcn.14001c900
nop
test bl, bl
je 0x14005c83e
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x5d0]
call fcn.1400659a0
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x3c0]
call fcn.1400659a0
lea rdx, [rbp + 0x5d0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x3c0]
xor r8d, r8d
lea rdx, [rbp - 0x74]
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14005c7b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteFolder_GetTempFileName_error__i__n
call fcn.14005cb30
jmp 0x14005c83e
mov r8d, 9
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14005c81b
lea rax, [rbp + 0x3c0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14005c7e3
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x40]
call fcn.14001c900
lea r8, [rbp + 0x3c0]
lea rdx, [rbp + 0x1b0]
lea rcx, str.DeleteFolder_moved__s_to__s__n
call fcn.14005cb30
jmp 0x14005c83e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rbp + 0x3c0]
lea rdx, [rbp + 0x1b0]
lea rcx, str.DeleteFolder_moving__s_to__s_failed_err___i_n
call fcn.14005cb30
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14005c87e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov r8d, eax
lea rdx, [rbp + 0x1b0]
lea rcx, str.Cannot_movefileex_file:__s.__error__d__n
call fcn.14005cb30
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14005c8c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c8bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c971
call fcn.140062610
jmp 0x14005c8c4
mov esi, eax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14005c640
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
cmovne esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test r13b, r13b
jne 0x14005c941
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14005c93d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov r8d, eax
mov rdx, r14
lea rcx, str.RemoveDirectory__s_error:__i_n
call fcn.14005cb30
test r12b, r12b
je 0x14005c941
xor edx, edx
lea r8d, [rdx + 4]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14005c93d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14005c947
xor eax, eax
mov esi, eax
mov eax, esi
jmp 0x14005c947
xor eax, eax
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.1400625f0
mov rbx, qword [rsp + 0x938]
add rsp, 0x8f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400695b8
int3