Function at 0x505288
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x505290
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x505bc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x44], 0
jne 0x505b52
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x44], 1
mov byte [ebp - 0x45], 0
mov byte [ebp - 0x46], 0
xor edx, edx
push ebp
push 0x505b48
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
xor edx, edx
push ebp
push 0x505aaf
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
jne 0x505357
mov ecx, 0x505bdc
mov edx, 0xff0000
xor eax, eax
call fcn.004ffb74
xor ecx, ecx
mov dl, 1
mov eax, dword [0x500b94]
call fcn.00500c8c
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x2c], 0
je 0x505357
mov ecx, 0x505bf0
mov edx, 0xff0000
xor eax, eax
call fcn.004ffb74
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x4c]
mov edx, 0x56fc70
call fcn.00504f30
mov dword [ebp - 0x68], eax
mov ecx, 0x505c08
mov edx, 0xff0000
xor eax, eax
call fcn.004ffb74
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0x70]
mov edx, 0x505c28
call fcn.00404a44
mov ecx, dword [ebp - 0x70]
mov edx, 0xff0000
xor eax, eax
call fcn.004ffb74
cmp dword [ebp - 0x2c], 0
jne 0x5053de
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5053de
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
cmp byte [eax + 0x12], 0
jne 0x5053da
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov al, byte [eax + 0x16]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
pop edx
mov byte [eax + 0x11], dl
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov byte [eax + 0x16], 0
inc ebx
dec esi
jne 0x505394
push 0x505c3c
lea eax, [ebp - 0x30]
call fcn.00406534
mov ecx, eax
mov eax, 0x56fbe0
mov edx, 0x505c50
call fcn.004ffbd4
test al, al
jne 0x50540f
call fcn.004041ac
call fcn.004041ac
jmp 0x505b52
cmp dword [ebp - 0x2c], 0
je 0x505440
push 0
lea eax, [ebp - 0x34]
call fcn.00406534
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x50546e
call fcn.004041ac
call fcn.004041ac
jmp 0x505b52
push 0
lea eax, [ebp - 0x34]
call fcn.00406534
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x10
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x50546e
call fcn.004041ac
call fcn.004041ac
jmp 0x505b52
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
jmp 0x505964
cmp dword [ebp - 0x38], 0
je 0x505964
lea eax, [ebp - 0x44]
push eax
push 0
push 0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
test eax, eax
jne 0x5054b1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x44]
call fcn.00404944
mov eax, dword [ebp - 0x44]
push eax
call sub.ole32.dll_CoTaskMemFree
jmp 0x5054b9
lea eax, [ebp - 0x10]
call fcn.00404724
lea eax, [ebp - 0x3c]
call fcn.00406534
push eax
push 0x505c60
push 0
push 0
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
test eax, eax
jne 0x505954
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 5]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
call fcn.00504cb4
cmp dword [ebp - 0x40], 0
je 0x505954
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x40]
call fcn.005039c4
test al, al
je 0x50552b
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
call fcn.005042f4
xor al, 1
test al, al
je 0x50553a
cmp byte [ebp - 5], 0
jne 0x50553a
mov al, byte [0x56fa4c]
test al, al
je 0x505557
cmp dword [ebp - 0x68], 0
je 0x505557
mov eax, dword [ebp - 0x28]
mov al, byte [eax + 0x4c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x68]
call fcn.00505138
xor al, 1
test al, al
je 0x505954
lea edx, [ebp - 0x74]
mov eax, 0x505c78
call fcn.0049c994
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x40]
call fcn.00404d34
test eax, eax
jle 0x50557f
mov byte [ebp - 0x46], 1
or ebx, 0xffffffff
push ebp
call fcn.00505208
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
jne 0x505618
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x48], 0
je 0x505618
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x40]
call fcn.00408b30
mov edx, dword [ebp - 0x78]
mov eax, 0x505c8c
call fcn.00404d34
test eax, eax
jle 0x505618
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x505611
mov byte [esi + 0x12], 1
lea eax, [esi + 0x1c]
mov edx, 0x56fc20
call fcn.0049baa0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ebx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x30]
mov ecx, esi
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0x24]
mov byte [ebp - 0x45], 1
jmp 0x505618
mov eax, esi
call fcn.00403934
inc ebx
jne 0x505954
mov byte [esi + 0x12], 0
mov eax, dword [ebp - 0x28]
lea edx, [eax + 0x10]
lea eax, [esi + 0x1c]
call fcn.0049baa0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ebx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov ecx, esi
mov edx, ebx
mov ebx, dword [eax]
call dword [ebx + 0x24]
cmp dword [ebp - 0x4c], 0
je 0x505954
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x58], 0xffffffff
lea edx, [ebp - 0x80]
xor eax, eax
call fcn.005001c4
push dword [ebp - 0x80]
push 0x505c9c
push dword [ebp - 4]
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00404ab8
mov edx, dword [ebp - 0x7c]
mov cl, 1
mov eax, dword [ebp - 0x4c]
call fcn.00500d20
test al, al
je 0x5058e7
lea ecx, [ebp - 0x50]
mov edx, 0x505cb0
mov eax, dword [ebp - 0x4c]
call fcn.00500ed8
lea ecx, [ebp - 0x54]
mov edx, 0x505cbc
mov eax, dword [ebp - 0x4c]
call fcn.00500ed8
lea ecx, [ebp - 0x58]
mov edx, 0x505cc8
mov eax, dword [ebp - 0x4c]
call fcn.00500ed8
cmp dword [ebp - 0x54], 1
jne 0x5056e0
mov byte [esi + 0x13], 1
cmp dword [ebp - 0x50], 1
jne 0x5056ea
mov byte [esi + 0x14], 1
cmp dword [ebp - 0x58], 1
jne 0x5056f4
mov byte [esi + 0x15], 1
cmp dword [ebp - 0x50], 0xffffffff
je 0x50570a
cmp dword [ebp - 0x54], 0xffffffff
je 0x50570a
cmp dword [ebp - 0x58], 0xffffffff
jne 0x5058af
cmp byte [ebp - 5], 0
je 0x5058af
lea eax, [ebp - 0x5c]
call fcn.00406534
mov ecx, eax
mov edx, 0x505ccc
mov eax, dword [ebp - 0x38]
call fcn.004ffc64
test al, al
je 0x5058af
cmp dword [ebp - 0x5c], 0
je 0x5058af
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
call fcn.00406534
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [eax]
call dword [eax + 0x28]
test eax, eax
jne 0x5058a7
xor ebx, ebx
jmp 0x505897
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
call fcn.00406534
push eax
push 1
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x50578b
mov bl, 1
jmp 0x505897
cmp dword [ebp - 0x6c], 1
jge 0x505798
mov bl, 1
jmp 0x505897
cmp dword [ebp - 0x64], 0
jne 0x5057a5
mov bl, 1
jmp 0x505897
lea eax, [ebp - 0x64]
call fcn.00503044
mov edi, eax
test edi, edi
je 0x50588f
mov eax, edi
mov edx, 0x56fde0
call fcn.0049bac0
test al, al
jne 0x5057e7
mov eax, edi
mov edx, 0x56fe10
call fcn.0049bac0
test al, al
jne 0x5057e7
mov eax, edi
mov edx, 0x56fe00
call fcn.0049bac0
test al, al
je 0x505814
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0x64]
xor edx, edx
call fcn.004ffce8
mov eax, dword [ebp - 0x84]
mov edx, 0x505ce4
call fcn.00404b3c
je 0x505814
mov dword [ebp - 0x50], 1
mov byte [esi + 0x14], 1
mov eax, edi
mov edx, 0x56fe10
call fcn.0049bac0
test al, al
jne 0x505835
lea eax, [edi + 0x10]
mov edx, 0x56fea0
call fcn.0049bac0
test al, al
je 0x505847
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x58], 1
mov byte [esi + 0x13], 1
cmp dword [ebp - 0x58], 0xffffffff
jne 0x505888
mov eax, edi
mov edx, 0x56fe10
call fcn.0049bac0
test al, al
jne 0x50587d
mov eax, edi
mov edx, 0x56fe00
call fcn.0049bac0
test al, al
jne 0x50587d
mov eax, edi
mov edx, 0x56fdd0
call fcn.0049bac0
test al, al
je 0x505888
mov dword [ebp - 0x58], 1
mov byte [esi + 0x15], 1
mov eax, edi
call fcn.0049ba88
lea eax, [ebp - 0x64]
call fcn.00406534
test bl, bl
je 0x505768
lea eax, [ebp - 0x60]
call fcn.00406534
lea eax, [ebp - 0x5c]
call fcn.00406534
mov ecx, dword [ebp - 0x50]
mov edx, 0x505cb0
mov eax, dword [ebp - 0x4c]
call fcn.00500d74
mov ecx, dword [ebp - 0x54]
mov edx, 0x505cbc
mov eax, dword [ebp - 0x4c]
call fcn.00500d74
mov ecx, dword [ebp - 0x58]
mov edx, 0x505cc8
mov eax, dword [ebp - 0x4c]
call fcn.00500d74
mov eax, dword [ebp - 0x4c]
call fcn.00500d3c
cmp dword [ebp - 0x50], 1
jne 0x505954
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x505954
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov ebx, eax
inc ebx
jne 0x505954
push ebp
call fcn.00505208
pop ecx
mov esi, eax
cmp dword [ebp - 0x54], 1
jne 0x50591a
mov byte [esi + 0x13], 1
mov byte [esi + 0x12], 1
lea eax, [esi + 0x1c]
mov edx, 0x56fc20
call fcn.0049baa0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov ebx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x30]
mov ecx, esi
mov edx, ebx
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov byte [ebp - 0x45], 1
lea eax, [ebp - 0x3c]
call fcn.00406534
lea eax, [ebp - 0x38]
call fcn.00406534
push 0
lea eax, [ebp - 0x38]
call fcn.00406534
push eax
push 1
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x50547c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505ab9
cmp dword [ebp - 0x4c], 0
je 0x50599d
mov eax, dword [ebp - 0x4c]
call fcn.00403934
cmp dword [ebp - 0x68], 0
je 0x5059ab
mov eax, dword [ebp - 0x68]
call fcn.00403934
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0x28]
call fcn.00504988
cmp dword [ebp - 0x30], 0
je 0x5059c7
lea eax, [ebp - 0x30]
call fcn.00406534
cmp dword [ebp - 0x34], 0
je 0x5059d5
lea eax, [ebp - 0x34]
call fcn.00406534
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
sub eax, 1
jae 0x505aae
cmp dword [ebp - 0x2c], 0
jne 0x505aae
lea edx, [ebp - 0x88]
mov eax, 0x505cf0
call fcn.0049c994
lea eax, [ebp - 0x88]
mov edx, 0x505d0c
call fcn.00404a00
mov edx, dword [ebp - 0x88]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
call fcn.00506518
mov eax, 0x505cf0
lea edx, [ebp - 0x8c]
call fcn.0049c994
lea eax, [ebp - 0x8c]
mov edx, 0x505d18
call fcn.00404a00
mov edx, dword [ebp - 0x8c]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
call fcn.00506518
mov eax, 0x505cf0
lea edx, [ebp - 0x90]
call fcn.0049c994
lea eax, [ebp - 0x90]
mov edx, 0x505d24
call fcn.00404a00
mov edx, dword [ebp - 0x90]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
call fcn.00506518
mov eax, 0x505cf0
lea edx, [ebp - 0x94]
call fcn.0049c994
lea eax, [ebp - 0x94]
mov edx, 0x505d30
call fcn.00404a00
mov edx, dword [ebp - 0x94]
xor ecx, ecx
mov eax, dword [ebp - 0x28]
call fcn.00506518
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505bcc
lea eax, [ebp - 0x94]
mov edx, 0xa
call fcn.00404748
lea eax, [ebp - 0x64]
call fcn.00406534
lea eax, [ebp - 0x60]
call fcn.00406534
lea eax, [ebp - 0x5c]
call fcn.00406534
lea eax, [ebp - 0x40]
call fcn.00404724
lea eax, [ebp - 0x3c]
call fcn.00406534
lea eax, [ebp - 0x38]
call fcn.00406534
lea eax, [ebp - 0x34]
call fcn.00406534
lea eax, [ebp - 0x30]
call fcn.00406534
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404748
lea eax, [ebp - 4]
call fcn.00404724
ret