Function at 0x40c920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4fb2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], esi
mov word [ebp - 0x20c], cx
call fcn.00438200
push esi
push str.__s_
mov eax, 0x104
lea ebx, [ebp - 0x20c]
call fcn.00403230
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGameBuff
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40cc20
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
add eax, 0x10
mov dword [ebp - 0x210], eax
mov eax, dword [0x50012c]
test eax, eax
jne 0x40c9e2
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x40c9db
mov esi, eax
call fcn.004112e0
mov esi, dword [ebp - 0x218]
jmp 0x40c9dd
xor eax, eax
mov dword [0x50012c], eax
push edi
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [ebp - 0x210]
call fcn.00403db0
mov ecx, dword [ebp - 0x214]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 8
push 0x104
push 0x4d5dd0
push 1
push 0
push str.DisplayName
push ecx
call edi
mov edx, dword [ebp - 0x214]
push 0x104
push esi
push 1
push 0
push str.UninstallString
push edx
call edi
mov esi, dword [ebp - 0x210]
cmp dword [esi - 4], 1
jle 0x40ca58
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00403600
mov esi, dword [ebp - 0x210]
mov edx, dword [ebp - 0x214]
push 0x104
push esi
push 1
push 0
push str.DisplayIcon
push edx
call edi
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f176
add esp, 8
test eax, eax
js 0x40cc32
cmp eax, dword [esi - 8]
jg 0x40cc32
mov edx, dword [ebp - 0x21c]
push 0x104
add edx, 0x1040
push edx
push 1
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x214]
push str.DisplayVersion
push eax
call edi
push 0x4d5b00
lea ecx, [ebp - 0x210]
push ecx
xor ebx, ebx
call fcn.004034f0
mov esi, dword [ebp - 0x210]
cmp dword [esi - 4], 1
jle 0x40caef
mov edx, dword [esi - 0xc]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00403600
mov esi, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
push 0x104
push esi
push 1
push 0
push str.Publisher
push ecx
call edi
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f176
add esp, 8
test eax, eax
js 0x40cc32
cmp eax, dword [esi - 8]
jg 0x40cc32
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
push 0x4d5b00
lea eax, [ebp - 0x210]
push eax
xor ebx, ebx
call fcn.004034f0
mov esi, dword [ebp - 0x210]
mov ebx, 1
cmp dword [esi - 4], ebx
jle 0x40cb67
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00403600
mov esi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
push 0x104
push esi
push ebx
push 0
push str.URLInfoAbout
push eax
call edi
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f176
add esp, 8
test eax, eax
js 0x40cc32
cmp eax, dword [esi - 8]
jg 0x40cc32
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 4], ebx
jle 0x40cbc0
mov edx, dword [esi - 0xc]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00403600
mov esi, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
push 0x104
push esi
push ebx
push 0
push str.URLUpdateInfo
push ecx
call edi
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f176
add esp, 8
pop edi
test eax, eax
js 0x40cc32
cmp eax, dword [esi - 8]
jg 0x40cc32
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e217
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00403050
int3