Function at 0x40ecc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527210
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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
push str.Compsetupstarter
lea ecx, [ebp - 0x1c]
call fcn.00406480
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00406480
push str.SOFTWARESIEMENSShared_ToolsCompSetup
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406480
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + 0x6c]
push str.__SetSetupSucceeded...
push edx
lea esi, [edi + 0x24]
push 9
push esi
mov byte [ebp - 4], 2
call eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0x10
or ecx, eax
jge 0x40ed58
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov edx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov dword [ebp + 8], eax
test eax, eax
jne 0x40edbf
mov eax, dword [ebp - 0x14]
mov edx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x40ed9a
push 0
lea ecx, [ebp - 0x14]
call fcn.00406f10
mov eax, dword [ebp - 0x14]
lea edx, [esi + esi + 2]
push edx
push eax
mov eax, dword [ebp - 0x18]
push 1
push 0
push str.SetupSucceeded
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40edd5
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi]
mov ecx, dword [edx + 0x6c]
push 0x53cb80
push eax
push 2
push esi
call ecx
add esp, 0x10
push 0x1e
push str.SoftwareSIEMENSShared_Tools_
lea ecx, [ebp - 0x10]
call fcn.00406dd0
add edi, 0x74
push edi
lea edx, [ebp - 0x20]
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 - 0x10]
mov byte [ebp - 4], 3
call fcn.00406170
mov eax, dword [ebp - 0x20]
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 0x40ee2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40ee4e
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40eeaa
mov eax, dword [ebp - 0x14]
mov edx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x40ee87
push 0
lea ecx, [ebp - 0x14]
call fcn.00406f10
mov eax, dword [ebp - 0x14]
lea edx, [esi + esi + 2]
push edx
push eax
mov eax, dword [ebp - 0x18]
push 1
push 0
push str.SetupSucceeded
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
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 0x40eecd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
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 0x40eef0
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 0x40ef16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4