Function at 0x1400e5fe0
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 [0x1403a1f58]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x28], 0
mov ecx, 0x8000
mov edx, 2
call fcn.140023d00
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi]
xor esi, esi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee270
mov rcx, rax
call fcn.1400eb110
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400e51f0
test al, al
je 0x1400e622e
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e622c
test eax, 0x400
jne 0x1400e6090
test al, 0x10
jne 0x1400e60a4
lea rcx, [0x1402c8c3c]
lea rdx, [rsp + 0x20]
call fcn.1400e6420
mov esi, eax
jmp 0x1400e622e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne sil
jmp 0x1400e622e
mov rbp, qword [rsp + 0x28]
mov edi, 0x7fff
sub rdi, rbp
lea rcx, [rsi + rbp*2]
lea r8, [0x14029f622]
lea r9, [0x1402c8c28]
mov rdx, rdi
call fcn.140016d90
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e6221
mov ebx, eax
movsxd r14, eax
cmp rdi, r14
jl 0x1400e6221
lea rcx, [0x1402c8c28]
mov edx, 0x8000
call fcn.140271638
cmp rax, r14
jne 0x1400e6221
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e622c
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 0x1400e619b
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.1400e6420
test al, al
je 0x1400e6269
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 0x1400e6269
test byte [rsp + 0x30], 0x10
je 0x1400e6164
mov rcx, rbx
lea rdx, [0x1402c8c32]
call fcn.14027bc3c
test eax, eax
je 0x1400e6179
mov rcx, rbx
lea rdx, [0x1402c8c36]
call fcn.14027bc3c
test eax, eax
je 0x1400e6179
lea rcx, [rsi + r13*2]
mov rdx, r14
lea r8, [0x14029f622]
mov r9, rbx
call fcn.140016d90
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e625e
movsxd rsi, eax
cmp r14, rsi
jl 0x1400e625e
mov edx, 0x8000
mov rcx, rbx
call fcn.140271638
cmp rax, rsi
jne 0x1400e625e
add rsi, r13
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x20]
call fcn.1400e5fe0
test al, al
jne 0x1400e6179
jmp 0x1400e6269
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x20]
call fcn.140265df4
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14025cd50
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 0x1400e62a0
movabs rax, 0xfffffffe00000000
add rbp, rax
mov rcx, qword [rsp + 0x20]
sar rbp, 0x1f
mov word [rcx + rbp], 0
jmp 0x1400e6093
mov ecx, esi
jmp 0x1400e6226