Function at 0x413850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476d01
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4eb0]
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 [0x4a540c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a540c
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.00401530
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00412c70
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.00401530
add esp, 4
lea ecx, [esp + 0x24]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00411cb0
mov eax, dword [eax]
mov ebp, dword [0x47f3b0]
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 0x413930
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4139da
mov eax, dword [esp + 0x48]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.00401530
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x4c]
add esp, 4
push esi
call fcn.00454dd0
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 0x413986
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 0x4139ab
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 0x4139d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x413d07
mov edx, dword [0x4a540c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a540c
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 0x413c4c
push eax
push str.GetUSBHardwareID_Vista:_s
call fcn.00403140
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 0x413a38
push esi
lea ecx, [esp + 0x18]
call fcn.00401eb0
mov edx, dword [esp + 0x14]
lea ecx, [esi + 1]
push ecx
push edx
call dword [0x47f3c4]
add esp, 8
test esi, esi
jl 0x413d3b
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x413d3b
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.00401530
add esp, 4
lea ecx, [esp + 0x28]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00411a90
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 0x413ad2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x413ace
push str.MI_
push eax
call dword [0x47f37c]
add esp, 8
test eax, eax
je 0x413ace
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
jne 0x413ad2
mov bl, 1
jmp 0x413ad4
xor bl, bl
test byte [esp + 0x18], 2
mov dword [esp + 0x3c], 4
je 0x413b08
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 0x413b08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x413c3e
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00401530
add esp, 4
lea ecx, [esp + 0x2c]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00412c70
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 6
call fcn.00404410
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 0x413b6c
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 0x413d1d
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x413bab
test dx, dx
je 0x413ba7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x413bab
add eax, 4
add ecx, 4
test dx, dx
jne 0x413b85
xor eax, eax
jmp 0x413bb0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x413d27
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00401530
add esp, 4
lea ecx, [esp + 0x30]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00411cb0
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 0x413c18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x413d31
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404410
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x413a04
jmp 0x413c4c
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.00404410
mov esi, dword [esp + 0x1c]
push esi
push str.CDeviceDetect::GetUSBHardwareID_Vista
push str._s__s
call fcn.00403140
add esi, 0xfffffff0
push esi
call fcn.00401530
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 0x413c9a
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 0x413cbf
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 0x413cdd
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 0x413d05
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 0x413c43
lea ecx, [esp + 0x14]
push ecx
jmp 0x413c43
push 0x80070057
call fcn.00401120
int3