Function at 0x40db20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527080
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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 esi, ecx
push str.Compsetupstarter
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00406480
mov byte [ebp - 4], 1
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40db7c
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
mov byte [ebp - 4], 2
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dba9
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 - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ecx], 0
lea eax, [esi + 0x18c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
mov byte [edx], 0
call fcn.00406ac0
mov eax, dword [esi + 0x80]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004046d0
push eax
lea edx, [ebp - 0x1c]
push 0x536ec8
mov bl, 4
push edx
mov byte [ebp - 4], bl
call fcn.00405d20
add esp, 0x14
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00406170
mov eax, dword [ebp - 0x1c]
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 0x40dc36
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], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc59
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 0x40dc78
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push 0
push edx
mov edx, dword [esi + 0x188]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dcc1
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
push str.__MSI_component_detected__MSI_Productkey_found_
mov byte [eax], 1
mov ecx, dword [esi + 0x24]
push edx
lea eax, [esi + 0x24]
push 9
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dcc7
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
push 0x1e
push str.SoftwareSIEMENSShared_Tools_
lea ecx, [ebp - 0x10]
call fcn.00406dd0
lea eax, [esi + 0x74]
push eax
lea ecx, [ebp - 0x20]
push 0x536ec8
push ecx
call fcn.00405d20
push str.Clients
push eax
lea edx, [ebp + 0x14]
mov bl, 6
push edx
mov byte [ebp - 4], bl
call fcn.00405c70
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00406170
mov eax, dword [ebp + 0x14]
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 0x40dd34
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], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40dd76
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, 1
jne 0x40de4e
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], 0
sub eax, dword [edx - 4]
mov ecx, dword [edx - 8]
or ecx, eax
jge 0x40ddbb
push 0
lea ecx, [ebp + 0xc]
call fcn.00406f10
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x24]
push edx
mov edx, dword [eax + 0x6c]
push str.__Searching_for____s__
push ecx
add esi, 0x24
push 9
push esi
call edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0x14
or ecx, eax
jge 0x40ddf5
push 0
lea ecx, [ebp + 0xc]
call fcn.00406f10
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push edx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40de16
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push 0
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40de42
mov dword [ebx], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40de80
sub eax, dword [edi - 4]
mov ecx, dword [edi - 8]
or ecx, eax
jge 0x40de65
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x24]
mov edx, dword [eax + 0x6c]
push edi
push str.____No_Clients_found_under:__s__
push ecx
add esi, 0x24
push 0xa
push esi
call edx
add esp, 0x14
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
mov ebx, 0x539d88
jne 0x40de92
mov ebx, 0x53c768
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40deae
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ebp - 0x18]
mov ecx, dword [esi]
push ebx
push eax
mov eax, dword [ecx + 0x6c]
push edi
push str.___s_clients:_count_d__I_am_in_Clients_s
push edx
push 9
push esi
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40deef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
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 0x40df32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
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 0x40df58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, 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 0x10