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

Disassembly:
push 0xffffffffffffffff
push 0x4809cb
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x4a1b58]
xor eax, esp
mov dword [esp + 0x634], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a1b58]
xor eax, esp
push eax
lea eax, [esp + 0x64c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x65c]
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea edi, [esp + 0x238]
push 0xd0
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x270]
push 0
push ecx
mov dword [esp + 0x38], eax
call fcn.0042a5d0
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0xf003f
xor ebx, ebx
push ebx
lea eax, [esp + 0x244]
push eax
mov ebp, 0x104
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x20], 7
test eax, eax
jne 0x408b4c
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x408b4c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x408970
lea ecx, [esp + 0x30]
push 0x484b12
push ecx
inc ebx
call fcn.0042a7f8
add esp, 8
test eax, eax
je 0x408b40
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x54c]
push 0x485458
push ecx
call fcn.0042b9ab
push ebp
lea edx, [esp + 0x148]
push 0
push edx
call fcn.0042a5d0
push ebp
lea eax, [esp + 0x35c]
push 0
push eax
call fcn.0042a5d0
push ebp
lea ecx, [esp + 0x46c]
push 0
push ecx
call fcn.0042a5d0
add esp, 0x34
lea edx, [esp + 0x18]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x550]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408b0c
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.DisplayName
push ecx
call edi
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x340]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.SystemComponent
push edx
call edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x444]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push str.ParentDisplayName
push eax
call edi
lea ecx, [esp + 0x134]
push 0x484b12
push ecx
call fcn.0042a7f8
add esp, 8
test eax, eax
je 0x408b0c
lea edx, [esp + 0x33c]
push 0x484b12
push edx
call fcn.0042a7f8
add esp, 8
test eax, eax
jne 0x408b0c
lea eax, [esp + 0x440]
push 0x484b12
push eax
call fcn.0042a7f8
add esp, 8
test eax, eax
jne 0x408b0c
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0x28]
call fcn.00405ff0
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x658], 0
call fcn.00407590
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x654], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x28], ebp
call fcn.0042a5d0
mov ecx, dword [esp + 0x34]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
jne 0x408970
mov al, 1
mov ecx, dword [esp + 0x64c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x634]
xor ecx, esp
call fcn.0042a4d9
add esp, 0x644
ret 4