Function at 0x413d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x18c
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [eax + 0xc]
mov dword [esp + 0x164], 0
mov dword [esp + 0x15c], str.vids
test edi, edi
mov dword [esp + 0x160], 0x14d101c
jne 0x4140c7
mov esi, dword [eax + 0x58]
mov dword [esp + 0x3c], 0x110740f
mov dword [esp + 0x38], 1
test esi, esi
je 0x414148
mov eax, dword [ecx]
lea edx, [esp + 0x164]
mov dword [esp + 0x16c], 0
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [eax + 0x28]
sub esp, 8
test eax, eax
jne 0x41417e
mov ebp, dword [esp + 0x1a0]
test ebp, ebp
je 0x414155
lea ebp, [esp + 0x44]
jmp 0x413e4a
mov eax, dword [esp + 0x174]
test eax, eax
je 0x413e16
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esp + 0x170]
test eax, eax
je 0x413e2c
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esp + 0x168]
cmp ebx, eax
je 0x413e42
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test ebx, ebx
jne 0x414082
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0x168]
mov edx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
test eax, eax
mov esi, eax
jne 0x414080
mov eax, esi
mov ecx, 0x42
mov edi, ebp
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0
mov edx, dword [eax]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
cmp dword [esp + 0x48], 1
jne 0x413e00
mov eax, dword [esp + 0x168]
lea ecx, [esp + 0x170]
mov ebx, esi
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x14cef7c
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
mov edi, eax
jne 0x413e00
mov eax, dword [esp + 0x170]
lea edx, [esp + 0x17c]
mov ebx, edi
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x14c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14c9fdc
mov dword [esp], eax
call dword [ecx + 0x10]
sub esp, 0x20
test eax, eax
mov esi, eax
mov edx, dword [esp + 0x2c]
jne 0x413e00
mov dword [esp + 8], 0x10
mov ebx, esi
mov dword [esp + 4], 0x14d139c
mov dword [esp], edx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x413e00
mov edi, dword [esp + 0x1a0]
test edi, edi
je 0x4141a4
mov esi, dword [esp + 0x38]
test esi, esi
je 0x413fce
lea eax, [esp + 0x16c]
mov ecx, dword [esp + 0x168]
mov dword [esp], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
call fcn.004138f0
mov ecx, dword [esp + 0x16c]
test ecx, ecx
je 0x413e00
mov eax, dword [esp + 0x168]
lea ecx, [esp + 0x174]
xor ebx, ebx
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x30]
sub esp, 8
test eax, eax
jne 0x413e00
mov eax, dword [esp + 0x174]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x14]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
lea esi, [esp + 0x178]
jmp 0x41404c
mov edx, dword [esp + 0x30]
mov dword [esp + 8], 0x10
mov ebx, dword [esp + 0x178]
mov eax, dword [esp + edx*4 + 0x15c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x414286
mov dword [esp], ebx
call edi
sub esp, 4
mov eax, dword [esp + 0x174]
mov edx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
test eax, eax
je 0x414016
xor ebx, ebx
jmp 0x413e00
xor ebx, ebx
mov eax, dword [esp + 0x164]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
xor eax, eax
sub esp, 4
mov edx, dword [esp + 0x1a0]
test edx, edx
je 0x4140bc
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4140e3
test ebx, ebx
je 0x414292
mov edx, dword [esp + 0x1a0]
xor eax, eax
mov dword [edx], ebx
add esp, 0x18c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0x1107415
je 0x414120
mov dword [esp + 0x38], 0
jmp 0x413dbd
mov eax, dword [esp + 0x16c]
test eax, eax
jne 0x4140a9
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], str.Could_not_set__s_options_n
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 0x10
mov dword [esp], eax
call fcn.00acfa00
mov eax, 0xfffffffb
jmp 0x4140bc
mov edx, dword [eax + 0x78]
mov dword [esp + 0x38], 1
test edx, edx
jne 0x413dbd
mov eax, dword [eax + 0x70]
mov edx, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x38], edx
jne 0x413dbd
jmp 0x4140d6
mov ebx, dword [eax + 0x5c]
test ebx, ebx
jne 0x413dbd
jmp 0x4140d6
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov dword [esp + 8], str.DirectShow__s_device_options_n
mov dword [esp + 4], 0x20
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.00acfa00
jmp 0x413df5
mov eax, dword [esp + 0x34]
mov dword [esp + 8], str.Could_not_enumerate_pins._n
mov dword [esp + 4], 0x10
mov dword [esp], eax
call fcn.00acfa00
mov eax, 0xfffffffb
jmp 0x4140bc
lea edi, [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call esi
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call fcn.00ad00c0
mov edx, dword [esp + 0x2c]
test eax, eax
mov ebx, eax
je 0x41423c
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call esi
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str._Pin___s__n
mov dword [esp + 4], 0x20
mov dword [esp], eax
call fcn.00acfa00
mov dword [esp], ebx
xor ebx, ebx
call fcn.00ad0250
mov ecx, dword [esp + 0x168]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp], 0
call fcn.004138f0
jmp 0x413e00
mov ebx, dword [esp + 0x168]
jmp 0x413e00
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], str.Could_not_find_output_pin_from__s_capture_device._n
mov dword [esp + 0xc], edx
jmp 0x4140fe