Function at 0x408500
Capabilities:
Get common file path
Get installed programs
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov edx, str.true
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x74]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x408537
test cl, cl
je 0x408533
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x408537
add eax, 2
add edx, 2
test cl, cl
jne 0x408517
xor eax, eax
jmp 0x40853c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40854a
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea eax, [ebp - 0x410]
push 0x100
push eax
call fcn.00415b43
mov eax, dword [esi + 4]
push dword [eax + 0x20]
lea eax, [ebp - 0x410]
push 0x100
push eax
call fcn.00415b9d
add esp, 0x18
lea eax, [esi + 0x13c]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x42b12c
push dword [0x434008]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x408832
mov eax, dword [esi + 4]
push str.Uninstall
push dword [eax + 0x20]
call fcn.00414470
mov edx, eax
add esp, 8
test edx, edx
je 0x4085d7
add edx, 0xa
jmp 0x4085dd
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x20]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4085e2
sub ecx, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push edx
push 1
push 0
push 0x42b130
push dword [ebp - 4]
call edi
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x24]
test edx, edx
je 0x408629
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408610
sub ecx, ebx
push ecx
push edx
push 1
push 0
push str.DisplayVersion
push dword [ebp - 4]
call edi
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x408651
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408638
sub ecx, ebx
push ecx
push edx
push 1
push 0
push str.HelpLink
push dword [ebp - 4]
call edi
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x408679
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408660
sub ecx, ebx
push ecx
push edx
push 1
push 0
push str.URLUpdateInfo
push dword [ebp - 4]
call edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.uninst.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415b9d
push 0x42b174
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00415b43
lea ebx, [esi + 0x13c]
push ebx
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00415b9d
push 0x42b174
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00415b9d
add esp, 0x30
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408840
test eax, eax
je 0x408832
push 0x42b174
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b43
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
push 0x42b178
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
lea ecx, [ebp - 0x108]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408766
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42b174
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b43
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
push 0x42b174
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x310]
add esp, 0x24
push 0
push 0x17
push ecx
push 0
push dword [eax + 0x458]
lea ecx, [ebp - 0x20c]
push ecx
push ecx
push dword [eax + 0x20]
mov ecx, esi
call fcn.0040afe0
mov ecx, dword [esi + 4]
lea eax, [ecx + 0x84]
push eax
push 0
push 0x17
lea eax, [ebp - 0x310]
push eax
push 0
push dword [ecx + 0x458]
lea eax, [ebp - 0x20c]
push eax
push eax
push dword [ecx + 0x20]
mov ecx, esi
call fcn.0040bad0
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret