Function at 0x1400e6af0
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 [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x28], 0
mov ecx, 0x8000
mov edx, 2
call fcn.1400239e0
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi]
xor esi, esi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ef3f0
mov rcx, rax
call fcn.1400ec310
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.1400e5d00
test al, al
je 0x1400e6d3e
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e6d3c
test eax, 0x400
jne 0x1400e6ba0
test al, 0x10
jne 0x1400e6bb4
lea rcx, [0x1402d179c]
lea rdx, [rsp + 0x20]
call fcn.1400e6f30
mov esi, eax
jmp 0x1400e6d3e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne sil
jmp 0x1400e6d3e
mov rbp, qword [rsp + 0x28]
mov edi, 0x7fff
sub rdi, rbp
lea rcx, [rsi + rbp*2]
lea r8, [0x1402a8602]
lea r9, [0x1402d1788]
mov rdx, rdi
call fcn.140016b40
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e6d31
mov ebx, eax
movsxd r14, eax
cmp rdi, r14
jl 0x1400e6d31
lea rcx, [0x1402d1788]
mov edx, 0x8000
call fcn.14027a5c8
cmp rax, r14
jne 0x1400e6d31
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e6d3c
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 0x1400e6cab
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.1400e6f30
test al, al
je 0x1400e6d79
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 0x1400e6d79
test byte [rsp + 0x30], 0x10
je 0x1400e6c74
mov rcx, rbx
lea rdx, [0x1402d1792]
call fcn.140284fbc
test eax, eax
je 0x1400e6c89
mov rcx, rbx
lea rdx, [0x1402d1796]
call fcn.140284fbc
test eax, eax
je 0x1400e6c89
lea rcx, [rsi + r13*2]
mov rdx, r14
lea r8, [0x1402a8602]
mov r9, rbx
call fcn.140016b40
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e6d6e
movsxd rsi, eax
cmp r14, rsi
jl 0x1400e6d6e
mov edx, 0x8000
mov rcx, rbx
call fcn.14027a5c8
cmp rax, rsi
jne 0x1400e6d6e
add rsi, r13
mov qword [rsp + 0x28], rsi
lea rcx, [rsp + 0x20]
call fcn.1400e6af0
test al, al
jne 0x1400e6c89
jmp 0x1400e6d79
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x20]
call fcn.14026f0e8
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140265fa0
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 0x1400e6db0
movabs rax, 0xfffffffe00000000
add rbp, rax
mov rcx, qword [rsp + 0x20]
sar rbp, 0x1f
mov word [rcx + rbp], 0
jmp 0x1400e6ba3
mov ecx, esi
jmp 0x1400e6d36