Function at 0x40fb50
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43f868
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x68]
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x34], 0
call fcn.00404840
push eax
lea ecx, [esp + 0x24]
push 0x442694
push ecx
mov byte [esp + 0x40], 1
call fcn.00406010
add esp, 0x14
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 2
call fcn.00406540
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fbe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x40fc12
xor eax, eax
jmp 0x40fc2c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc17
sub eax, edx
sar eax, 1
js 0x40fde1
cmp eax, dword [esi - 8]
jg 0x40fde1
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40fc5c
push 0
lea ecx, [esp + 0x38]
call fcn.00407500
mov esi, dword [esp + 0x34]
mov edx, dword [edi + 0x168]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x20]
push ecx
push 0x2001f
push 0
push esi
push edx
call ebx
test eax, eax
jne 0x40fda5
mov eax, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
push 0xb
push str.SourceList
lea ecx, [esp + 0x3c]
call fcn.00406540
mov esi, dword [esp + 0x34]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40fcbf
push 0
lea ecx, [esp + 0x38]
call fcn.00407500
mov esi, dword [esp + 0x34]
mov edx, dword [edi + 0x168]
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40fcf3
mov eax, dword [esp + 0x14]
push eax
call ebp
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx + 0x68]
push esi
lea ebp, [edi + 0x1c]
push str.Added_SourceList_key_to_registry:__s
push 0xa
push ebp
call edx
jmp 0x40fd07
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x68]
push esi
lea ebp, [edi + 0x1c]
push str.Cannot_add_SourceList_to_registry:__s
push 1
push ebp
call ecx
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0x10
or ecx, eax
jge 0x40fd28
push 0
lea ecx, [esp + 0x38]
call fcn.00407500
mov esi, dword [esp + 0x34]
mov eax, dword [edi + 0x168]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push esi
push eax
call ebx
test eax, eax
jne 0x40fda5
mov ecx, dword [edi + 0x54]
mov ebx, dword [ecx - 0xc]
add edi, 0x54
mov eax, ecx
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x40fd68
push 0
mov ecx, edi
call fcn.00407500
mov eax, dword [edi]
lea edx, [ebx + ebx + 2]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push str.PackageName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
mov edx, dword [ebp]
mov ecx, dword [edx + 0x68]
push eax
push str.Added_SourceList_value_to_registry:__s
push 0xa
push ebp
call ecx
add esp, 0x10
add esi, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40fdc9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
push 0x80070057
call fcn.00406210
int3