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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x5cd9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x330], edx
push esi
push edi
test ebx, ebx
je 0x41e391
and dword [ebx], 0
test eax, eax
je 0x41e5eb
test ecx, ecx
je 0x41e5eb
test edx, edx
je 0x41e5eb
cmp dword [ebp + 0x14], 0
je 0x41e5eb
push 0x13
pop ecx
mov esi, str.SYSTEMCurrentControlSetEnumDISPLAY_
lea edi, [ebp - 0x30c]
rep movsd dword es:[edi], dword [esi]
push 0x1ba
lea eax, [ebp - 0x2be]
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call fcn.00520800
push dword [ebp - 0x320]
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.00530299
add esp, 0x18
lea eax, [ebp - 0x31c]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x30c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e5eb
push 0x100
lea eax, [ebp - 0x104]
mov esi, edi
push edi
push eax
call fcn.00520800
mov eax, edi
mov dword [ebp - 0x310], 0x100
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x314], 0x104
lea ecx, [ebp - 0x338]
push ecx
xor ecx, ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x314]
push ecx
lea ecx, [ebp - 0x30c]
push ecx
push eax
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41e5df
lea eax, [ebp - 0x318]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x30c]
push eax
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e5ca
lea eax, [ebp - 0x314]
mov dword [ebp - 0x314], 0x104
push eax
lea eax, [ebp - 0x30c]
push eax
push 0
push 0
push str.Driver
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e5c2
push dword [ebp - 0x32c]
lea eax, [ebp - 0x30c]
push eax
call fcn.00524c5b
pop ecx
pop ecx
test eax, eax
jne 0x41e5c2
lea eax, [ebp - 0x324]
push eax
push 0x20019
push 0
push str.Device_Parameters
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e5c2
push 0x100
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00520800
add esp, 0xc
mov dword [ebp - 0x310], 0x100
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.EDID
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e5ba
push dword [ebp - 0x320]
lea eax, [ebp - 0x104]
push dword [ebp - 0x310]
push eax
call fcn.0041e6ee
add esp, 0xc
cmp eax, 1
jne 0x41e5ba
mov ecx, dword [ebp + 0x14]
mov eax, ecx
cmp dword [ebp - 0x310], ecx
cmovb eax, dword [ebp - 0x310]
test ebx, ebx
je 0x41e5a1
mov dword [ebx], eax
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x330]
call fcn.0051fd00
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 0x324]
call edi
push dword [ebp - 0x318]
call edi
mov eax, dword [ebp - 0x328]
inc eax
mov dword [ebp - 0x328], eax
test esi, esi
je 0x41e453
push dword [ebp - 0x31c]
call edi
mov eax, esi
jmp 0x41e5ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d360
leave
ret