Function at 0x40a590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43efda
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc8], 1
jne 0x40a5f7
push 0x446b80
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00406a30
jmp 0x40a634
push 0x446b74
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00406a30
push 0x446564
mov eax, dword [ebp - 0x10]
add eax, 0x2b8
push eax
call fcn.0040b530
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40a634
push 0x446b70
mov ecx, dword [ebp + 8]
add ecx, 0x4c
call fcn.00405910
mov eax, dword [ebp + 8]
add eax, 0x58
push eax
mov ecx, dword [0x444924]
push ecx
push str.SOFTWARESiemensShared_ToolsCompSetup
push 0x80000002
call fcn.00404340
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
push ecx
push str.Clientname_from_registry:__s
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x58
call fcn.00406170
movzx eax, al
test eax, eax
je 0x40aa4b
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xd4], 1
jne 0x40a6b3
push str._ADSCOMMANDLINE__FORCEINTERNAL__NODIALOG
mov ecx, dword [ebp + 8]
add ecx, 0x114
call fcn.00405910
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 1
jmp 0x40aa14
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xd0], 1
jne 0x40a80a
push str.__nur_zum_Test
lea ecx, [ebp - 0x18]
call fcn.00406960
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00415060
mov byte [ebp - 4], 1
lea eax, [ebp - 0xb8]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00410af0
cmp eax, 2
jne 0x40a751
lea eax, [ebp - 0x1a]
push eax
lea ecx, [ebp - 0x19]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00406930
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0xbc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e4a0
cmp dword [ebp - 0xbc], 1
jb 0x40a751
push str._ADSCOMMANDLINE__UPDATE__NODIALOG
mov ecx, dword [ebp + 8]
add ecx, 0x114
call fcn.00405910
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 0
jne 0x40a7e7
lea ecx, [ebp - 0xc0]
call fcn.00406900
mov byte [ebp - 4], 2
push str._Internal_mode_activated__Internal_messages_only_in_English:__n_n
lea ecx, [ebp - 0xc0]
call fcn.00406a30
push str.Update_mode_not_possible___Component_not_installed_for_a_regular_client._n
lea ecx, [ebp - 0xc0]
call fcn.00405910
push str.Please_use_correct_input_parameters._n
lea ecx, [ebp - 0xc0]
call fcn.00405910
push 0x30
push str.setup.exe
lea ecx, [ebp - 0xc0]
call fcn.00406a90
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x44542c
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.0040f020
push 0xfffffc0e
mov ecx, dword [ebp - 0x10]
call fcn.0040aee0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.004069e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00415110
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004069e0
jmp 0x40aa14
lea ecx, [ebp - 0xcc]
call fcn.00406900
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xd0]
call fcn.00406900
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc4]
push eax
push 0x20019
push 0
mov ecx, dword [str.SoftwareSiemensShared_Tools]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a9f3
mov dword [ebp - 0xc8], 0x800
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.00406ae0
push eax
lea edx, [ebp - 0xd4]
push edx
push 0
push 0x4468f4
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a9dd
push 0xffffffffffffffff
lea ecx, [ebp - 0xd0]
call fcn.00406b40
lea ecx, [ebp - 0xd0]
call fcn.00406b20
test eax, eax
jle 0x40a9db
push 0x4468f0
lea eax, [ebp - 0xd0]
push eax
push str._ADSCOMMANDLINE_
lea ecx, [ebp - 0x120]
push ecx
call fcn.00406010
add esp, 0xc
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00405f60
add esp, 0xc
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x114
call fcn.0040b470
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.004069e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x120]
call fcn.004069e0
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x114
call fcn.00406b40
mov ecx, dword [ebp + 8]
add ecx, 0x114
call fcn.00405c10
mov eax, dword [ebp + 8]
add eax, 0x114
push eax
lea ecx, [ebp - 0xd8]
call fcn.00406930
push 0
push str._FORCEINTERNAL
lea ecx, [ebp - 0xd8]
call fcn.00405b30
cmp eax, 0xffffffff
jg 0x40a9c6
push 0
push str._UPDATE
lea ecx, [ebp - 0xd8]
call fcn.00405b30
cmp eax, 0xffffffff
jg 0x40a9c6
push 0
push str._AUTO
lea ecx, [ebp - 0xd8]
call fcn.00405b30
cmp eax, 0xffffffff
jle 0x40a9d0
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 1
lea ecx, [ebp - 0xd8]
call fcn.004069e0
jmp 0x40a9e6
mov eax, dword [ebp - 0x14]
or eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
call fcn.004069e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.004069e0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x114]
push ecx
push str.Commandline_until_now:__s
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 0
je 0x40aa4b
push str.__INTERNAL_CLIENT
mov ecx, dword [ebp + 8]
add ecx, 0x58
call fcn.00406a30
mov eax, dword [ebp - 0x14]
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