Function at 0x1400ed440
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 [0x14039fd98]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov qword [rsp + 0x48], 0
mov ecx, 0x8000
mov edx, 2
call fcn.1400233e0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsi]
xor esi, esi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400f5c00
mov rcx, rax
call fcn.1400f2bb0
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.1400ec650
test al, al
je 0x1400ed6c0
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ed6be
test eax, 0x400
jne 0x1400ed4f0
test al, 0x10
jne 0x1400ed504
lea rcx, [0x1402fdfac]
lea rdx, [rsp + 0x40]
call fcn.1400ed8c0
mov esi, eax
jmp 0x1400ed6c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne sil
jmp 0x1400ed6c0
mov r15, qword [rsp + 0x48]
mov edi, 0x7fff
sub rdi, r15
lea rcx, [rsi + r15*2]
lea r8, [0x1402a04e2]
lea r9, [0x1402fdf98]
mov rdx, rdi
call fcn.140016800
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400ed6b3
mov ebx, eax
movsxd r14, eax
cmp rdi, r14
jl 0x1400ed6b3
lea rcx, [0x1402fdf98]
mov edx, 0x8000
call fcn.1402793e0
cmp rax, r14
jne 0x1400ed6b3
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400ed6be
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, [0x1402fdfa2]
mov qword [rsp + 0x28], rdi
jmp 0x1400ed614
mov rcx, rbx
mov rdx, r15
call fcn.1400ed8c0
test al, al
je 0x1400ed700
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 0x1400ed700
test byte [rsp + 0x50], 0x10
je 0x1400ed5df
mov rcx, rbx
mov rdx, rbp
call fcn.14028437c
test eax, eax
je 0x1400ed5f7
mov rcx, rbx
lea rdx, [0x1402fdfa6]
call fcn.14028437c
test eax, eax
je 0x1400ed5f7
mov r9, rbx
mov rdi, r14
mov r14, r12
mov r12, r15
lea rcx, [rsi + r13*2]
mov rdx, qword [rsp + 0x30]
lea r8, [0x1402a04e2]
call fcn.140016800
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400ed6f0
movsxd r15, eax
cmp qword [rsp + 0x30], r15
jl 0x1400ed6f0
mov edx, 0x8000
mov rcx, rbx
call fcn.1402793e0
cmp rax, r15
jne 0x1400ed6f0
add r15, r13
mov qword [rsp + 0x48], r15
mov r15, r12
mov rcx, r12
call fcn.1400ed440
test al, al
mov r12, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jne 0x1400ed5f7
jmp 0x1400ed700
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x40]
call fcn.14026e508
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140265fe0
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 0x1400ed73c
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 0x1400ed4f3
mov ecx, esi
jmp 0x1400ed6b8