Function at 0x140014800
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x560], rbx
mov rax, qword [0x1400a0008]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov r14, rdx
mov rsi, rcx
lea rax, str.CDirectShowCameraImp::Connect
mov qword [rsp + 0x30], rax
lea r15, [0x1400848d0]
mov qword [rsp + 0x28], r15
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 2]
lea r8, [0x1400a4128]
lea edx, [r13 + 0x4f]
lea rcx, str...SharedDirectShowCamera.cpp
call fcn.140002ed0
cmp byte [rsi + 0x38], r13b
jne 0x140014d44
test r14, r14
je 0x140014d44
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
or rbx, 0xffffffffffffffff
mov rdi, rbx
inc rdi
cmp byte [r14 + rdi], r13b
jne 0x1400148a2
inc edi
lea r8, [rsp + 0x58]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140002c80
movsxd rdx, edi
mov r9, rdx
mov r8, r14
mov rcx, qword [rsp + 0x50]
call fcn.140001490
test eax, eax
je 0x14001490a
cmp eax, 0xc
je 0x1400148ff
cmp eax, 0x16
je 0x1400148f4
cmp eax, 0x22
je 0x1400148f4
cmp eax, 0x50
je 0x14001490a
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov ecx, 0x80070057
call fcn.1400015b0
int3
mov ecx, 0x8007000e
call fcn.1400015b0
int3
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rbp - 0x10], xmm1
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0x10], xmm1
movaps xmm0, xmmword [rbp - 0x70]
movaps xmmword [rbp + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movaps xmmword [rbp + 0x30], xmm1
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x40], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x50], xmm1
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0x60], xmm0
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
mov r9d, 2
lea r8, [0x1400a4128]
lea edx, [r9 + 0x52]
lea rcx, str...SharedDirectShowCamera.cpp
call fcn.140002ed0
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x14001499b
call fcn.14005d86c
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov r8d, 3
mov rdx, r14
lea rcx, [rbp - 0x20]
call fcn.140005ac0
nop
mov rdx, qword [rbp - 0x20]
cmp word [rdx], 0
jne 0x1400149c5
mov rbx, r13
jmp 0x1400149cf
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400149c5
lea rdi, [rsi + 0x40]
mov r8, rbx
mov rcx, rdi
call fcn.140015860
nop
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x1400149f1
call fcn.14005d86c
cmp qword [rdi + 0x18], 8
jb 0x1400149fd
mov rbx, qword [rdi]
jmp 0x140014a00
mov rbx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140014a0c
mov rcx, qword [rdi]
jmp 0x140014a0f
mov rcx, rdi
mov rax, qword [rdi + 0x10]
lea rax, [rcx + rax*2]
cmp qword [rdi + 0x18], 8
jb 0x140014a23
mov r12, qword [rdi]
jmp 0x140014a26
mov r12, rdi
mov r14, r13
mov r15, rax
sub r15, r12
inc r15
shr r15, 1
cmp r12, rax
cmova r15, r13
test r15, r15
je 0x140014a5d
sub r12, rbx
movzx ecx, word [rbx + r12]
call fcn.14005dc94
mov word [rbx], ax
lea rbx, [rbx + 2]
inc r14
cmp r14, r15
jne 0x140014a44
mov rcx, rsi
call fcn.140014d80
test al, al
je 0x140014a78
cmp qword [rsi + 0x18], 0
jne 0x140014a78
mov rcx, rsi
call fcn.140014ed0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140014ace
cmp qword [rdi + 0x18], 8
jb 0x140014a8b
mov rdi, qword [rdi]
mov rax, qword [rcx]
mov r8, rdi
mov rdx, qword [rsi + 0x18]
call qword [rax + 0x18]
test eax, eax
jns 0x140014ace
mov dword [rsp + 0x30], eax
lea rax, str.Failed_at_m_pGraphBuilder__AddFilter._Error_Code__0x_08x
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 1
lea r8, [0x1400a4128]
lea edx, [r9 + 0x65]
lea rcx, str...SharedDirectShowCamera.cpp
call fcn.140002ed0
cmp qword [rsi + 8], 0
je 0x140014d44
cmp qword [rsi + 0x20], 0
jne 0x140014d44
lea rdi, [rsi + 0x28]
cmp qword [rdi], 0
jne 0x140014d44
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.14005b890
mov dword [rbp - 0x20], 0x2e
xor edx, edx
mov r8d, 0x204
lea rcx, [rbp - 0x1c]
call fcn.14005b890
lea rdx, [rbp - 0x20]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x1f0]
xor r8d, r8d
lea rdx, str.Camera_
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140014b61
lea rcx, [rsi + 0x60]
lea r8, [rbp + 0x1f0]
mov edx, 0x104
call fcn.14006070c
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
lea r8, [rsi + 0x60]
mov qword [rsp + 0x20], rdi
lea r9, [rsi + 0x20]
lea rdx, [0x140079158]
call qword [rax + 0x28]
test eax, eax
jns 0x140014bb5
mov dword [rsp + 0x30], eax
lea rax, str.Failed_at_m_pSampleCaptureGraphBuilder__SetOutputFileName._Error_Code__0x_08x
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 1
lea r8, [0x1400a4128]
lea edx, [r9 + 0x78]
lea rcx, str...SharedDirectShowCamera.cpp
call fcn.140002ed0
mov rcx, qword [rsi + 8]
mov rax, qword [rsi + 0x20]
mov r10, qword [rcx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9, qword [rsi + 0x18]
lea r8, [0x140079168]
lea rdx, [0x1400791b8]
call qword [r10 + 0x38]
test eax, eax
jns 0x140014c16
mov dword [rsp + 0x30], eax
lea rax, str.Failed_at_m_pSampleCaptureGraphBuilder__RenderStream._Error_Code__0x_08x
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 1
lea r8, [0x1400a4128]
lea edx, [r9 + 0x7c]
lea rcx, str...SharedDirectShowCamera.cpp
call fcn.140002ed0
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x40], rax
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
mov word [rsp + 0x38], r13w
mov word [rsp + 0x30], r13w
mov qword [rsp + 0x28], r13
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], r8
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400791b8]
call qword [rax + 0x40]
mov edi, eax
test eax, eax
jns 0x140014c90
mov dword [rsp + 0x30], eax
lea rax, str.Failed_at_m_pSampleCaptureGraphBuilder__ControlStream._Error_Code__0x_08x
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 1
lea r8, [0x1400a4128]
mov edx, 0x83
lea rcx, str...SharedDirectShowCamera.cpp
call fcn.140002ed0
test edi, edi
setns al
mov byte [rsi + 0x39], al
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
lea r8, [rsi + 0x30]
lea rdx, [0x140079128]
call qword [rax]
test eax, eax
jns 0x140014ce3
mov dword [rsp + 0x30], eax
lea rax, str.Failed_at_m_pGraphBuilder__QueryInterface._Error_Code__0x_08x
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 1
lea r8, [0x1400a4128]
mov edx, 0x89
lea rcx, str...SharedDirectShowCamera.cpp
call fcn.140002ed0
cmp qword [rsi + 0x20], 0
je 0x140014cf6
cmp qword [rsi + 0x30], 0
mov ecx, 1
jne 0x140014cf9
mov ecx, r13d
mov byte [rsi + 0x38], cl
lea rdx, str.successful
lea rax, str.fail
test cl, cl
cmovne rax, rdx
mov qword [rsp + 0x30], rax
lea rax, str.CDirectShowCameraImp::Connect_is__s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 1
lea r8, [0x1400a4128]
mov edx, 0x8d
lea rcx, str...SharedDirectShowCamera.cpp
call fcn.140002ed0
movzx eax, byte [rsi + 0x38]
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.14003aa30
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret