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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x360
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rbp + 0x250], rax
xor r13d, r13d
mov dword [rsp + 0x34], r13d
mov esi, r13d
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.140002d24
nop
lea edx, [r13 + 0x10]
lea rcx, [rsp + 0x70]
call fcn.140008eb0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
lea rcx, [rbp - 0x28]
call fcn.140002d0c
nop
mov qword [rsp + 0x68], r13
lea ecx, [r13 + 8]
call fcn.140025ae4
mov qword [rsp + 0x40], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x48]
call fcn.140002d0c
mov r12, rax
mov r15d, 1
mov dword [rsp + 0x34], r15d
lea rcx, [0x14003e488]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140002e74
add rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140004090
lea rcx, [rsp + 0x70]
call fcn.140002de0
mov r9, rax
cmp qword [rax + 0x18], 8
jb 0x140006799
mov r9, qword [rax]
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140002de0
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1400067f6
lea r14, [rcx + rdx]
mov qword [rbx + 0x10], r14
mov rdi, rbx
cmp r8, 8
jb 0x1400067d1
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8, rdx
mov rdx, r9
call fcn.140002fe4
mov word [rsp + 0x30], r13w
lea rcx, [rdi + r14*2]
lea rdx, [rsp + 0x30]
call fcn.140002fdc
jmp 0x140006805
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x48]
call fcn.140003410
lea rcx, [0x14003e488]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdx, rax
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140006861
lea rdi, [rcx + rdx]
mov qword [rbx + 0x10], rdi
cmp r8, 8
jb 0x140006838
mov rbx, qword [rbx]
lea rcx, [rbx + rcx*2]
mov r8, rdx
lea rdx, [0x14003e488]
call fcn.140002fe4
mov word [rsp + 0x30], r13w
lea rcx, [rbx + rdi*2]
lea rdx, [rsp + 0x30]
call fcn.140002fdc
jmp 0x140006877
mov qword [rsp + 0x20], rdx
lea r9, [0x14003e488]
lea rcx, [rsp + 0x48]
call fcn.140003410
lea r8, [rbp - 0x50]
mov rdx, r12
lea rcx, [rsp + 0x68]
call fcn.140013c70
movzx edi, al
and r15d, 0xfffffffe
mov dword [rsp + 0x34], r15d
lea rcx, [rsp + 0x48]
call fcn.140002b70
mov rbx, qword [rsp + 0x68]
test dil, dil
je 0x140006a5d
movzx r8d, byte [rbp - 0x30]
shr r8b, 4
and r8b, 1
je 0x140006915
lea rcx, [rbp - 0x28]
call fcn.140002a60
test al, al
jne 0x140006915
lea rcx, [rbp - 0x28]
call fcn.140002de0
mov rdx, rax
mov r9, qword [rax + 0x18]
cmp r9, 8
jb 0x1400068e1
mov rax, qword [rax]
cmp word [rax], 0x2e
jne 0x140006915
lea rcx, [rbp - 0x28]
call fcn.140002e74
cmp rax, 1
je 0x140006960
cmp r9, 8
jb 0x1400068ff
mov rdx, qword [rdx]
cmp word [rdx + 2], 0x2e
jne 0x140006915
lea rcx, [rbp - 0x28]
call fcn.140002e74
cmp rax, 2
je 0x140006960
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
test r8b, r8b
lea r8, [rbp - 0x28]
je 0x14000693a
call fcn.140004ca0
nop
mov rcx, rax
call fcn.1400066a0
mov rsi, rax
jmp 0x14000694c
call fcn.140004ca0
nop
lea rcx, [rbp - 0x70]
call fcn.140014870
movzx esi, al
lea rcx, [rbp - 0x70]
call fcn.140002b70
nop word [rax + rax]
mov rdi, qword [rbx]
cmp rdi, 0xffffffffffffffff
je 0x140006a5d
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140006a5d
lea r8, [rbp - 0x50]
lea rdx, [rbp]
call fcn.1400138d0
movzx r8d, byte [rbp - 0x30]
shr r8b, 4
and r8b, 1
je 0x140006a11
lea rcx, [rbp - 0x28]
call fcn.140002a60
test al, al
jne 0x140006a11
lea rcx, [rbp - 0x28]
call fcn.140002de0
mov rdx, rax
mov r9, qword [rax + 0x18]
cmp r9, 8
jb 0x1400069d5
mov rax, qword [rax]
cmp word [rax], 0x2e
jne 0x140006a11
lea rcx, [rbp - 0x28]
call fcn.140002e74
cmp rax, 1
je 0x140006960
cmp r9, 8
jb 0x1400069f7
mov rdx, qword [rdx]
cmp word [rdx + 2], 0x2e
jne 0x140006a11
lea rcx, [rbp - 0x28]
call fcn.140002e74
cmp rax, 2
je 0x140006960
lea rdx, [rsp + 0x70]
test r8b, r8b
lea r8, [rbp - 0x28]
je 0x140006a3f
lea rcx, [rsp + 0x48]
call fcn.140004ca0
nop
mov rcx, rax
call fcn.1400066a0
add rsi, rax
lea rcx, [rsp + 0x48]
jmp 0x140006950
lea rcx, [rbp - 0x70]
call fcn.140004ca0
nop
lea rcx, [rbp - 0x70]
call fcn.140014870
movzx eax, al
add rsi, rax
jmp 0x14000694c
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140006a77
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x140006a77
mov qword [rbx], 0xffffffffffffffff
lea rcx, [rsp + 0x70]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140006ad5
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140015900
test al, al
je 0x140006b4b
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140006b4b
lea rcx, [rsp + 0x48]
call fcn.140002b70
inc rsi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140006af2
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x140006af2
mov qword [rbx], 0xffffffffffffffff
mov edx, 8
mov rcx, rbx
call fcn.140025dd4
mov qword [rsp + 0x68], r13
lea rcx, [rbp - 0x28]
call fcn.140002b70
nop
lea rcx, [rsp + 0x70]
call fcn.140002b70
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140025ac0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [rsp + 0x48]
call fcn.140002b70
lea rcx, [rsp + 0x70]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140006bb1
lea rcx, [rbp - 0x70]
call fcn.140002d0c
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140015900
test al, al
je 0x140006b9f
lea rcx, [rbp - 0x70]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
lea rcx, [rbp - 0x70]
call fcn.140002b70
cmp edi, 0xffffffff
je 0x140006ad8
lea rcx, [rsp + 0x70]
call fcn.140002a6c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140006c08
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140015900
test al, al
je 0x140006bfe
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rcx, [rsp + 0x48]
call fcn.140002b70
lea rcx, [rsp + 0x70]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140006ad5
lea rcx, [rsp + 0x48]
call fcn.140002d0c
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140015900
test al, al
je 0x140006c5d
lea rcx, [rsp + 0x48]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140006c5d
jmp 0x140006acb
lea rcx, [rsp + 0x48]
call fcn.140002b70
and edi, 0xffffb1af
lea rcx, [rsp + 0x70]
call fcn.140002a6c
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140006ad8
lea rcx, [rbp - 0x70]
call fcn.140002d0c
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140015900
test al, al
je 0x140006cbb
lea rcx, [rbp - 0x70]
call fcn.140002a6c
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rcx, [rbp - 0x70]
call fcn.140002b70
jmp 0x140006ad8