Function at 0x10084f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x10189710]
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
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
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.1006b040
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10084fce
lea eax, [esp + 0x10]
call fcn.1007ec90
jmp 0x10084fed
lea edx, [esp + 0x10]
push edx
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call edi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
cmp eax, ebx
jne 0x100851a2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push str.InstallDate
mov esi, 4
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10085028
cmp dword [esp + 0x14], ebx
jne 0x1008508d
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
call fcn.1006b040
test eax, eax
je 0x10085089
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1008504c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call edi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x10085089
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.InstallDate
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x14], ebx
jbe 0x10085193
mov ecx, str.ntdll.dll
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.1005a380
mov edi, eax
cmp edi, ebx
je 0x10085193
push str.RtlSecondsSince1970ToTime
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x1008518c
push 0x103
lea ecx, [esp + 0x14d]
push ebx
push ecx
mov byte [esp + 0x154], bl
call fcn.1012e060
push 0x103
lea edx, [esp + 0x51]
push ebx
push edx
mov byte [esp + 0x58], bl
call fcn.1012e060
mov ecx, dword [esp + 0x2c]
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
push ecx
call esi
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0x10158270
lea ecx, [esp + 0x30]
push ecx
push ebx
push 0x409
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x104
lea edx, [esp + 0x44]
push edx
push 0x1015827c
lea eax, [esp + 0x30]
push eax
push ebx
push 0x409
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x14c]
push edx
push 0x10162cb8
push eax
call fcn.10127dc0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100851a2
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.10127db1
mov esp, ebp
pop ebp
ret