Function at 0x402454
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x4dc
push esi
push edi
push str.FindNewProblemDevices__...
push 3
mov dword [ebp + 0x60], ecx
call fcn.0044d31e
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 6
pop ecx
xor esi, esi
push 4
push esi
mov dword [ebp + 0x50], eax
push esi
xor eax, eax
mov dword [ebp + 0x34], 0x1c
lea edi, [ebp + 0x38]
push esi
mov dword [ebp + 0x74], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp + 0x64], eax
cmp eax, 0xffffffff
jne 0x4024ab
xor eax, eax
jmp 0x402743
lea eax, [ebp + 0x34]
push eax
push esi
push dword [ebp + 0x64]
mov dword [ebp + 0x6c], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40271b
push ebx
xor eax, eax
push 0x206
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push esi
push eax
call fcn.004476fd
add esp, 0xc
push esi
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 0x48]
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_IDW]
test eax, eax
jne 0x4026ff
push 5
pop edi
cmp dword [0x5168ac], edi
jl 0x402527
push dword [ebp + 0x48]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 0x6c]
push str.idx_i_id_s_devinst_u
push edi
call fcn.0044d31e
add esp, 0x14
push esi
push dword [ebp + 0x48]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x54]
push eax
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x70], esi
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
test eax, eax
jne 0x4026ff
cmp dword [ebp + 0x70], esi
je 0x4026ff
cmp dword [ebp + 0x70], 0x2d
je 0x4026ff
push dword [ebp + 0x48]
mov ecx, dword [ebp + 0x60]
call fcn.00401afc
cmp dword [0x5168ac], edi
mov ebx, eax
jl 0x40257e
push ebx
push str._pDev0x_08Ix
push edi
call fcn.0044d31e
add esp, 0xc
cmp ebx, esi
je 0x4025b0
cmp dword [0x5168ac], edi
jl 0x4025a1
push dword [ebx + 0x39f4]
push dword [ebx + 8]
push str._pDev__IsPresent_i_pDev__ProblemCode_u
push edi
call fcn.0044d31e
add esp, 0x10
mov eax, dword [ebx + 0x39f4]
cmp eax, dword [ebp + 0x70]
je 0x4026ff
push esi
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 0x48]
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_IDW]
test eax, eax
jne 0x4026ff
mov eax, dword [ebp + 0x48]
mov edi, dword [sym.imp.CFGMGR32.dll_CM_Get_Parent]
push esi
mov dword [ebp + 0x68], eax
push eax
jmp 0x4025f1
push dword [ebp + 0x68]
mov ecx, dword [ebp + 0x60]
call fcn.00401afc
cmp eax, esi
jne 0x402600
push esi
push dword [ebp + 0x68]
lea eax, [ebp + 0x68]
push eax
call edi
test eax, eax
je 0x4025de
jmp 0x4026ff
xor eax, eax
push 0x206
mov word [ebp - 0x464], ax
lea eax, [ebp - 0x462]
push esi
push eax
call fcn.004476fd
xor eax, eax
push 0x4c
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push esi
push eax
mov dword [ebp + 0x58], esi
call fcn.004476fd
add esp, 0x18
push esi
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0x58]
push eax
push 9
push dword [ebp + 0x48]
mov dword [ebp + 0x5c], 0x4e
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Registry_PropertyW]
test eax, eax
jne 0x4026ce
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0042f172
cmp dword [0x5168ac], 5
jl 0x402685
lea eax, [ebp + 0x24]
push eax
call fcn.0044a8ce
push eax
push str._devclsguid_S
push 5
call fcn.0044d31e
add esp, 0xc
cmp ebx, esi
je 0x4026ce
push 9
pop ecx
xor eax, eax
mov dword [ebp - 4], esi
lea edi, [ebp]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0x1e92]
push eax
call fcn.0044bdfd
xor edi, edi
cmp eax, esi
mov dword [ebp + 0x74], eax
jle 0x4026ce
lea eax, [ebx + 0xc30]
push eax
push 2
push dword [ebp + edi*4 - 4]
push dword [ebx + 0x10]
call fcn.0044bd31
test eax, eax
jne 0x4026ce
inc edi
cmp edi, dword [ebp + 0x74]
jl 0x4026af
push dword [ebp + 0x70]
lea eax, [ebp - 0x25c]
push eax
push str._calling_DeviceArrived_for__s_with_problem_u
push 3
call fcn.0044d31e
add esp, 0x10
push esi
push esi
push dword [ebp + 0x48]
lea eax, [ebp - 0x464]
push eax
call fcn.0043e7bb
mov dword [ebp + 0x74], 1
inc dword [ebp + 0x6c]
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x6c]
push dword [ebp + 0x64]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4024c5
pop ebx
push dword [ebp + 0x64]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x50]
push eax
push dword [ebp + 0x74]
push str.FindNewProblemDevices___foundchange_i_T_u
push 3
call fcn.0044d31e
mov eax, dword [ebp + 0x74]
add esp, 0x10
pop edi
pop esi
add ebp, 0x78
leave
ret