Function at 0x40cda0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526f70
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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
mov dword [ebp - 0x18], esi
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 0x40cdfb
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 0x40ce28
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 0x40ce55
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
lea ecx, [esi + 0x16c]
mov byte [ebp - 4], 3
call fcn.004272f0
push 0x1e
push str.SoftwareSIEMENSShared_Tools_
lea ecx, [ebp - 0x14]
call fcn.00406dd0
lea ecx, [esi + 0x74]
push ecx
lea edx, [ebp - 0x30]
push 0x536ec8
push edx
call fcn.00405d20
push str.Clients
push eax
lea eax, [ebp - 0x34]
mov bl, 4
push eax
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 - 0x14]
mov byte [ebp - 4], 5
call fcn.00406170
mov eax, dword [ebp - 0x34]
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 0x40cee0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
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 0x40cf03
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 0x40cf1f
push 0
lea ecx, [ebp - 0x14]
call fcn.00406f10
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d1a5
push eax
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40d0ac
mov ecx, dword [ebp - 0x28]
inc dword [ebp - 0x2c]
inc ecx
xor ebx, ebx
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x34], ebx
jbe 0x40d0c6
jmp 0x40cf87
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], ecx
mov esi, ecx
test ecx, ecx
js 0x40d0a2
mov eax, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x40cfb7
push ecx
lea ecx, [ebp - 0x20]
call fcn.00406f10
mov edi, dword [ebp - 0x20]
cmp esi, dword [edi - 8]
jg 0x40d0a2
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
mov esi, dword [ebp - 0x30]
test esi, esi
js 0x40d0a2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x40cff4
push esi
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov ecx, dword [ebp - 0x10]
mov eax, ecx
cmp esi, dword [ecx - 8]
jg 0x40d0a2
mov dword [ecx - 0xc], esi
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + esi*2], cx
lea ecx, [ebp - 0x38]
push ecx
push edi
lea edx, [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x24]
push 0
lea ecx, [ebp - 0x30]
push ecx
push eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40d075
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0050cf35
add esp, 8
test eax, eax
js 0x40d0a2
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x40d0a2
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
add ecx, 0x16c
call fcn.00427453
mov edx, dword [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x1c]
push str.__Save_Client:__s
push edx
push 0xa
jmp 0x40d081
mov edx, dword [ebp - 0x1c]
push ebx
push str._Save_Client:_EnumValue__d__failed
push edx
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x24]
add eax, 0x24
push eax
mov eax, dword [ecx + 0x6c]
call eax
inc ebx
add esp, 0x14
cmp ebx, dword [ebp - 0x34]
jb 0x40cf84
mov esi, dword [ebp - 0x18]
jmp 0x40d0c6
push 0x80070057
call fcn.00405680
mov edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x24]
push str._Save_Clients:_QueryInfoKey_failed
push edx
lea eax, [esi + 0x24]
push 0
push eax
mov eax, dword [ecx + 0x6c]
call eax
add esp, 0x10
cmp byte [ebp + 8], 0
je 0x40d19b
mov edi, dword [esi + 0x170]
test edi, edi
je 0x40d198
mov edi, edi
mov eax, edi
test edi, edi
je 0x40d245
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov edi, dword [edi]
lea ecx, [edx - 0x10]
lea esi, [eax - 0x10]
cmp ecx, esi
je 0x40d148
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40d138
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x40d138
push ecx
call fcn.00406fb0
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40d12d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x40d148
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0x10]
call fcn.00406dd0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x40d164
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x24]
mov edx, dword [edx + 0x6c]
push ecx
mov ecx, dword [ebp - 0x1c]
push str.__Delete_Client:__s
add eax, 0x24
push ecx
push 0xa
push eax
call edx
add esp, 0x14
test edi, edi
jne 0x40d0e0
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x40d1e8
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 0x40d20b
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 0x40d231
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 4
call fcn.0041a097
int3