Function at 0x40ea80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5271c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x587730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Compsetupstarter
lea ecx, [ebp - 0x1c]
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 0x40ead4
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 - 0x14], eax
push 0x27
push str.SOFTWARESIEMENSShared_ToolsCompSetup
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
call fcn.00406dd0
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40eb17
push esi
lea ecx, [ebp - 0x14]
call fcn.00406f10
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 0x2001f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40eb6f
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40eb55
push 0
lea ecx, [ebp - 0x14]
call fcn.00406f10
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40eb6f
push eax
call ebx
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40eb8b
push 0
lea ecx, [ebp - 0x14]
call fcn.00406f10
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40ec59
push 0x53cb7c
lea ecx, [ebp - 0x18]
call fcn.00406480
mov eax, dword [ebp - 0x18]
mov edx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov byte [ebp - 4], 2
or edx, ecx
jge 0x40ebd9
push 0
lea ecx, [ebp - 0x18]
call fcn.00406f10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
inc esi
push esi
push eax
push 1
push 0
push str.SetupSucceeded
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.MsiReturn
push edx
call esi
mov eax, dword [ebp - 0x10]
push str.Restart
push eax
call esi
mov ecx, dword [ebp - 0x10]
push str.ComponentEntry
push ecx
call esi
mov edx, dword [ebp - 0x10]
push str.LogFile
push edx
call esi
mov eax, dword [ebp - 0x10]
push str.AppResult
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
mov esi, eax
call ebx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ec5c
mov esi, dword [ebp - 0x18]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
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 0x40eca2
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