Function at 0x140017b40
Capabilities:
Link many functions at runtime
Query or enumerate registry value
Reference sql statements

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov r15, r8
mov r13, rcx
call fcn.140025894
mov rcx, rax
xor r12d, r12d
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x140017b93
mov ecx, 0x80004005
call fcn.140007cd0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x118], r12d
call fcn.140025894
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140017bca
mov ecx, 0x80004005
call fcn.140007cd0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, str.SoftwareSiemensShared_Tools
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.SoftwareSiemensShared_Tools
lea rcx, [rsp + 0x38]
call fcn.140009100
mov rbx, qword [rsp + 0x38]
test rbx, rbx
jne 0x140017c16
mov ecx, r12d
jmp 0x140017c30
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x14001837e
cmp ecx, dword [rbx - 0xc]
jg 0x14001837e
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
lea r8, [r13 + 0x190]
lea rdx, [0x14005cc80]
lea rcx, [rsp + 0x98]
call fcn.140007ae0
nop
mov r14, qword [rax]
mov edx, dword [r14 - 0x10]
mov dword [rsp + 0x34], edx
mov rsi, r14
sub rsi, rbx
sar rsi, 1
mov eax, dword [rbx - 0x10]
mov dword [rsp + 0x30], eax
lea edi, [rax + rdx]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140017ca5
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140009290
mov rbx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
cmp rsi, rax
ja 0x140017cb2
lea r14, [rbx + rsi*2]
movsxd rdx, edx
add rdx, rdx
lea rcx, [rbx + rax*2]
mov r9, rdx
mov r8, r14
call fcn.14003b8f0
test edi, edi
js 0x140018373
cmp edi, dword [rbx - 0xc]
jg 0x140018373
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], 0
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140017d07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x38]
mov eax, 1
sub eax, dword [rsi - 8]
or eax, dword [rsi - 0xc]
jge 0x140017d2a
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140009290
mov rsi, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017e64
mov dword [rsp + 0x44], 0x800
mov rbx, qword [rsp + 0x50]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x800
or eax, ecx
jge 0x140017d8a
mov edx, 0x800
lea rcx, [rsp + 0x50]
call fcn.140009290
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0xc], 0x800
jl 0x140017e59
mov dword [rbx - 0x10], 0x800
mov word [rbx + 0x1000], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa8]
xor r8d, r8d
lea rdx, str.Release
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017e21
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140017e16
cmp ecx, dword [rbx - 0xc]
jg 0x140017e16
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
mov rdx, rbx
mov rcx, r15
call fcn.14001f880
mov dword [rsp + 0x118], 1
jmp 0x140017e4c
mov ecx, 0x80070057
call fcn.140007cd0
int3
lea rdx, [0x14005cb94]
mov rcx, r15
call fcn.14001f880
lea rcx, [r13 + 0x38]
mov rax, qword [rcx]
mov r9, rsi
lea r8, str.RegValue_not_found:__s
mov edx, 0xa
call qword [rax + 0xd0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017e73
mov ecx, 0x80070057
call fcn.140007cd0
int3
lea rdx, [0x14005cb94]
mov rcx, r15
call fcn.14001f880
lea rcx, str.msi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
mov r15d, 2
test rax, rax
je 0x1400182e3
cmp dword [rsp + 0x108], 0
je 0x140017eee
lea rdx, str.MsiQueryProductStateW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov rcx, qword [r13 + 0xb8]
mov edx, 1
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
or ecx, edx
jge 0x140017ed3
xor edx, edx
lea rcx, [r13 + 0xb8]
call fcn.140009290
mov rcx, qword [r13 + 0xb8]
call rbx
cmp eax, 5
jne 0x1400182e3
lea r12d, [rax - 4]
jmp 0x1400182e3
lea r8, [r13 + 0x90]
lea rdx, [r13 + 0x198]
lea rcx, [rsp + 0x68]
call fcn.140007910
nop
lea rdx, str.MsiOpenDatabaseW
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rdx, str.MsiDatabaseOpenViewW
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
lea rdx, str.MsiViewExecute
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
lea rdx, str.MsiViewFetch
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.MsiRecordGetStringW
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
lea rdx, str.MsiViewClose
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa0], rax
lea rdx, str.MsiCloseHandle
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.MsiQueryProductStateW
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call rdi
cmp dword [rsp + 0x30], 0
je 0x1400182a1
call fcn.140025894
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140017ff0
mov ecx, 0x80004005
call fcn.140007cd0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
call fcn.140025894
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140018022
mov ecx, 0x80004005
call fcn.140007cd0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
xor eax, eax
mov rcx, rbp
lea rdi, str.SELECT__Value__FROM__Property__WHERE_PropertyProductCode
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.SELECT__Value__FROM__Property__WHERE_PropertyProductCode
lea rcx, [rsp + 0x58]
call fcn.140009100
mov rsi, qword [rsp + 0x58]
test rsi, rsi
jne 0x14001806a
mov ecx, r12d
jmp 0x140018084
xor eax, eax
mov rcx, rbp
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140018296
cmp ecx, dword [rsi - 0xc]
jg 0x140018296
mov dword [rsi - 0x10], ecx
movsxd rax, ecx
mov word [rsi + rax*2], 0
lea r8, [rsp + 0x40]
mov rdx, rsi
mov ecx, dword [rsp + 0x30]
call qword [rsp + 0x88]
test eax, eax
jne 0x140018250
xor edx, edx
mov ecx, dword [rsp + 0x40]
call qword [rsp + 0x70]
lea rdx, [rsp + 0x34]
mov ecx, dword [rsp + 0x40]
call qword [rsp + 0x78]
test eax, eax
jne 0x14001823a
mov dword [rsp + 0x44], 0x400
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x400
or eax, ecx
jge 0x140018103
mov edx, 0x400
lea rcx, [rsp + 0x48]
call fcn.140009290
mov rbx, qword [rsp + 0x48]
cmp dword [rbx - 0xc], 0x400
jl 0x14001822f
mov dword [rbx - 0x10], 0x400
mov word [rbx + 0x800], 0
lea r9, [rsp + 0x44]
mov r8, rbx
mov edx, 1
mov ecx, dword [rsp + 0x34]
call qword [rsp + 0x80]
test eax, eax
jne 0x14001823a
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140018224
cmp ecx, dword [rbx - 0xc]
jg 0x140018224
mov dword [rbx - 0x10], ecx
movsxd rax, ecx
mov word [rbx + rax*2], 0
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x14001818f
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140009290
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [rsp + 0x90]
cmp eax, 5
jne 0x1400181c0
lea r12d, [rax - 4]
lea rcx, [r13 + 0x38]
mov rax, qword [rcx]
mov r9, rbx
lea r8, str.MsiQueryProductStateFct:_Componentsetup_is_installed_for_GUID:__s
lea edx, [r12 + 9]
call qword [rax + 0xd0]
jmp 0x14001823a
cmp eax, 0xffffffff
je 0x140018206
cmp eax, 2
je 0x1400181e8
lea rcx, [r13 + 0x38]
mov rax, qword [rcx]
mov r9, rbx
lea r8, str.MsiQueryProductStateFct:_unexpected_values_returned._But_Componentsetup_is_not_installed_for_GUID:__s
mov edx, 2
call qword [rax + 0xd0]
jmp 0x14001823a
lea rcx, [r13 + 0x38]
mov rax, qword [rcx]
mov r9, rbx
lea r8, str.MsiQueryProductStateFct:_Componentsetup_is_ONLY_installed_for_another_user_for_GUID:__s
mov edx, 2
call qword [rax + 0xd0]
jmp 0x14001823a
lea rcx, [r13 + 0x38]
mov rax, qword [rcx]
mov r9, rbx
lea r8, str.MsiQueryProductStateFct:_Componentsetup_is_NOT_installed_for_GUID:__s
mov edx, 0xa
call qword [rax + 0xd0]
jmp 0x14001823a
mov ecx, 0x80070057
call fcn.140007cd0
int3
mov ecx, 0x80070057
call fcn.140007cd0
int3
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x140018245
call r15
mov ecx, dword [rsp + 0x40]
call qword [rsp + 0xa0]
mov ecx, dword [rsp + 0x30]
call r15
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018274
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400182a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400182a1
mov ecx, 0x80070057
call fcn.140007cd0
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400182d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x38]
mov r15d, 2
jmp 0x1400182e3
mov rsi, qword [rsp + 0x38]
mov r15d, 2
mov rcx, r13
call fcn.140014f00
mov edx, eax
test r12d, r12d
je 0x14001830d
test eax, eax
jns 0x14001830d
mov ecx, ebp
mov edi, dword [rsp + 0x118]
cmp edi, 1
cmove ecx, r15d
mov dword [rsp + 0x118], ecx
lea rcx, [r13 + 0x38]
mov rax, qword [rcx]
mov dword [rsp + 0x20], edx
mov edi, dword [rsp + 0x118]
mov r9d, edi
lea r8, str.IsInstalled:__d__MsiCompInstalled:__d
mov edx, 0xa
call qword [rax + 0xd0]
nop
lea rdx, [rsi - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018351
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14001836f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
jmp 0x140018389
mov ecx, 0x80070057
call fcn.140007cd0
nop
mov ecx, 0x80070057
call fcn.140007cd0
nop
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret