Function at 0x140006280
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x390
mov rax, qword [0x140083180]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rcx
test rcx, rcx
je 0x1400064ee
inc rcx
lea rdx, [0x14006d224]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400064ee
movzx eax, byte [rdi]
cmp al, 0x5c
je 0x1400064ee
test al, al
je 0x1400064ee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400064e7
not eax
test al, 0x10
jne 0x1400064ee
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
je 0x1400064e7
test eax, eax
jne 0x140006326
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x1400064ee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, str..
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [rax + 1]
add ecx, ebx
cmp ecx, 0x104
jg 0x1400064ee
dec rbx
lea rcx, [rsp + 0x160]
mov r8, rdi
lea rdx, [0x14006d230]
cmp byte [rbx + rdi], 0x5c
je 0x140006372
lea rdx, str._s.
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400064ee
mov rdx, rdi
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [rsp + rbx + 0x160], 0x5c
jne 0x1400063d0
cmp rbx, 0x104
jae 0x140006515
mov byte [rsp + rbx + 0x160], 0
nop dword [rax + rax]
lea rdx, [0x14006d240]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400064b0
lea rdx, [0x14006d244]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400064b0
lea rcx, [0x14006ce89]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x4c]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x160]
add ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
cmp eax, 0x104
jge 0x1400064b0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x160]
lea rdx, str._s_s
lea rcx, [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [rsp + 0x20]
test al, 0x10
je 0x14000648b
test al, 1
je 0x14000647c
and eax, 0xfffffffe
lea rcx, [rsp + 0x270]
mov edx, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x270]
call fcn.140006280
jmp 0x1400064b0
test al, 5
je 0x1400064a2
mov edx, 0x80
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400063d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x12
jne 0x1400064ee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x1400064f0
mov eax, 1
jmp 0x1400064f0
xor eax, eax
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14005d470
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14005d600
int3