Function at 0x14000d204
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r14, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor r15d, r15d
test eax, eax
jne 0x14000d26d
lea eax, [r15 + 1]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1400408d0
mov rbx, qword [rsp + 0x340]
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140001b5c
test rax, rax
je 0x14000d541
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rdi, [rax + 0x18]
lea rax, [rbx - 1]
mov qword [rsp + 0x38], rdi
cmp rax, 0xfffe
ja 0x14000d2ba
movzx ebx, bx
mov ecx, ebx
call fcn.140001c74
test rax, rax
je 0x14000d2cc
mov r8d, ebx
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.1400013fc
jmp 0x14000d2c7
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140010fc0
mov rdi, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.msi.dll_MsiEnumProductsExA]
call fcn.140001b5c
test rax, rax
je 0x14000d541
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov esi, dword [rsp + 0x30]
add esi, 1
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
js 0x14000d536
mov eax, dword [rbx - 0xc]
mov ecx, 1
sub ecx, dword [rbx - 8]
sub eax, esi
or ecx, eax
jge 0x14000d333
mov edx, esi
lea rcx, [rsp + 0x40]
call fcn.140001690
mov rbx, qword [rsp + 0x40]
cmp esi, dword [rbx - 0xc]
jg 0x14000d536
movsxd rax, esi
lea r9, [rsp + 0x30]
mov dword [rbx - 0x10], esi
mov r8, rbx
xor edx, edx
mov rcx, rdi
mov byte [rax + rbx], r15b
call qword [sym.imp.msi.dll_MsiEnumProductsExA]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140046130
test eax, eax
js 0x14000d536
cmp eax, dword [rbx - 0xc]
jg 0x14000d536
mov dword [rbx - 0x10], eax
lea rcx, [rsp + 0x60]
cdqe
mov byte [rax + rbx], r15b
call fcn.1400108e4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400156e8
mov rdx, rax
lea rcx, [rbp - 0x20]
mov rbx, rax
call fcn.14001a798
mov rdx, qword [rbp - 0x20]
lea rcx, [rsp + 0x60]
call fcn.140011f58
mov rdx, qword [rbx]
sub rdx, 0x18
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14000d3d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, str.MsiPatch
lea rcx, [rsp + 0x60]
call fcn.14001cdec
mov r8d, 0x11
lea rdx, str.TargetProductCode
mov rcx, rax
call fcn.14001565c
jmp 0x14000d4db
mov rax, qword [rdi + 8]
test rax, rax
je 0x14000d40f
mov rcx, qword [rdi + 0x18]
jmp 0x14000d412
mov rcx, r15
test rax, rax
lea rdx, [0x140063614]
mov r8d, ecx
lea rcx, [rsp + 0x50]
cmovne rdx, rax
call fcn.14001d36c
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, str.State
xor edx, edx
mov dword [rsp + 0x48], 0x100
lea rax, [rbp - 0x10]
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 4]
call qword [sym.imp.msi.dll_MsiQueryFeatureStateExW]
cmp r15w, ax
jne 0x14000d4ac
lea rdx, [0x14005ba4c]
lea rcx, [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x14000d4ac
mov rax, qword [r14 + 8]
cmp qword [r14 + 0x10], rax
je 0x14000d49c
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14001a8f4
add qword [r14 + 8], 8
jmp 0x14000d4ac
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, r14
call fcn.14001205c
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14000d4c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r8d, 0x11
lea rdx, str.TargetProductCode
mov rcx, rdi
call fcn.1400155d0
mov rdi, rax
test rax, rax
jne 0x14000d400
lea rcx, [rsp + 0x60]
call fcn.14000d54c
mov rdx, qword [rsp + 0x40]
mov eax, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14000d510
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov eax, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14000d52f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x14000d247
mov ecx, 0x80070057
call fcn.140002198
int3
mov ecx, 0x80004005
call fcn.140002198
int3