Function at 0x40e4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43f658
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], 0
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e4eb
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x30], 1
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e51a
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov dword [ecx], 0
lea eax, [esi + 0x16c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
mov byte [edx], 0
call fcn.00407040
mov eax, dword [esi + 0x68]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404840
push eax
lea edx, [esp + 0x28]
push 0x442694
mov bl, 3
push edx
mov byte [esp + 0x44], bl
call fcn.00406010
add esp, 0x14
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 4
call fcn.00406540
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40e5f7
push 0
lea ecx, [esp + 0x18]
call fcn.00407500
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edx
mov edx, dword [esi + 0x168]
push edx
call ebp
test eax, eax
jne 0x40e641
mov eax, dword [esp + 0x44]
mov byte [eax], 1
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x68]
lea eax, [esi + 0x1c]
push str._MSI_component_detected__MSI_Productkey_found_
push 8
push eax
call edx
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e648
mov ecx, dword [esp + 0x44]
mov byte [ecx], 0
push 0x1d
push str.SoftwareSiemensShared_Tools
lea ecx, [esp + 0x1c]
call fcn.004073e0
lea edx, [esi + 0x10c]
push edx
lea eax, [esp + 0x24]
push 0x442694
push eax
call fcn.00406010
push str.Clients
push eax
lea ecx, [esp + 0x58]
mov bl, 5
push ecx
mov byte [esp + 0x48], bl
call fcn.00405f60
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 6
call fcn.00406540
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e6c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40e707
push 0
lea ecx, [esp + 0x18]
call fcn.00407500
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push 0x80000002
call ebp
test eax, eax
mov eax, 1
jne 0x40e7e2
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x44], 0
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
or ecx, eax
jge 0x40e74d
push 0
lea ecx, [esp + 0x40]
call fcn.00407500
mov ebp, dword [esp + 0x3c]
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x68]
push ebp
add esi, 0x1c
push str._Searching_for____s__
push 8
push esi
call eax
mov ecx, dword [ebp - 8]
mov eax, 1
sub eax, dword [ebp - 4]
add esp, 0x10
or ecx, eax
jge 0x40e782
push 0
lea ecx, [esp + 0x40]
call fcn.00407500
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x44]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e7a7
mov ecx, dword [esp + 0x40]
mov byte [ecx], 1
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40e7d5
mov dword [ebx], 0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e816
sub eax, dword [edi - 4]
mov ecx, dword [edi - 8]
or ecx, eax
jge 0x40e7fb
push 0
lea ecx, [esp + 0x18]
call fcn.00407500
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x68]
push edi
add esi, 0x1c
push str.No_Clients_found_under:__s__
push 0xa
push esi
call edx
mov ebp, dword [esp + 0x4c]
add esp, 0x10
mov eax, dword [esp + 0x40]
cmp byte [eax], 0
mov ebx, 0x4456f8
jne 0x40e829
mov ebx, 0x444e90
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40e847
push 0
lea ecx, [esp + 0x18]
call fcn.00407500
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x68]
push ebx
push eax
push edi
push str.__s_clients:_count_d__I_am_in_Clients_s
push 8
push esi
call ecx
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x30], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e887
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e8a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e8cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10