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

Disassembly:
push 0xffffffffffffffff
push 0x10040da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x10
mov ecx, 0x10056110
mov dword [esp + 0x18], ebx
call fcn.1000b570
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
sub esp, 0x10
mov ebp, eax
mov al, byte [esp + 0x23]
mov esi, esp
mov dword [esp + 0x4c], esp
push ebx
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
call fcn.1002f680
add esp, 0x10
cmp al, 1
jne 0x1002f95a
mov dword [esp + 0x14], 1
push 0x11
mov ecx, 0x10056110
call fcn.1000b570
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x4c], esp
push ebx
mov ebp, eax
mov byte [esi], cl
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
call fcn.1002f680
add esp, 0x10
cmp al, 1
jne 0x1002f9b4
mov eax, dword [esp + 0x14]
or al, 2
mov dword [esp + 0x14], eax
push 0x12
mov ecx, 0x10056110
call fcn.1000b570
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x4c], esp
push ebx
mov ecx, esi
mov ebp, eax
mov byte [esi], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
call fcn.1002f680
add esp, 0x10
cmp al, 1
jne 0x1002fa0e
mov eax, dword [esp + 0x14]
or al, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x64], 1
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1002fbcd
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], esi
push 0x101
mov dword [esp + 0x34], 0x100
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x24]
add esp, 4
lea edx, [esp + 0x40]
mov ebp, eax
push edx
push ebx
push ebx
lea eax, [esp + 0x3c]
push ebx
push eax
push ebp
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x1002fc53
xor esi, esi
mov dword [esp + 0x34], esi
lea edx, [esp + 0x18]
push 0x1005460c
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_operator
push ebp
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1002faf2
mov esi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x34], esi
cmp eax, ebx
lea ecx, [esp + 0x38]
setne bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x1002fbe0
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
lea ecx, [esp + 0x30]
push ebx
push ecx
push ebx
push str.DisplayName
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1002fbf8
mov edx, dword [esp + 0x1c]
inc edx
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push edi
push ecx
push ebx
push str.DisplayName
push esi
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1002fc10
push 0x13
mov ecx, 0x10056110
call fcn.1000b570
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x1002fb8a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x1002fbba
push 0x11
mov ecx, 0x10056110
call fcn.1000b570
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x1002fbae
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x1002fbc2
or dword [esp + 0x14], 0x40000000
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x1002fc05
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
jmp 0x1002fc88
test esi, esi
je 0x1002fbed
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test esi, esi
mov byte [esp + 0x50], 1
je 0x1002fc36
jmp 0x1002fc2f
cmp esi, ebx
je 0x1002fc05
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x50], 1
je 0x1002fc36
jmp 0x1002fc2f
cmp esi, ebx
je 0x1002fc1d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, ebx
mov byte [esp + 0x50], 1
je 0x1002fc36
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
add esp, 4
inc eax
mov dword [esp + 0x20], eax
xor ebx, ebx
jmp 0x1002fa5c
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp esi, ebx
je 0x1002fc6b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x1002fc88
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret