Function at 0x4119b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5278b7
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x587730]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.Compsetupstarter
lea ecx, [ebp - 0x158]
call fcn.00406480
mov dword [ebp - 4], 0
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411a11
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 - 0x178], eax
push str.msi.dll
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x170], eax
test eax, eax
je 0x411bd3
cmp dword [ebp + 8], 0
je 0x411bd3
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MsiQueryProductStateW
push eax
call ebx
mov dword [ebp - 0x168], eax
mov eax, dword [esi + 0x80]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x411a80
push 0
lea ecx, [esi + 0x80]
call fcn.00406f10
mov edi, dword [esi + 0x80]
push edi
call dword [ebp - 0x168]
cmp eax, 5
jne 0x411bd3
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411ab0
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 - 0x150], eax
push 0xc
push str.Comp_Deinst_
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 2
call fcn.00406dd0
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.00406170
mov ecx, dword [ebp - 0x170]
push str.MsiDoActionW
push ecx
call ebx
mov edi, dword [ebp - 0x150]
mov ecx, dword [edi - 8]
mov ebx, eax
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x411b23
push 0
lea ecx, [ebp - 0x150]
call fcn.00406f10
mov edi, dword [ebp - 0x150]
mov edx, dword [ebp + 8]
push edi
push edx
call ebx
mov ecx, dword [edi - 8]
mov ebx, eax
mov eax, 1
sub eax, dword [edi - 4]
mov dword [ebp - 0x14c], ebx
or ecx, eax
jge 0x411b54
push 0
lea ecx, [ebp - 0x150]
call fcn.00406f10
mov edi, dword [ebp - 0x150]
mov edx, dword [ebp - 0x158]
mov ecx, dword [esi + 0x24]
push ebx
push edi
push str.__Deinstallation_ended:_Custom_Action__s_returned__d
push edx
lea eax, [esi + 0x24]
push 0xa
push eax
mov eax, dword [ecx + 0x6c]
call eax
add edi, 0xfffffff0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b93
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0xac]
call fcn.004158b0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xac]
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00410c10
test eax, eax
jns 0x411bbf
mov ecx, esi
call fcn.0040fdd0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.00415960
jmp 0x412339
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411bed
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 - 0x150], eax
mov byte [ebp - 4], 4
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411c1d
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x154], edi
push 0x1f4
mov byte [ebp - 4], 5
mov dword [ebp - 0x14c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0040f490
test eax, eax
jns 0x41201e
cmp dword [ebp + 8], 0
jne 0x41201e
push str.msiexec.exe__x
lea ecx, [ebp - 0x154]
call fcn.00406540
cmp dword [ebp + 0xc], 1
lea eax, [esi + 0x80]
lea ecx, [ebp - 0x14c]
jne 0x411c98
push str.__qn__ADS_DEINSTPre
push eax
push ecx
call fcn.00405c70
add esp, 0xc
mov byte [ebp - 4], 6
jmp 0x411cab
push str.__qn__ADS_DEINST1
push eax
push ecx
call fcn.00405c70
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x154]
call fcn.00406170
mov eax, dword [ebp - 0x14c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [ebp - 4], 5
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411ce3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x50], 0
je 0x411cf9
push str._UPDATEMODE1
lea ecx, [ebp - 0x154]
call fcn.00405600
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411d13
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 - 0x160], eax
push str.SOFTWARESIEMENSAUTSWGlobal
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 8
call fcn.00406540
mov edx, dword [ebp - 0x150]
mov eax, dword [esi + 0x188]
lea ecx, [ebp - 0x160]
push ecx
push str.SharedPath
push edx
push eax
call fcn.004042d0
add esp, 0x10
test eax, eax
jne 0x411df6
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp - 0x15c]
push str._COMMONDIR_
push edx
call fcn.00405d20
push 0x53aefc
push eax
lea eax, [ebp - 0x14c]
push eax
mov byte [ebp - 4], 9
call fcn.00405c70
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 0xa
call fcn.00406170
mov eax, dword [ebp - 0x14c]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411dd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411df6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esi + 0x13c], 0
je 0x411f73
mov ecx, dword [esi + 0x8c]
cmp dword [ecx - 0xc], 3
lea edi, [esi + 0x8c]
jle 0x411f73
lea ecx, [ebp - 0x14c]
call fcn.00406440
mov bl, 0xb
push edi
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], bl
call fcn.00406ac0
push 0x2e
lea ecx, [ebp - 0x14c]
call fcn.004058d0
cmp eax, 0xffffffff
jle 0x411e78
push eax
lea edx, [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x14c]
call fcn.00405b40
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xc
call fcn.00406ac0
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], bl
call fcn.00406500
push str._msi_uninst_intern.txt
lea ecx, [ebp - 0x14c]
call fcn.00405600
lea eax, [ebp - 0x14c]
push eax
lea ecx, [esi + 0x158]
push ecx
lea edx, [ebp - 0x15c]
push edx
call fcn.00405bc0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xd
call fcn.00406ac0
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], bl
call fcn.00406500
lea eax, [esi + 0x168]
push eax
lea ecx, [ebp - 0x164]
push 0x539624
push ecx
call fcn.00405d20
push 0x53cf20
push eax
lea edx, [ebp - 0x174]
push edx
mov byte [ebp - 4], 0xe
call fcn.00405c70
lea ecx, [ebp - 0x14c]
push ecx
push eax
lea edx, [ebp - 0x17c]
push edx
mov byte [ebp - 4], 0xf
call fcn.00405bc0
push 0x53aefc
push eax
lea eax, [ebp - 0x15c]
push eax
mov byte [ebp - 4], 0x10
call fcn.00405c70
add esp, 0x30
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 0x11
call fcn.00406170
lea ecx, [ebp - 0x15c]
call fcn.00406500
lea ecx, [ebp - 0x17c]
call fcn.00406500
lea ecx, [ebp - 0x174]
call fcn.00406500
lea ecx, [ebp - 0x164]
call fcn.00406500
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 8
call fcn.00406500
cmp byte [esi + 0x164], 0
je 0x411f8c
push str._DEBUG_MESSAGES1
lea ecx, [ebp - 0x154]
call fcn.00405600
mov edi, dword [ebp - 0x154]
mov edx, dword [ebp - 0x158]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x6c]
push edi
push str.__Launch_deinstallation_by_MSI:__s
push edx
lea ebx, [esi + 0x24]
push 9
push ebx
call eax
mov eax, dword [esi + 0x60]
push eax
push edi
call fcn.00401eb0
push eax
lea ecx, [ebp - 0x178]
push 0x53dbd4
push ecx
mov dword [ebp - 0x14c], eax
call fcn.00407220
mov eax, dword [ebp - 0x158]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x6c]
push 0x53a478
push eax
push 9
push ebx
call ecx
mov eax, dword [ebp - 0x160]
add eax, 0xfffffff0
add esp, 0x38
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41200e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x14c], 0x652
je 0x4122f3
push 0x1e
push str.SoftwareSIEMENSShared_Tools_
lea ecx, [ebp - 0x150]
call fcn.00406dd0
lea ecx, [esi + 0x74]
push ecx
lea edx, [ebp - 0x164]
push 0x536ec8
push edx
call fcn.00405d20
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0x12
call fcn.00406170
mov eax, dword [ebp - 0x164]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412084
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x150]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4120ac
push 0
lea ecx, [ebp - 0x150]
call fcn.00406f10
mov edx, dword [ebp - 0x150]
lea ecx, [ebp - 0x16c]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4122f3
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0050cf35
add esp, 8
test eax, eax
js 0x41234c
cmp eax, dword [edi - 8]
jg 0x41234c
xor edx, edx
mov dword [edi - 0xc], eax
lea ecx, [ebp - 0x154]
mov word [edi + eax*2], dx
call fcn.00406d10
mov eax, dword [ebp - 0x154]
add eax, 0xfffffff0
push eax
call fcn.00406fb0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0x13
call fcn.0040c2b0
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x158]
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x6c]
push ecx
push str.__Read_UninstallString__from:_HKLM_s
push edx
lea ebx, [esi + 0x24]
push 9
push ebx
mov dword [ebp - 0x168], 0x800
call eax
mov edx, dword [ebp - 0x168]
add esp, 0x14
lea ecx, [ebp - 0x168]
push ecx
push edx
lea ecx, [ebp - 0x154]
call fcn.004065b0
mov ecx, dword [ebp - 0x16c]
push eax
lea eax, [ebp - 0x174]
push eax
push 0
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x16c]
push edx
test eax, eax
jne 0x4122b7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x150]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x4121c4
push 0
lea ecx, [esi + 0x150]
call fcn.00406f10
mov eax, dword [esi + 0x150]
mov edi, dword [ebp - 0x154]
mov ecx, dword [edi - 8]
mov dword [ebp - 0x164], eax
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x4121f8
push 0
lea ecx, [ebp - 0x154]
call fcn.00406f10
mov edi, dword [ebp - 0x154]
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x6c]
push edx
push edi
push str._Launch_old_deinstallation:__s___Lang:__s
push eax
push 9
push ebx
call ecx
mov eax, dword [esi + 0x60]
push eax
push edi
call fcn.00402210
add esp, 0x20
cmp dword [ebp - 0x170], 0
mov dword [ebp - 0x14c], eax
jne 0x412251
mov eax, dword [ebp - 0x158]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x6c]
push str.________________________________________
push eax
push 9
push ebx
call ecx
mov eax, dword [ebp - 0x14c]
add esp, 0x10
cmp eax, 0x643
jne 0x412273
mov eax, dword [ebp - 0x158]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x6c]
push str._MSI_Error:_A_fatal_error_occurred_during__un_installation
push eax
push 0
push ebx
call ecx
add esp, 0x10
jmp 0x4122cd
cmp eax, 0x64c
jne 0x412295
mov eax, dword [ebp - 0x158]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x6c]
push str._MSI_Error:_The__un_installation_source_for_this_product_is_not_available.
push eax
push 0
push ebx
call ecx
add esp, 0x10
jmp 0x4122cd
cmp eax, 0x653
jne 0x4122cd
mov eax, dword [ebp - 0x158]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x6c]
push str._MSI_Error:__un_This_installation_package_could_not_be_opened.
push eax
push 0
push ebx
call ecx
add esp, 0x10
jmp 0x4122cd
mov dword [ebp - 0x14c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x154]
mov eax, dword [ebp - 0x160]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4122f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412313
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x150]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412339
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x412356
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x412362
push 0x80070057
call fcn.00405680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x148]
call fcn.004158b0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x148]
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.00410c10
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.00415960
mov eax, dword [ebp - 0x178]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4123b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x158]
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 0x4123e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050c838
mov esp, ebp
pop ebp
ret 8