Function at 0x505d88
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x505d90
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x506133
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44], 0
jne 0x5060f3
mov eax, dword [ebp - 4]
mov byte [eax + 0x44], 1
mov dl, 1
mov eax, dword [0x469ff0]
call fcn.0046a0f0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5060ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50614c
lea eax, [ebp - 0x14]
call fcn.00406534
mov ecx, eax
mov eax, 0x56fbe0
mov edx, 0x506160
call fcn.004ffbd4
test al, al
jne 0x505e11
call fcn.004041ac
jmp 0x5060f3
push 0
lea eax, [ebp - 0x18]
call fcn.00406534
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x505e3a
call fcn.004041ac
jmp 0x5060f3
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.0049c170
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, 0x506178
call fcn.00404a44
mov edx, 0x80000001
mov eax, dword [ebp - 8]
call fcn.0046a190
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0046a31c
test al, al
je 0x505f12
mov dl, 1
mov eax, dword [0x41907c]
call fcn.00403904
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0046a6b4
mov eax, dword [ebp - 8]
call fcn.0046a160
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x505f0a
inc ebx
xor esi, esi
push dword [ebp - 0xc]
push 0x5061a8
lea ecx, [ebp - 0x34]
mov edx, esi
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404ab8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.0046a31c
test al, al
je 0x505f06
lea ecx, [ebp - 0x38]
mov edx, 0x5061b4
mov eax, dword [ebp - 8]
call fcn.0046a820
mov edx, dword [ebp - 0x38]
mov ecx, dword [0x5703a0]
mov eax, dword [ebp - 4]
call fcn.00504b6c
mov eax, dword [ebp - 8]
call fcn.0046a160
inc esi
dec ebx
jne 0x505ea9
mov eax, dword [ebp - 0x10]
call fcn.00403934
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
sub eax, 3
je 0x505f29
dec eax
je 0x505fe8
jmp 0x5060a5
mov dl, 1
mov eax, dword [0x41907c]
call fcn.00403904
mov edi, eax
mov edx, edi
mov eax, 0x5061cc
call fcn.00503668
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x505f98
inc ebx
xor esi, esi
lea ecx, [ebp - 0x50]
mov edx, esi
mov eax, edi
call fcn.0041cc70
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
mov eax, edi
call fcn.0041ce50
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0049c1a8
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x54]
mov edx, esi
mov eax, edi
call fcn.0041cc70
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00504b6c
inc esi
dec ebx
jne 0x505f54
mov eax, edi
call fcn.00403934
mov edx, 0x50620c
mov eax, dword [ebp - 4]
call fcn.0050633c
lea edx, [ebp - 0x58]
mov eax, 0x506230
call fcn.0049c994
mov edx, dword [ebp - 0x58]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00506518
lea edx, [ebp - 0x5c]
mov eax, 0x50624c
call fcn.0049c994
mov edx, dword [ebp - 0x5c]
mov ecx, 0x56fc00
mov eax, dword [ebp - 4]
call fcn.00506518
jmp 0x5060a5
mov ecx, dword [0x5703a0]
mov edx, 0x506274
mov eax, dword [ebp - 4]
call fcn.00504b6c
mov ecx, dword [0x5703a0]
mov edx, 0x506290
mov eax, dword [ebp - 4]
call fcn.00504b6c
mov ecx, dword [0x5703a0]
mov edx, 0x5062b0
mov eax, dword [ebp - 4]
call fcn.00504b6c
mov ecx, dword [0x5703a0]
mov edx, 0x5062b0
mov eax, dword [ebp - 4]
call fcn.00504b6c
mov ecx, dword [0x5703a0]
mov edx, 0x5062d0
mov eax, dword [ebp - 4]
call fcn.00504b6c
lea edx, [ebp - 0x60]
mov eax, 0x5062f0
call fcn.0049c994
mov edx, dword [ebp - 0x60]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00506518
lea edx, [ebp - 0x64]
mov eax, 0x50630c
call fcn.0049c994
mov edx, dword [ebp - 0x64]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00506518
mov edx, 0x50632c
mov eax, dword [ebp - 4]
call fcn.0050633c
mov eax, 0x50624c
lea edx, [ebp - 0x68]
call fcn.0049c994
mov edx, dword [ebp - 0x68]
mov ecx, 0x56fc00
mov eax, dword [ebp - 4]
call fcn.00506518
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.00504988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5060f3
cmp dword [ebp - 0x18], 0
je 0x5060ce
lea eax, [ebp - 0x18]
call fcn.00406534
cmp dword [ebp - 0x14], 0
je 0x5060dc
lea eax, [ebp - 0x14]
call fcn.00406534
mov eax, dword [ebp - 4]
mov byte [eax + 0x44], 0
mov eax, dword [ebp - 8]
call fcn.00403934
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50613a
lea eax, [ebp - 0x68]
mov edx, 8
call fcn.00404748
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00404748
lea eax, [ebp - 0x18]
call fcn.00406534
lea eax, [ebp - 0x14]
call fcn.00406534
lea eax, [ebp - 0xc]
call fcn.00404724
ret