Function at 0x1400111b0
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 + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400370c8]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov dword [rsp + 0x20], r8d
mov rbx, rcx
mov dword [rsp + 0x24], edx
or rsi, 0xffffffffffffffff
mov qword [rsp + 0x28], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14001121b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001149b
mov rbx, qword [rsp + 0x28]
test dil, 0x10
je 0x14001145d
test dil, 1
je 0x140011259
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140011259
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001149b
mov ebx, dword [rsp + 0x24]
test ebx, ebx
jne 0x140011271
cmp dword [rsp + 0x20], ebx
jne 0x140011271
mov rdi, qword [rsp + 0x28]
jmp 0x14001147a
mov rdi, qword [rsp + 0x28]
lea rcx, [rbp + 0x180]
or rsi, 0xffffffffffffffff
mov r8, rdi
mov r9, rsi
mov edx, 0x104
call fcn.140018a60
cmp eax, 0x50
jne 0x1400112a0
mov ebx, 0x8007007a
jmp 0x14001149b
mov r9, rsi
lea r8, str..
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140018960
cmp eax, 0x50
je 0x140011296
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400112fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001149b
mov ebx, dword [rsp + 0x24]
lea rdx, [0x14002aabc]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140011421
lea rdx, [0x14002aac0]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140011421
or r9, 0xffffffffffffffff
lea rcx, [rbp + 0x180]
mov r8, rdi
mov edx, 0x104
call fcn.140018a60
cmp eax, 0x50
je 0x140011446
or r9, 0xffffffffffffffff
lea r8, [rsp + 0x5c]
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140018960
cmp eax, 0x50
je 0x140011446
cmp dword [rsp + 0x20], 0
je 0x1400113bf
test byte [rsp + 0x30], 0x10
je 0x1400113bf
or r9, 0xffffffffffffffff
lea r8, [0x140029d28]
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140018960
cmp eax, 0x50
je 0x140011446
mov r8d, dword [rsp + 0x20]
lea rcx, [rbp + 0x180]
mov edx, ebx
call fcn.1400111b0
mov ebx, eax
test eax, eax
jmp 0x14001141f
test ebx, ebx
je 0x140011421
test byte [rsp + 0x30], 7
je 0x1400113f8
mov edx, 0x80
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400113f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011467
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140011421
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011467
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400112f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14001144d
xor ebx, ebx
jmp 0x140011467
mov ebx, 0x8007007a
jmp 0x140011467
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140011467
mov rdi, qword [rsp + 0x28]
mov ebx, 0x8000ffff
cmp rsi, 0xffffffffffffffff
je 0x140011476
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
js 0x14001149b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001149b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400148c0
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret