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

Disassembly:
push 0xffffffffffffffff
push 0x48180b
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x4a14b4]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a14b4]
xor eax, esp
push eax
lea eax, [esp + 0x66c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x67c]
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea edi, [esp + 0x248]
push 0xd0
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x280]
push 0
push ecx
mov dword [esp + 0x3c], eax
call fcn.0042c770
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push 0xf003f
xor ebx, ebx
push ebx
lea eax, [esp + 0x254]
push eax
mov edi, 0x104
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x24], 7
test eax, eax
jne 0x408c0e
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x408c0e
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x408a20
lea ecx, [esp + 0x38]
push 0x495110
inc ebx
push ecx
mov dword [esp + 0x3c], ebx
call fcn.0042abf6
add esp, 8
test eax, eax
je 0x408c02
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x568]
push 0x495764
push ecx
call fcn.0042b1e5
push edi
lea edx, [esp + 0x154]
push 0
push edx
call fcn.0042c770
add esp, 0x1c
push edi
lea eax, [esp + 0x354]
push 0
push eax
call fcn.0042c770
add esp, 0xc
push edi
lea ecx, [esp + 0x45c]
push 0
push ecx
call fcn.0042c770
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x56c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408bca
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push str.DisplayName
push ecx
call ebp
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x354]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.SystemComponent
push edx
call ebp
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x45c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.ParentDisplayName
push eax
call ebp
lea ecx, [esp + 0x140]
push 0x495110
push ecx
call fcn.0042abf6
add esp, 8
test eax, eax
je 0x408bca
lea edx, [esp + 0x350]
push 0x495110
push edx
call fcn.0042abf6
add esp, 8
test eax, eax
jne 0x408bca
lea eax, [esp + 0x458]
push 0x495110
push eax
call fcn.0042abf6
add esp, 8
test eax, eax
jne 0x408bca
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004063f0
mov edi, dword [esp + 0x30]
lea ebx, [esp + 0x28]
mov dword [esp + 0x674], 0
call fcn.00407b70
mov dword [esp + 0x674], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408bc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0x104
push edi
lea ecx, [esp + 0x3c]
push 0
push ecx
mov dword [esp + 0x2c], edi
call fcn.0042c770
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
jne 0x408a20
mov al, 1
mov ecx, dword [esp + 0x66c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.004296eb
add esp, 0x664
ret 4