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

Disassembly:
sub esp, 0x524
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x31c]
mov ecx, dword [esp + 0x528]
push 0x104
push eax
push str.MatchingDeviceId
push ecx
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x402608
lea edx, [esp]
push edx
push 0x20019
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402608
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [esp + 0x14]
push 0x104
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
call ebp
test eax, eax
jne 0x4025fc
push ebx
push esi
push edi
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x228]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x22c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x230]
push str.MatchingDeviceId
push ecx
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x4025d4
lea edx, [esp + 0x20]
lea eax, [esp + 0x32c]
push edx
push eax
call fcn.0043a6f0
add esp, 8
test eax, eax
jne 0x4025d4
lea ecx, [esp + 0x430]
push 0x104
push ecx
lea edx, [esp + 0x230]
push str.UninstallString
push edx
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x4025d4
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftInstallerProducts
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025a8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0x104
push ecx
push eax
push edx
mov ebx, 1
call ebp
test eax, eax
jne 0x40259d
mov edi, str.SoftwareMicrosoftInstallerProducts_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x12c]
push str.MatchingDeviceId
push ecx
push 0x80000001
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x40252f
lea edx, [esp + 0x20]
lea eax, [esp + 0x32c]
push edx
push eax
call fcn.0043a6f0
add esp, 8
test eax, eax
jne 0x40252f
lea ecx, [esp + 0x20]
push 0x104
push ecx
lea edx, [esp + 0x12c]
push str.ProductNameTemp
push edx
push 0x80000001
call fcn.00430370
add esp, 0x14
test eax, eax
je 0x40254e
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
mov eax, ebx
push 0x104
push ecx
push eax
push edx
inc ebx
call ebp
test eax, eax
je 0x40246d
jmp 0x40259d
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x12c]
push str.ProductName
push ecx
push 0x80000001
call fcn.004301e0
lea edx, [esp + 0x138]
push str.ProductNameTemp
push edx
push 0x80000001
call fcn.004304b0
lea eax, [esp + 0x144]
push str.MatchingDeviceId
push eax
push 0x80000001
call fcn.004304b0
add esp, 0x2c
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x430]
push 1
push edx
call fcn.00402620
test eax, eax
je 0x4025d4
lea eax, [esp + 0x228]
push eax
push 0x80000002
call fcn.00430ab0
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x20]
push 0x104
push ecx
push eax
push edx
call ebp
test eax, eax
je 0x402359
pop edi
pop esi
pop ebx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
add esp, 0x524
ret 4