Function at 0x4017f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401bd1
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x24]
call sub.MFC40.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call sub.MFC40.DLL_CString::CString
push 0xffff0000
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
push 0
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x1c], 1
push 0x1101
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x5c0
lea ecx, [ebp - 0x24]
call sub.MFC40.DLL_CString::LoadStringA
push 0x419150
lea ecx, [ebp - 0x14]
call sub.MFC40.DLL_CString::CString_1
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC40.DLL_CString::operator
mov byte [ebp - 4], 1
call fcn.00401bc1
push 0x5c1
lea ecx, [ebp - 0x28]
call sub.MFC40.DLL_CString::LoadStringA
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
je 0x40190f
push eax
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push ecx
call sub.MFC40.DLL_operator
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x14]
cmp eax, 1
mov byte [ebp - 4], 1
sbb dword [ebp - 0x14], ecx
neg dword [ebp - 0x14]
call fcn.00401b99
cmp dword [ebp - 0x14], 0
je 0x40190f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push ecx
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x10]
push 0
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.00401c30
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
call sub.MFC40.DLL_operator
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x14]
cmp eax, 1
mov byte [ebp - 4], 1
sbb dword [ebp - 0x14], ecx
neg dword [ebp - 0x14]
call fcn.00401bb9
cmp dword [ebp - 0x14], 0
je 0x40199e
push 0
mov eax, dword [ebp - 0x10]
push 0
push 0x110a
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push edx
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x10]
push 0
mov eax, dword [ebp - 0x18]
push edx
mov ecx, edx
push eax
call fcn.00401c30
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSetupPatches
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a03
push 0
mov eax, dword [ebp - 0x10]
push 0
push 0x110a
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push edx
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x10]
push 0
mov eax, dword [ebp - 0x18]
push edx
mov ecx, edx
push eax
call fcn.00401c30
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSetupUpdates
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b5d
lea ecx, [ebp - 0x14]
call sub.MFC40.DLL_CString::CString
push 0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], 0
push 0
mov ecx, dword [eax + 0x20]
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov ecx, dword [ebp - 0x10]
push 4
push 0x110a
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftShared_ToolsMSInfoCategoriesSoftware
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401aa8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x134]
push eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0x104
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x1c], 0
je 0x401b04
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
push eax
push 1
push 0x110a
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
call sub.MFC40.DLL_CTreeCtrl::GetItemText
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0041559a
mov byte [ebp - 4], 5
call fcn.00401ba1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x134]
push ecx
push eax
call dword [sym.imp.MSVCRT40.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x401aa8
lea ecx, [ebp - 0x20]
call sub.MFC40.DLL_CString::CString
push 0xf006
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call sub.MFC40.DLL_CString::LoadStringA
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 0x20]
push ecx
mov eax, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.00401c30
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 5
call fcn.00401ba9
mov byte [ebp - 4], 1
call fcn.00401bb1
cmp dword [ebp - 0x1c], 0
je 0x401b75
push str.no_category_tree_in_the_registry
push 0x5c3
call fcn.0040b520
add esp, 8
mov byte [ebp - 4], 0
call fcn.00401bc9
mov dword [ebp - 4], 0xffffffff
call fcn.00401bdb
mov eax, dword [ebp - 0xc]
mov esp, ebp
mov dword fs:[0], eax
pop ebp
ret 0x10