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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14, r8
mov rbx, rdx
xor esi, esi
mov dword [rbp - 0x49], esi
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
movdqa xmm1, xmmword [0x14019b860]
movdqu xmmword [rbp - 0x31], xmm1
mov word [rbp - 0x41], si
movups xmmword [rbp + 0x1f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2f], xmm1
mov edi, 8
mov r8d, edi
lea rdx, str.pia.json
lea rcx, [rbp + 0x1f]
call fcn.14000c1a0
nop
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0x1f]
call fcn.14001b670
nop
lea rcx, [rbp + 0x1f]
call fcn.140009880
nop
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x21]
mov rcx, rbx
call fcn.140024af0
nop
lea rcx, [rbp - 0x41]
call fcn.140009810
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140089617
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400895e6
and eax, 0x410
cmp eax, 0x410
jne 0x1400895e6
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140089617
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008960e
test al, 0x10
je 0x14008960e
lea rcx, [rbp - 0x21]
call fcn.140025e20
jmp 0x140089617
lea rcx, [rbp - 0x21]
call fcn.140026750
mov rdx, qword [r14]
test rdx, rdx
je 0x14008964a
lea rcx, [rbp + 0x1f]
call fcn.1400b9c20
nop
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x49]
call fcn.14001b2a0
mov edi, 0x18
lea rcx, [rbp + 0x1f]
call fcn.140009880
mov rdx, qword [rbp - 0x49]
jmp 0x140089651
mov qword [rbp - 0x49], rsi
mov rdx, rsi
test rdx, rdx
je 0x140089676
mov rax, rdx
mov rcx, qword [rdx + 0x18]
cmp rcx, 0xf
jbe 0x140089666
mov rax, qword [rdx]
test rax, rax
je 0x140089676
cmp rcx, 0xf
jbe 0x14008967d
mov rdx, qword [rdx]
jmp 0x14008967d
lea rdx, [0x14018f4cd]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140089693
lea rcx, [rbp - 1]
call fcn.14000c1a0
or edi, 0x20
xor edx, edx
lea rcx, [rbp - 0x49]
call fcn.1400b0970
nop
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, qword [rbp + 0xf]
lea rcx, [rbp - 0x21]
call fcn.1400233d0
test al, al
jne 0x1400897f4
cmp qword [rbp + 0xf], 0
je 0x1400897ed
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14008971f
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x140089722
mov rax, rsi
cmp dword [rax + 0x40], 2
jl 0x1400897cb
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14008975c
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rsi, rax
lea r14, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova r14, qword [rbp - 1]
mov edx, 0xffffffff
lea rcx, [rbp - 0x41]
call fcn.14002c970
mov rbx, rax
or edi, 1
mov dword [rbp - 0x49], edi
cmp qword [rax + 0x18], 0xf
jbe 0x14008978b
mov rbx, qword [rax]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x21]
call fcn.1400220b0
nop
or edi, 2
mov dword [rbp - 0x49], edi
cmp qword [rax + 0x18], 0xf
jbe 0x1400897a9
mov rax, qword [rax]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbx
mov r9, rax
lea r8, str.UpdateProductInstallAdjacencyCache_failed_to_update__s_becaue_file_write_failed.__s_r_n_s
mov edx, 2
mov rcx, rsi
call fcn.14001ef20
nop
test dil, 2
je 0x1400897de
and edi, 0xfffffffd
lea rcx, [rbp + 0x1f]
call fcn.140009880
nop
test dil, 1
je 0x1400897ed
lea rcx, [rbp - 0x41]
call fcn.140009880
xor bl, bl
jmp 0x1400898b6
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x140089823
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
jmp 0x140089826
mov rax, rsi
cmp dword [rax + 0x40], 4
jl 0x1400898a5
xor ecx, ecx
call fcn.140027930
test rax, rax
je 0x14008985c
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rsi, rax
lea rbx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rbx, qword [rbp - 1]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x21]
call fcn.1400220b0
nop
or edi, 4
mov dword [rbp - 0x49], edi
cmp qword [rax + 0x18], 0xf
jbe 0x140089888
mov rax, qword [rax]
mov qword [rsp + 0x20], rbx
mov r9, rax
lea r8, str.UpdateProductInstallAdjacencyCache_saved__s_successfully_r_n_s
mov edx, 4
mov rcx, rsi
call fcn.14001ef20
nop
test dil, 4
je 0x1400898b4
lea rcx, [rbp + 0x1f]
call fcn.140009880
mov bl, 1
lea rcx, [rbp - 1]
call fcn.140009880
nop
lea rcx, [rbp - 0x21]
call fcn.140009810
movzx eax, bl
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1401219d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret