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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527708
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
push str.Compsetupstarter
lea ecx, [ebp - 0x14]
call fcn.00406480
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0041a2c9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x410c69
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call fcn.0041a2c9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x410c9c
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + 0x6c]
push str.__test_if_Component_Installed...
add edi, 0x24
push edx
push 0xa
push edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edi
call eax
add esp, 0x10
push 0x1e
push str.SoftwareSIEMENSShared_Tools_
lea ecx, [ebp - 0x10]
call fcn.00406dd0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0050cf35
add esp, 8
test eax, eax
js 0x410e1f
cmp eax, dword [esi - 8]
jg 0x410e1f
mov edx, dword [ebp - 0x20]
add edx, 0x74
mov dword [esi - 0xc], eax
xor ecx, ecx
push edx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x44]
push 0x536ec8
push eax
call fcn.00405d20
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406170
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x410d6f
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push ecx
push 0x2001f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410e5c
mov esi, 0x800
mov dword [ebp - 0x2c], esi
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x410db6
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406f10
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx - 8], esi
jl 0x410e1f
lea ecx, [ebp - 0x2c]
push ecx
push ebx
xor eax, eax
lea edx, [ebp - 0x58]
push edx
push eax
mov dword [ebx - 0xc], esi
mov word [ebx + 0x1000], ax
mov eax, dword [ebp - 0x34]
push str.Release
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410e29
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0050cf35
add esp, 8
test eax, eax
js 0x410e1f
cmp eax, dword [ebx - 8]
jg 0x410e1f
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00415af0
mov eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410e69
push 0x80070057
call fcn.00405680
mov ecx, dword [ebp + 0xc]
push 0x536e60
call fcn.00415af0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi]
mov edx, dword [edx + 0x6c]
push eax
push str.____RegValue_not_found:__s
push ecx
push 0xa
push edi
call edx
mov eax, dword [ebp - 0x34]
add esp, 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410e69
mov ecx, dword [ebp + 0xc]
push 0x536e60
call fcn.00415af0
push str.msi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x411189
cmp dword [ebp + 8], 0
je 0x410ed5
push str.MsiQueryProductStateW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 0x20]
mov edi, eax
mov eax, dword [esi + 0x80]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x410eb7
push 0
lea ecx, [esi + 0x80]
call fcn.00406f10
mov esi, dword [esi + 0x80]
push esi
call edi
cmp eax, 5
jne 0x411189
mov dword [ebp - 0x24], 1
jmp 0x411189
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0x64]
push ecx
add eax, 0x134
push eax
lea edx, [ebp - 0x44]
push edx
call fcn.00405bc0
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MsiOpenDatabaseW
push edi
mov byte [ebp - 4], 4
call esi
push str.MsiDatabaseOpenViewW
push edi
mov ebx, eax
call esi
push str.MsiViewExecute
push edi
mov dword [ebp - 0x3c], eax
call esi
push str.MsiViewFetch
push edi
mov dword [ebp - 0x48], eax
call esi
push str.MsiRecordGetStringW
push edi
mov dword [ebp - 0x4c], eax
call esi
push str.MsiViewClose
push edi
mov dword [ebp - 0x50], eax
call esi
push str.MsiCloseHandle
push edi
mov dword [ebp - 0x58], eax
call esi
push str.MsiQueryProductStateW
push edi
mov dword [ebp - 0x40], eax
call esi
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x30]
push eax
push 0
push ecx
call ebx
cmp dword [ebp - 0x30], 0
je 0x41115c
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410f7f
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 5
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410fac
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
push 0x3b
push str.SELECT__Value__FROM__Property__WHERE_PropertyProductCode
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00406dd0
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0050cf35
add esp, 8
test eax, eax
js 0x410e1f
cmp eax, dword [ebx - 8]
jg 0x410e1f
lea edx, [ebp + 8]
mov dword [ebx - 0xc], eax
xor ecx, ecx
push edx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x30]
push ebx
push eax
call dword [ebp - 0x3c]
test eax, eax
jne 0x411115
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [ebp - 0x48]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ebp - 0x4c]
test eax, eax
jne 0x411103
lea ecx, [ebp - 0x2c]
push ecx
push 0x400
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x2c], 0x400
call fcn.004065b0
mov edx, dword [ebp - 0x3c]
push eax
push 1
push edx
call dword [ebp - 0x50]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x411103
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0050cf35
add esp, 8
test eax, eax
js 0x410e1f
cmp eax, dword [esi - 8]
jg 0x410e1f
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x411097
push 0
lea ecx, [ebp + 0xc]
call fcn.00406f10
mov esi, dword [ebp + 0xc]
push esi
call dword [ebp - 0x54]
push esi
cmp eax, 5
jne 0x4110c0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x6c]
push str.__MsiQueryProductStateFct:_Componentsetup_is_installed_for_GUID:__s
push ecx
push 0xa
push eax
mov dword [ebp - 0x24], 1
call edx
jmp 0x411100
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], 0
cmp eax, 0xffffffff
je 0x4110ed
cmp eax, 2
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
je 0x4110e3
push str._MsiQueryProductStateFct:_unexpected_values_returned._But_Componentsetup_is_not_installed_for_GUID:__s
push edx
push 2
jmp 0x4110fa
push str._MsiQueryProductStateFct:_Componentsetup_is_ONLY_installed_for_another_user_for_GUID:__s
push edx
push 2
jmp 0x4110fa
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push str.__MsiQueryProductStateFct:_Componentsetup_is_NOT_installed_for_GUID:__s
push edx
push 0xa
push eax
mov eax, dword [ecx + 0x6c]
call eax
add esp, 0x14
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41110e
push eax
call dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x58]
mov edx, dword [ebp - 0x30]
push edx
call dword [ebp - 0x40]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41113c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41115c
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411186
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
call fcn.0040f490
cmp dword [ebp - 0x24], 0
je 0x4111ac
test eax, eax
jns 0x4111ac
mov ecx, dword [ebp - 0x28]
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 2
mov dword [ebp - 0x28], ecx
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x14]
push esi
push str.__IsInstalled:__d___MsiCompInstalled:__d
push eax
push 0xa
push ecx
mov ecx, dword [edx + 0x6c]
call ecx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x18
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4111ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41120d
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8