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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa6c
push ebx
mov eax, ecx
mov dword [ebp - 8], 0x3e8
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push ecx
push 9
xor ebx, ebx
push ebx
push eax
push 0x80000002
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4046c0
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4046c0
mov eax, dword [ebp - 0x18]
sub eax, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], eax
js 0x4046ba
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ecx, ecx
push 0x100
mov word [ebp - 0xa6c], cx
lea ecx, [ebp - 0xa6c]
push ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x7a4]
xor eax, eax
mov word [ebp - 0x7a4], ax
call fcn.004054e4
push 0x4078c4
lea eax, [ebp - 0x7a4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0xa6c]
push eax
lea eax, [ebp - 0x7a4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 4]
push eax
push 9
push 0
lea eax, [ebp - 0x7a4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40452e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x3e8
push eax
xor ecx, ecx
lea eax, [ebp - 0x5a4]
push eax
push ecx
push ecx
push str.Driver
push dword [ebp - 4]
mov byte [ebp - 0x5a4], cl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40452e
push dword [ebp - 4]
call edi
lea ecx, [ebp - 0x5a4]
call fcn.00404345
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5a4]
push eax
lea eax, [ebp - 0x86c]
push eax
call esi
push str.Device_Parameters
lea eax, [ebp - 0x7a4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 4]
push eax
push 9
push 0
lea eax, [ebp - 0x7a4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40466e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x3e8
push eax
xor ecx, ecx
lea eax, [ebp - 0x5a4]
push eax
push ecx
push ecx
push str.EDID
push dword [ebp - 4]
mov byte [ebp - 0x5a4], cl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404660
cmp dword [ebp - 0x5a4], 0xffffff00
jne 0x404660
cmp dword [ebp - 0x5a0], 0xffffff
jne 0x404660
push dword [ebp - 4]
inc dword [0x42a0d0]
call edi
cmp dword [ebp - 0x56e], 0xfc000000
lea eax, [ebp - 0x569]
push 0
pop edx
cmovne eax, edx
lea ecx, [ebp - 0x557]
cmp dword [ebp - 0x55c], 0xfc000000
cmovne ecx, eax
cmp dword [ebp - 0x54a], 0xfc000000
lea eax, [ebp - 0x545]
cmovne eax, ecx
cmp dword [ebp - 0x538], 0xfc000000
lea ecx, [ebp - 0x533]
cmovne ecx, eax
test ecx, ecx
je 0x40464a
cmp byte [ecx], 0xa
mov eax, edx
je 0x404620
inc eax
cmp byte [eax + ecx], 0xa
jne 0x404619
mov byte [eax + ecx], dl
lea eax, [ebp - 0xf4]
push ecx
push eax
call esi
cmp dword [ebp - 0x10], 0
lea eax, [ebp - 0xf4]
je 0x404640
push str._IsActive_
jmp 0x404645
push str._NotActive_
push eax
call ebx
jmp 0x40466e
push str.BAD_EDID_
lea eax, [ebp - 0xf4]
push eax
call esi
inc dword [0x42a0d0]
jmp 0x40466e
push str.No_EDID_
lea eax, [ebp - 0xf4]
push eax
call esi
xor eax, eax
mov byte [ebp - 0x1bc], al
lea eax, [ebp - 0x1bc]
push str.__Nm:
push eax
call ebx
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x1bc]
push eax
call ebx
push 0xc8
lea edx, [ebp - 0x1bc]
mov ecx, 0x42a008
call fcn.004055d2
mov eax, dword [ebp - 0x14]
sub eax, 1
pop ecx
mov dword [ebp - 0x14], eax
jns 0x404463
pop esi
push dword [ebp - 0xc]
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret