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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524ade
mov eax, dword fs:[0]
push eax
mov eax, 0x282c
call fcn.00503c00
mov eax, dword [0x570454]
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
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2830], eax
mov dword [ebp - 0x282c], ecx
xor ebx, ebx
lea edx, [ebp - 0x2820]
push edx
push 0x20019
push ebx
mov dword [ebp - 4], ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push SysReAllocStringLen
mov dword [ebp - 0x2820], ebx
mov dword [ebp - 0x281c], ebx
mov dword [ebp - 0x2828], 0xf003f
mov dword [ebp - 0x2818], ebx
mov byte [ebp - 0x2811], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a3fe
xor edi, edi
nop
mov eax, dword [ebp - 0x2820]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2818]
push ecx
lea edx, [ebp - 0x1810]
push edx
push edi
push eax
mov dword [ebp - 0x2818], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x40a372
lea ecx, [ebp - 0x1810]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea edx, [ebp - 0x2810]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x281c]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x2810]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a380
lea edx, [ebp - 0x2818]
push edx
mov edx, dword [ebp - 0x281c]
lea eax, [ebp - 0x2010]
push eax
lea ecx, [ebp - 0x2828]
push ecx
push ebx
push str.DisplayName
push edx
mov dword [ebp - 0x2818], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a365
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2010]
push ecx
call fcn.0040b790
add esp, 8
test al, al
jne 0x40a3b4
mov edx, dword [ebp - 0x281c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
cmp esi, ebx
je 0x40a2a0
jmp 0x40a52a
mov eax, dword [ebp - 0x281c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x2820]
push ecx
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a418
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x2824]
push ecx
push edx
call fcn.0040a810
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2824]
cmp dword [eax - 0xc], ebx
jne 0x40a42b
mov ecx, dword [ebp - 0x282c]
add eax, 0xfffffff0
mov dword [ecx], 1
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a3fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a424
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40a563
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x2818]
push ecx
mov ecx, dword [ebp - 0x281c]
lea edx, [ebp - 0x1010]
push edx
lea eax, [ebp - 0x2828]
push eax
push ebx
push str.DisplayVersion
mov edi, 0x800
push ecx
mov dword [ebp - 0x2818], edi
call esi
test eax, eax
jne 0x40a4f8
push ecx
lea edx, [ebp - 0x1010]
mov ecx, esp
mov dword [ebp - 0x2838], esp
push edx
call fcn.00406620
push ecx
lea eax, [ebp - 0x2824]
mov dword [ebp - 0x2834], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00403fd0
mov byte [ebp - 4], 1
call fcn.0040a6e0
cmp eax, ebx
jne 0x40a4ec
lea ecx, [ebp - 0x2818]
push ecx
mov ecx, dword [ebp - 0x281c]
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x2828]
push eax
push ebx
push str.InstallLocation
push ecx
mov dword [ebp - 0x2818], edi
call esi
test eax, eax
jne 0x40a4f8
mov ecx, dword [ebp - 0x2830]
lea edx, [ebp - 0x810]
push edx
call fcn.004065d0
mov byte [ebp - 0x2811], 1
jmp 0x40a4f8
mov eax, dword [ebp - 0x282c]
mov dword [eax], 1
mov ecx, dword [ebp - 0x281c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x2824]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a52a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x2820]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a55d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x2811]
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.00500836
mov esp, ebp
pop ebp
ret 0xc