Function at 0x1400e5f20
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 [0x140396de8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov qword [rsp + 0x48], 0
mov ecx, 0x8000
mov edx, 2
call fcn.140023750
mov qword [rsp + 0x40], rax
mov rcx, qword [rsi]
xor esi, esi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400ee6e0
mov rcx, rax
call fcn.1400eb690
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.1400e5130
test al, al
je 0x1400e61a0
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e619e
test eax, 0x400
jne 0x1400e5fd0
test al, 0x10
jne 0x1400e5fe4
lea rcx, [0x1402f5b9c]
lea rdx, [rsp + 0x40]
call fcn.1400e63a0
mov esi, eax
jmp 0x1400e61a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne sil
jmp 0x1400e61a0
mov r15, qword [rsp + 0x48]
mov edi, 0x7fff
sub rdi, r15
lea rcx, [rsi + r15*2]
lea r8, [0x140298582]
lea r9, [0x1402f5b88]
mov rdx, rdi
call fcn.140016a30
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e6193
mov ebx, eax
movsxd r14, eax
cmp rdi, r14
jl 0x1400e6193
lea rcx, [0x1402f5b88]
mov edx, 0x8000
call fcn.1402713e0
cmp rax, r14
jne 0x1400e6193
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400e619e
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, [0x1402f5b92]
mov qword [rsp + 0x28], rdi
jmp 0x1400e60f4
mov rcx, rbx
mov rdx, r15
call fcn.1400e63a0
test al, al
je 0x1400e61e0
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 0x1400e61e0
test byte [rsp + 0x50], 0x10
je 0x1400e60bf
mov rcx, rbx
mov rdx, rbp
call fcn.14027bfdc
test eax, eax
je 0x1400e60d7
mov rcx, rbx
lea rdx, [0x1402f5b96]
call fcn.14027bfdc
test eax, eax
je 0x1400e60d7
mov r9, rbx
mov rdi, r14
mov r14, r12
mov r12, r15
lea rcx, [rsi + r13*2]
mov rdx, qword [rsp + 0x30]
lea r8, [0x140298582]
call fcn.140016a30
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400e61d0
movsxd r15, eax
cmp qword [rsp + 0x30], r15
jl 0x1400e61d0
mov edx, 0x8000
mov rcx, rbx
call fcn.1402713e0
cmp rax, r15
jne 0x1400e61d0
add r15, r13
mov qword [rsp + 0x48], r15
mov r15, r12
mov rcx, r12
call fcn.1400e5f20
test al, al
mov r12, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jne 0x1400e60d7
jmp 0x1400e61e0
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x40]
call fcn.140266508
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14025dfe0
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 0x1400e621c
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 0x1400e5fd3
mov ecx, esi
jmp 0x1400e6198