Function at 0x4faba0
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea edi, [ebx + 8]
push edi
mov dword [esp + 0x28], edi
call dword [0x53d2c8]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 0x44]
xor ebp, ebp
cmp ecx, ebp
jne 0x4facbd
mov ecx, ebx
call fcn.004fa760
mov eax, dword [ebx + 0x30]
cmp eax, ebp
je 0x4facbd
lea edx, [esp + 0x20]
push edx
push 0x54a644
mov dword [esp + 0x28], ebp
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x4faaf8
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4faaf8
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
test eax, eax
jne 0x4faaf8
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, ebp
jle 0x4faaf8
lea ebx, [ebx]
xor eax, eax
mov dword [esp + 0x48], ebp
mov ecx, 0x1f
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], ebp
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push eax
mov ecx, ebx
call fcn.004fa880
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x4faab0
mov edi, dword [esp + 0x24]
mov eax, dword [ebx + 0x30]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebp
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4fab67
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 1
mov dword [esp + 0x20], ebp
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x4fab5d
mov edx, dword [esp + 0x10]
push ebp
push edx
mov ecx, ebx
call fcn.004fa880
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4fab36
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebx + 0x3c]
mov eax, dword [edx + 0x44]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x4facbd
add eax, 0x28
mov ecx, 0x10
mov edi, 0x549eb8
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4fab93
sbb edx, edx
sbb edx, 0xffffffff
mov ecx, 0x10
mov edi, 0x549ea8
mov esi, eax
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x4fabaa
sbb ebp, ebp
sbb ebp, 0xffffffff
mov esi, eax
xor eax, eax
mov ecx, 4
mov edi, str.dvsl
repe cmpsd dword [esi], dword es:[edi]
sete al
xor ecx, ecx
test ebp, ebp
sete cl
or eax, ecx
xor ecx, ecx
test edx, edx
sete cl
or eax, ecx
je 0x4facb9
mov edx, dword [esp + 0x18]
xor ebp, ebp
add edx, 0x18
mov dword [esp + 0x38], 0x2d0
mov dword [esp + 0x3c], 0x168
mov dword [esp + 0x40], 0xb4
mov dword [esp + 0x44], 0x58
mov dword [esp + 0x28], 0x1e0
mov dword [esp + 0x2c], 0xf0
mov dword [esp + 0x30], 0x78
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x18], edx
push 0xf0
call fcn.0052b380
mov edx, eax
xor eax, eax
add esp, 4
cmp edx, eax
je 0x4fac6a
or ecx, 0xffffffff
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x60], ecx
mov dword [edx], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov byte [edx + 0xe8], al
mov ecx, 0x12
lea edi, [edx + 0x18]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [edx + 0x68]
rep stosd dword es:[edi], eax
mov eax, edx
mov esi, dword [esp + 0x18]
mov edx, dword [esp + ebp*4 + 0x28]
lea edi, [eax + 0x18]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + ebp*4 + 0x38]
mov ecx, esi
imul ecx, edx
mov dword [eax + 8], edx
lea ecx, [ecx + ecx*2]
lea edx, [ebp + 0x3e8]
mov dword [eax + 0x40], ecx
mov dword [eax + 4], esi
mov dword [eax + 0xc], 0x1e
mov dword [eax + 0x60], edx
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx + 0x44]
mov dword [eax], edx
mov ecx, dword [ebx + 0x3c]
inc ebp
cmp ebp, 4
mov dword [ecx + 0x44], eax
jl 0x4fac22
mov edi, dword [esp + 0x24]
push edi
call dword [0x53d2c4]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4