Function at 0x405860
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x425402
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x24]
call fcn.0041969c
lea ebp, [esi + 0xc]
lea eax, [esp + 0x14]
push ebp
xor ebx, ebx
mov edi, 0x100
push str.Enum_
push eax
mov dword [esp + 0x140], ebx
mov dword [esp + 0x1c], edi
call fcn.00419ab2
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x138], 1
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004197e7
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405add
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x20], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.Class
push ecx
call edi
test eax, eax
jne 0x405953
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
call fcn.00419855
push eax
lea ecx, [esi + 8]
mov byte [esp + 0x138], 2
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004197e7
jmp 0x40595b
lea ecx, [esi + 8]
call fcn.00419772
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
push str.DeviceDesc
push ecx
mov dword [esp + 0x28], 0x100
call edi
test eax, eax
jne 0x4059b8
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
call fcn.00419855
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x138], 3
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004197e7
jmp 0x4059c0
lea ecx, [esi + 4]
call fcn.00419772
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
push 0x42e638
push ecx
mov dword [esp + 0x28], 0x100
call edi
test eax, eax
jne 0x405a1d
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
call fcn.00419855
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0x138], 4
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004197e7
jmp 0x405a25
lea ecx, [esi + 0x10]
call fcn.00419772
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
push str.Driver
push ecx
mov dword [esp + 0x28], 0x100
call edi
test eax, eax
jne 0x405a82
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
call fcn.00419855
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0x138], 5
call fcn.004198e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004197e7
jmp 0x405a8a
lea ecx, [esi + 0x14]
call fcn.00419772
lea eax, [esp + 0x10]
lea ecx, [esi + 0x20]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
push str.ForcedConfig
push ecx
mov dword [esp + 0x28], 0x100
call edi
mov edx, dword [esp + 0x18]
neg eax
sbb eax, eax
push edx
inc eax
mov dword [esi + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x18
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.004196ac
call fcn.00409010
add esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x134], 0xffffffff
call fcn.004197e7
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x128
ret 4