Function at 0x4210a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x74], 0x4ddf84
mov dword [ebp - 0x70], 0x4ddf74
mov dword [ebp - 0x5c], 0
jmp 0x4210ef
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 2
jae 0x4211e0
push 0x12
push 0
push 0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + ecx*4 - 0x74]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffff
jne 0x421140
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0xd5c], 0
je 0x42113e
push str.MiscCommon::CMiscCommon::OpenDriver:_SetupDiGetClassDevs_failed.
push 0x100
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0xd5c]
push edx
call fcn.00420f30
add esp, 0xc
jmp 0x4210e6
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + ecx*4 - 0x74]
push edx
push 0
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x4211af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0xd5c], 0
je 0x421196
push str.MiscCommon::CMiscCommon::OpenDriver:_SetupDiEnumDeviceInterfaces_failed.
push 0x100
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xd5c]
push eax
call fcn.00420f30
add esp, 0xc
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4210e6
cmp dword [ebp - 0x5c], 0
jne 0x4211c6
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x9c], 2
jmp 0x4211e0
cmp dword [ebp - 0x5c], 1
jne 0x4211db
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x9c], 1
jmp 0x4211e0
jmp 0x4210e6
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0x9c], 0
jne 0x4211f6
mov eax, 6
jmp 0x421618
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x7a
je 0x42126c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0xd5c], 0
je 0x42124e
push str.MiscCommon::CMiscCommon::OpenDriver:_SetupDiGetDeviceInterfaceDetail__First_time__failed.
push 0x100
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0xd5c]
push edx
call fcn.00420f30
add esp, 0xc
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 2
jmp 0x421618
mov edx, dword [ebp - 8]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4212dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0xd5c], 0
je 0x4212bf
push str.MiscCommon::CMiscCommon::OpenDriver:_HeapAlloc_failed.
push 0x100
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xd5c]
push eax
call fcn.00420f30
add esp, 0xc
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 5
jmp 0x421618
mov eax, dword [ebp - 0x58]
mov dword [eax], 6
mov dword [ebp - 0x44], 0x1c
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x421371
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0xd5c], 0
je 0x421340
push str.MiscCommon::CMiscCommon::OpenDriver:_SetupDiGetDeviceInterfaceDetail__Second_time__failed.
push 0x100
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xd5c]
push eax
call fcn.00420f30
add esp, 0xc
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [ebp - 0x58]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 2
jmp 0x421618
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 4], 0
jne 0x421558
push 0x20019
push 2
push 0
push 1
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0xffffffff
jne 0x421402
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0xd5c], 0
je 0x4213d1
push str.MiscCommon::CMiscCommon::OpenDriver:_SetupDiOpenDevRegKey_failed.
push 0x100
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xd5c]
push eax
call fcn.00420f30
add esp, 0xc
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [ebp - 0x58]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 2
jmp 0x421618
mov dword [ebp - 0x48], 0x100
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043a8e4
add esp, 4
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 4], 0
jne 0x421493
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0xd5c], 0
je 0x421462
push str.MiscCommon::CMiscCommon::OpenDriver:__szVersion_array_initialize_failed.
push 0x100
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0xd5c]
push edx
call fcn.00420f30
add esp, 0xc
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
jmp 0x421618
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.DriverVersion
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x421546
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0xd5c], 0
je 0x4214ec
push str.MiscCommon::CMiscCommon::OpenDriver:_RegQueryValueEx_failed.
push 0x100
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0xd5c]
push ecx
call fcn.00420f30
add esp, 0xc
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x58]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0043a7a3
add esp, 4
mov edx, dword [ebp - 0x4c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 2
jmp 0x421618
mov ecx, dword [ebp - 0x4c]
call fcn.004222c0
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x58]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x4c]
cmp dword [edx], 0xffffffff
jne 0x4215e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0xd5c], 0
je 0x4215bc
push str.MiscCommon::CMiscCommon::OpenDriver:_CreateFile_failed.
push 0x100
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0xd5c]
push edx
call fcn.00420f30
add esp, 0xc
mov eax, dword [ebp - 0x58]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xb
jmp 0x421618
mov edx, dword [ebp - 0x58]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0xd5c], 0
je 0x421616
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0xd5c]
xor eax, eax
mov word [edx + ecx], ax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret