Function at 0x4e095f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x558e32
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x700], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x718]
mov dword fs:[0], eax
xor eax, eax
push 0x3fe
mov word [esp + 0x310], ax
xor ebx, ebx
lea eax, [esp + 0x312]
mov esi, ecx
mov edi, edx
push ebx
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call fcn.00517bf0
add esp, 0xc
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
cmp esi, ebx
je 0x4e0aa5
cmp edi, ebx
je 0x4e0aa5
lea eax, [esp + 0x28]
push eax
push 9
push ebx
mov esi, str.SYSTEMCurrentControlSetEnumDisplay
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4e0acb
lea eax, [esp + 0x3c]
push eax
call fcn.00403689
mov edi, eax
mov dword [esp + 0x720], ebx
push str.Open_key:
push edi
call fcn.00405d65
push esi
push edi
call fcn.00405d65
push str._failed_ec
push edi
call fcn.00405d65
add esp, 0x18
push dword [esp + 0x18]
push edi
call fcn.0041058a
lea eax, [esp + 0x2b8]
push eax
mov eax, edi
call fcn.004036f3
mov byte [esp + 0x720], 1
cmp dword [esp + 0x2cc], 8
mov eax, dword [esp + 0x2b8]
jae 0x4e0a76
lea eax, [esp + 0x2b8]
push eax
push 2
pop ecx
call fcn.00492cc7
pop ecx
mov byte [esp + 0x720], 0
lea ecx, [esp + 0x2b8]
call fcn.00403372
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x3c]
call fcn.0040262a
xor al, al
mov ecx, dword [esp + 0x718]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x700]
xor ecx, esp
call fcn.005146df
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], 0x200
mov dword [esp + 0x20], ebx
mov edi, str.updtDispDevEnumClass::GetEDIDData
cmp dword [esp + 0x20], 0x400
jae 0x4e0fba
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x320]
push eax
push dword [esp + 0x38]
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x4e0f0b
lea eax, [esp + 0x24]
push eax
push 9
push ebx
lea eax, [esp + 0x318]
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4e0bd4
lea eax, [esp + 0x3c]
push eax
call fcn.00403689
mov esi, eax
mov dword [esp + 0x720], 4
push edi
push esi
call fcn.00405d65
push str._RegEnumKeyEx_failed_with_code
push esi
call fcn.00405d65
add esp, 0x10
push dword [esp + 0x18]
push esi
call fcn.0041058a
lea eax, [esp + 0x2b8]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x720], 5
cmp dword [esp + 0x2cc], 8
mov eax, dword [esp + 0x2b8]
jae 0x4e0ba0
lea eax, [esp + 0x2b8]
push eax
push 2
pop ecx
call fcn.00492cc7
pop ecx
mov byte [esp + 0x720], 4
lea ecx, [esp + 0x2b8]
call fcn.00403372
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x3c]
call fcn.0040262a
jmp 0x4e0ef7
mov dword [esp + 0x1c], ebx
jmp 0x4e0d95
cmp dword [esp + 0x1c], 0x400
jae 0x4e0eed
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x320]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x30], 0x200
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4e0da5
lea eax, [esp + 0x2c]
push eax
mov esi, 0x20019
push esi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x318]
push eax
push dword [esp + 0x34]
call ebx
test eax, eax
jne 0x4e0d85
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x310]
push eax
push 0
push 0
push str.Driver
push dword [esp + 0x40]
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4e0e53
push dword [esp + 0x34]
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4e0d85
lea eax, [esp + 0x30]
push eax
push esi
xor esi, esi
push esi
push str.Device_Parameters
push dword [esp + 0x3c]
call ebx
cmp eax, esi
jne 0x4e0d80
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x1c], 0x100
push esi
push esi
push str.EDID
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e0cde
mov byte [esp + 0x13], 1
jmp 0x4e0d76
lea eax, [esp + 0x16c]
push eax
call fcn.00403689
mov esi, eax
mov dword [esp + 0x720], 0xa
push edi
push esi
call fcn.00405d65
push str._RegQueryValueEx_on_EDID_failed_with_code
push esi
call fcn.00405d65
add esp, 0x10
push 0
push esi
call fcn.0041058a
lea eax, [esp + 0x2d4]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x720], 0xb
cmp dword [esp + 0x2e8], 8
mov eax, dword [esp + 0x2d4]
jae 0x4e0d44
lea eax, [esp + 0x2d4]
push eax
push 2
pop ecx
call fcn.00492cc7
pop ecx
mov byte [esp + 0x720], 0xa
lea ecx, [esp + 0x2d4]
call fcn.00403372
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x16c]
call fcn.0040262a
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x12], 1
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x1c]
xor ebx, ebx
cmp byte [esp + 0x12], 0
je 0x4e0bdd
jmp 0x4e0eed
lea eax, [esp + 0x204]
push eax
call fcn.00403689
mov esi, eax
mov dword [esp + 0x720], 6
push edi
push esi
call fcn.00405d65
push str._RegEnumKeyEx_failed__subIndex
push esi
call fcn.00405d65
add esp, 0x10
push dword [esp + 0x1c]
push esi
call fcn.0041058a
push str.__code
push esi
call fcn.00405d65
pop ecx
pop ecx
push ebx
push esi
call fcn.0041058a
lea eax, [esp + 0x2f0]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x720], 7
cmp dword [esp + 0x304], 8
mov eax, dword [esp + 0x2f0]
jae 0x4e0e21
lea eax, [esp + 0x2f0]
push eax
push 2
pop ecx
call fcn.00492cc7
pop ecx
mov byte [esp + 0x720], 6
lea ecx, [esp + 0x2f0]
call fcn.00403372
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x204]
jmp 0x4e0ee6
lea eax, [esp + 0xd4]
push eax
call fcn.00403689
mov esi, eax
push 8
pop ebx
mov dword [esp + 0x720], ebx
push edi
push esi
call fcn.00405d65
push str._RegQueryValueEx_failed_with_code
push esi
call fcn.00405d65
add esp, 0x10
push dword [esp + 0x18]
push esi
call fcn.0041058a
lea eax, [esp + 0x29c]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x720], 9
mov eax, dword [esp + 0x29c]
cmp dword [esp + 0x2b0], ebx
jae 0x4e0eb9
lea eax, [esp + 0x29c]
push eax
push 2
pop ecx
call fcn.00492cc7
pop ecx
mov byte [esp + 0x720], 8
lea ecx, [esp + 0x29c]
call fcn.00403372
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0xd4]
call fcn.0040262a
xor ebx, ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x20]
cmp byte [esp + 0x12], 0
je 0x4e0adc
jmp 0x4e0fba
lea eax, [esp + 0xd4]
push eax
call fcn.00403689
mov esi, eax
push 2
pop ebx
mov dword [esp + 0x720], ebx
push edi
push esi
call fcn.00405d65
push str._RegEnumKeyEx_failed_at_index
push esi
call fcn.00405d65
add esp, 0x10
push dword [esp + 0x20]
push esi
call fcn.0041058a
push str._with_code
push esi
call fcn.00405d65
pop ecx
pop ecx
push dword [esp + 0x18]
push esi
call fcn.0041058a
lea eax, [esp + 0x29c]
push eax
mov eax, esi
call fcn.004036f3
mov byte [esp + 0x720], 3
cmp dword [esp + 0x2b0], 8
mov eax, dword [esp + 0x29c]
jae 0x4e0f89
lea eax, [esp + 0x29c]
push eax
mov ecx, ebx
call fcn.00492cc7
pop ecx
mov byte [esp + 0x720], 2
lea ecx, [esp + 0x29c]
call fcn.00403372
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0xd4]
call fcn.0040262a
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
jmp 0x4e0aa7