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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x33c
mov eax, dword [0x6c45ac]
xor eax, esp
mov dword [esp + 0x338], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
push esi
push edi
test ebx, ebx
je 0x4b9cab
and dword [ebx], 0
test eax, eax
je 0x4b9ec1
test edx, edx
je 0x4b9ec1
test ecx, ecx
je 0x4b9ec1
push 0x13
pop ecx
mov esi, str.SYSTEMCurrentControlSetEnumDISPLAY_
lea edi, [esp + 0x138]
rep movsd dword es:[edi], dword [esi]
push 0x1ba
lea eax, [esp + 0x18a]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call fcn.005a88e0
add esp, 0xc
lea eax, [esp + 0x138]
push dword [esp + 0x1c]
push 0x104
push eax
call fcn.005bc0ee
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x20019
push edi
lea eax, [esp + 0x144]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b9ec1
push 0x100
lea eax, [esp + 0x3c]
mov esi, edi
push edi
push eax
call fcn.005a88e0
mov eax, edi
mov dword [esp + 0x18], 0x100
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0x104
lea ecx, [esp + 0x30]
push ecx
xor ecx, ecx
push ecx
push ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14c]
push ecx
push eax
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4b9eb7
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b9ea6
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x104
push eax
lea eax, [esp + 0x13c]
push eax
push 0
push 0
push str.Driver
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b9ea0
push dword [esp + 0x28]
lea eax, [esp + 0x13c]
push eax
call fcn.005ba70b
pop ecx
pop ecx
test eax, eax
jne 0x4b9ea0
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push str.Device_Parameters
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b9ea0
push 0x100
push eax
lea eax, [esp + 0x40]
push eax
call fcn.005a88e0
add esp, 0xc
mov dword [esp + 0xc], 0x100
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push str.EDID
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b9e9a
push dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
call fcn.004b9b20
pop ecx
cmp eax, 1
jne 0x4b9e9a
mov ecx, 0x100
cmp dword [esp + 0xc], ecx
mov eax, ecx
cmovb eax, dword [esp + 0xc]
test ebx, ebx
je 0x4b9e85
mov dword [ebx], eax
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x34]
call fcn.005a8a40
xor esi, esi
add esp, 0xc
inc esi
push dword [esp + 0x20]
call edi
push dword [esp + 0x14]
call edi
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
test esi, esi
je 0x4b9d5e
push dword [esp + 0x18]
call edi
mov eax, esi
jmp 0x4b9ec3
xor eax, eax
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00590be8
mov esp, ebp
pop ebp
ret