Function at 0x10014e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x1018e600]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareHewlett_PackardCSIBootstrap
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10014fe2
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10014fa7
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x10014f99
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp esi, eax
jb 0x10014f0c
ja 0x10014ede
cmp edi, ecx
jbe 0x10014f0c
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.WasSystemRebooted_old_saved_time_is_corrupted_and_greater_than_current_time._n
call fcn.10003a30
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1010d913
mov esp, ebp
pop ebp
ret
sub ecx, edi
sbb eax, esi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x3a]
lea edx, [eax + eax*2]
movzx eax, word [esp + 0x3c]
lea eax, [eax + edx*8]
movzx edx, word [esp + 0x3e]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
movzx ecx, word [esp + 0x40]
imul eax, eax, 0xf
lea edx, [ecx + eax*4]
movzx eax, word [esp + 0x36]
imul edx, edx, 0x3e8
movzx ecx, word [esp + 0x42]
imul eax, eax, 0x605adc00
sub edx, eax
lea edx, [edx + ecx + 0x5b348000]
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp edx, ebx
setg al
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1010d913
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.WasSystemRebooted_could_not_convert_save_time_value._n
jmp 0x10014fb3
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.WasSystemRebooted_failed_reading_registry_value._n
call fcn.10003a30
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1010d913
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.WasSystemRebooted_failed_opening_registry_key._n
call fcn.10003a30
call sym.BootstrapLibrary.dll_public:_static_bool___cdecl_CBootstrapLog::LogEntry_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
mov ecx, dword [esp + 0x68]
add esp, 4
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d913
mov esp, ebp
pop ebp
ret