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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x100c7394]
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 0x1002dc5e
mov dword [ebx], 0
test eax, eax
je 0x1002dec1
test ecx, ecx
je 0x1002dec1
test edx, edx
je 0x1002dec1
cmp dword [ebp + 0x14], 0
je 0x1002dec1
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.10056af0
push dword [ebp - 0x320]
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.10066530
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 0x1002dec1
push 0x100
xor esi, esi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10056af0
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 0x1002dea2
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 0x1002de99
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 0x1002de8d
push dword [ebp - 0x328]
lea eax, [ebp - 0x30c]
push eax
call fcn.10059e37
add esp, 8
test eax, eax
jne 0x1002de8d
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 0x1002de8d
push 0x100
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10056af0
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 0x1002de81
push dword [ebp - 0x320]
lea eax, [ebp - 0x104]
push dword [ebp - 0x310]
push eax
call fcn.1002dfe0
add esp, 0xc
cmp eax, 1
jne 0x1002de81
mov edx, dword [ebp + 0x14]
mov ecx, edx
cmp dword [ebp - 0x310], edx
cmovb ecx, dword [ebp - 0x310]
test ebx, ebx
je 0x1002de66
mov dword [ebx], ecx
push ecx
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x32c]
call fcn.10055ff0
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 0x1002dd16
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.1004d14a
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.1004d14a
mov esp, ebp
pop ebp
ret