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

Disassembly:
mov eax, 0x2094
call fcn.0040ddd0
mov eax, dword [0x432d44]
xor eax, esp
mov dword [esp + 0x2090], eax
push ebx
push esi
mov esi, dword [esp + 0x20a0]
xor ebx, ebx
cmp esi, ebx
jne 0x40c14e
xor al, al
jmp 0x40c379
push edi
lea edi, [esi + 4]
mov ecx, edi
call fcn.00409860
push ebx
push 0x427334
mov ecx, edi
call fcn.00409770
push str._ProgramList____Version__n
mov ecx, esi
call fcn.00409900
lea eax, [esp + 0xc]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c36b
mov edx, dword [esp + 0xc]
push 0x80
lea ecx, [esp + 0x20]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
je 0x40c36b
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
mov ebp, 0x800
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 1
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c33d
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.UninstallString
push eax
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
jne 0x40c33d
xor ecx, ecx
push 0x17fe
push ecx
lea edx, [esp + 0x8aa]
push edx
mov word [esp + 0x8ac], cx
call fcn.0040de00
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.DisplayName
push eax
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
jne 0x40c274
lea ecx, [esp + 0xa0]
push ecx
push 0x4273c0
push 0xc00
lea edx, [esp + 0x8ac]
push edx
jmp 0x40c28e
lea eax, [esp + 0xa0]
push eax
push str._unknown_
push 0xc00
lea ecx, [esp + 0x8ac]
push ecx
call fcn.0040dda3
add esp, 0x10
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.DisplayVersion
push edx
mov dword [esp + 0x2c], ebp
call esi
lea ecx, [esp + 0x8a0]
test eax, eax
jne 0x40c2e5
lea eax, [esp + 0xa0]
push eax
push ecx
push str._s___s_
mov edx, ecx
push 0xc00
push edx
call fcn.0040dda3
add esp, 0x14
jmp 0x40c300
lea eax, [esp + 0x8a0]
push eax
push 0x42c750
push 0xc00
push ecx
call fcn.0040dda3
add esp, 0x10
lea eax, [esp + 0x8a0]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c310
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x8a4]
push edx
mov ecx, edi
call fcn.004015c0
push 1
push 0x42737c
mov ecx, edi
call fcn.004015c0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push 0x80
lea ecx, [esp + 0x24]
push ecx
inc ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x40c1c3
pop ebp
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
mov ecx, dword [esp + 0x2098]
pop esi
pop ebx
xor ecx, esp
call fcn.0040dd94
add esp, 0x2094
ret 4