Function at 0x40fb00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5273b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 - 0x14]
mov dword [ebp - 4], 0
call fcn.00406480
mov eax, dword [esi + 0x80]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.004046d0
push eax
lea ecx, [ebp - 0x18]
push 0x536ec8
mov bl, 2
push ecx
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 + 8]
mov byte [ebp - 4], 3
call fcn.00406170
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fb9e
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 byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fbc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0050cf35
add esp, 8
test eax, eax
js 0x40fdbc
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x40fdbc
mov dword [ecx - 0xc], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40fc10
push 0
lea ecx, [ebp + 8]
call fcn.00406f10
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x188]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x20]
push eax
push 0x2001f
push 0
push edx
push ecx
call ebx
test eax, eax
jne 0x40fd5d
mov edx, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
push 0xb
push str.SourceList
lea ecx, [ebp + 8]
call fcn.00406170
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40fc6d
push 0
lea ecx, [ebp + 8]
call fcn.00406f10
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x188]
lea eax, [ebp - 0x10]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40fca6
mov edx, dword [ebp - 0x10]
push edx
call edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x6c]
push ecx
push str.____Added_SourceList_key_to_registry:__s
push edx
lea edi, [esi + 0x24]
push 0xa
push edi
call eax
jmp 0x40fcc1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + 0x6c]
push edx
push str._Cannot_add_SourceList_to_registry:__s
push eax
lea edi, [esi + 0x24]
push 1
push edi
call ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0x14
or ecx, eax
jge 0x40fce3
push 0
lea ecx, [ebp + 8]
call fcn.00406f10
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x188]
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push edx
push ecx
call ebx
test eax, eax
jne 0x40fd5d
mov edx, dword [esi + 0x64]
mov ebx, dword [edx - 0xc]
mov eax, edx
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x40fd1d
push 0
lea ecx, [esi + 0x64]
call fcn.00406f10
mov eax, dword [esi + 0x64]
mov edx, dword [ebp - 0x10]
lea ecx, [ebx + ebx + 2]
push ecx
push eax
push 1
push 0
push str.PackageName
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esi + 0x64]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x6c]
push edx
push str.____Added_SourceList_value_to_registry:__s
push eax
push 0xa
push edi
call ecx
add esp, 0x14
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fd80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
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 0x40fda6
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 4
push 0x80070057
call fcn.00405680
int3