Function at 0x1400e5ee0
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2a8
mov rsi, rcx
mov rax, qword [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov qword [rsp + 0x48], 0
mov ecx, 0x8000
mov edx, 2
call fcn.140023710
mov qword [rsp + 0x40], rax
mov rcx, qword [rsi]
xor esi, esi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee6a0
mov rcx, rax
call fcn.1400eb650
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.1400e50f0
test al, al
je 0x1400e6160
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e615e
test eax, 0x400
jne 0x1400e5f90
test al, 0x10
jne 0x1400e5fa4
lea rcx, [0x140302bfc]
lea rdx, [rsp + 0x40]
call fcn.1400e6360
mov esi, eax
jmp 0x1400e6160
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne sil
jmp 0x1400e6160
mov r15, qword [rsp + 0x48]
mov edi, 0x7fff
sub rdi, r15
lea rcx, [rsi + r15*2]
lea r8, [0x1402a55e2]
lea r9, [0x140302be8]
mov rdx, rdi
call fcn.1400169e0
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e6153
mov ebx, eax
movsxd r14, eax
cmp rdi, r14
jl 0x1400e6153
lea rcx, [0x140302be8]
mov edx, 0x8000
call fcn.140277de8
cmp rax, r14
jne 0x1400e6153
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e615e
mov rdi, rax
add r15d, ebx
shl r15, 0x20
movabs rax, 0xffffffff00000000
mov qword [rsp + 0x38], r15
add rax, r15
mov r13, rax
sar r13, 0x20
mov qword [rsp + 0x48], r13
sar rax, 0x1f
mov word [rsi + rax], 0
lea rbx, [rsp + 0x7c]
mov eax, 0x7fff
sub rax, r13
mov qword [rsp + 0x30], rax
lea r15, [rsp + 0x40]
lea r12, [rsp + 0x50]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbp, [0x140302bf2]
mov qword [rsp + 0x28], rdi
jmp 0x1400e60b4
mov rcx, rbx
mov rdx, r15
call fcn.1400e6360
test al, al
je 0x1400e61a0
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x48], r13
mov word [rsi + r13*2], 0
mov rcx, rdi
mov rdx, r12
call r14
test eax, eax
je 0x1400e61a0
test byte [rsp + 0x50], 0x10
je 0x1400e607f
mov rcx, rbx
mov rdx, rbp
call fcn.1402829dc
test eax, eax
je 0x1400e6097
mov rcx, rbx
lea rdx, [0x140302bf6]
call fcn.1402829dc
test eax, eax
je 0x1400e6097
mov r9, rbx
mov rdi, r14
mov r14, r12
mov r12, r15
lea rcx, [rsi + r13*2]
mov rdx, qword [rsp + 0x30]
lea r8, [0x1402a55e2]
call fcn.1400169e0
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e6190
movsxd r15, eax
cmp qword [rsp + 0x30], r15
jl 0x1400e6190
mov edx, 0x8000
mov rcx, rbx
call fcn.140277de8
cmp rax, r15
jne 0x1400e6190
add r15, r13
mov qword [rsp + 0x48], r15
mov r15, r12
mov rcx, r12
call fcn.1400e5ee0
test al, al
mov r12, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jne 0x1400e6097
jmp 0x1400e61a0
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x40]
call fcn.14026c948
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140263800
mov eax, esi
add rsp, 0x2a8
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]
mov rdi, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
jne 0x1400e61dc
movabs rax, 0xfffffffe00000000
mov rdx, qword [rsp + 0x38]
add rdx, rax
mov rcx, qword [rsp + 0x40]
sar rdx, 0x1f
mov word [rcx + rdx], 0
jmp 0x1400e5f93
mov ecx, esi
jmp 0x1400e6158