Function at 0x401810
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x350
lea eax, [esp + 0x4c]
push ebx
push esi
push edi
push ebp
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x401854
mov edi, str.c:windows_system
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
push eax
push str.SystemCurrentControlSetServicesClassDisplay
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401ac5
xor esi, esi
lea edi, [esp + 0x28]
xor eax, eax
mov ecx, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov edi, dword [esp + 0x364]
mov dword [esp + 0x30], 1
push eax
push 0xb
push edi
call fcn.00402de0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
push edi
call fcn.00401420
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], str.Display_Adapters
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
add esp, 8
push eax
push esi
push 0x1100
push 0x3e8
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebx, eax
mov dword [esp + 0x28], eax
mov ebp, eax
push 0xff
lea eax, [esp + 0x164]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401aba
lea eax, [esp + 0x14]
lea ecx, [esp + 0x160]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401a98
lea eax, [esp + 0x24]
lea ecx, [esp + 0x260]
lea edx, [esp + 0x58]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0x2c], 0xff
push edx
push 0
push str.DriverDesc
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a98
lea eax, [esp + 0x260]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
push ecx
mov dword [esp + 0x30], ebp
push 0
mov dword [esp + 0x48], eax
push 0x1100
push 0x3e8
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov dword [esp + 0x28], eax
mov ebp, eax
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
push ecx
push str.DEFAULT
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401a15
lea eax, [esp + 0x10]
push 3
lea ecx, [esp + 0x60]
push eax
mov edx, dword [esp + 0x24]
push ecx
lea eax, [esp + 0x34]
push str.Driver
push 0x407154
push edx
push 0x3e8
push edi
push eax
call fcn.004014b0
lea ecx, [esp + 0x34]
lea edx, [esp + 0x80]
mov eax, dword [esp + 0x40]
add esp, 0x24
push 3
push ecx
lea ecx, [esp + 0x30]
push edx
push str.MiniVDD
push str.minivdd
push eax
push 0x3e8
push edi
push ecx
call fcn.004014b0
mov ecx, dword [esp + 0x40]
add esp, 0x24
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push 2
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 0x30]
push 0
push 0
push str.InfPath
push ecx
push 0x3e8
push edi
push edx
call fcn.004014b0
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x4c]
add esp, 0x24
push 2
push ecx
push 0
push 0
push str.InfSection
push edx
push 0x3e8
push edi
push eax
call fcn.004014b0
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x4c]
add esp, 0x24
push 2
push ecx
push 0
push 0
push str.DriverDate
push edx
push 0x3e8
push edi
push eax
call fcn.004014b0
mov ecx, dword [esp + 0x38]
add esp, 0x24
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
push 0xff
lea eax, [esp + 0x164]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401905
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x350
ret