Function at 0x4c2ca9
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 [0x6d35ac]
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 0x4c2ce1
and dword [ebx], 0
test eax, eax
je 0x4c2ef7
test edx, edx
je 0x4c2ef7
test ecx, ecx
je 0x4c2ef7
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.005b24a0
add esp, 0xc
lea eax, [esp + 0x138]
push dword [esp + 0x1c]
push 0x104
push eax
call fcn.005c5cae
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 0x4c2ef7
push 0x100
lea eax, [esp + 0x3c]
mov esi, edi
push edi
push eax
call fcn.005b24a0
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 0x4c2eed
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 0x4c2edc
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 0x4c2ed6
push dword [esp + 0x28]
lea eax, [esp + 0x13c]
push eax
call fcn.005c42cb
pop ecx
pop ecx
test eax, eax
jne 0x4c2ed6
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 0x4c2ed6
push 0x100
push eax
lea eax, [esp + 0x40]
push eax
call fcn.005b24a0
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 0x4c2ed0
push dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
call fcn.004c2b56
pop ecx
cmp eax, 1
jne 0x4c2ed0
mov ecx, 0x100
cmp dword [esp + 0xc], ecx
mov eax, ecx
cmovb eax, dword [esp + 0xc]
test ebx, ebx
je 0x4c2ebb
mov dword [ebx], eax
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x34]
call fcn.005b2600
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 0x4c2d94
push dword [esp + 0x18]
call edi
mov eax, esi
jmp 0x4c2ef9
xor eax, eax
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059a7a2
mov esp, ebp
pop ebp
ret