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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57de16
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x5ef220]
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
push ecx
lea ecx, [ebp - 0x818]
call fcn.0040f690
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x818]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x42b828
push 0x80070057
call fcn.0040fbb0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x42b84b
push esi
lea ecx, [ebp - 0x818]
call fcn.0040f980
mov eax, dword [ebp - 0x818]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00559c55
mov eax, dword [ebp - 0x818]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x42b81e
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x818]
xor edi, edi
push 0x3fe
mov word [eax + esi*2], cx
xor eax, eax
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
mov dword [ebp - 0x820], 0x200
call fcn.0055c960
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x81c]
add esp, 0xc
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call esi
or ebx, 0xffffffff
test eax, eax
jne 0x42bab7
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x820]
push eax
push edi
push edi
push edi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x42baa9
cmp dword [ebp - 0x820], edi
jle 0x42baa7
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x824]
mov dword [ebp - 0x824], 0x200
push eax
lea eax, [ebp - 0x410]
push eax
push edi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x828]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x81c]
call esi
test eax, eax
jne 0x42ba9a
push 0x3fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.0055c960
add esp, 0xc
mov dword [ebp - 0x824], 0x200
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x82c]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.0040f690
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x814]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x42b81e
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x42b9e1
push esi
lea ecx, [ebp - 0x814]
call fcn.0040f980
mov eax, dword [ebp - 0x814]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00559c55
mov eax, dword [ebp - 0x814]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x42b81e
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x814]
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x818]
test ecx, ecx
je 0x42ba71
mov eax, dword [ebp - 0x814]
cmp dword [eax - 0xc], 0
jl 0x42ba77
push ecx
push eax
call fcn.00558e99
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x42ba71
mov eax, dword [ebp - 0x814]
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x42ba77
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov edi, 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42baa9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42bab9
mov eax, dword [ebp - 0x814]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42ba94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc edi
cmp edi, dword [ebp - 0x820]
jl 0x42b8f7
xor edi, edi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42bab9
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x818]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42badd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00557f7f
mov esp, ebp
pop ebp
ret