Function at 0x40e710
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527160
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 edi, ecx
push str.Compsetupstarter
lea ecx, [ebp - 0x14]
call fcn.00406480
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0041a2c9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40e766
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 - 0x10]
mov byte [ebp - 4], 1
call fcn.00406dd0
lea ecx, [edi + 0x74]
push ecx
lea edx, [ebp - 0x20]
push 0x536ec8
push edx
call fcn.00405d20
push str.Clients
push eax
lea eax, [ebp - 0x1c]
mov bl, 2
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 - 0x10]
mov byte [ebp - 4], 3
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 0x40e7e6
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], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e809
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx - 8]
mov eax, 1
sub eax, dword [ebx - 4]
or ecx, eax
jge 0x40e828
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e8c8
mov eax, dword [edi + 0x68]
mov edx, dword [ebp - 0x18]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x24], eax
test eax, eax
mov eax, dword [edi + 0x68]
mov ecx, 1
je 0x40e889
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x40e878
push 0
lea ecx, [edi + 0x68]
call fcn.00406f10
mov esi, dword [edi + 0x68]
mov edx, dword [ebp - 0x14]
push esi
push 0x53caa0
push edx
push 0
jmp 0x40e8ac
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x40e89d
push 0
lea ecx, [edi + 0x68]
call fcn.00406f10
mov esi, dword [edi + 0x68]
mov edx, dword [ebp - 0x14]
push esi
push str.__Delete_client_successful:__s
push edx
push 0xa
mov ecx, dword [edi + 0x24]
lea eax, [edi + 0x24]
push eax
mov eax, dword [ecx + 0x6c]
call eax
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x24]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e8e8
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 dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e90e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret