Function at 0x40a2e0
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x436064]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
mov dword [ebp - 0x60], eax
mov dword [0x439564], esi
mov dword [0x43956c], esi
mov dword [0x439570], esi
mov dword [0x439574], esi
mov dword [0x439578], esi
mov dword [0x43957c], esi
mov dword [0x439580], esi
mov dword [0x439584], esi
mov dword [0x439588], esi
mov dword [0x43958c], esi
mov dword [0x439590], esi
mov dword [0x439594], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x43957c
push 0x4343ac
push 1
push esi
push 0x432398
call ebx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
push 0x439580
push 0x4323f8
push 1
push esi
push 0x432388
call ebx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x439580]
mov edx, dword [0x43957c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
push 0x43956c
push 0x434448
push 1
push esi
push 0x4323a8
call ebx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x43956c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x439570
push 0x4323b8
push eax
call edx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x439570]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x439574
push 1
push eax
xor edi, edi
call edx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
nop
inc edi
cmp edi, 1
jge 0x40a45c
mov eax, dword [0x439570]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x439574
push 1
push eax
call edx
mov dword [0x439564], eax
cmp eax, esi
je 0x40a420
call fcn.0040a210
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x439574]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0x439578
push 0x434438
push esi
push esi
push eax
call edx
mov dword [0x439564], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [0x439578]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x74]
push edx
push str.FriendlyName
push eax
mov eax, dword [ecx + 0xc]
call eax
lea ecx, [ebp - 0x74]
push ecx
mov dword [0x439564], eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [0x439574]
mov edx, dword [eax]
push 0x439584
push 0x4343bc
push esi
push esi
push eax
mov eax, dword [edx + 0x20]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x43957c]
mov edx, dword [0x439584]
mov ecx, dword [eax]
push str.Capture_Filter
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
push 0x439588
push 0x4343bc
push 1
push esi
push 0x43438c
call ebx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x439588]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x43958c
push 0x43437c
push eax
call edx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x43958c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push eax
call edx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
push 0x48
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00423a10
mov edx, dword [0x43236c]
mov ecx, dword [str.vids]
mov eax, dword [0x432370]
mov dword [ebp - 0x50], edx
mov edx, dword [0x432378]
mov dword [ebp - 0x54], ecx
mov ecx, dword [0x432374]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x43237c]
mov dword [ebp - 0x44], edx
mov edx, dword [0x432384]
mov dword [ebp - 0x48], ecx
mov ecx, dword [0x432380]
mov dword [ebp - 0x40], eax
mov eax, dword [0x43958c]
mov dword [ebp - 0x38], edx
add esp, 0xc
lea edx, [ebp - 0x54]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x43957c]
mov edx, dword [0x439588]
mov ecx, dword [eax]
push str.SampleGrab
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
push 0x439590
push 0x4343bc
push 1
push esi
push 0x43439c
call ebx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x43957c]
mov edx, dword [0x439590]
mov ecx, dword [eax]
push str.NullRender
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov edx, dword [0x439590]
mov eax, dword [0x439580]
mov ecx, dword [eax]
push edx
mov edx, dword [0x439588]
push edx
mov edx, dword [0x439584]
push edx
push str.vids
push 0x4323d8
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x43957c]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x439594
push 0x4323e8
push eax
call edx
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x439594]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov dword [0x439564], eax
cmp eax, esi
je 0x40a6b2
cmp eax, 1
je 0x40a692
jmp 0x40a444
mov dword [ebp - 0x58], esi
mov eax, dword [0x43958c]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x58]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a7dc
cmp dword [ebp - 0x58], esi
je 0x40a6b5
mov eax, dword [0x439594]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push eax
call edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.0041ceb7
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5c], ebx
cmp ebx, esi
je 0x40a444
mov eax, dword [0x43958c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x58]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
mov eax, dword [0x43958c]
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov dword [0x439564], eax
cmp eax, esi
jne 0x40a444
lea edx, [ebp - 0x28]
call fcn.00409e70
test eax, eax
je 0x40a444
cmp dword [ebp - 0x14], 0x58
jb 0x40a444
mov edi, dword [ebp - 0x10]
cmp edi, esi
je 0x40a444
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x34]
push ebx
call fcn.00409ee0
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x38]
add esp, 4
push ecx
mov ecx, dword [ebp - 0x60]
mov ebx, eax
push edx
push ebx
call fcn.0040a030
add esp, 0xc
push ebx
call fcn.0041d848
xor esi, esi
add esp, 4
cmp dword [ebp - 0x14], esi
je 0x40a7a6
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x40a7b8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0041d848
add esp, 4
call fcn.0040a210
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
cmp eax, 0x80040227
je 0x40a6b5
jmp 0x40a444