Function at 0x10069930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x2c], eax
xor eax, eax
push esi
xor ecx, ecx
push edi
mov dword [esp + 0x10], 0
mov word [esp + 0x24], cx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
call fcn.1004f190
test eax, eax
je 0x100699b0
call fcn.1004f190
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10069995
lea edx, [esp + 0x10]
push edx
jmp 0x100699bb
lea eax, [esp + 0x10]
push eax
push 0x101
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10062150
jmp 0x100699cb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call edi
test esi, esi
jne 0x10069b94
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push esi
push esi
push str.InstallDate
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10069a10
cmp dword [esp + 0x14], esi
jne 0x10069a77
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 4
call fcn.1004f190
test eax, eax
je 0x10069a73
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x10069a38
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
lea edx, [esp + 0x10]
push edx
push 1
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
push esi
call edi
test esi, esi
jne 0x10069a71
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push str.InstallDate
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
cmp dword [esp + 0x14], esi
jbe 0x10069b85
mov ecx, str.ntdll.dll
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.10032000
mov edi, eax
cmp edi, esi
je 0x10069b85
push str.RtlSecondsSince1970ToTime
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10069b7c
push 0x103
lea eax, [esp + 0x14d]
push 0
push eax
mov byte [esp + 0x154], 0
call fcn.10116880
push 0x103
lea ecx, [esp + 0x51]
push 0
push ecx
mov byte [esp + 0x58], 0
call fcn.10116880
mov eax, dword [esp + 0x2c]
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
push eax
call esi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x104
lea edx, [esp + 0x14c]
push edx
push 0x1014a62c
lea eax, [esp + 0x30]
push eax
push 0
push 0x409
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x104
lea ecx, [esp + 0x44]
push ecx
push str.HH:mm:ss
lea edx, [esp + 0x30]
push edx
push 0
push 0x409
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x14c]
push ecx
push str._s__s
push edx
call fcn.1010d6a8
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x10069b94
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret