Function at 0x18001b5e0
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
sub rsp, 0x6b0
mov rax, qword [0x1800cb660]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x18001b853
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x18001b853
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x18001b853
test al, 1
je 0x18001b651
and edi, 0xfffffffe
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test dil, 0x10
je 0x18001b82e
xor eax, eax
lea rcx, [rsp + 0x492]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x490], ax
call fcn.180037550
lea rcx, [rsp + 0x490]
mov rdx, rbx
sub rcx, rbx
nop dword [rax + rax]
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x18001b690
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x490]
repne scasw ax, word [rdi]
mov eax, dword [0x1800a6d48]
lea rcx, [rsp + 0x34]
mov dword [rdi - 2], eax
movzx eax, word [0x1800a6d4c]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x30], 0
mov word [rdi + 2], ax
call fcn.180037550
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x18001b809
nop word [rax + rax]
lea rdx, [0x1800a6d7c]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18001b7ea
lea rdx, [0x1800a6d84]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18001b7ea
xor eax, eax
lea rcx, [rsp + 0x282]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x280], ax
call fcn.180037550
lea rcx, [rsp + 0x280]
mov rdx, rbx
sub rcx, rbx
movzx eax, word [rdx]
add rdx, 2
mov word [rcx + rdx - 2], ax
test ax, ax
jne 0x18001b771
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x280]
repne scasw ax, word [rdi]
mov eax, dword [0x1800a0b28]
or rcx, 0xffffffffffffffff
mov dword [rdi - 2], eax
xor eax, eax
lea rdi, [rsp + 0x280]
repne scasw ax, word [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x5c]
nop word [rax + rax]
movzx eax, word [rdx + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x18001b7c0
lea rcx, [rsp + 0x280]
mov r8, rbp
mov rdx, rsi
call fcn.18001b5e0
mov rdi, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18001b710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
test rsi, rsi
je 0x18001b823
test rbp, rbp
je 0x18001b823
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.180033e90
jmp 0x18001b855
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x18001b855
test rsi, rsi
je 0x18001b848
test rbp, rbp
je 0x18001b848
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.180033e80
jmp 0x18001b855
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18001b855
xor eax, eax
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1800356a0
mov rbx, qword [rsp + 0x6e8]
add rsp, 0x6b0
pop rdi
pop rsi
pop rbp
ret