Function at 0x4153d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x478c5f
mov eax, dword fs:[0]
push eax
sub esp, 0xa44
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0xa40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0xa58]
mov dword fs:[0], eax
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
mov dword [esp + 0xa60], 0
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
xor eax, eax
push 0xa26
push eax
lea ecx, [esp + 0x36]
push ecx
mov byte [esp + 0xa6c], 1
mov word [esp + 0x38], ax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0xa74]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
mov dword [esp + 0x20], 0xa28
call fcn.00401520
lea edx, [esp + 0x28]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00414660
add esp, 8
mov eax, dword [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0xa6c], 2
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x41581e
mov edx, dword [esp + 0x28]
mov ebp, dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push eax
push edx
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
jne 0x41581e
mov ebx, dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x34]
push 5
push eax
call ebx
test eax, eax
jne 0x41581e
mov edi, dword [sym.imp.MSVCR90.dll__wcsicmp]
lea ecx, [esp + 0x2c]
push str.USBHUB
push ecx
call edi
add esp, 8
test eax, eax
je 0x415777
lea edx, [esp + 0x2c]
push str.USBSTOR
push edx
call edi
add esp, 8
test eax, eax
jne 0x41579a
push eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x2c]
push ecx
call ebp
test eax, eax
jne 0x41579a
mov ecx, dword [esp + 0x24]
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 5
mov ebp, 0xa28
push ecx
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
jne 0x415564
lea edx, [esp + 0x2c]
push str.USBHUB
push edx
call edi
add esp, 8
test eax, eax
je 0x415777
mov edx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 3
push edx
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
jne 0x41579a
xor esi, esi
xor edi, edi
cmp dword [esp + 0x18], esi
jbe 0x415611
mov ebp, 2
lea ebx, [esp + 0x2c]
sub ebx, ebp
cmp word [ebx + ebp], 0
jne 0x4155fc
mov eax, esi
sub eax, edi
push eax
lea ecx, [esp + edi*2 + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00410b70
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
mov byte [esp + 0xa60], 3
lea edi, [esi + 1]
je 0x4155eb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040f510
push 0x484174
lea ecx, [esp + 0x20]
call fcn.00405430
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 2
call fcn.00450df0
inc esi
add ebp, 2
cmp esi, dword [esp + 0x18]
jb 0x4155a0
mov ebx, dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
mov ebp, 0xa28
lea ecx, [esp + 0x1c]
call fcn.00408420
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
mov edi, dword [sym.imp.MSVCR90.dll_wcsstr]
jl 0x415668
push str.COMPOSITE
push esi
call edi
add esp, 8
test eax, eax
je 0x415646
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x41579a
cmp dword [esi - 0xc], 0
jl 0x415668
push str.MS_COMP
push esi
call edi
add esp, 8
test eax, eax
je 0x415668
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x41579a
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 1
push eax
mov dword [esp + 0x30], ebp
call ebx
test eax, eax
jne 0x41570e
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406310
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 4
call fcn.004110f0
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x4156fd
push str.composite
push eax
call edi
add esp, 8
test eax, eax
je 0x4156fd
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4156fd
lea ecx, [esp + 0x14]
call fcn.00450df0
lea ecx, [esp + 0x20]
call fcn.00450df0
lea ecx, [esp + 0x1c]
call fcn.00450df0
lea ecx, [esp + 0xa68]
call fcn.00450df0
mov eax, 1
jmp 0x41589a
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 2
call fcn.00450df0
mov ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 5
push ecx
call ebx
test eax, eax
jne 0x415777
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
call fcn.00406310
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 5
call fcn.004110f0
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x41576e
push 0x484568
push eax
call edi
add esp, 8
test eax, eax
je 0x41576e
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4156cc
lea ecx, [esp + 0x14]
call fcn.00450df0
lea ecx, [esp + 0x20]
call fcn.00450df0
lea ecx, [esp + 0x1c]
call fcn.00450df0
lea ecx, [esp + 0xa68]
call fcn.00450df0
jmp 0x415898
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xa60], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4157c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xa60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4157e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa68]
add eax, 0xfffffff0
mov dword [esp + 0xa60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415814
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41589a
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xa60], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415846
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xa60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41586a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa68]
add eax, 0xfffffff0
mov dword [esp + 0xa60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xa58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa40]
xor ecx, esp
call fcn.004764f6
add esp, 0xa50
ret 4