Function at 0x41fb5e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ff1cd
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x56d790]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x56d790]
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.0041f4f2
cmp dword [esp + 0x34], 2
jne 0x41fbf5
cmp dword [esp + 0x28], 5
jb 0x41fc99
cmp dword [esp + 0x34], 1
jne 0x41fc0d
cmp dword [esp + 0x28], 4
ja 0x41fc0d
cmp dword [esp + 0x2c], ebx
je 0x41fc99
mov edi, 0x1a8
push edi
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.004de430
add esp, 0xc
push str.user32.dll
mov dword [esp + 0xc8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x41fd1b
push str.EnumDisplayDevicesA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41fd1b
push ebx
lea ecx, [esp + 0xc8]
push ecx
push ebx
push ebx
call eax
test eax, eax
je 0x41fd1b
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.004043ce
or dword [esp + 0x480], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x41fd16
mov edi, 0x9c
push edi
lea eax, [esp + 0xc8]
push ebx
push eax
call fcn.004de430
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 0x41fd1b
call fcn.004bbb54
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.004043ce
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 0x41ff38
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], pe_nt_image_headers32
call edi
test eax, eax
jne 0x41ff2e
push str.RegistryMachine_
call fcn.004dd2b0
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xcc]
push str.RegistryMachine_
push eax
call fcn.004e0742
add esp, 0x10
test eax, eax
jne 0x41ff2e
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 0x41ff2e
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 0x41fe04
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.0040de08
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 0x41fe4a
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.0040de08
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 0x41fe90
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.0040de08
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 0x41fed6
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.0040de08
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 0x41ff24
push dword [esp + 0x18]
lea eax, [esi + 0x14]
push 0x51d064
push eax
call fcn.004042ff
mov eax, dword [esp + 0x24]
shr eax, 0x14
push eax
push 0x524020
add esi, 0x18
push esi
call fcn.004042ff
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.004dd215
mov esp, ebp
pop ebp
ret