Function at 0x1000a6db
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push str.VersionNT
push ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.10003a20
mov esi, dword [esp + 0x30]
or dword [esp + 0x24], 0xffffffff
push 0xa
lea eax, [esp + 0x28]
call fcn.10003186
add esp, 0xc
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 1
push edi
mov esi, str.HARDWAREDEVICEMAPVIDEO
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x1000a75f
push ebx
push str.ERROR___Registry_value_not_found:
call fcn.10003dca
push ebx
push esi
call fcn.10003dca
push dword [esp + 0x38]
call fcn.10002adf
add esp, 0x14
jmp 0x1000a94e
cmp dword [esp + 0x1c], 0x258
jg 0x1000a7be
mov esi, str.DeviceVideo0
push esi
push dword [esp + 0x18]
push ebx
call fcn.1000a5c6
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x1000a944
push eax
call fcn.10002ad2
pop ecx
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push edi
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.System
mov eax, ebx
call fcn.10002f8e
pop ecx
push ebx
mov esi, eax
call fcn.10002adf
jmp 0x1000a90e
push dword [esp + 0x14]
call fcn.1000a60f
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
pop ecx
push 0x1e
push 0x40
mov edi, eax
call esi
push 0xffffffffffffffff
mov ecx, str.DeviceVideo
mov ebx, eax
call fcn.10002caa
pop ecx
push 2
push 0x40
call esi
push eax
mov dword [esp + 0x20], eax
call fcn.10002481
pop ecx
push dword [esp + 0x1c]
mov eax, ebx
call fcn.10002c93
mov dword [esp], 0x208
push 0x40
mov byte [esp + 0x1b], 0
call esi
mov dword [esp + 0x18], eax
jmp 0x1000a8dd
push ebx
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.1000a5c6
add esp, 0xc
push eax
mov dword [esp + 0x24], eax
call fcn.10002ad2
pop ecx
mov esi, eax
lea eax, [esp + 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [esp + 0x13], 0
je 0x1000a881
cmp dword [esp + 0x18], 0
je 0x1000a881
push 0
push dword [esp + 0x1c]
mov edx, esi
call fcn.10002bfa
pop ecx
pop ecx
test al, al
je 0x1000a881
push 0
push str.0000
mov edx, esi
call fcn.10002bfa
pop ecx
pop ecx
test al, al
jne 0x1000a8e7
push 0
push str.0001
mov edx, esi
call fcn.10002bfa
pop ecx
pop ecx
test al, al
je 0x1000a8b8
cmp byte [esp + 0x13], 0
jne 0x1000a8b8
mov ecx, esi
mov byte [esp + 0x13], 1
call fcn.10002c82
sub eax, 5
push eax
mov eax, dword [esp + 0x1c]
mov ecx, esi
call fcn.10002caa
pop ecx
push dword [esp + 0x1c]
dec edi
call fcn.10002481
pop ecx
mov ecx, ebx
call fcn.10002c82
mov ecx, dword [esp + 0x1c]
mov cx, word [ecx]
push esi
mov word [ebx + eax*2 - 2], cx
call fcn.10002adf
pop ecx
test edi, edi
jge 0x1000a81a
jmp 0x1000a8ee
push esi
call fcn.10002adf
pop ecx
mov eax, dword [esp + 0x18]
push str.0000
call fcn.10002c93
mov eax, dword [esp + 0x1c]
mov dword [esp], str.System
call fcn.10002f8e
mov esi, eax
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebp + 8]
push ecx
push esi
call fcn.1000a51c
pop ecx
pop ecx
mov edi, eax
call fcn.10002481
pop ecx
lea eax, [esp + 0x2c]
push eax
push str.AI_TOTAL_VIDEO_MEMORY
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
push dword [esp + 0x28]
call fcn.10002adf
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4