Function at 0x40c8f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4f92a0]
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.00438230
push esi
push str.__s_
mov eax, 0x104
lea ebx, [ebp - 0x20c]
call fcn.00403200
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 0x40cbf0
mov edx, dword [0x4fa44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fa44c
call eax
add eax, 0x10
mov dword [ebp - 0x210], eax
mov eax, dword [0x4fd894]
test eax, eax
jne 0x40c9b2
push 0x24d0
call fcn.0042ec9c
add esp, 4
test eax, eax
je 0x40c9ab
mov esi, eax
call fcn.00411220
mov esi, dword [ebp - 0x218]
jmp 0x40c9ad
xor eax, eax
mov dword [0x4fd894], eax
push edi
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [ebp - 0x210]
call fcn.00403d60
mov ecx, dword [ebp - 0x214]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 8
push 0x104
push 0x4d3b50
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 0x40ca28
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.004035d0
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.0042f1b6
add esp, 8
test eax, eax
js 0x40cc02
cmp eax, dword [esi - 8]
jg 0x40cc02
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 0x4d3880
lea ecx, [ebp - 0x210]
push ecx
xor ebx, ebx
call fcn.004034c0
mov esi, dword [ebp - 0x210]
cmp dword [esi - 4], 1
jle 0x40cabf
mov edx, dword [esi - 0xc]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.004035d0
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.0042f1b6
add esp, 8
test eax, eax
js 0x40cc02
cmp eax, dword [esi - 8]
jg 0x40cc02
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
push 0x4d3880
lea eax, [ebp - 0x210]
push eax
xor ebx, ebx
call fcn.004034c0
mov esi, dword [ebp - 0x210]
mov ebx, 1
cmp dword [esi - 4], ebx
jle 0x40cb37
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.004035d0
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.0042f1b6
add esp, 8
test eax, eax
js 0x40cc02
cmp eax, dword [esi - 8]
jg 0x40cc02
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 4], ebx
jle 0x40cb90
mov edx, dword [esi - 0xc]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.004035d0
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.0042f1b6
add esp, 8
pop edi
test eax, eax
js 0x40cc02
cmp eax, dword [esi - 8]
jg 0x40cc02
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 0x40cbf0
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.0042e257
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00403020
int3