Function at 0x412670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475731
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x49f474]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f474
mov dword [esp + 0x3c], ebx
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x48]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
mov byte [esp + 0x44], 1
call fcn.00401510
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00411ba0
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
mov byte [esp + 0x44], 2
call fcn.00401510
add esp, 4
lea ecx, [esp + 0x24]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00410780
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCR90.dll__wcsicmp]
push str.USBHUB
push eax
call ebp
add esp, 8
cmp eax, ebx
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x3c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412750
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4127fa
mov eax, dword [esp + 0x48]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.00401510
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x4c]
add esp, 4
push esi
call fcn.00411390
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x3c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4127a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4127cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4127f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x412b27
mov edx, dword [0x49f474]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f474
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x3c], 4
je 0x412a6c
push eax
push str.GetUSBHardwareID_Vista:_s
call fcn.00403100
mov edx, dword [esp + 0x1c]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
add esp, 8
or eax, ecx
jge 0x412858
push esi
lea ecx, [esp + 0x18]
call fcn.00401ea0
mov edx, dword [esp + 0x14]
lea ecx, [esi + 1]
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__wcsupr_s]
add esp, 8
test esi, esi
jl 0x412b5b
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x412b5b
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [eax + esi*2], dx
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00401510
add esp, 4
lea ecx, [esp + 0x28]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00410560
mov eax, dword [eax]
or dword [esp + 0x18], 2
push str.36FC9E60_C465_11CF_8056_444553540000
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4128f2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4128ee
push str.MI_
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4128ee
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4128f2
mov bl, 1
jmp 0x4128f4
xor bl, bl
test byte [esp + 0x18], 2
mov dword [esp + 0x3c], 4
je 0x412928
mov eax, dword [esp + 0x24]
and dword [esp + 0x18], 0xfffffffd
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412928
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x412a5e
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00401510
add esp, 4
lea ecx, [esp + 0x2c]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00411ba0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 6
call fcn.004043f0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41298c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x412b3d
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4129cb
test dx, dx
je 0x4129c7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4129cb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4129a5
xor eax, eax
jmp 0x4129d0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x412b47
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00401510
add esp, 4
lea ecx, [esp + 0x30]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00410780
mov eax, dword [eax]
push str.USBHUB
push eax
call ebp
add esp, 8
test eax, eax
mov eax, dword [esp + 0x2c]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x3c], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412a38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x412b51
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.004043f0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x412824
jmp 0x412a6c
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.004043f0
mov esi, dword [esp + 0x1c]
push esi
push str.CDeviceDetect::GetUSBHardwareID_Vista
push str._s__s
call fcn.00403100
add esi, 0xfffffff0
push esi
call fcn.00401510
mov edi, dword [esp + 0x54]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x3c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412aba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412adf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412afd
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412b25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
push 0x80004005
call fcn.00401120
lea eax, [esp + 0x14]
push eax
jmp 0x412a63
lea ecx, [esp + 0x14]
push ecx
jmp 0x412a63
push 0x80070057
call fcn.00401120
int3