Function at 0x421ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4408e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov byte [esp + 0x30], 2
mov dword [esp + 0x20], edi
push edi
lea eax, [esp + 0x1c]
push str.SYSTEMCurrentControlSetControlClass4d36e978_e325_11ce_bfc1_08002be10318_.4d
push eax
mov dword [esp + 0x20], 0xff
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x421fc4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x14]
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
xor ebx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x24]
push ebx
push ebx
push str.MatchingDeviceId
push edx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov ecx, dword [esp + 0x10]
push str.rootddc_i2c
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x42201c
mov edi, dword [esp + 0x20]
inc edi
cmp edi, 0xc
mov dword [esp + 0x20], edi
jl 0x421f27
mov esi, dword [esp + 0x38]
push 0x458d4c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], 1
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x30], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push str.SYSTEMCurrentControlSetControlClass4d36e978_e325_11ce_bfc1_08002be10318_.4d
push eax
mov dword [esp + 0x20], 0xff
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42207c
mov esi, dword [esp + 0x38]
push 0x458d4c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, 1
mov dword [esp + 0x24], eax
mov byte [esp + 0x30], al
jmp 0x421fef
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x14]
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x24]
push 0
push 0
push str.DriverVersion
push edx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
mov byte [esp + 0x30], al
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x30], 0
jmp 0x421ffc