Function at 0x40fc10
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 [0x00423d58]
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.00410440
mov dword [rsp + 0x4b0], eax
cmp dword [rsp + 0x4b0], 0
jl 0x40fca8
mov dword [rsp + 0x6d4], 1
jmp 0x40fcb3
mov dword [rsp + 0x6d4], 0
cmp dword [rsp + 0x6d4], 1
jne 0x40fcc7
cmp dword [rsp + 0x6d0], 2
jg 0x40fcdf
mov eax, dword [rsp + 0x4b0]
and eax, 0xffff
mov dword [rsp + 0x258], eax
jmp 0x40ffcd
mov eax, dword [rsp + 0x6d0]
dec eax
cdqe
mov rcx, qword [rsp + 0x700]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x40fd22
mov r9, qword [rsp + 0x700]
lea r8, [0x00420770]
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.004103c0
mov dword [rsp + 0x4b0], eax
jmp 0x40fd47
mov r9, qword [rsp + 0x700]
lea r8, str._s.
mov edx, 0x208
lea rcx, [rsp + 0x40]
call fcn.004103c0
mov dword [rsp + 0x4b0], eax
cmp dword [rsp + 0x4b0], 0
jl 0x40fd5e
mov dword [rsp + 0x6d8], 1
jmp 0x40fd69
mov dword [rsp + 0x6d8], 0
cmp dword [rsp + 0x6d8], 1
je 0x40fd8b
mov eax, dword [rsp + 0x4b0]
and eax, 0xffff
mov dword [rsp + 0x258], eax
jmp 0x40ffcd
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 0x40fdc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x258], eax
jmp 0x40ffcd
mov eax, dword [rsp + 0x6d0]
dec eax
cdqe
mov rcx, qword [rsp + 0x700]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x40fe16
lea rax, [rsp + 0x28c]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x700]
lea r8, [0x00420790]
mov edx, 0x208
lea rcx, [rsp + 0x4c0]
call fcn.004103c0
mov dword [rsp + 0x4b0], eax
jmp 0x40fe4b
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.004103c0
mov dword [rsp + 0x4b0], eax
cmp dword [rsp + 0x4b0], 0
jl 0x40ff78
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 0x40fea2
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 0x40fee4
lea rdx, [0x004207ac]
lea rcx, [rsp + 0x28c]
call qword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
je 0x40fee4
lea rdx, [0x004207b0]
lea rcx, [rsp + 0x28c]
call qword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
jne 0x40fee9
jmp 0x40ff78
mov eax, dword [rsp + 0x260]
and eax, 0x10
test eax, eax
je 0x40ff2a
cmp dword [rsp + 0x710], 1
jne 0x40ff28
mov r9, qword [rsp + 0x718]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x4c0]
call fcn.0040fc10
mov dword [rsp + 0x258], eax
jmp 0x40ff78
cmp qword [rsp + 0x718], 0
je 0x40ff4b
lea rcx, [rsp + 0x4c0]
call qword [rsp + 0x718]
cmp eax, 1
je 0x40ff4b
jmp 0x40ff78
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40ff6b
mov dword [rsp + 0x258], 0
jmp 0x40ff78
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 0x40fdc3
cmp dword [rsp + 0x708], 1
jne 0x40ffcd
mov rcx, qword [rsp + 0x700]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
jne 0x40ffc0
mov dword [rsp + 0x258], 0
jmp 0x40ffcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x258], eax
cmp qword [rsp + 0x250], 0xffffffffffffffff
je 0x40fff1
cmp qword [rsp + 0x250], 0
je 0x40fff1
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x258]
mov rcx, qword [rsp + 0x6e0]
call fcn.00418760
add rsp, 0x6f0
pop rdi
ret