Function at 0x408690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1578
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x54b1b4]
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 str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.00408440
push esi
push ebx
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407350
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 0x408716
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 0x40877e
push str.RegWriteUninstInfo
call fcn.004085f0
add esp, 4
cmp dword [ebp - 0x18], edi
jb 0x408755
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
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 0x408777
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4089d5
mov ecx, dword [ebx + 0x2c]
cmp dword [ebx + 0x30], edi
lea eax, [ebx + 0x1c]
jb 0x40878b
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 0x4087b2
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 0x4087d2
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 0x4087f8
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.004076e0
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x408832
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 0x40885f
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 0x408888
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 0x4088b1
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.00404dd0
cmp eax, 0xffffffff
je 0x40894e
push eax
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebx + 0x8c]
call fcn.004070a0
mov eax, dword [ebp - 0x64]
mov edi, 8
cmp dword [ebp - 0x50], edi
jae 0x408924
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 0x408953
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004ba3a4
add esp, 4
jmp 0x408953
mov edi, 8
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x40897e
add ebx, 0xc4
cmp dword [ebx + 0x14], edi
jb 0x40896a
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 0x40898f
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
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 0x4089b5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
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 0x4089d3
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.004ba3af
mov esp, ebp
pop ebp
ret