Function at 0x40ae71
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d4cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x28], ecx
push 0x4249a8
push 0x4249b4
mov eax, dword [ebp - 0x28]
add eax, 0xc
push eax
lea ecx, [ebp - 0x24]
push ecx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
call sub.MFC42.DLL_operator_2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x18]
call fcn.00401ee0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40af13
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x40b096
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00401ee0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x40af43
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x40b096
mov dword [ebp - 0x1c], 0
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0
push str.LiveUpdate
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x14], 0
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push str.DownloadState
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.0040ad3f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00401ea0
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
push eax
push 1
push 0
push str.CurMainVersion
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x20]
call fcn.00401ea0
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
push eax
push 1
push 0
push str.CurVersion15
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x20]
call fcn.00401ea0
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
push eax
push 1
push 0
push str.CurVersion16
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x20]
call fcn.00401ea0
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
push eax
push 1
push 0
push str.CurVersion17
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x20]
call fcn.00401ea0
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
push eax
push 1
push 0
push str.CurVersion18
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x20]
call fcn.00401ea0
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
push eax
push 1
push 0
push str.CurVersion19
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret