Function at 0x4016f5
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x220], edx
push eax
push 0x20019
xor edi, edi
and dword [ebp - 0x210], edi
and dword [ebp - 0x214], edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40184a
push 0x400
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
push ebx
jmp 0x40181f
lea eax, [ebp - 0x108]
inc ebx
push str.Firefox
push eax
call fcn.0049f330
pop ecx
pop ecx
test eax, eax
je 0x401812
lea eax, [ebp - 0x108]
mov byte [ebp - 0x20c], 0
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.0040162e
and dword [ebp - 0x210], edi
lea eax, [ebp - 0x210]
add esp, 0x10
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401812
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 1
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x210]
test eax, eax
je 0x401835
call esi
push 0x400
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40175e
jmp 0x40183a
xor edi, edi
inc edi
call esi
push dword [ebp - 0x214]
call esi
test edi, edi
jne 0x401976
call fcn.004016bb
test eax, eax
je 0x401976
lea eax, [ebp - 0x214]
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401976
push 0x400
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
push ebx
jmp 0x401953
lea eax, [ebp - 0x108]
inc ebx
push str.Firefox
push eax
call fcn.0049f330
pop ecx
pop ecx
test eax, eax
je 0x401946
lea eax, [ebp - 0x108]
mov byte [ebp - 0x20c], 0
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.0040162e
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
add esp, 0x10
push eax
push 0x20119
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401946
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 1
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x210]
test eax, eax
je 0x401969
call esi
push 0x400
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401891
jmp 0x40196e
xor edi, edi
inc edi
call esi
push dword [ebp - 0x214]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d307
leave
ret