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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x506370], 0
push ebx
push esi
push edi
jne 0x43f84e
cmp dword [0x505bd8], 0
jne 0x43f84e
mov esi, dword [ebp + 0x10]
xor eax, eax
cmp dword [0x505610], 5
mov edi, 0x1f4
setne al
dec eax
and eax, edi
add eax, 0x3e8
mov dword [ebp - 4], eax
test esi, esi
je 0x43f276
push dword [esi + 4]
call fcn.0044bc4f
jmp 0x43f27b
mov eax, 0x450518
push eax
push dword [ebp + 0xc]
call fcn.0044bcba
push eax
mov ebx, str.WM_DEVICECHANGE__DBT__S_db_hdr__dbch_devicetype_S
push ebx
push 2
call fcn.00449e4d
add esp, 0x10
push esi
push dword [ebp + 0xc]
call fcn.00430c5c
test eax, eax
je 0x43f2b5
push str._ignore
push 2
call fcn.00449e4d
pop ecx
pop ecx
jmp 0x43f84e
cmp dword [0x49daf8], 0
je 0x43f84e
mov eax, dword [ebp + 0xc]
cmp eax, 7
je 0x43f819
mov ecx, 0x8000
cmp eax, ecx
je 0x43f67c
jbe 0x43f84e
cmp eax, 0x8003
jbe 0x43f629
cmp eax, 0x8004
je 0x43f4b9
cmp eax, 0x8006
jne 0x43f84e
test esi, esi
jne 0x43f331
push str.Dlg_OnDeviceChange
push 0x1945
push str..UsbTreeView.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.00449e4d
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43f84e
cmp dword [esi + 4], 6
jne 0x43f84e
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
lea edi, [esi + 0x14]
push edi
push 0x44e740
mov dword [ebp + 0xc], eax
call fcn.00401000
test eax, eax
jne 0x43f84e
push edi
call fcn.00446125
push eax
push ebx
push dword [ebp + 0xc]
push str._DBT_DEVTYP_HANDLE_hDev0x_08Ix_hNotify0x_08Ix_guid_S
push 3
call fcn.00449e4d
mov ecx, dword [0x508068]
add esp, 0x14
push ebx
call fcn.00401f11
mov esi, eax
test esi, esi
je 0x43f84e
lea eax, [esi + 0x1738]
push eax
lea eax, [esi + 0xe38]
push eax
push str._dev_s___s_
push 3
pop ebx
push ebx
call fcn.00449e4d
add esp, 0x10
push edi
push 0x44e710
call fcn.00401000
test eax, eax
jne 0x43f3e1
push edi
push 0x44e720
call fcn.00401000
test eax, eax
jne 0x43f3e1
push edi
push 0x44e700
call fcn.00401000
test eax, eax
jne 0x43f3e1
push str._ignore
push ebx
jmp 0x43f2a9
push edi
push 0x44e6b0
call fcn.00401000
test eax, eax
je 0x43f42d
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x3a8c]
cmp eax, 0x3e8
jae 0x43f425
cmp dword [0x512584], ebx
jl 0x43f84e
call edi
sub eax, dword [esi + 0x3a8c]
push eax
push str._ignore_bc_processed__u_ms_before
push ebx
jmp 0x43f61c
call edi
mov dword [esi + 0x3a8c], eax
push dword [esi + 0x10]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push dword [ebp + 8]
call edi
mov ebx, dword [sym.imp.USER32.dll_SetTimer]
push 0x4356c0
push 0x64
push dword [esi + 0x10]
push dword [ebp + 8]
call ebx
mov esi, dword [esi + 0x3a78]
test esi, esi
je 0x43f84e
mov esi, dword [esi + 0x14]
test esi, esi
je 0x43f84e
mov ecx, dword [0x508068]
push esi
call fcn.00401ae0
mov esi, eax
test esi, esi
je 0x43f84e
mov ecx, dword [0x508064]
push 0
push dword [esi + 0x10]
call fcn.0040788c
test eax, eax
je 0x43f49d
mov dword [eax + 0x1000], 1
push dword [esi + 0x10]
push dword [ebp + 8]
call edi
push 0x4356c0
push 0x64
push dword [esi + 0x10]
push dword [ebp + 8]
call ebx
jmp 0x43f84e
mov ebx, 0x12340003
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x43f4dc
push 0x430acb
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
test esi, esi
jne 0x43f4e7
xor eax, eax
jmp 0x43f851
mov eax, dword [esi + 4]
cmp eax, 5
jne 0x43f5bf
lea ebx, [esi + 0xc]
push ebx
call fcn.004462a0
test eax, eax
jne 0x43f50c
push 1
push ebx
call fcn.00446489
test eax, eax
je 0x43f51c
push eax
push str._______________________S_______________________
push 0
call fcn.00449e4d
add esp, 0xc
push 4
pop edi
cmp dword [0x512584], edi
jl 0x43f558
push 1
push ebx
call fcn.00446489
push eax
push str._clsguid_S
push edi
call fcn.00449e4d
add esp, 0xc
cmp dword [0x512584], edi
jl 0x43f558
lea eax, [esi + 0x1c]
push eax
push str._devpath_s
push edi
call fcn.00449e4d
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
add esi, 0x1c
push esi
call fcn.0043c6aa
test eax, eax
jne 0x43f84e
cmp dword [0x512584], edi
jl 0x43f586
push dword [ebp - 4]
push str.starting_TIMERID_REFRESHTREE_after_DeviceRemoved_returned_false__t_u
push edi
call fcn.00449e4d
add esp, 0xc
push 0x15227010
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x43aa53
push dword [ebp - 4]
push 0x12340001
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
push str.OnDevCh
push ebx
push 0x7f8a
call fcn.004318be
jmp 0x43f84e
cmp eax, 6
jne 0x43f5f4
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
push str.HANDLE
push str._______________________S_______________________
push 0
call fcn.00449e4d
push esi
push edi
push str.hDev0x_08Ix_hNotify0x_08Ix
push 1
call fcn.00449e4d
add esp, 0x1c
push esi
push 0x8004
jmp 0x43f672
cmp eax, 2
jne 0x43f609
push esi
push 0x8004
call fcn.00435713
jmp 0x43f84e
cmp eax, 3
jne 0x43f84e
add esi, 0xc
push esi
push str._name_s
push eax
call fcn.00449e4d
add esp, 0xc
jmp 0x43f84e
test esi, esi
je 0x43f4e0
push dword [esi + 4]
call fcn.0044bc4f
push eax
push dword [ebp + 0xc]
call fcn.0044bcba
push eax
push ebx
push 1
call fcn.00449e4d
add esp, 0x10
cmp dword [esi + 4], 6
jne 0x43f84e
mov edi, dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push str.hDev0x_08Ix_hNotify0x_08Ix
push 1
call fcn.00449e4d
add esp, 0x10
push edi
push dword [ebp + 0xc]
call fcn.0043f143
jmp 0x43f84e
test esi, esi
je 0x43f4e0
mov eax, dword [esi + 4]
cmp eax, 5
jne 0x43f7b8
lea ebx, [esi + 0xc]
push ebx
call fcn.004462a0
test eax, eax
jne 0x43f6a9
push 1
push ebx
call fcn.00446489
test eax, eax
je 0x43f6b9
push eax
push str.______________________S______________________
push 0
call fcn.00449e4d
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00444396
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.0042c9c6
push 4
pop edi
cmp dword [0x512584], edi
jl 0x43f745
push 1
push ebx
call fcn.00446489
push eax
push str._clsguid_S
push edi
call fcn.00449e4d
add esp, 0xc
cmp dword [0x512584], edi
jl 0x43f745
lea eax, [esi + 0x1c]
push eax
push str._devpath_s
push edi
call fcn.00449e4d
add esp, 0xc
cmp dword [0x512584], edi
jl 0x43f745
lea eax, [ebp - 0x20c]
push eax
push str._krnlnam_s
push edi
call fcn.00449e4d
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5063a0], eax
xor eax, eax
cmp word [ebp - 0x20c], ax
je 0x43f84e
push eax
push ebx
push eax
add esi, 0x1c
push esi
call fcn.0043ab59
test eax, eax
jne 0x43f84e
push 0x15227010
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [0x512584], edi
jl 0x43f796
push str.starting_TIMERID_REFRESHTREE_after_DeviceArrived_returned_false
push edi
call fcn.00449e4d
pop ecx
pop ecx
push 0x43aa53
push dword [ebp - 4]
push 0x12340001
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
push str.OnDevCh
push 0
jmp 0x43f5b0
cmp eax, 6
jne 0x43f809
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
push str.HANDLE
push str.______________________S______________________
push 0
call fcn.00449e4d
push esi
push edi
push str.hDev0x_08Ix_hNotify0x_08Ix
push 1
call fcn.00449e4d
mov ecx, dword [0x508068]
add esp, 0x1c
push esi
call fcn.00401f11
test eax, eax
je 0x43f84e
push 0
push 0
push dword [eax + 0x10]
add eax, 0xc30
push eax
call fcn.0043ab59
jmp 0x43f84e
cmp eax, 2
jne 0x43f609
push esi
push ecx
jmp 0x43f5ff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0x430acb
push edi
push 0x12340003
push dword [ebp + 8]
mov dword [0x5063a0], eax
call esi
push 0x43096a
push 0x3e8
push 0x12340004
push dword [ebp + 8]
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc