Function at 0x4bb3aa
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 [0x6c75ac]
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 0x4bb3e2
and dword [ebx], 0
test eax, eax
je 0x4bb5f8
test edx, edx
je 0x4bb5f8
test ecx, ecx
je 0x4bb5f8
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.005aa3d0
add esp, 0xc
lea eax, [esp + 0x138]
push dword [esp + 0x1c]
push 0x104
push eax
call fcn.005bdbde
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 0x4bb5f8
push 0x100
lea eax, [esp + 0x3c]
mov esi, edi
push edi
push eax
call fcn.005aa3d0
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 0x4bb5ee
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 0x4bb5dd
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 0x4bb5d7
push dword [esp + 0x28]
lea eax, [esp + 0x13c]
push eax
call fcn.005bc1fb
pop ecx
pop ecx
test eax, eax
jne 0x4bb5d7
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 0x4bb5d7
push 0x100
push eax
lea eax, [esp + 0x40]
push eax
call fcn.005aa3d0
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 0x4bb5d1
push dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
call fcn.004bb257
pop ecx
cmp eax, 1
jne 0x4bb5d1
mov ecx, 0x100
cmp dword [esp + 0xc], ecx
mov eax, ecx
cmovb eax, dword [esp + 0xc]
test ebx, ebx
je 0x4bb5bc
mov dword [ebx], eax
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x34]
call fcn.005aa530
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 0x4bb495
push dword [esp + 0x18]
call edi
mov eax, esi
jmp 0x4bb5fa
xor eax, eax
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005926d8
mov esp, ebp
pop ebp
ret