Function at 0x412b70
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x475785
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
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 [0x49f474]
mov edx, dword [eax + 0xc]
mov edi, 1
mov ecx, 0x49f474
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.00401510
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x24]
add esp, 4
push eax
call fcn.00411390
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 0x412da2
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 0x412da2
mov edi, dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
jmp 0x412c60
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 0x412cb4
lea edx, [esp + 0x2c]
push str.USBHUB
push edx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x412cb4
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 0x412d8b
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 0x412d6f
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 0x412d67
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 0x412d67
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 0x412d20
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00402840
mov ecx, esi
call fcn.00407c60
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x412da2
push str.MI_
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x412da2
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x412da2
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 0x412c60
jmp 0x412da2
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00403410
mov eax, dword [esi]
push eax
push str.CDeviceDetect::GetUSBHardwareID_2000XP
push str._s__s
call fcn.00403100
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 0x412ddf
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 0x412e0a
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.00472076
add esp, 0x234
ret 8