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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x100ed294]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 0x18], 0
je 0x10042194
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [ebp + 8], 0
je 0x100421ac
cmp dword [ebp + 0xc], 0
je 0x100421ac
cmp dword [ebp + 0x10], 0
je 0x100421ac
cmp dword [ebp + 0x14], 0
jne 0x100421b3
xor eax, eax
jmp 0x1004244f
mov ecx, 0x13
mov esi, str.SYSTEMCurrentControlSetEnumDISPLAY_
lea edi, [ebp - 0x30c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1ba
push 0
lea ecx, [ebp - 0x2be]
push ecx
call fcn.1006cfe0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x30c]
push eax
call fcn.10041910
add esp, 8
lea ecx, [ebp - 0x320]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x30c]
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1004221b
xor eax, eax
jmp 0x1004244f
mov dword [ebp - 0x324], 0
push 0x100
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.1006cfe0
add esp, 0xc
mov dword [ebp - 0x310], 0x100
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x314], 0x104
cmp dword [ebp - 0x324], 0
jne 0x1004243c
lea ecx, [ebp - 0x338]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x31c]
push ecx
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1004243c
lea eax, [ebp - 0x318]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x30c]
push ecx
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10042428
mov dword [ebp - 0x314], 0x104
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x30c]
push ecx
push 0
push 0
push str.Driver
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004241b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30c]
push ecx
call fcn.1006f4a7
add esp, 8
test eax, eax
jne 0x1004241b
lea edx, [ebp - 0x330]
push edx
push 0x20019
push 0
push str.Device_Parameters
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004241b
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.1006cfe0
add esp, 0xc
mov dword [ebp - 0x310], 0x100
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.EDID
mov ecx, dword [ebp - 0x330]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004240e
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x310]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.10042580
add esp, 0xc
cmp eax, 1
jne 0x1004240e
mov edx, dword [ebp - 0x310]
cmp edx, dword [ebp + 0x14]
jae 0x100423c4
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x328], eax
jmp 0x100423cd
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x328]
mov dword [ebp - 0x32c], edx
cmp dword [ebp + 0x18], 0
je 0x100423ea
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x32c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x32c]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.1006c4e0
add esp, 0xc
mov dword [ebp - 0x324], 1
mov edx, dword [ebp - 0x330]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x31c]
add ecx, 1
mov dword [ebp - 0x31c], ecx
jmp 0x10042259
mov edx, dword [ebp - 0x320]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x324]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100633f2
mov esp, ebp
pop ebp
ret