Function at 0x40ea60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5052a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
add ecx, 2
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x22c]
mov ax, word [edx]
mov word [ebp - 0x232], ax
add dword [ebp - 0x22c], 2
cmp word [ebp - 0x232], 0
jne 0x40ea91
mov ecx, dword [ebp - 0x22c]
sub ecx, dword [ebp - 0x230]
sar ecx, 1
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x220], 0x4dceb4
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
add ecx, 2
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x23c]
mov ax, word [edx]
mov word [ebp - 0x242], ax
add dword [ebp - 0x23c], 2
cmp word [ebp - 0x242], 0
jne 0x40eaf7
mov ecx, dword [ebp - 0x23c]
sub ecx, dword [ebp - 0x240]
sar ecx, 1
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x214], edx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0043ef50
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push str.__s_
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.004037d0
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGameBuff
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40ed2b
lea ecx, [ebp - 0x224]
call fcn.00404bb0
call fcn.004086a0
add eax, 0x410
push eax
push 0x4dcf24
lea edx, [ebp - 0x224]
push edx
call fcn.00405220
add esp, 0xc
push 0x104
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.DisplayName
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
mov edx, dword [ebp + 0xc]
push edx
push 1
push 0
push str.UninstallString
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
lea ecx, [ebp - 0x224]
call fcn.0040bed0
push eax
push 1
push 0
push str.DisplayIcon
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.0040bf10
push 0x104
mov edx, dword [ebp - 0x228]
add edx, 0x1040
push edx
push 1
push 0
push str.DisplayVersion
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4dcf44
lea ecx, [ebp - 0x224]
call fcn.00403e40
push 0x104
lea ecx, [ebp - 0x224]
call fcn.0040bed0
push eax
push 1
push 0
push str.Publisher
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.0040bf10
push 0x4dd048
lea ecx, [ebp - 0x224]
call fcn.00403e40
push 0x104
lea ecx, [ebp - 0x224]
call fcn.0040bed0
push eax
push 1
push 0
push str.URLInfoAbout
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.0040bf10
push 0x104
lea ecx, [ebp - 0x224]
call fcn.0040bed0
push eax
push 1
push 0
push str.URLUpdateInfo
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.0040bf10
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x224]
call fcn.00403e20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434ee7
mov esp, ebp
pop ebp
ret 8