Function at 0x100018a0
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000f448
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10014034]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x10014034]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x14], esi
cmp esi, edi
je 0x10001b0d
cmp dword [esi + 0x4c], edi
jne 0x10001b0d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x1000194d
mov edx, dword [esp + 0x18]
push edx
push ecx
call fcn.10007cf0
mov edi, eax
mov eax, dword [esi + 0x18]
add esp, 8
mov dword [esp + 0x10], eax
mov ebx, edi
cmp edi, eax
je 0x10001948
mov eax, ebx
call fcn.100032c0
add ebx, 0x28
cmp ebx, dword [esp + 0x10]
jne 0x10001938
mov dword [esi + 0x18], edi
xor edi, edi
push 0xe
push edi
push 0x10010408
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001b04
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
mov dword [esp + 0x28], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, edi
je 0x100019bd
inc dword [esp + 0x10]
sub esp, 0x1c
mov edi, esp
mov ecx, 7
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
push ebx
call sym.Device.dll_private:_bool___thiscall_CDevice::GetDeviceInfo_void___struct__SP_DEVINFO_DATA_
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10001984
mov esi, dword [esp + 0x14]
xor edi, edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov ebx, dword [0x10014484]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x100019fb
cmp ebx, 0x1e
jg 0x100019fb
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [0x10014484]
jmp 0x10001911
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x10001a4e
mov eax, dword [esi + 0x14]
cmp byte [eax + 0x13], 0
jne 0x10001a31
cmp dword [0x10014488], 0xa
jge 0x10001a31
inc dword [0x10014488]
jmp 0x10001911
mov dword [0x10014488], edi
cmp byte [eax + 0x11], 0
jne 0x10001a54
cmp ebx, 0x32
jge 0x10001a54
inc ebx
mov dword [0x10014484], ebx
jmp 0x10001911
mov dword [0x10014488], edi
mov ecx, esi
mov dword [0x10014484], edi
call sym.Device.dll_private:_void___thiscall_CDevice::DeepScanDevice_void_
mov ecx, esi
mov dword [esi + 0xc], edi
call sym.Device.dll_private:_int___thiscall_CDevice::IsHasNewDevice_void_
test eax, eax
jne 0x10001a7c
push 0x10010420
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10001a9d
cmp dword [esi + 8], edi
je 0x10001a9d
push 0x10010438
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esi + 8]
push edi
push edi
push 0x800
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x18]
lea edi, [esp + 0x10]
push eax
push 0x10010410
call fcn.10007a00
mov edi, dword [esp + 0x18]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001b02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp dword [esi + 0x4c], edi
je 0x100018f1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1000db42
mov esp, ebp
pop ebp
ret