Function at 0x14008c5e4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14011aa00]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rdx
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
lea r8, str.Repository::CreateRepositoryPath__
lea rdx, str.CscChangeManager
lea rcx, [rbp - 0x70]
call fcn.14004428c
nop
lea r13d, [r12 + 8]
cmp qword [rbx + 0x18], r13
jb 0x14008c64e
mov rcx, qword [rbx]
jmp 0x14008c651
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008c668
and eax, 0x10
test al, al
je 0x14008c668
mov edi, r12d
jmp 0x14008c672
call fcn.14008e404
mov edi, 0x80070002
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140084844
nop
lea rdx, [rsp + 0x30]
call fcn.14008df5c
test al, al
sete sil
cmp qword [rsp + 0x48], r13
jb 0x14008c6a2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
test sil, sil
je 0x14008c9fe
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140084844
mov r14d, 0xc
lea rdx, [rsp + 0x30]
call fcn.14008e14c
nop
cmp qword [rsp + 0x48], r13
jb 0x14008c6db
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
lea rsi, [r15 + 0x10]
cmp rsi, rbx
je 0x14008c6f6
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.140003648
cmp edi, 0x80070002
jne 0x14008c903
mov rdx, rbx
call fcn.14008ca30
test al, al
je 0x14008c7a0
call fcn.14008d778
mov esi, eax
mov edi, r12d
cmp qword [rbx + 0x18], r13
jb 0x14008c727
mov rcx, qword [rbx]
jmp 0x14008c72a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008c755
mov edx, eax
or edx, esi
cmp edx, eax
je 0x14008c769
cmp qword [rbx + 0x18], r13
jb 0x14008c748
mov rcx, qword [rbx]
jmp 0x14008c74b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14008c769
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x14008c9fe
test byte [0x14011c180], 0x10
je 0x14008c9fe
cmp qword [rbx + 0x18], r13
jb 0x14008c787
mov rbx, qword [rbx]
call fcn.14008d778
mov r8d, eax
mov dword [rsp + 0x20], edi
mov r9, rbx
call fcn.14008bad8
jmp 0x14008c9fe
mov edi, 0x80070003
test byte [0x14011c180], 0x10
je 0x14008c7c9
cmp qword [rbx + 0x18], r13
jb 0x14008c7b7
mov rbx, qword [rbx]
mov r9d, edi
mov r8, rbx
lea rdx, [0x1400ca200]
call fcn.1400304e8
call fcn.14008e404
mov qword [rsi + 0x10], r12
cmp qword [rsi + 0x18], r13
jb 0x14008c7db
mov rsi, qword [rsi]
mov word [rsi], r12w
mov ebx, 7
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
xor r8d, r8d
lea rdx, [0x1400cad40]
lea rcx, [rsp + 0x30]
call fcn.140005bc4
nop
call fcn.14001b580
lea rcx, [rax + 0x4680]
lea r9, [rbp - 0x80]
lea r8, [rsp + 0x30]
call fcn.140045650
test al, al
sete sil
cmp qword [rsp + 0x48], r13
jb 0x14008c83b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
test sil, sil
je 0x14008c9fe
call fcn.140009cb0
mov rcx, qword [rax]
test byte [rcx + 0x20], r13b
jbe 0x14008c9fe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
mov r8d, 0x3c
lea rdx, str.Failed_to_clear_Active_Directory_settings_storage_path_cache
lea rcx, [rsp + 0x30]
call fcn.140005bc4
nop
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8d, 0x10
lea rdx, str.CscChangeManager
lea rcx, [rsp + 0x58]
call fcn.140005bc4
nop
call fcn.140009cb0
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], r13
cmovae r9, qword [rsp + 0x30]
lea r8, [rsp + 0x58]
mov edx, r13d
mov rcx, qword [rax]
call fcn.140020088
nop
cmp qword [rsp + 0x70], r13
jb 0x14008c8de
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
cmp qword [rsp + 0x48], r13
jb 0x14008c9fe
mov rcx, qword [rsp + 0x30]
jmp 0x14008c9d1
test edi, edi
js 0x14008c9d9
cmp byte [r15 + 8], r12b
jne 0x14008c9fe
mov rdx, rbx
call fcn.14008d8ec
test al, al
jne 0x14008c9fe
mov edi, 0x8007051b
test byte [0x14011c180], 0x10
je 0x14008c98e
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140084844
nop
mov dword [rsp + 0x50], 0x1d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14008495c
mov r14d, 0x1f
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], r13
cmovae rcx, qword [rsp + 0x58]
cmp qword [rax + 0x18], r13
jb 0x14008c975
mov rax, qword [rax]
cmp qword [rbx + 0x18], r13
jb 0x14008c97e
mov rbx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov r8, rbx
call fcn.14008bb78
test r14b, 2
je 0x14008c9bf
and r14d, 0xfffffffd
cmp qword [rsp + 0x48], r13
jb 0x14008c9aa
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov ebx, 7
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
test r14b, 1
je 0x14008c9fe
cmp qword [rsp + 0x70], r13
jb 0x14008c9fe
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x14008c9fe
test byte [0x14011c180], 0x10
je 0x14008c9fe
cmp qword [rbx + 0x18], r13
jb 0x14008c9eb
mov rbx, qword [rbx]
mov r9d, edi
mov r8, rbx
lea rdx, [0x1400ca200]
call fcn.1400304e8
nop
lea rcx, [rbp - 0x70]
call fcn.140044398
mov eax, edi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400afcd0
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret