Function at 0x427a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c4
mov eax, dword [0x4bf370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x200
lea eax, [ebp - 0x504]
mov ebx, ecx
push 0
push eax
call fcn.00440690
push 0x1a4
lea eax, [ebp - 0x6a8]
push 0
push eax
call fcn.00440690
mov edi, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
lea eax, [ebp - 0x6ac]
add esp, 0x18
mov dword [ebp - 0x6ac], 0x1a8
xor esi, esi
push esi
push eax
push esi
push esi
call edi
test eax, eax
je 0x427b06
test byte [ebp - 0x608], 4
je 0x427af3
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.00440690
push 0x1ff
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.0044a8a0
lea eax, [ebp - 0x304]
push 0x47ca20
push eax
call fcn.0043fe20
add esp, 0x20
test eax, eax
jne 0x42802e
push 0
lea eax, [ebp - 0x6ac]
inc esi
push eax
push esi
push 0
call edi
test eax, eax
jne 0x427aa3
lea eax, [ebp - 0x6bc]
mov dword [ebp - 0x6bc], 0
push eax
push 0x20019
push 0
push str.HARDWAREDEVICEMAPVIDEO
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x427c69
push 0x200
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00440690
add esp, 0xc
mov dword [ebp - 0x6b0], 0x200
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x6c4]
push eax
push 0
push str.DeviceVideo0
push dword [ebp - 0x6bc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x427c5d
lea eax, [ebp - 0x304]
push 0x47ca54
push eax
call fcn.0043fe20
add esp, 8
test eax, eax
je 0x428048
lea eax, [ebp - 0x304]
push 0x47ca58
push eax
call fcn.0043fe20
add esp, 8
test eax, eax
je 0x428048
push 0x100
xor edi, edi
lea eax, [ebp - 0x104]
push edi
push eax
xor esi, esi
call fcn.00440690
add esp, 0xc
cmp byte [ebp - 0x304], 0x7b
je 0x427bf7
nop
inc esi
cmp esi, 0x200
jge 0x428048
cmp byte [ebp + esi - 0x304], 0x7b
jne 0x427be0
inc esi
cmp byte [ebp + esi - 0x304], 0x7d
je 0x427c42
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + esi - 0x304]
inc esi
mov byte [ebp + edi - 0x104], al
inc edi
cmp esi, 0x200
jge 0x428048
cmp edi, 0x100
jge 0x428048
cmp byte [ebp + esi - 0x304], 0x7d
jne 0x427c10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push str.SYSTEMControlSet001ControlVideo_s0000
push eax
call fcn.00406660
add esp, 0xc
push dword [ebp - 0x6bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427c72
sub ecx, edx
je 0x42805b
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x6b0], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x504]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42805b
push 0x100
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x6b8], 0x100
push eax
call fcn.00440690
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x6b8]
add esp, 0xc
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x6c4]
push eax
push 0
push str.Device_Description
push dword [ebp - 0x6b0]
call esi
test eax, eax
jne 0x427d1b
push 0xff
lea eax, [ebp - 0x104]
push eax
lea eax, [ebx + 0x53c]
push eax
call fcn.0044a8a0
add esp, 0xc
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00440690
add esp, 0xc
mov dword [ebp - 0x6b8], 0x100
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.Catalyst_Version
push dword [ebp - 0x6b0]
call esi
test eax, eax
jne 0x427d79
push 0xff
lea eax, [ebp - 0x104]
push eax
lea eax, [ebx + 0xb3c]
push eax
call fcn.0044a8a0
add esp, 0xc
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00440690
add esp, 0xc
mov dword [ebp - 0x6b8], 0x100
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.ReleaseVersion
push dword [ebp - 0x6b0]
call esi
test eax, eax
jne 0x427dd7
push 0xff
lea eax, [ebp - 0x104]
push eax
lea eax, [ebx + 0xc3c]
push eax
call fcn.0044a8a0
add esp, 0xc
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00440690
add esp, 0xc
mov dword [ebp - 0x6b8], 0x100
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.HardwareInformation.AdapterString
push dword [ebp - 0x6b0]
call esi
test eax, eax
jne 0x427e4a
mov edi, dword [ebp - 0x6b8]
test edi, edi
je 0x427e4a
lea ecx, [ebx + 0x73c]
nop word [eax + eax]
cmp eax, 0xff
jae 0x427e4a
mov dl, byte [ebp + eax - 0x104]
test dl, dl
je 0x427e45
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, edi
jb 0x427e30
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00440690
add esp, 0xc
mov dword [ebp - 0x6b8], 0x100
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.HardwareInformation.BiosString
push dword [ebp - 0x6b0]
call esi
test eax, eax
jne 0x427eba
mov edi, dword [ebp - 0x6b8]
test edi, edi
je 0x427eba
lea ecx, [ebx + 0x83c]
nop dword [eax]
cmp eax, 0xff
jae 0x427eba
mov dl, byte [ebp + eax - 0x104]
test dl, dl
je 0x427eb5
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, edi
jb 0x427ea0
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00440690
add esp, 0xc
mov dword [ebp - 0x6b8], 0x100
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.HardwareInformation.ChipType
push dword [ebp - 0x6b0]
call esi
test eax, eax
jne 0x427f2a
mov edi, dword [ebp - 0x6b8]
test edi, edi
je 0x427f2a
lea ecx, [ebx + 0x93c]
nop dword [eax]
cmp eax, 0xff
jae 0x427f2a
mov dl, byte [ebp + eax - 0x104]
test dl, dl
je 0x427f25
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, edi
jb 0x427f10
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00440690
add esp, 0xc
mov dword [ebp - 0x6b8], 0x100
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.HardwareInformation.DacType
push dword [ebp - 0x6b0]
call esi
test eax, eax
jne 0x427f9a
mov edi, dword [ebp - 0x6b8]
test edi, edi
je 0x427f9a
lea ecx, [ebx + 0xa3c]
nop dword [eax]
cmp eax, 0xff
jae 0x427f9a
mov dl, byte [ebp + eax - 0x104]
test dl, dl
je 0x427f95
mov byte [ecx], dl
inc ecx
inc eax
cmp eax, edi
jb 0x427f80
lea eax, [ebp - 0x6b8]
mov dword [ebp - 0x6bc], 0
push eax
lea eax, [ebp - 0x6bc]
mov dword [ebp - 0x6b8], 4
push eax
push 0
push 0
push str.HardwareInformation.MemorySize
push dword [ebp - 0x6b0]
call esi
test eax, eax
jne 0x427fdd
mov eax, dword [ebp - 0x6bc]
mov dword [ebx + 0xecc], eax
lea eax, [ebp - 0x6b8]
mov dword [ebp - 0x6bc], 0
push eax
lea eax, [ebp - 0x6bc]
mov dword [ebp - 0x6b8], 4
push eax
push 0
push 0
push str.OGL_DefaultSwapInterval
push dword [ebp - 0x6b0]
call esi
test eax, eax
jne 0x428020
mov eax, dword [ebp - 0x6bc]
mov dword [ebx + 0xec8], eax
push dword [ebp - 0x6b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x428061
push eax
lea eax, [ebp - 0x504]
push 0x49efac
push eax
call fcn.00406660
add esp, 0xc
jmp 0x427c69
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ef0f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x200
lea eax, [ebp - 0x504]
mov dword [ebp - 0x6c0], 0
push 0
push eax
mov edi, 1
call fcn.00440690
lea eax, [ebp - 0x504]
push str.SYSTEMControlSet001ControlClass4D36E968_E325_11CE_BFC1_08002BE103180000
push eax
call fcn.00406660
add esp, 0x14
nop word [eax + eax]
lea eax, [ebp - 0x6c0]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x504]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x428171
push 0x100
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x6b0], 0x100
push eax
call fcn.00440690
add esp, 0xc
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.MatchingDeviceId
push dword [ebp - 0x6c0]
call esi
test eax, eax
jne 0x428171
mov eax, dword [ebp - 0xfc]
mov ecx, eax
mov esi, dword [ebp - 0xf3]
shr ecx, 0x18
push ecx
mov ecx, eax
mov dword [ebp - 0x6b8], esi
shr ecx, 0x10
push ecx
mov ecx, eax
shr ecx, 8
push ecx
push eax
call fcn.0041d2c0
push dword [ebp - 0x6b5]
mov dword [ebp - 0x6bc], eax
push dword [ebp - 0x6b6]
push dword [ebp - 0x6b7]
push esi
call fcn.0041d2c0
add esp, 0x20
mov ecx, ebx
mov esi, eax
call fcn.00413960
cmp eax, esi
jne 0x428171
mov ecx, ebx
call fcn.004139a0
cmp eax, dword [ebp - 0x6bc]
je 0x42819b
push edi
lea eax, [ebp - 0x504]
push str.SYSTEMControlSet001ControlClass4D36E968_E325_11CE_BFC1_08002BE10318000_d
push eax
call fcn.00406660
inc edi
add esp, 0xc
cmp edi, 5
jge 0x4282a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4280a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x6b0], 0x100
push eax
push 0
push 0
push str.DriverVersion
push dword [ebp - 0x6c0]
call esi
lea edi, [ebx + 0x23c]
test eax, eax
jne 0x4281f5
push 0x100
push eax
push edi
call fcn.00440690
push 0xff
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.0044a8a0
add esp, 0x18
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x6b0], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.DriverDesc
push dword [ebp - 0x6c0]
call esi
test eax, eax
jne 0x42824f
push 0x100
push eax
lea esi, [ebx + 0x33c]
push esi
call fcn.00440690
push 0xff
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0044a8a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x6b0], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.DriverDate
push dword [ebp - 0x6c0]
call esi
test eax, eax
jne 0x4282ab
push 0x100
push eax
lea esi, [ebx + 0x43c]
push esi
call fcn.00440690
push 0xff
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0044a8a0
add esp, 0x18
jmp 0x4282ab
lea edi, [ebx + 0x23c]
push 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x6bc], 0x100
push 0
push eax
call fcn.00440690
add esp, 0xc
lea eax, [ebp - 0x6bc]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.DriverVersion
push dword [ebp - 0x6c0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x428313
push 0x100
push eax
push edi
call fcn.00440690
push 0xff
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.0044a8a0
add esp, 0x18
push dword [ebp - 0x6c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ef0f
mov esp, ebp
pop ebp
ret