Function at 0x1800fc020
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6f0
mov rax, qword [0x180157688]
mov qword [rsp + 0x6e0], rax
mov dword [rsp + 0x258], 0
mov dword [rsp + 0x260], 0
lea rax, [rsp + 0x264]
mov rdi, rax
xor eax, eax
mov ecx, 0x24c
rep stosb byte [rdi], al
mov qword [rsp + 0x250], 0xffffffffffffffff
lea r8, [rsp + 0x6d0]
mov edx, 0x104
mov rcx, qword [rsp + 0x700]
call fcn.1800fc850
mov dword [rsp + 0x4b0], eax
cmp dword [rsp + 0x4b0], 0
jl 0x1800fc0b8
mov dword [rsp + 0x6d4], 1
jmp 0x1800fc0c3
mov dword [rsp + 0x6d4], 0
cmp dword [rsp + 0x6d4], 1
jne 0x1800fc0d7
cmp dword [rsp + 0x6d0], 2
jg 0x1800fc0ef
mov eax, dword [rsp + 0x4b0]
and eax, 0xffff
mov dword [rsp + 0x258], eax
jmp 0x1800fc3dd
mov eax, dword [rsp + 0x6d0]
dec eax
cdqe
mov rcx, qword [rsp + 0x700]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x1800fc132
mov r9, qword [rsp + 0x700]
lea r8, [0x180156e00]
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.1800fc7d0
mov dword [rsp + 0x4b0], eax
jmp 0x1800fc157
mov r9, qword [rsp + 0x700]
lea r8, str._s.
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.1800fc7d0
mov dword [rsp + 0x4b0], eax
cmp dword [rsp + 0x4b0], 0
jl 0x1800fc16e
mov dword [rsp + 0x6d8], 1
jmp 0x1800fc179
mov dword [rsp + 0x6d8], 0
cmp dword [rsp + 0x6d8], 1
je 0x1800fc19b
mov eax, dword [rsp + 0x4b0]
and eax, 0xffff
mov dword [rsp + 0x258], eax
jmp 0x1800fc3dd
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0xffffffffffffffff
jne 0x1800fc1d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x258], eax
jmp 0x1800fc3dd
mov eax, dword [rsp + 0x6d0]
dec eax
cdqe
mov rcx, qword [rsp + 0x700]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x1800fc226
lea rax, [rsp + 0x28c]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x700]
lea r8, [0x180156e20]
mov edx, 0x208
lea rcx, [rsp + 0x4c0]
call fcn.1800fc7d0
mov dword [rsp + 0x4b0], eax
jmp 0x1800fc25b
lea rax, [rsp + 0x28c]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x700]
lea r8, str._s_s
mov edx, 0x208
lea rcx, [rsp + 0x4c0]
call fcn.1800fc7d0
mov dword [rsp + 0x4b0], eax
cmp dword [rsp + 0x4b0], 0
jl 0x1800fc388
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x25c], eax
mov eax, dword [rsp + 0x25c]
and eax, 1
test eax, eax
je 0x1800fc2b2
mov eax, dword [rsp + 0x25c]
and eax, 0xfffffffe
mov dword [rsp + 0x25c], eax
mov edx, dword [rsp + 0x25c]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [rsp + 0x260]
and eax, 0x400
test eax, eax
jne 0x1800fc2f4
lea rdx, [0x180156e3c]
lea rcx, [rsp + 0x28c]
call qword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
je 0x1800fc2f4
lea rdx, [0x180156e40]
lea rcx, [rsp + 0x28c]
call qword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
jne 0x1800fc2f9
jmp 0x1800fc388
mov eax, dword [rsp + 0x260]
and eax, 0x10
test eax, eax
je 0x1800fc33a
cmp dword [rsp + 0x710], 1
jne 0x1800fc338
mov r9, qword [rsp + 0x718]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x4c0]
call fcn.1800fc020
mov dword [rsp + 0x258], eax
jmp 0x1800fc388
cmp qword [rsp + 0x718], 0
je 0x1800fc35b
lea rcx, [rsp + 0x4c0]
call qword [rsp + 0x718]
cmp eax, 1
je 0x1800fc35b
jmp 0x1800fc388
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x1800fc37b
mov dword [rsp + 0x258], 0
jmp 0x1800fc388
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x258], eax
lea rdx, [rsp + 0x260]
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800fc1d3
cmp dword [rsp + 0x708], 1
jne 0x1800fc3dd
mov rcx, qword [rsp + 0x700]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
jne 0x1800fc3d0
mov dword [rsp + 0x258], 0
jmp 0x1800fc3dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x258], eax
cmp qword [rsp + 0x250], 0xffffffffffffffff
je 0x1800fc401
cmp qword [rsp + 0x250], 0
je 0x1800fc401
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x258]
mov rcx, qword [rsp + 0x6e0]
call fcn.180124250
add rsp, 0x6f0
pop rdi
ret