Function at 0x4062c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407fcb
push eax
mov dword fs:[0], esp
sub esp, 0x90
push esi
mov esi, ecx
mov al, byte [esi + 0xa58]
test al, al
je 0x406300
mov al, 1
pop esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
add esp, 0x9c
ret
push ebx
push ebp
push edi
push str.SOFTWAREHewlett_PackardMSI_Installer_
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esi + 0xa04]
xor ebx, ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0xac], ebx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0xa18]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push 0x40ccb8
mov ebp, 0x80
push str.SearchRegistry::Entering
push str.Software_Update_Wizard
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
call edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 1
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x406584
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ProductName
push ecx
call ebx
test eax, eax
jne 0x406584
mov eax, dword [esi + 0xa18]
mov byte [esp + 0x13], 1
push eax
push str.True
push str.SearchRegistry::Product_is_installed
push str.Software_Update_Wizard
call edi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push str.Language
push ecx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x4063f5
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esi + 0xa1c], eax
jmp 0x4063ff
mov dword [esi + 0xa1c], 0x409
mov eax, dword [esi + 0xa18]
push eax
lea eax, [esp + 0x24]
push eax
push str.SearchRegistry::Language
push str.Software_Update_Wizard
call edi
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push str.ProductGUID
push eax
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x406449
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0xa10]
call fcn.0040703e
mov eax, dword [esi + 0xa18]
mov ecx, dword [esi + 0xa10]
push eax
push ecx
push str.SearchRegistry::ProductGUID
push str.Software_Update_Wizard
call edi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push str.DisplayName
push ecx
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
jne 0x4064ae
lea ebp, [esi + 0xa0c]
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.0040703e
mov eax, dword [esi + 0xa18]
mov ebp, dword [ebp]
push eax
push ebp
push str.SearchRegistry::DisplayName
push str.Software_Update_Wizard
call edi
mov eax, dword [esi + 0xa0c]
lea ebp, [esi + 0xa0c]
push 0x40ccb8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4064f2
lea eax, [esi + 0xa04]
mov ecx, ebp
push eax
call fcn.00406fe4
mov eax, dword [esi + 0xa18]
mov ebp, dword [ebp]
push eax
push ebp
push str.SearchRegistry::Resetting_DisplayName_to_ProductName
push str.Software_Update_Wizard
call edi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push str.SearchName
push edx
mov dword [esp + 0x2c], 0x80
call ebx
test eax, eax
jne 0x406540
lea ebx, [esi + 0xa08]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.0040703e
mov eax, dword [esi + 0xa18]
mov ebx, dword [ebx]
push eax
push ebx
push str.SearchRegistry::SearchName
push str.Software_Update_Wizard
call edi
mov eax, dword [esi + 0xa08]
lea ebp, [esi + 0xa08]
push 0x40ccb8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406584
lea eax, [esi + 0xa04]
mov ecx, ebp
push eax
call fcn.00406fe4
mov eax, dword [esi + 0xa18]
mov ebp, dword [ebp]
push eax
push ebp
push str.SearchRegistry::Resetting_SearchName_to_ProductName
push str.Software_Update_Wizard
call edi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, byte [esp + 0x13]
mov esi, dword [esi + 0xa18]
cmp bl, 1
push esi
jne 0x4065a6
push str.Returning_True
jmp 0x4065ab
push str.Returning_False
push str.SearchRegistry
push str.Software_Update_Wizard
call edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa8], 0xffffffff
call fcn.00406f5a
mov ecx, dword [esp + 0xa0]
pop edi
mov al, bl
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x9c
ret