Function at 0x408a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2728
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], esi
push 0x34
xor eax, eax
push 0x512188
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00408810
push esi
push ebx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407720
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov edi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], edi
jae 0x408ae6
mov ecx, esi
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x68]
push edx
push 0
push eax
push 0
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x408b4e
push str.RegWriteUninstInfo
call fcn.004089c0
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x408b25
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
test eax, eax
je 0x408b47
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x408da5
mov ecx, dword [ebx + 0x2c]
cmp dword [ebx + 0x30], edi
lea eax, [ebx + 0x1c]
jb 0x408b5b
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x68]
push 1
push 0
push str.DisplayIcon
push eax
call esi
mov ecx, dword [ebx + 0x48]
cmp dword [ebx + 0x4c], edi
lea eax, [ebx + 0x38]
jb 0x408b82
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.DisplayName
push edx
call esi
mov ecx, dword [ebx + 0x64]
cmp dword [ebx + 0x68], edi
lea eax, [ebx + 0x54]
jb 0x408ba2
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.DisplayVersion
push edx
call esi
mov ecx, dword [ebx + 0x80]
cmp dword [ebx + 0x84], edi
lea eax, [ebx + 0x70]
jb 0x408bc8
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.Publisher
push edx
call esi
lea eax, [ebx + 0x8c]
push str.__unsetup
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00407ab0
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x408c02
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x68]
push 1
push 0
push str.UninstallString
push eax
call esi
mov ecx, dword [ebx + 0xb8]
cmp dword [ebx + 0xbc], edi
lea eax, [ebx + 0xa8]
jb 0x408c2f
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.URLInfoAbout
push edx
call esi
mov ecx, dword [ebx + 0xf0]
cmp dword [ebx + 0xf4], edi
lea eax, [ebx + 0xe0]
jb 0x408c58
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.ChannelName
push edx
call esi
mov ecx, dword [ebx + 0x10c]
cmp dword [ebx + 0x110], edi
lea eax, [ebx + 0xfc]
jb 0x408c81
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.SubChannelName
push edx
call esi
mov edx, dword [ebp - 0x68]
xor eax, eax
cmp dword [ebx + 0x118], eax
push 4
lea ecx, [ebp - 0x70]
push ecx
push 4
sete al
push 0
push str.DisableAutorun
push edx
mov dword [ebp - 0x70], eax
call esi
lea eax, [ebx + 0x8c]
push eax
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x5c
call fcn.00404ea0
cmp eax, 0xffffffff
je 0x408d1e
push eax
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebx + 0x8c]
call fcn.00407470
mov eax, dword [ebp - 0x64]
mov edi, 8
cmp dword [ebp - 0x50], edi
jae 0x408cf4
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x68]
push 1
push 0
push str.InstallLocation
push eax
call esi
cmp dword [ebp - 0x50], edi
jb 0x408d23
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004bb4d8
add esp, 4
jmp 0x408d23
mov edi, 8
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x408d4e
add ebx, 0xc4
cmp dword [ebx + 0x14], edi
jb 0x408d3a
mov ebx, dword [ebx]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x68]
push edx
push ebx
push 1
push 0
push str.UpdateExeVersion
push eax
call esi
cmp dword [ebp - 0x34], edi
jb 0x408d5f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], edi
jb 0x408d85
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
test eax, eax
je 0x408da3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret