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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x100c6394]
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 - 0x328], ecx
mov dword [ebp - 0x32c], edx
push esi
push edi
test ebx, ebx
je 0x1002db1e
mov dword [ebx], 0
test eax, eax
je 0x1002dd81
test ecx, ecx
je 0x1002dd81
test edx, edx
je 0x1002dd81
cmp dword [ebp + 0x14], 0
je 0x1002dd81
mov ecx, 0x13
lea edi, [ebp - 0x30c]
mov esi, str.SYSTEMCurrentControlSetEnumDISPLAY_
lea eax, [ebp - 0x2be]
rep movsd dword es:[edi], dword [esi]
push 0x1ba
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.100569b0
push dword [ebp - 0x320]
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.100663f0
add esp, 0x18
lea eax, [ebp - 0x31c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x30c]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002dd81
push 0x100
xor esi, esi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.100569b0
add esp, 0xc
mov dword [ebp - 0x310], 0x100
xor edi, edi
mov dword [ebp - 0x314], 0x104
lea eax, [ebp - 0x334]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x30c]
push eax
push edi
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1002dd62
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 0x1002dd59
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 0x1002dd4d
push dword [ebp - 0x328]
lea eax, [ebp - 0x30c]
push eax
call fcn.10059cf7
add esp, 8
test eax, eax
jne 0x1002dd4d
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 0x1002dd4d
push 0x100
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.100569b0
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 0x1002dd41
push dword [ebp - 0x320]
lea eax, [ebp - 0x104]
push dword [ebp - 0x310]
push eax
call fcn.1002dea0
add esp, 0xc
cmp eax, 1
jne 0x1002dd41
mov edx, dword [ebp + 0x14]
mov ecx, edx
cmp dword [ebp - 0x310], edx
cmovb ecx, dword [ebp - 0x310]
test ebx, ebx
je 0x1002dd26
mov dword [ebx], ecx
push ecx
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x32c]
call fcn.10055eb0
add esp, 0xc
mov esi, 1
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
test esi, esi
je 0x1002dbd6
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d00a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d00a
mov esp, ebp
pop ebp
ret