Function at 0x415b50
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x478605
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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 [0x4a643c]
mov edx, dword [eax + 0xc]
mov edi, 1
mov ecx, 0x4a643c
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.004014f0
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x24]
add esp, 4
push eax
call fcn.00414000
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 0x415d82
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 0x415d82
mov edi, dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
jmp 0x415c40
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 0x415c94
lea edx, [esp + 0x2c]
push str.USBHUB
push edx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x415c94
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 0x415d6b
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 0x415d4f
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 0x415d47
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 0x415d47
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 0x415d00
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004028b0
mov ecx, esi
call fcn.00408200
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x415d82
push str.MI_
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x415d82
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x415d82
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 0x415c40
jmp 0x415d82
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00403480
mov eax, dword [esi]
push eax
push str.CDeviceDetect::GetUSBHardwareID_2000XP
push str._s__s
call fcn.00403170
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 0x415dbf
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 0x415dea
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.00475d76
add esp, 0x234
ret 8