Function at 0x401e30
Capabilities:
Enumerate devices by category

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406c0e
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
call fcn.00401b50
test eax, eax
jne 0x401e6f
push str.Cannot_instantiate_graph_builder
call fcn.00404a30
add esp, 4
xor eax, eax
jmp 0x4023dd
lea eax, [esp + 0x18]
push eax
push 0x407300
push 1
push ebx
push 0x4073c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x401e92
xor eax, eax
jmp 0x4023dd
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ebx
push edx
mov ecx, dword [eax]
push 0x4073b0
push eax
call dword [ecx + 0xc]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, ebx
je 0x401ebe
xor eax, eax
jmp 0x4023dd
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x10]
mov dword [0x40a22c], ebx
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x401fb2
cmp edi, dword [0x40a25c]
je 0x401f22
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
mov edx, dword [eax]
push ecx
push 1
push eax
inc edi
call dword [edx + 0xc]
mov esi, eax
cmp esi, ebx
je 0x401eee
jmp 0x401fb2
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push ecx
push 0x407440
mov byte [0x40a27c], 0
mov edx, dword [eax]
push ebx
push ebx
push eax
call dword [edx + 0x24]
test eax, eax
jl 0x401f90
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push ebx
mov word [esp + 0x38], 8
mov edx, dword [eax]
push ecx
push str.FriendlyName
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x401f86
mov edx, dword [esp + 0x3c]
push ebx
push ebx
push 0x50
push 0x40a27c
push 0xffffffffffffffff
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push 0x40a22c
push 0x4072f0
push ebx
mov edx, dword [eax]
push ebx
push eax
call dword [edx + 0x20]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp dword [0x40a22c], ebx
jne 0x401fde
push esi
push str.Error__x:_Cannot_create_video_capture_filter
call fcn.00404a30
add esp, 8
call fcn.00402400
xor eax, eax
jmp 0x4023dd
call fcn.00401b80
cmp eax, ebx
jne 0x402000
push str.Cannot_instantiate_filtergraph
call fcn.00404a30
add esp, 4
call fcn.00402400
xor eax, eax
jmp 0x4023dd
mov eax, dword [0x40a208]
mov edx, dword [0x40a234]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
je 0x40202f
push str.Cannot_give_graph_to_builder
call fcn.00404a30
add esp, 4
call fcn.00402400
xor eax, eax
jmp 0x4023dd
mov eax, dword [0x40a234]
mov edx, dword [0x40a22c]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
je 0x402060
push eax
push str.Error__x:_Cannot_add_vidcap_to_filtergraph
call fcn.00404a30
add esp, 8
call fcn.00402400
xor eax, eax
jmp 0x4023dd
mov eax, dword [0x40a208]
mov edx, dword [0x40a22c]
push 0x40a218
push 0x4072a0
mov ecx, dword [eax]
push edx
push 0x407370
push eax
call dword [ecx + 0x18]
mov eax, dword [0x40a208]
mov edx, dword [0x40a22c]
push 0x40a224
push 0x4072c0
mov ecx, dword [eax]
push edx
push 0x407370
push eax
call dword [ecx + 0x18]
cmp eax, ebx
je 0x4020b4
push eax
push str.Error__x:_Cannot_find_VCapture:IAMStreamConfig
call fcn.00404a30
add esp, 8
mov eax, dword [0x40a224]
mov dword [0x40a258], 1
cmp eax, ebx
je 0x40212e
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x40212e
mov eax, dword [esp + 0x24]
mov ecx, 4
mov edi, 0x407390
xor edx, edx
lea esi, [eax + 0x2c]
repe cmpsd dword [esi], dword es:[edi]
jne 0x40210a
mov ecx, dword [eax + 0x44]
mov eax, dword [ecx + 0x38]
cmp eax, ebx
jg 0x4020f9
neg eax
push eax
mov eax, dword [ecx + 0x34]
push eax
call fcn.00401bb0
mov eax, dword [esp + 0x2c]
add esp, 8
mov ecx, 4
mov edi, 0x407400
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x402128
mov dword [0x40a258], ebx
mov dword [0x40a254], ebx
push eax
call fcn.00406650
mov eax, dword [0x40a208]
mov edx, dword [0x40a22c]
push ebp
push 0x40a21c
mov ecx, dword [eax]
push 0x407290
push edx
push 0x407370
push eax
call dword [ecx + 0x18]
mov eax, dword [0x40a22c]
xor esi, esi
lea edx, [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [0x40a33c], esi
mov ecx, dword [eax]
push edx
push eax
xor ebp, ebp
call dword [ecx + 0x28]
test eax, eax
jl 0x402287
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40227d
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x5c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
jne 0x40226b
cmp dword [esp + 0x60], esi
jne 0x402261
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push 0x407240
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x402211
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x50]
mov ecx, dword [eax]
push 0x10
push edx
push esi
push esi
push esi
push 0x407380
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x402207
mov ecx, 4
mov edi, 0x407350
lea esi, [esp + 0x4c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x402207
mov ebx, 1
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor esi, esi
cmp ebx, esi
je 0x402261
push 0x34
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, esi
mov dword [esp + 0x16c], esi
je 0x40223e
mov edx, dword [esp + 0x18]
mov ecx, eax
push edx
call fcn.00405530
jmp 0x402240
xor eax, eax
push 0x40a344
mov ecx, eax
mov dword [esp + 0x170], 0xffffffff
mov dword [0x40a33c], eax
call fcn.00405b90
mov ebp, 1
mov eax, dword [esp + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp ebp, esi
je 0x402176
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x40a258]
pop ebp
cmp eax, esi
je 0x4023d8
lea edx, [esp + 0x18]
push edx
push 0x407300
push 1
push esi
push 0x4073c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40239d
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push esi
push edx
mov ecx, dword [eax]
push 0x4073a0
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor ebx, ebx
cmp edi, ebx
je 0x4022e7
mov dword [0x40a254], ebx
jmp 0x4023d8
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x10]
mov dword [0x40a230], ebx
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40235d
mov eax, dword [0x40a260]
cmp esi, eax
mov eax, dword [esp + 0xc]
je 0x402341
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
mov edx, dword [eax]
push ecx
push 1
push eax
inc esi
call dword [edx + 0xc]
test eax, eax
je 0x402311
jmp 0x40235d
mov edx, dword [eax]
push 0x40a230
push 0x4072f0
push ebx
push ebx
push eax
call dword [edx + 0x20]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [0x40a230]
cmp ecx, ebx
jne 0x40237e
mov dword [0x40a254], ebx
push str.Cannot_create_audio_capture_filter
jmp 0x4023d0
mov eax, dword [0x40a234]
push ebx
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
cmp eax, ebx
je 0x4023a6
push eax
push str.Error__x:_Cannot_add_audcap_to_filtergraph
call fcn.00404a30
add esp, 8
call fcn.00402400
xor eax, eax
jmp 0x4023dd
mov eax, dword [0x40a208]
mov edx, dword [0x40a230]
push 0x40a220
push 0x4072c0
mov ecx, dword [eax]
push edx
push 0x407370
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x4023d8
push str.Cannot_find_ACapture:IAMStreamConfig
call fcn.00404a30
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret