Function at 0x413d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4761a1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3eb0]
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 [0x4a440c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a440c
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.004131e0
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.00411c90
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 0x413e50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x413efa
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.004129d0
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 0x413ea6
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 0x413ecb
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 0x413ef3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x414227
mov edx, dword [0x4a440c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a440c
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 0x41416c
push eax
push str.GetUSBHardwareID_Vista:_s
call fcn.00403120
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 0x413f58
push esi
lea ecx, [esp + 0x18]
call fcn.00401e90
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 0x41425b
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x41425b
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.00411a70
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 0x413ff2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x413fee
push str.MI_
push eax
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
test eax, eax
je 0x413fee
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
jne 0x413ff2
mov bl, 1
jmp 0x413ff4
xor bl, bl
test byte [esp + 0x18], 2
mov dword [esp + 0x3c], 4
je 0x414028
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 0x414028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x41415e
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.004131e0
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 0x41408c
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 0x41423d
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4140cb
test dx, dx
je 0x4140c7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4140cb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4140a5
xor eax, eax
jmp 0x4140d0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x414247
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.00411c90
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 0x414138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x414251
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404410
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x413f24
jmp 0x41416c
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.00403120
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 0x4141ba
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 0x4141df
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 0x4141fd
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 0x414225
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 0x414163
lea ecx, [esp + 0x14]
push ecx
jmp 0x414163
push 0x80070057
call fcn.00401100
int3