Function at 0x42c16a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x5c69a8
mov edi, str.RemoveUnknownDevices
push edi
push 5
mov dword [ebp - 0x25c], ebx
call fcn.00423f75
push ebx
push str.pInfFile
push edi
push 4
call fcn.00423f57
add esp, 0x1c
test ebx, ebx
jne 0x42c1be
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42c43d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42c1e4
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Inf_file_is_not_found._n
push edi
push 2
call fcn.00423f75
add esp, 0xc
jmp 0x42c1b7
push 4
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c1fc
push 6
jmp 0x42c1b1
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x258], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x42c41f
lea eax, [ebp - 0x250]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x250], ebx
call fcn.0042714b
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x42c24c
cmp dword [ebp - 0x250], 0xd
jne 0x42c4be
cmp dword [ebp - 0x250], 0xd
je 0x42c496
push ebx
push str.HardwareID___1_s__n
push str.RemoveUnknownDevices
push 4
call fcn.00423f75
push ebx
call fcn.00459786
lea eax, [ebp - 0x250]
push eax
push 7
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0042714b
mov ebx, eax
add esp, 0x24
test ebx, ebx
jne 0x42c29a
cmp dword [ebp - 0x250], 0xd
jne 0x42c4cd
push ebx
push str.ClassName___1_s__n
push str.RemoveUnknownDevices
push 4
call fcn.00423f75
add esp, 0x10
test ebx, ebx
je 0x42c322
push ebx
call fcn.00588144
pop ecx
test eax, eax
je 0x42c31b
push str.Unknown
push ebx
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
je 0x42c31b
push ebx
call fcn.00459786
lea eax, [ebp - 0x250]
push eax
push 9
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0042714b
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x42c304
cmp dword [ebp - 0x250], 0xd
je 0x42c322
push str.Get_SPDRP_DRIVER_failed._n
jmp 0x42c4c3
push ebx
call fcn.00588144
pop ecx
test eax, eax
je 0x42c31b
push ebx
call fcn.00459786
pop ecx
jmp 0x42c496
push ebx
call fcn.00459786
pop ecx
push str.Unknown_device_has_been_found._n
mov ebx, str.RemoveUnknownDevices
push ebx
push 4
call fcn.00423f75
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x24c], 0x22c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x42c496
push dword [ebp - 0x25c]
or dword [ebp - 0x248], 0x10000
lea eax, [ebp - 0x228]
push 0x104
push eax
call fcn.0058b0b1
or dword [ebp - 0x244], 0x800
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x42c496
push 2
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x42c496
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiSelectBestCompatDrv]
test eax, eax
je 0x42c496
push str.__Hit___n
push ebx
push 4
call fcn.00423f75
lea eax, [ebp - 0x250]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x254], 0x40
call fcn.0042714b
mov ecx, eax
add esp, 0x1c
test ecx, ecx
jne 0x42c44b
cmp dword [ebp - 0x250], 0xd
je 0x42c480
push eax
call fcn.00459786
mov dword [esp], str.Get_SPDRP_CONFIGFLAGS_failed._n
push ebx
push 2
call fcn.00423f75
add esp, 0xc
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0x5c69c4
push str.RemoveUnknownDevices
push 5
call fcn.00423f75
xor eax, eax
add esp, 0xc
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret
mov eax, dword [ecx]
push ecx
mov dword [ebp - 0x254], eax
call fcn.00459786
cmp dword [ebp + 0xc], 0
pop ecx
je 0x42c476
mov eax, dword [ebp - 0x254]
and eax, 0xffffffbf
or eax, 0x400
mov dword [ebp - 0x254], eax
jmp 0x42c480
and dword [ebp - 0x254], 0xfffffbff
push 4
lea eax, [ebp - 0x254]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyW]
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x20]
inc eax
push ecx
push eax
push edi
mov dword [ebp - 0x258], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x42c41f
xor ebx, ebx
jmp 0x42c21d
push str.Get_SPDRP_HARDWAREID_failed._n
push str.RemoveUnknownDevices
jmp 0x42c415
push str.Get_SPDRP_CLASS_failed._n
jmp 0x42c4c3