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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140113970]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rdx
mov r13, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea r8, str.Repository::CreateRepositoryPath__
lea rdx, str.CscChangeManager
lea rcx, [rsp + 0x70]
call fcn.14004e088
nop
cmp qword [rbx + 0x18], 8
jb 0x14009e461
mov rcx, qword [rbx]
jmp 0x14009e464
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ecx, 0x80070002
cmp eax, 0xffffffff
je 0x14009e486
test al, 0x10
je 0x14009e486
mov r15d, r14d
mov edi, r14d
jmp 0x14009e490
mov edi, ecx
mov r15d, ecx
call fcn.1400a0508
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.1400961d4
nop
lea rdx, [rbp - 0x10]
call fcn.1400a0028
test al, al
sete sil
cmp qword [rbp + 8], 8
jb 0x14009e4c3
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
test sil, sil
je 0x14009e8c7
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.1400961d4
mov esi, 0xc
lea rdx, [rbp - 0x10]
call fcn.1400a0230
nop
cmp qword [rbp + 8], 8
jb 0x14009e4fe
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
lea r14, [r13 + 0x10]
or r12, 0xffffffffffffffff
cmp r14, rbx
je 0x14009e51c
mov r9, r12
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.140003cb4
cmp r15d, 0x80070002
jne 0x14009e7bd
mov rdx, rbx
call fcn.14009e904
xor r15d, r15d
test al, al
je 0x14009e64b
call fcn.14009f774
mov esi, eax
mov edi, r15d
cmp qword [rbx + 0x18], 8
jb 0x14009e552
mov rcx, qword [rbx]
jmp 0x14009e555
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14009e58d
mov edx, eax
or edx, esi
cmp edx, eax
je 0x14009e5a7
cmp qword [rbx + 0x18], 8
jb 0x14009e57a
mov rcx, qword [rbx]
jmp 0x14009e57d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
jne 0x14009e5a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x14009e8c7
test byte [0x140114b00], 0x10
je 0x14009e8c7
cmp qword [rbx + 0x18], 8
jb 0x14009e5c6
mov rbx, qword [rbx]
call fcn.14009f774
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x38]
mov qword [rbp], rax
mov r9d, 4
mov qword [rbp + 8], r9
test rbx, rbx
je 0x14009e5ff
inc r12
cmp word [rbx + r12*2], r15w
jne 0x14009e5eb
lea ecx, [r12*2 + 2]
jmp 0x14009e604
mov ecx, 0xa
lea rax, [0x1400dbfd0]
test rbx, rbx
cmovne rax, rbx
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x18], ecx
mov dword [rbp + 0x1c], r15d
lea rax, [rsp + 0x30]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], r9
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400dcc50]
lea rcx, [0x14010d1c0]
call fcn.140002e2c
jmp 0x14009e8c7
mov edi, 0x80070003
test byte [0x140114b00], 0x10
je 0x14009e675
cmp qword [rbx + 0x18], 8
jb 0x14009e663
mov rbx, qword [rbx]
mov r9d, edi
mov r8, rbx
lea rdx, [0x1400dcbf0]
call fcn.14009d794
call fcn.1400a0508
cmp qword [r14 + 0x18], 8
jb 0x14009e686
mov rax, qword [r14]
jmp 0x14009e689
mov rax, r14
mov qword [r14 + 0x10], r15
mov word [rax], r15w
call fcn.140021588
mov rbx, rax
mov r14d, 7
mov qword [rbp + 8], r14
mov qword [rbp], r15
mov word [rbp - 0x10], r15w
xor r8d, r8d
lea rdx, [0x1400dd700]
lea rcx, [rbp - 0x10]
call fcn.14000643c
nop
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x10]
lea rcx, [rbx + 0x48e0]
call fcn.14004f4dc
test al, al
sete bl
cmp qword [rbp + 8], 8
jb 0x14009e6f1
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
test bl, bl
je 0x14009e8c7
call fcn.14000ae18
mov rcx, qword [rax]
test byte [rcx + 0x20], 8
jbe 0x14009e8c7
call fcn.14000ae18
mov rbx, rax
mov qword [rbp + 8], r14
mov qword [rbp], r15
mov word [rbp - 0x10], r15w
mov r8d, 0x3c
lea rdx, str.Failed_to_clear_Active_Directory_settings_storage_path_cache
lea rcx, [rbp - 0x10]
call fcn.14000643c
nop
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
mov r8d, 0x10
lea rdx, str.CscChangeManager
lea rcx, [rsp + 0x40]
call fcn.14000643c
nop
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae r9, qword [rbp - 0x10]
lea r8, [rsp + 0x40]
mov edx, 8
mov rcx, qword [rbx]
call fcn.140021068
nop
cmp qword [rsp + 0x58], 8
jb 0x14009e799
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
cmp qword [rbp + 8], 8
jb 0x14009e8c7
mov rcx, qword [rbp - 0x10]
jmp 0x14009e893
xor r12d, r12d
test r15d, r15d
js 0x14009e8a1
cmp byte [r13 + 8], r12b
jne 0x14009e8c7
mov rdx, rbx
call fcn.14009f904
test al, al
jne 0x14009e8c7
mov edi, 0x8007051b
test byte [0x140114b00], 0x10
je 0x14009e84d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400961d4
nop
mov dword [rsp + 0x30], 0x1d
lea r14, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r14, qword [rsp + 0x40]
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.1400962f4
lea esi, [r12 + 0x1f]
cmp qword [rax + 0x18], 8
jb 0x14009e833
mov rax, qword [rax]
cmp qword [rbx + 0x18], 8
jb 0x14009e83d
mov rbx, qword [rbx]
mov qword [rsp + 0x20], r14
mov r9, rax
mov r8, rbx
call fcn.14009d900
test sil, 2
je 0x14009e880
and esi, 0xfffffffd
cmp qword [rbp + 8], 8
jb 0x14009e86d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov r14d, 7
mov qword [rbp + 8], r14
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
test sil, 1
je 0x14009e8c7
cmp qword [rsp + 0x58], 8
jb 0x14009e8c7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
jmp 0x14009e8c7
test byte [0x140114b00], 0x10
je 0x14009e8c7
cmp qword [rbx + 0x18], 8
jb 0x14009e8b4
mov rbx, qword [rbx]
mov r9d, r15d
mov r8, rbx
lea rdx, [0x1400dcbf0]
call fcn.14009d794
nop
lea rcx, [rsp + 0x70]
call fcn.14004e19c
mov eax, edi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400c4a70
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret