Function at 0x18001e110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rsi, rdx
mov rbp, rcx
mov ecx, 0x330
call qword [sym.imp.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rbx, rax
xor edx, edx
mov r8d, 0x330
mov rcx, rax
call sub.MSVCR100.dll_memset
lea rcx, [rbx + 8]
mov r8, rbp
mov edx, 0x200
call qword [sym.imp.MSVCR100.dll_strcpy_s]
lea rdx, str.VID_
mov rcx, rbp
call qword [sym.imp.MSVCR100.dll_strstr]
test rax, rax
je 0x18001e189
lea r9, [rbx + 6]
lea r8, [rbx + 4]
lea rdx, str.VID__xPID__x
mov rcx, rax
call qword [sym.imp.MSVCR100.dll_sscanf]
mov ecx, 0x120
call qword [sym.imp.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
test rax, rax
je 0x18001e1a6
mov rcx, rax
call fcn.18001cf60
mov rdi, rax
jmp 0x18001e1a8
xor edi, edi
lea rdx, str.VID_048DPID_93
mov rcx, rbp
call qword [sym.imp.MSVCR100.dll_strstr]
test rax, rax
je 0x18001e27a
mov dword [rbx], 1
xor edx, edx
mov rcx, rdi
call fcn.18001d360
test eax, eax
je 0x18001e233
mov qword [rbx + 0x208], rdi
mov rcx, rbx
call fcn.18001e530
mov r11d, dword [0x18005ec28]
cmp r11d, 2
jne 0x18001e1fa
cmp dword [0x18005ed00], 0
je 0x18001e210
call fcn.18001d8f0
mov dword [0x18005ed00], 0
mov r11d, dword [0x18005ec28]
mov rax, qword [rbx + 0x224]
cmp rax, qword [str.U9RP934A]
je 0x18001e3ec
cmp r11d, 2
jne 0x18001e3ec
jmp 0x18001e3e1
mov r8, rbp
lea rdx, str.Open_device__s_failed.
mov ecx, 2
call sym.CACapture.dll_CA_Log
mov qword [rbx + 0x208], 0
test rdi, rdi
je 0x18001e268
mov rcx, rdi
call fcn.18001d000
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
cmp dword [0x18005ec28], 2
jne 0x18001e3ec
jmp 0x18001e3e1
lea rdx, str.VID_32EDPID_32
mov rcx, rbp
call qword [sym.imp.MSVCR100.dll_strstr]
test rax, rax
je 0x18001e36c
mov dword [rbx], 1
xor edx, edx
mov rcx, rdi
call fcn.18001d360
test eax, eax
je 0x18001e32e
mov qword [rbx + 0x208], rdi
cmp dword [0x18005ec28], 1
jne 0x18001e30b
lea rcx, [rsp + 0x68]
call fcn.18001b010
nop
lea r8, str._fyhdcp.ini
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1800071d0
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea rcx, [rsp + 0x60]
cmp eax, 0xffffffff
je 0x18001e303
call qword [sym.imp.mfc100.dll_Ordinal_889]
jmp 0x18001e30b
call qword [sym.imp.mfc100.dll_Ordinal_889]
jmp 0x18001e321
lea rdx, str.Enable_HDCP.
mov ecx, 2
call sym.CACapture.dll_CA_Log
call fcn.18001d8f0
mov rcx, rbx
call fcn.18001e530
jmp 0x18001e3ec
mov r8, rbp
lea rdx, str.Open_device__s_failed.
mov ecx, 2
call sym.CACapture.dll_CA_Log
mov qword [rbx + 0x208], 0
test rdi, rdi
je 0x18001e3ec
mov rcx, rdi
call fcn.18001d000
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x18001e3ec
lea rdx, str.VID_1E4EPID_7102
mov rcx, rbp
call qword [sym.imp.MSVCR100.dll_strstr]
test rax, rax
je 0x18001e3a3
mov dword [rbx], 2
cmp dword [0x18005ec28], 2
jne 0x18001e3ec
call fcn.18002cd00
cmp eax, 1
je 0x18001e3ec
lea rdx, str.Find_a_LXT_device__but_is_not_FLINT_
jmp 0x18001e3d7
lea rdx, str.VID_2207PID_0823
mov rcx, rbp
call qword [sym.imp.MSVCR100.dll_strstr]
test rax, rax
je 0x18001e3f1
mov dword [rbx], 3
cmp dword [0x18005ec28], 2
jne 0x18001e3ec
cmp dword [0x18005ed04], 0
je 0x18001e3ec
lea rdx, str.Find_a_7_cun_device__but_is_not_my_device_
mov ecx, 2
call fcn.180035240
test rsi, rsi
je 0x18001e3ec
mov dword [rsi], 0xffffffff
mov rax, rbx
jmp 0x18001e3fc
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret