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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x100c82c4]
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 0x1002adfe
mov dword [ebx], 0
test eax, eax
je 0x1002b061
test ecx, ecx
je 0x1002b061
test edx, edx
je 0x1002b061
cmp dword [ebp + 0x14], 0
je 0x1002b061
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.10056110
push dword [ebp - 0x320]
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.1006427a
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 0x1002b061
push 0x100
xor esi, esi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10056110
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 0x1002b042
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 0x1002b039
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 0x1002b02d
push dword [ebp - 0x328]
lea eax, [ebp - 0x30c]
push eax
call fcn.100593f7
add esp, 8
test eax, eax
jne 0x1002b02d
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 0x1002b02d
push 0x100
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.10056110
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 0x1002b021
push dword [ebp - 0x320]
lea eax, [ebp - 0x104]
push dword [ebp - 0x310]
push eax
call fcn.1002b180
add esp, 0xc
cmp eax, 1
jne 0x1002b021
mov edx, dword [ebp + 0x14]
mov ecx, edx
cmp dword [ebp - 0x310], edx
cmovb ecx, dword [ebp - 0x310]
test ebx, ebx
je 0x1002b006
mov dword [ebx], ecx
push ecx
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x32c]
call fcn.10055610
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 0x1002aeb6
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.10045897
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.10045897
mov esp, ebp
pop ebp
ret