Function at 0x42f470
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4857d1
mov eax, dword fs:[0]
push eax
sub esp, 0xc68
mov eax, dword [0x504a70]
xor eax, esp
mov dword [esp + 0xc64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504a70]
xor eax, esp
push eax
lea eax, [esp + 0xc7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc8c]
mov esi, dword [esp + 0xc90]
mov edi, dword [esp + 0xc94]
mov ebp, ecx
xor ebx, ebx
push 0x4f1164
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call fcn.00403e00
push 0x20019
push 1
push ebx
push 1
push edi
push esi
mov dword [esp + 0xc9c], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f618
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x37c]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
push str.VideoID
push esi
mov dword [esp + 0x40], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f618
lea ecx, [esp + 0x378]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403ee0
call fcn.0045e8af
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42f558
push 0x80004005
call fcn.00401440
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push str.SYSTEMCurrentControlSetControlVideo_s0000
push edx
mov byte [esp + 0xc90], 1
call fcn.00405230
add esp, 0xc
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x1c]
push 0x20019
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x24]
mov byte [esp + 0xc90], 2
call fcn.0042f0a0
test eax, eax
jne 0x42f5e6
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x47c]
push ecx
push str.InstalledDisplayDrivers
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], 0x400
call fcn.0042f0f0
test eax, eax
jne 0x42f5e6
lea edx, [esp + 0x478]
push edx
lea ecx, [ebp + 0x28]
call fcn.00403ee0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42f5f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0xc84], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f618
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
mov ebp, 0x348
push ebx
xor esi, esi
mov dword [esp + 0x40], ebp
call edi
test eax, eax
je 0x42f678
mov edi, edi
test byte [esp + 0x174], 1
je 0x42f663
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x27c]
push eax
call fcn.004699f6
add esp, 8
test eax, eax
jne 0x42f6bd
push ebx
lea ecx, [esp + 0x34]
push ecx
add esi, 1
push esi
push ebx
mov dword [esp + 0x40], ebp
call edi
test eax, eax
jne 0x42f640
mov edx, dword [esp + 0x14]
push edx
push 0x4a5ef0
push 4
call fcn.0041efb0
mov esi, dword [esp + 0x2c]
add esp, 0xc
push 0x4f1164
mov ecx, esi
call fcn.00403e00
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xc84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x42f6ec
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00403e00
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xc84], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f6f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xc7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc64]
xor ecx, esp
call fcn.0046875c
add esp, 0xc74
ret 0xc