Function at 0x412990
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x475635
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, dword [esp + 0x248]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov edi, 1
mov ecx, 0x49f4e4
mov dword [esp + 0x240], edi
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x24c]
push ecx
mov dword [esp + 0x24], edi
add eax, 0xfffffff0
mov ebp, 0x208
mov dword [esp + 0x2c], esp
mov edi, esp
push eax
mov dword [esp + 0x1c], ebp
call fcn.00401530
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x24]
add esp, 4
push eax
call fcn.00454950
add esp, 8
mov ecx, dword [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x24c], 2
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x412bc2
push eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
jne 0x412bc2
mov edi, dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
jmp 0x412a80
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 5
push ecx
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x412ad4
lea edx, [esp + 0x2c]
push str.USBHUB
push edx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x412ad4
mov ecx, dword [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
test eax, eax
je 0x412bab
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 9
push ecx
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x412b8f
lea edx, [esp + 0x2c]
push str.36FC9E60_C465_11CF_8056_444553540000
push edx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x412b87
mov ecx, dword [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
test eax, eax
jne 0x412b87
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412b40
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004028e0
mov ecx, esi
call fcn.00407d50
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x412bc2
push str.MI_
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x412bc2
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x412bc2
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
je 0x412a80
jmp 0x412bc2
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.004034b0
mov eax, dword [esi]
push eax
push str.CDeviceDetect::GetUSBHardwareID_2000XP
push str._s__s
call fcn.004031a0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x240], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412bff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24c]
add eax, 0xfffffff0
mov byte [esp + 0x240], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00471f66
add esp, 0x234
ret 8