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

Disassembly:
push 0xffffffffffffffff
push 0x4784cf
mov eax, dword fs:[0]
push eax
sub esp, 0xa44
mov eax, dword [0x4a5eb0]
xor eax, esp
mov dword [esp + 0xa40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0xa58]
mov dword fs:[0], eax
mov eax, dword [0x4a643c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a643c
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.004014f0
lea edx, [esp + 0x28]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00414000
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 0x4151be
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 0x4151be
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 0x4151be
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 0x415117
lea edx, [esp + 0x2c]
push str.USBSTOR
push edx
call edi
add esp, 8
test eax, eax
jne 0x41513a
push eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x2c]
push ecx
call ebp
test eax, eax
jne 0x41513a
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 0x414f04
lea edx, [esp + 0x2c]
push str.USBHUB
push edx
call edi
add esp, 8
test eax, eax
je 0x415117
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 0x41513a
xor esi, esi
xor edi, edi
cmp dword [esp + 0x18], esi
jbe 0x414fb1
mov ebp, 2
lea ebx, [esp + 0x2c]
sub ebx, ebp
cmp word [ebx + ebp], 0
jne 0x414f9c
mov eax, esi
sub eax, edi
push eax
lea ecx, [esp + edi*2 + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004104c0
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
mov byte [esp + 0xa60], 3
lea edi, [esi + 1]
je 0x414f8b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040ede0
push 0x482f94
lea ecx, [esp + 0x20]
call fcn.00405420
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 2
call fcn.004023d0
inc esi
add ebp, 2
cmp esi, dword [esp + 0x18]
jb 0x414f40
mov ebx, dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Registry_PropertyW]
mov ebp, 0xa28
lea ecx, [esp + 0x1c]
call fcn.00408200
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
mov edi, dword [sym.imp.MSVCR90.dll_wcsstr]
jl 0x415008
push str.COMPOSITE
push esi
call edi
add esp, 8
test eax, eax
je 0x414fe6
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x41513a
cmp dword [esi - 0xc], 0
jl 0x415008
push str.MS_COMP
push esi
call edi
add esp, 8
test eax, eax
je 0x415008
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x41513a
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 0x4150ae
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406300
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 4
call fcn.00410aa0
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x41509d
push str.composite
push eax
call edi
add esp, 8
test eax, eax
je 0x41509d
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x41509d
lea ecx, [esp + 0x14]
call fcn.004023d0
lea ecx, [esp + 0x20]
call fcn.004023d0
lea ecx, [esp + 0x1c]
call fcn.004023d0
lea ecx, [esp + 0xa68]
call fcn.004023d0
mov eax, 1
jmp 0x41523a
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 2
call fcn.004023d0
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 0x415117
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
call fcn.00406300
lea ecx, [esp + 0x14]
mov byte [esp + 0xa60], 5
call fcn.00410aa0
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x41510e
push 0x483388
push eax
call edi
add esp, 8
test eax, eax
je 0x41510e
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x41506c
lea ecx, [esp + 0x14]
call fcn.004023d0
lea ecx, [esp + 0x20]
call fcn.004023d0
lea ecx, [esp + 0x1c]
call fcn.004023d0
lea ecx, [esp + 0xa68]
call fcn.004023d0
jmp 0x415238
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 0x415162
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 0x415186
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 0x4151b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41523a
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 0x4151e6
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 0x41520a
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 0x415238
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.00475d76
add esp, 0xa50
ret 4