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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x559191
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.00517e90
add esp, 0xc
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
cmp esi, ebx
je 0x4e0bae
cmp edi, ebx
je 0x4e0bae
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 0x4e0bd4
lea eax, [esp + 0x3c]
push eax
call fcn.004036c8
mov edi, eax
mov dword [esp + 0x720], ebx
push str.Open_key:
push edi
call fcn.00405d7d
push esi
push edi
call fcn.00405d7d
push str._failed_ec
push edi
call fcn.00405d7d
add esp, 0x18
push dword [esp + 0x18]
push edi
call fcn.0041056c
lea eax, [esp + 0x2b8]
push eax
mov eax, edi
call fcn.00403732
mov byte [esp + 0x720], 1
cmp dword [esp + 0x2cc], 8
mov eax, dword [esp + 0x2b8]
jae 0x4e0b7f
lea eax, [esp + 0x2b8]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
mov byte [esp + 0x720], 0
lea ecx, [esp + 0x2b8]
call fcn.004033b1
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x3c]
call fcn.00402669
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.0051497f
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 0x4e10c3
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 0x4e1014
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 0x4e0cdd
lea eax, [esp + 0x3c]
push eax
call fcn.004036c8
mov esi, eax
mov dword [esp + 0x720], 4
push edi
push esi
call fcn.00405d7d
push str._RegEnumKeyEx_failed_with_code
push esi
call fcn.00405d7d
add esp, 0x10
push dword [esp + 0x18]
push esi
call fcn.0041056c
lea eax, [esp + 0x2b8]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x720], 5
cmp dword [esp + 0x2cc], 8
mov eax, dword [esp + 0x2b8]
jae 0x4e0ca9
lea eax, [esp + 0x2b8]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
mov byte [esp + 0x720], 4
lea ecx, [esp + 0x2b8]
call fcn.004033b1
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x3c]
call fcn.00402669
jmp 0x4e1000
mov dword [esp + 0x1c], ebx
jmp 0x4e0e9e
cmp dword [esp + 0x1c], 0x400
jae 0x4e0ff6
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 0x4e0eae
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 0x4e0e8e
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 0x4e0f5c
push dword [esp + 0x34]
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4e0e8e
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 0x4e0e89
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 0x4e0de7
mov byte [esp + 0x13], 1
jmp 0x4e0e7f
lea eax, [esp + 0x16c]
push eax
call fcn.004036c8
mov esi, eax
mov dword [esp + 0x720], 0xa
push edi
push esi
call fcn.00405d7d
push str._RegQueryValueEx_on_EDID_failed_with_code
push esi
call fcn.00405d7d
add esp, 0x10
push 0
push esi
call fcn.0041056c
lea eax, [esp + 0x2d4]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x720], 0xb
cmp dword [esp + 0x2e8], 8
mov eax, dword [esp + 0x2d4]
jae 0x4e0e4d
lea eax, [esp + 0x2d4]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
mov byte [esp + 0x720], 0xa
lea ecx, [esp + 0x2d4]
call fcn.004033b1
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x16c]
call fcn.00402669
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 0x4e0ce6
jmp 0x4e0ff6
lea eax, [esp + 0x204]
push eax
call fcn.004036c8
mov esi, eax
mov dword [esp + 0x720], 6
push edi
push esi
call fcn.00405d7d
push str._RegEnumKeyEx_failed__subIndex
push esi
call fcn.00405d7d
add esp, 0x10
push dword [esp + 0x1c]
push esi
call fcn.0041056c
push str.__code
push esi
call fcn.00405d7d
pop ecx
pop ecx
push ebx
push esi
call fcn.0041056c
lea eax, [esp + 0x2f0]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x720], 7
cmp dword [esp + 0x304], 8
mov eax, dword [esp + 0x2f0]
jae 0x4e0f2a
lea eax, [esp + 0x2f0]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
mov byte [esp + 0x720], 6
lea ecx, [esp + 0x2f0]
call fcn.004033b1
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x204]
jmp 0x4e0fef
lea eax, [esp + 0xd4]
push eax
call fcn.004036c8
mov esi, eax
push 8
pop ebx
mov dword [esp + 0x720], ebx
push edi
push esi
call fcn.00405d7d
push str._RegQueryValueEx_failed_with_code
push esi
call fcn.00405d7d
add esp, 0x10
push dword [esp + 0x18]
push esi
call fcn.0041056c
lea eax, [esp + 0x29c]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x720], 9
mov eax, dword [esp + 0x29c]
cmp dword [esp + 0x2b0], ebx
jae 0x4e0fc2
lea eax, [esp + 0x29c]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
mov byte [esp + 0x720], 8
lea ecx, [esp + 0x29c]
call fcn.004033b1
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0xd4]
call fcn.00402669
xor ebx, ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x20]
cmp byte [esp + 0x12], 0
je 0x4e0be5
jmp 0x4e10c3
lea eax, [esp + 0xd4]
push eax
call fcn.004036c8
mov esi, eax
push 2
pop ebx
mov dword [esp + 0x720], ebx
push edi
push esi
call fcn.00405d7d
push str._RegEnumKeyEx_failed_at_index
push esi
call fcn.00405d7d
add esp, 0x10
push dword [esp + 0x20]
push esi
call fcn.0041056c
push str._with_code
push esi
call fcn.00405d7d
pop ecx
pop ecx
push dword [esp + 0x18]
push esi
call fcn.0041056c
lea eax, [esp + 0x29c]
push eax
mov eax, esi
call fcn.00403732
mov byte [esp + 0x720], 3
cmp dword [esp + 0x2b0], 8
mov eax, dword [esp + 0x29c]
jae 0x4e1092
lea eax, [esp + 0x29c]
push eax
mov ecx, ebx
call fcn.00492b4d
pop ecx
mov byte [esp + 0x720], 2
lea ecx, [esp + 0x29c]
call fcn.004033b1
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0xd4]
call fcn.00402669
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
jmp 0x4e0bb0