Function at 0x40d250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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 - 0x28], edi
push str.Compsetupstarter
lea ecx, [ebp - 0x1c]
call fcn.00406480
mov dword [ebp - 4], 0
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d2ab
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
mov byte [ebp - 4], 1
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d2d8
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
push 0x1e
push str.SoftwareSIEMENSShared_Tools_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406dd0
lea ecx, [edi + 0x74]
push ecx
lea edx, [ebp - 0x24]
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 - 0x14]
mov byte [ebp - 4], 3
call fcn.00406170
mov eax, dword [ebp - 0x24]
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 0x40d345
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x40d361
push 0
lea ecx, [ebp - 0x14]
call fcn.00406f10
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push ecx
push 0x2001f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d676
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x536ec8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00405c70
push 0x53a1b0
push eax
lea eax, [ebp - 0x24]
mov bl, 4
push eax
mov byte [ebp - 4], bl
call fcn.00405c70
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00406ac0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x40d408
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40d427
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d49a
mov edx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x24]
push str._Creating_Clients_key._Probably_setup_was_executed_in_a_special_mode_for_single_installation.
push edx
lea eax, [edi + 0x24]
push 0xa
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0x10
or ecx, eax
jge 0x40d484
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edx, dword [ebp - 0x18]
push edx
call ebx
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40d4b6
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d645
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d4ef
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 - 0x24], esi
push 0x536e60
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00406480
mov ebx, dword [edi + 0x170]
mov byte [ebp - 4], 7
test ebx, ebx
je 0x40d5f1
mov eax, ebx
test ebx, ebx
je 0x40d640
mov ecx, dword [eax + 8]
mov ebx, dword [ebx]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40d586
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40d576
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40d576
push eax
call fcn.00406fb0
mov dword [ebp - 0x30], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40d56b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov esi, dword [ebp - 0x30]
add esi, 0x10
mov dword [ebp - 0x24], esi
jmp 0x40d586
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.00406dd0
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax - 8]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x40d5a8
push 0
lea ecx, [ebp - 0x20]
call fcn.00406f10
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
lea ecx, [edi + edi + 2]
push ecx
push eax
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x1c]
test eax, eax
mov eax, dword [ebp - 0x28]
push esi
jne 0x40d5d2
push str._Add_saved_Client__s
push edx
push 0xa
jmp 0x40d5da
push str._Add_saved_Client_Failed:__s
push edx
push 0
mov ecx, dword [eax + 0x24]
add eax, 0x24
push eax
mov eax, dword [ecx + 0x6c]
call eax
add esp, 0x14
test ebx, ebx
jne 0x40d521
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d61e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d676
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40d676
call fcn.0041a097
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x24]
mov edx, dword [eax + 0x6c]
push 0x53c4f8
push ecx
lea esi, [edi + 0x24]
push 1
push esi
call edx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi]
mov eax, dword [eax + 0x6c]
push ecx
push str.____Referenced_regkey:__s
push edx
push 0xa
push esi
call eax
add esp, 0x24
mov eax, dword [ebp - 0x10]
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 0x40d699
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 0x40d6bc
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 0x40d6e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret