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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a0fcd
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x700], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0x718]
mov dword fs:[0], eax
xor eax, eax
push 0x3fe
mov word [esp + 0x310], ax
xor ebx, ebx
lea eax, [esp + 0x312]
mov esi, ecx
mov edi, edx
push ebx
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call fcn.0055fda0
add esp, 0xc
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
cmp esi, ebx
je 0x4c3eb8
cmp edi, ebx
je 0x4c3eb8
lea eax, [esp + 0x28]
push eax
push 9
push ebx
mov esi, str.SYSTEMCurrentControlSetEnumDisplay
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4c3ede
lea eax, [esp + 0x3c]
push eax
call fcn.00403aba
mov edi, eax
mov dword [esp + 0x720], ebx
push str.Open_key:
push edi
call fcn.0040635f
push esi
push edi
call fcn.0040635f
push str._failed_ec
push edi
call fcn.0040635f
add esp, 0x18
push dword [esp + 0x18]
push edi
call fcn.004109e7
lea eax, [esp + 0x2b8]
push eax
mov eax, edi
call fcn.00403b24
mov byte [esp + 0x720], 1
cmp dword [esp + 0x2cc], 8
mov eax, dword [esp + 0x2b8]
jae 0x4c3e89
lea eax, [esp + 0x2b8]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [esp + 0x720], 0
lea ecx, [esp + 0x2b8]
call fcn.004037d0
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x3c]
call fcn.004027ed
xor al, al
mov ecx, dword [esp + 0x718]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x700]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], 0x200
mov dword [esp + 0x20], ebx
mov edi, str.updtDispDevEnumClass::GetEDIDData
cmp dword [esp + 0x20], 0x400
jae 0x4c43cd
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x320]
push eax
push dword [esp + 0x38]
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x4c431e
lea eax, [esp + 0x24]
push eax
push 9
push ebx
lea eax, [esp + 0x318]
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4c3fe7
lea eax, [esp + 0x3c]
push eax
call fcn.00403aba
mov esi, eax
mov dword [esp + 0x720], 4
push edi
push esi
call fcn.0040635f
push str._RegEnumKeyEx_failed_with_code
push esi
call fcn.0040635f
add esp, 0x10
push dword [esp + 0x18]
push esi
call fcn.004109e7
lea eax, [esp + 0x2b8]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x720], 5
cmp dword [esp + 0x2cc], 8
mov eax, dword [esp + 0x2b8]
jae 0x4c3fb3
lea eax, [esp + 0x2b8]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [esp + 0x720], 4
lea ecx, [esp + 0x2b8]
call fcn.004037d0
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x3c]
call fcn.004027ed
jmp 0x4c430a
mov dword [esp + 0x1c], ebx
jmp 0x4c41a8
cmp dword [esp + 0x1c], 0x400
jae 0x4c4300
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x320]
push eax
push dword [esp + 0x34]
mov dword [esp + 0x30], 0x200
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4c41b8
lea eax, [esp + 0x2c]
push eax
mov esi, 0x20019
push esi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x318]
push eax
push dword [esp + 0x34]
call ebx
test eax, eax
jne 0x4c4198
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x310]
push eax
push 0
push 0
push str.Driver
push dword [esp + 0x40]
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4c4266
push dword [esp + 0x34]
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4c4198
lea eax, [esp + 0x30]
push eax
push esi
xor esi, esi
push esi
push str.Device_Parameters
push dword [esp + 0x3c]
call ebx
cmp eax, esi
jne 0x4c4193
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x1c], 0x100
push esi
push esi
push str.EDID
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c40f1
mov byte [esp + 0x13], 1
jmp 0x4c4189
lea eax, [esp + 0x16c]
push eax
call fcn.00403aba
mov esi, eax
mov dword [esp + 0x720], 0xa
push edi
push esi
call fcn.0040635f
push str._RegQueryValueEx_on_EDID_failed_with_code
push esi
call fcn.0040635f
add esp, 0x10
push 0
push esi
call fcn.004109e7
lea eax, [esp + 0x2d4]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x720], 0xb
cmp dword [esp + 0x2e8], 8
mov eax, dword [esp + 0x2d4]
jae 0x4c4157
lea eax, [esp + 0x2d4]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [esp + 0x720], 0xa
lea ecx, [esp + 0x2d4]
call fcn.004037d0
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x16c]
call fcn.004027ed
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x12], 1
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x1c]
xor ebx, ebx
cmp byte [esp + 0x12], 0
je 0x4c3ff0
jmp 0x4c4300
lea eax, [esp + 0x204]
push eax
call fcn.00403aba
mov esi, eax
mov dword [esp + 0x720], 6
push edi
push esi
call fcn.0040635f
push str._RegEnumKeyEx_failed__subIndex
push esi
call fcn.0040635f
add esp, 0x10
push dword [esp + 0x1c]
push esi
call fcn.004109e7
push str.__code
push esi
call fcn.0040635f
pop ecx
pop ecx
push ebx
push esi
call fcn.004109e7
lea eax, [esp + 0x2f0]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x720], 7
cmp dword [esp + 0x304], 8
mov eax, dword [esp + 0x2f0]
jae 0x4c4234
lea eax, [esp + 0x2f0]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [esp + 0x720], 6
lea ecx, [esp + 0x2f0]
call fcn.004037d0
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0x204]
jmp 0x4c42f9
lea eax, [esp + 0xd4]
push eax
call fcn.00403aba
mov esi, eax
push 8
pop ebx
mov dword [esp + 0x720], ebx
push edi
push esi
call fcn.0040635f
push str._RegQueryValueEx_failed_with_code
push esi
call fcn.0040635f
add esp, 0x10
push dword [esp + 0x18]
push esi
call fcn.004109e7
lea eax, [esp + 0x29c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x720], 9
mov eax, dword [esp + 0x29c]
cmp dword [esp + 0x2b0], ebx
jae 0x4c42cc
lea eax, [esp + 0x29c]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [esp + 0x720], 8
lea ecx, [esp + 0x29c]
call fcn.004037d0
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0xd4]
call fcn.004027ed
xor ebx, ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x20]
cmp byte [esp + 0x12], 0
je 0x4c3eef
jmp 0x4c43cd
lea eax, [esp + 0xd4]
push eax
call fcn.00403aba
mov esi, eax
push 2
pop ebx
mov dword [esp + 0x720], ebx
push edi
push esi
call fcn.0040635f
push str._RegEnumKeyEx_failed_at_index
push esi
call fcn.0040635f
add esp, 0x10
push dword [esp + 0x20]
push esi
call fcn.004109e7
push str._with_code
push esi
call fcn.0040635f
pop ecx
pop ecx
push dword [esp + 0x18]
push esi
call fcn.004109e7
lea eax, [esp + 0x29c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [esp + 0x720], 3
cmp dword [esp + 0x2b0], 8
mov eax, dword [esp + 0x29c]
jae 0x4c439c
lea eax, [esp + 0x29c]
push eax
mov ecx, ebx
call fcn.0047feaf
pop ecx
mov byte [esp + 0x720], 2
lea ecx, [esp + 0x29c]
call fcn.004037d0
or dword [esp + 0x720], 0xffffffff
lea eax, [esp + 0xd4]
call fcn.004027ed
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
jmp 0x4c3eba