Function at 0x40df70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5270c8
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 - 0x24]
call fcn.00406480
mov dword [ebp - 4], 0
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dfc8
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
lea ecx, [esi + 0x18c]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00406ac0
mov eax, dword [esi + 0x80]
push eax
lea edx, [ebp - 0x10]
push edx
call fcn.004046d0
push eax
lea eax, [ebp - 0x1c]
push 0x536ec8
push eax
mov byte [ebp - 4], 2
call fcn.00405d20
add esp, 0x14
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406170
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e046
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 0x40e069
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40e088
push 0
lea ecx, [ebp - 0x14]
call fcn.00406f10
mov edi, dword [ebp - 0x14]
mov edx, dword [esi + 0x188]
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e271
call fcn.0041a2c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e0c3
push 0x80004005
call fcn.00405680
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
push 0
push 0x53a1b0
mov ebx, 4
push eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e247
push 1
push 0x53c704
lea ecx, [ebp - 0x10]
call fcn.00406dd0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40e133
push ebx
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], ebx
jl 0x40e147
xor ecx, ecx
mov dword [esi - 0xc], ebx
mov word [esi + 8], cx
cmp dword [esi - 0xc], 1
jg 0x40e151
push 0x80070057
call fcn.00405680
mov edi, dword [esi - 0xc]
mov ebx, 1
cmp dword [esi - 4], ebx
jle 0x40e16a
push edi
lea ecx, [ebp - 0x10]
call fcn.004070f0
mov esi, dword [ebp - 0x10]
xor eax, eax
mov word [esi + 2], ax
test edi, edi
js 0x40e147
cmp edi, dword [esi - 8]
jg 0x40e147
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
cmp dword [esi - 0xc], 2
jg 0x40e192
push 0x80070057
call fcn.00405680
mov edi, dword [esi - 0xc]
cmp dword [esi - 4], ebx
jle 0x40e1a6
push edi
lea ecx, [ebp - 0x10]
call fcn.004070f0
mov esi, dword [ebp - 0x10]
xor eax, eax
mov word [esi + 4], ax
test edi, edi
js 0x40e147
cmp edi, dword [esi - 8]
jg 0x40e147
xor ecx, ecx
mov dword [esi - 0xc], edi
mov ebx, 3
mov word [esi + edi*2], cx
cmp dword [esi - 0xc], ebx
jg 0x40e1d2
push 0x80070057
call fcn.00405680
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x40e1e7
push edi
lea ecx, [ebp - 0x10]
call fcn.004070f0
mov esi, dword [ebp - 0x10]
xor eax, eax
mov word [esi + 6], ax
test edi, edi
js 0x40e147
cmp edi, dword [esi - 8]
jg 0x40e147
mov dword [esi - 0xc], edi
xor ecx, ecx
mov word [esi + edi*2], cx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [esi - 8]
mov edi, dword [esi - 0xc]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40e229
push 0
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
lea edx, [edi + edi + 2]
push edx
push esi
push eax
push 0
push 0x53a1b0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e271
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], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e291
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
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 0x40e2b7
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