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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514c6b
mov eax, dword fs:[0]
push eax
sub esp, 0xc30
mov eax, dword [0x58fa2c]
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
lea eax, [ebp - 0xc34]
mov dword [ebp - 0xc34], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4911e3
xor al, al
jmp 0x491442
xor esi, esi
mov dword [ebp - 0xc38], esi
nop dword [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc30]
mov dword [ebp - 0xc30], 0x400
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push dword [ebp - 0xc34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
mov dword [ebp - 0xc3c], edi
test edi, edi
jne 0x491425
lea eax, [ebp - 0x810]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea eax, [ebp - 0xc10]
push 0x51ce90
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0xc2c], edi
lea eax, [ebp - 0xc2c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0xc10]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x491288
push dword [ebp - 0xc2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x491425
lea eax, [ebp - 0xc30]
mov dword [ebp - 0xc30], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.DisplayName
push dword [ebp - 0xc2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x491415
mov dword [ebp - 0xc18], eax
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc14], 0xf
mov dword [ebp - 0xc18], eax
mov byte [ebp - 0xc28], al
cmp byte [ebp - 0x410], al
je 0x4912f9
lea eax, [ebp - 0x410]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4912f0
sub eax, edx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0xc28]
call fcn.00406070
mov dword [ebp - 4], 0
mov eax, 0xd
mov edi, dword [ebp - 0xc18]
lea ecx, [ebp - 0xc28]
cmp edi, 0xd
mov esi, edi
cmovae esi, eax
cmp dword [ebp - 0xc14], 0x10
cmovae ecx, dword [ebp - 0xc28]
cmp esi, eax
cmovb eax, esi
push eax
push str.Citrix_XenApp
push ecx
call fcn.004037f0
add esp, 0xc
test eax, eax
jne 0x4913c9
cmp esi, 0xd
jb 0x4913c9
ja 0x4913c9
cmp edi, 0x11
jne 0x4913c9
cmp dword [ebp - 0xc14], 0x10
lea eax, [ebp - 0xc28]
cmovae eax, dword [ebp - 0xc28]
cmp byte [eax + 0xe], 0x30
jl 0x4913c9
push 0xe
lea ecx, [ebp - 0xc28]
call fcn.0042a8e0
cmp byte [eax], 0x39
jg 0x4913c9
push 0xf
lea ecx, [ebp - 0xc28]
call fcn.0042a8e0
cmp byte [eax], 0x2e
jne 0x4913c9
push 0x10
lea ecx, [ebp - 0xc28]
call fcn.0042a8e0
cmp byte [eax], 0x30
jl 0x4913c9
push 0x10
lea ecx, [ebp - 0xc28]
call fcn.0042a8e0
movzx ebx, bl
cmp byte [eax], 0x39
mov eax, 1
cmovle ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc14]
cmp eax, 0x10
jb 0x4913ee
inc eax
lea ecx, [ebp - 0xc28]
push eax
push dword [ebp - 0xc28]
call fcn.004066b0
mov esi, dword [ebp - 0xc38]
mov edi, dword [ebp - 0xc3c]
mov dword [ebp - 0xc14], 0xf
mov dword [ebp - 0xc18], 0
mov byte [ebp - 0xc28], 0
push dword [ebp - 0xc2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x491434
inc esi
mov dword [ebp - 0xc38], esi
test edi, edi
je 0x4911f0
push dword [ebp - 0xc34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
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.004a4566
mov esp, ebp
pop ebp
ret