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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1403a6f68]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x28], 0
mov ecx, 0x8000
mov edx, 2
call fcn.140023bf0
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi]
xor esi, esi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee120
mov rcx, rax
call fcn.1400eb070
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400e5150
test al, al
je 0x1400e618e
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e618c
test eax, 0x400
jne 0x1400e5ff0
test al, 0x10
jne 0x1400e6004
lea rcx, [0x1402cdcdc]
lea rdx, [rsp + 0x20]
call fcn.1400e6380
mov esi, eax
jmp 0x1400e618e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne sil
jmp 0x1400e618e
mov rbp, qword [rsp + 0x28]
mov edi, 0x7fff
sub rdi, rbp
lea rcx, [rsi + rbp*2]
lea r8, [0x1402a45b2]
lea r9, [0x1402cdcc8]
mov rdx, rdi
call fcn.140016c80
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e6181
mov ebx, eax
movsxd r14, eax
cmp rdi, r14
jl 0x1400e6181
lea rcx, [0x1402cdcc8]
mov edx, 0x8000
call fcn.1402772d8
cmp rax, r14
jne 0x1400e6181
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e618c
mov rdi, rax
add ebp, ebx
shl rbp, 0x20
movabs rax, 0xffffffff00000000
add rax, rbp
mov r13, rax
sar r13, 0x20
mov qword [rsp + 0x28], r13
sar rax, 0x1f
mov word [rsi + rax], 0
lea rbx, [rsp + 0x5c]
mov r14d, 0x7fff
sub r14, r13
lea r12, [rsp + 0x30]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1400e60fb
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.1400e6380
test al, al
je 0x1400e61c9
mov qword [rsp + 0x28], r13
mov rsi, qword [rsp + 0x20]
mov word [rsi + r13*2], 0
mov rcx, rdi
mov rdx, r12
call r15
test eax, eax
je 0x1400e61c9
test byte [rsp + 0x30], 0x10
je 0x1400e60c4
mov rcx, rbx
lea rdx, [0x1402cdcd2]
call fcn.14028188c
test eax, eax
je 0x1400e60d9
mov rcx, rbx
lea rdx, [0x1402cdcd6]
call fcn.14028188c
test eax, eax
je 0x1400e60d9
lea rcx, [rsi + r13*2]
mov rdx, r14
lea r8, [0x1402a45b2]
mov r9, rbx
call fcn.140016c80
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e61be
movsxd rsi, eax
cmp r14, rsi
jl 0x1400e61be
mov edx, 0x8000
mov rcx, rbx
call fcn.1402772d8
cmp rax, rsi
jne 0x1400e61be
add rsi, r13
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x20]
call fcn.1400e5f40
test al, al
jne 0x1400e60d9
jmp 0x1400e61c9
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x20]
call fcn.14026bdf8
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140262cb0
mov eax, esi
add rsp, 0x288
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
jne 0x1400e6200
movabs rax, 0xfffffffe00000000
add rbp, rax
mov rcx, qword [rsp + 0x20]
sar rbp, 0x1f
mov word [rcx + rbp], 0
jmp 0x1400e5ff3
mov ecx, esi
jmp 0x1400e6186