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

Disassembly:
mov eax, 0x45e08c
call fcn.004367f8
sub esp, 0x364
mov eax, dword [0x48ed30]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x360], esi
call fcn.00401419
lea eax, [ebp - 0x358]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esi + 0x1c], bl
mov dword [ebp - 0x358], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40187f
push edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x250]
push eax
push ebx
push dword [ebp - 0x358]
mov edi, 0x104
mov dword [ebp - 0x368], ebx
mov dword [ebp - 0x364], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, 0x103
jmp 0x401847
cmp eax, ebx
jne 0x401817
lea eax, [ebp - 0x35c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x358]
mov dword [ebp - 0x35c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401817
push edi
lea eax, [ebp - 0x354]
push ebx
push eax
call fcn.00436f70
push edi
lea eax, [ebp - 0x14c]
push ebx
push eax
call fcn.00436f70
add esp, 0x18
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x354]
push eax
push ebx
push ebx
push str.ConsoleBrand
push dword [ebp - 0x35c]
mov dword [ebp - 0x36c], esi
mov dword [ebp - 0x370], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x401778
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x14c]
push eax
push ebx
push ebx
push str.ConsoleExePath
push dword [ebp - 0x35c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x35c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004015b0
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.004015b0
cmp dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
je 0x4017fd
cmp dword [ebp - 0x34], ebx
je 0x4017fd
lea eax, [ebp - 0x48]
push eax
call fcn.004011c5
test al, al
pop ecx
je 0x4017fd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4017cf
mov eax, dword [eax + 4]
jmp 0x4017d2
add eax, 4
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x4017de
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.004487b3
pop ecx
pop ecx
push 0xffffffffffffffff
test eax, eax
push ebx
lea eax, [ebp - 0x48]
push eax
je 0x401851
mov ecx, dword [ebp - 0x360]
call fcn.0040144d
push ebx
lea ecx, [ebp - 0x48]
push 1
call fcn.0040117c
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x2c]
push 1
call fcn.0040117c
inc dword [ebp - 0x368]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x368]
mov dword [ebp - 0x364], edi
push dword [ebp - 0x358]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
jne 0x4016d1
jmp 0x401878
mov esi, dword [ebp - 0x360]
mov ecx, esi
call fcn.0040144d
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [esi + 0x1c], 1
call fcn.0040117c
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040117c
mov esi, dword [ebp - 0x360]
pop edi
cmp dword [ebp - 0x358], ebx
je 0x401893
push dword [ebp - 0x358]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0xc], bl
je 0x4018a3
xor eax, eax
cmp eax, dword [esi + 0x14]
sbb eax, eax
neg eax
jmp 0x4018a6
mov al, byte [esi + 0x1c]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004366f8
leave
ret 8