Function at 0x1400f4440
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 [0x1403acd78]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov qword [rsp + 0x48], 0
mov ecx, 0x8000
mov edx, 2
call fcn.140023390
mov qword [rsp + 0x40], rax
mov rcx, qword [rsi]
xor esi, esi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400fcb50
mov rcx, rax
call fcn.1400f9b00
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.1400f3650
test al, al
je 0x1400f46c0
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f46be
test eax, 0x400
jne 0x1400f44f0
test al, 0x10
jne 0x1400f4504
lea rcx, [0x140310078]
lea rdx, [rsp + 0x40]
call fcn.1400f48c0
mov esi, eax
jmp 0x1400f46c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne sil
jmp 0x1400f46c0
mov r15, qword [rsp + 0x48]
mov edi, 0x7fff
sub rdi, r15
lea rcx, [rsi + r15*2]
lea r8, [0x1402b3322]
lea r9, [0x140310064]
mov rdx, rdi
call fcn.140016690
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400f46b3
mov ebx, eax
movsxd r14, eax
cmp rdi, r14
jl 0x1400f46b3
lea rcx, [0x140310064]
mov edx, 0x8000
call fcn.14028c960
cmp rax, r14
jne 0x1400f46b3
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400f46be
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, [0x14031006e]
mov qword [rsp + 0x28], rdi
jmp 0x1400f4614
mov rcx, rbx
mov rdx, r15
call fcn.1400f48c0
test al, al
je 0x1400f4700
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 0x1400f4700
test byte [rsp + 0x50], 0x10
je 0x1400f45df
mov rcx, rbx
mov rdx, rbp
call fcn.1402978fc
test eax, eax
je 0x1400f45f7
mov rcx, rbx
lea rdx, [0x140310072]
call fcn.1402978fc
test eax, eax
je 0x1400f45f7
mov r9, rbx
mov rdi, r14
mov r14, r12
mov r12, r15
lea rcx, [rsi + r13*2]
mov rdx, qword [rsp + 0x30]
lea r8, [0x1402b3322]
call fcn.140016690
mov word [rsi + 0xfffe], 0
test eax, eax
js 0x1400f46f0
movsxd r15, eax
cmp qword [rsp + 0x30], r15
jl 0x1400f46f0
mov edx, 0x8000
mov rcx, rbx
call fcn.14028c960
cmp rax, r15
jne 0x1400f46f0
add r15, r13
mov qword [rsp + 0x48], r15
mov r15, r12
mov rcx, r12
call fcn.1400f4440
test al, al
mov r12, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jne 0x1400f45f7
jmp 0x1400f4700
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x40]
call fcn.140281a88
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140279500
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 0x1400f473c
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 0x1400f44f3
mov ecx, esi
jmp 0x1400f46b8