Function at 0x422afd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51bf93
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x597790]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x597790]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov edi, str.unknown
push edi
mov esi, ecx
call fcn.00401732
lea ecx, [esi + 4]
push edi
call fcn.00401732
lea ecx, [esi + 8]
push edi
call fcn.00401732
lea ecx, [esi + 0xc]
push edi
call fcn.00401732
lea ecx, [esi + 0x10]
push edi
call fcn.00401732
lea ecx, [esi + 0x14]
push edi
call fcn.00401732
xor ebx, ebx
lea edi, [esp + 0x24]
call fcn.004224b3
cmp dword [esp + 0x34], 2
jne 0x422b94
cmp dword [esp + 0x28], 5
jb 0x422c38
cmp dword [esp + 0x34], 1
jne 0x422bac
cmp dword [esp + 0x28], 4
ja 0x422bac
cmp dword [esp + 0x2c], ebx
je 0x422c38
mov edi, 0x1a8
push edi
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.004f5f50
add esp, 0xc
push str.user32.dll
mov dword [esp + 0xc8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x422cba
push str.EnumDisplayDevicesA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x422cba
push ebx
lea ecx, [esp + 0xc8]
push ecx
push ebx
push ebx
call eax
test eax, eax
je 0x422cba
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401769
mov dword [esp + 0x480], 2
push eax
mov ecx, esi
call fcn.004044ef
or dword [esp + 0x480], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x422cb5
mov edi, 0x9c
push edi
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.004f5f50
add esp, 0xc
lea eax, [esp + 0xc4]
push eax
push ebx
push ebx
mov word [esp + 0xf4], di
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x422cba
call fcn.004d3846
push eax
lea ecx, [esp + 0x18]
call fcn.004013cf
mov dword [esp + 0x480], ebx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x18]
call fcn.00401732
mov dword [esp + 0x480], 1
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004044ef
or dword [esp + 0x480], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401898
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push str.HardwareDeviceMapVideo
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422ed7
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xc8]
push eax
push ebx
push ebx
push str.DeviceVideo0
push dword [esp + 0x30]
mov dword [esp + 0x38], 0x100
call edi
test eax, eax
jne 0x422ecd
push str.RegistryMachine_
call fcn.004f4f30
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xcc]
push str.RegistryMachine_
push eax
call fcn.004f86ca
add esp, 0x10
test eax, eax
jne 0x422ecd
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push 1
push ebx
lea eax, [esp + eax + 0xd0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422ecd
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x270]
push eax
push ebx
push ebx
push str.HardwareInformation.AdapterString
push dword [esp + 0x28]
mov dword [esp + 0x28], 0x200
call edi
test eax, eax
jne 0x422da3
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x26c], cx
lea eax, [esp + 0x26c]
push eax
lea ecx, [esi + 4]
call fcn.0040e107
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x270]
push eax
push ebx
push ebx
push str.HardwareInformation.BiosString
push dword [esp + 0x28]
mov dword [esp + 0x28], 0x200
call edi
test eax, eax
jne 0x422de9
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x26c], cx
lea eax, [esp + 0x26c]
push eax
lea ecx, [esi + 8]
call fcn.0040e107
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x270]
push eax
push ebx
push ebx
push str.HardwareInformation.ChipType
push dword [esp + 0x28]
mov dword [esp + 0x28], 0x200
call edi
test eax, eax
jne 0x422e2f
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x26c], cx
lea eax, [esp + 0x26c]
push eax
lea ecx, [esi + 0xc]
call fcn.0040e107
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x270]
push eax
push ebx
push ebx
push str.HardwareInformation.DacType
push dword [esp + 0x28]
mov dword [esp + 0x28], 0x200
call edi
test eax, eax
jne 0x422e75
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x26c], cx
lea eax, [esp + 0x26c]
push eax
lea ecx, [esi + 0x10]
call fcn.0040e107
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.HardwareInformation.MemorySize
push dword [esp + 0x28]
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x422ec3
push dword [esp + 0x18]
lea eax, [esi + 0x14]
push 0x53e9fc
push eax
call fcn.00404420
mov eax, dword [esp + 0x24]
shr eax, 0x14
push eax
push 0x545f40
add esi, 0x18
push esi
call fcn.00404420
add esp, 0x18
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004f4e9c
mov esp, ebp
pop ebp
ret