Function at 0x422a27
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x519725
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x5937d0]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x5937d0]
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.004223dd
cmp dword [esp + 0x34], 2
jne 0x422abe
cmp dword [esp + 0x28], 5
jb 0x422b62
cmp dword [esp + 0x34], 1
jne 0x422ad6
cmp dword [esp + 0x28], 4
ja 0x422ad6
cmp dword [esp + 0x2c], ebx
je 0x422b62
mov edi, 0x1a8
push edi
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.004f3c10
add esp, 0xc
push str.user32.dll
mov dword [esp + 0xc8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x422be4
push str.EnumDisplayDevicesA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x422be4
push ebx
lea ecx, [esp + 0xc8]
push ecx
push ebx
push ebx
call eax
test eax, eax
je 0x422be4
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.004044be
or dword [esp + 0x480], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x422bdf
mov edi, 0x9c
push edi
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.004f3c10
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 0x422be4
call fcn.004d1134
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.004044be
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 0x422e01
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 0x422df7
push str.RegistryMachine_
call fcn.004f2bf0
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xcc]
push str.RegistryMachine_
push eax
call fcn.004f638a
add esp, 0x10
test eax, eax
jne 0x422df7
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 0x422df7
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 0x422ccd
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.0040e008
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 0x422d13
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.0040e008
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 0x422d59
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.0040e008
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 0x422d9f
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.0040e008
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 0x422ded
push dword [esp + 0x18]
lea eax, [esi + 0x14]
push 0x53b9e4
push eax
call fcn.004043ef
mov eax, dword [esp + 0x24]
shr eax, 0x14
push eax
push 0x542f68
add esi, 0x18
push esi
call fcn.004043ef
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.004f2b62
mov esp, ebp
pop ebp
ret