Function at 0x415650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4785b1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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 [0x4a643c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a643c
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.004014f0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00414810
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.004014f0
add esp, 4
lea ecx, [esp + 0x24]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00412d70
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 0x415730
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4157da
mov eax, dword [esp + 0x48]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.004014f0
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x4c]
add esp, 4
push esi
call fcn.00414000
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 0x415786
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 0x4157ab
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 0x4157d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x415b07
mov edx, dword [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
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 0x415a4c
push eax
push str.GetUSBHardwareID_Vista:_s
call fcn.00403170
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 0x415838
push esi
lea ecx, [esp + 0x18]
call fcn.00401e80
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 0x415b3b
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x415b3b
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.004014f0
add esp, 4
lea ecx, [esp + 0x28]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00412b50
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 0x4158d2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4158ce
push str.MI_
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4158ce
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4158d2
mov bl, 1
jmp 0x4158d4
xor bl, bl
test byte [esp + 0x18], 2
mov dword [esp + 0x3c], 4
je 0x415908
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 0x415908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x415a3e
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.004014f0
add esp, 4
lea ecx, [esp + 0x2c]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00414810
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 6
call fcn.00404450
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 0x41596c
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 0x415b1d
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4159ab
test dx, dx
je 0x4159a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4159ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x415985
xor eax, eax
jmp 0x4159b0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x415b27
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.004014f0
add esp, 4
lea ecx, [esp + 0x30]
add eax, 0x10
push ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00412d70
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 0x415a18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x415b31
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404450
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x415804
jmp 0x415a4c
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
call fcn.00404450
mov esi, dword [esp + 0x1c]
push esi
push str.CDeviceDetect::GetUSBHardwareID_Vista
push str._s__s
call fcn.00403170
add esi, 0xfffffff0
push esi
call fcn.004014f0
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 0x415a9a
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 0x415abf
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 0x415add
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 0x415b05
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.00401100
lea eax, [esp + 0x14]
push eax
jmp 0x415a43
lea ecx, [esp + 0x14]
push ecx
jmp 0x415a43
push 0x80070057
call fcn.00401100
int3