Function at 0x10032160
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [0x100e7c94]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x100c74cb]
push ebx
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x104], al
lea eax, [ebp - 0x104]
push eax
call fcn.1002dc50
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032197
sub ecx, edx
je 0x100321c6
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.10032410
add esp, 8
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c4]
push eax
push 0x100cbf0c
push 1
push 0
push 0x100c958c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x1003220f
mov eax, dword [ebp - 0x1c4]
lea edx, [ebp - 0x1bc]
push 0
push edx
push 0x100c95ac
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax]
je 0x10032220
push eax
call dword [ecx + 8]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
push esi
push edi
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1bc]
lea edx, [ebp - 0x1cc]
push edx
lea edx, [ebp - 0x1c0]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1003237f
lea esi, [eax + 8]
nop dword [eax]
mov eax, dword [ebp - 0x1c0]
lea edx, [ebp - 0x1c8]
push edx
push 0x100cd2d4
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
js 0x1003234f
mov eax, dword [ebp - 0x1c8]
lea edx, [ebp - 0x1e0]
push 0
push edx
mov word [ebp - 0x1e0], si
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100322d7
mov esi, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1b8]
mov ecx, esi
sub edx, esi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x100322c0
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x1c8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [0x100e67c8]
xor edi, edi
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100322f0
sub esi, edx
sar esi, 1
test esi, esi
jle 0x10032338
push esi
push ecx
lea eax, [ebp - 0x1b8]
push eax
call fcn.1005cab0
add esp, 0xc
test eax, eax
je 0x10032338
mov esi, dword [edi*4 + 0x100e67cc]
inc edi
mov ecx, esi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10032325
sub esi, edx
sar esi, 1
test esi, esi
jg 0x10032303
mov eax, dword [ebp - 0x1c0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jne 0x1003239e
mov esi, 8
jmp 0x1003235b
mov eax, dword [ebp - 0x1c0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1bc]
lea edx, [ebp - 0x1cc]
push edx
lea edx, [ebp - 0x1c0]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10032260
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003acef
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi*4 + 0x100e6898]
mov dword [0x14807b28], edi
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx], al
lea ebx, [ebx + 1]
test al, al
jne 0x100323b0
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003acef
mov esp, ebp
pop ebp
ret