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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x100d7294]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 0x18], 0
je 0x1003eac4
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp dword [ebp + 8], 0
je 0x1003eadc
cmp dword [ebp + 0xc], 0
je 0x1003eadc
cmp dword [ebp + 0x10], 0
je 0x1003eadc
cmp dword [ebp + 0x14], 0
jne 0x1003eae3
xor eax, eax
jmp 0x1003ed7f
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.100672b0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x30c]
push eax
call fcn.1003e240
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 0x1003eb4b
xor eax, eax
jmp 0x1003ed7f
mov dword [ebp - 0x324], 0
push 0x100
push 0
lea eax, [ebp - 0x104]
push eax
call fcn.100672b0
add esp, 0xc
mov dword [ebp - 0x310], 0x100
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x314], 0x104
cmp dword [ebp - 0x324], 0
jne 0x1003ed6c
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 0x1003ed6c
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 0x1003ed58
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 0x1003ed4b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30c]
push ecx
call fcn.10069777
add esp, 8
test eax, eax
jne 0x1003ed4b
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 0x1003ed4b
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.100672b0
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 0x1003ed3e
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x310]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.1003eeb0
add esp, 0xc
cmp eax, 1
jne 0x1003ed3e
mov edx, dword [ebp - 0x310]
cmp edx, dword [ebp + 0x14]
jae 0x1003ecf4
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x328], eax
jmp 0x1003ecfd
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 0x1003ed1a
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.100667b0
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 0x1003eb89
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.1005fbb2
mov esp, ebp
pop ebp
ret