Function at 0x140061960
Capabilities:
Check for time delay via queryperformancecounter
Reference absolute stream path on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140173240]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0x208], 0
jne 0x1400619a4
jmp 0x140061f02
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [rsp + 0x40], 0
xor eax, eax
cmp eax, 1
je 0x140061f02
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0x1a0], 0
je 0x1400619f8
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0x1a0], 7
je 0x1400619f8
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0x1a0], 3
jne 0x140061a3d
mov rax, qword [rsp + 0x200]
add rax, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x200]
add rax, 0x428
mov rcx, rax
call fcn.14006f160
mov rax, qword [rsp + 0x200]
add rax, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rax, qword [rsp + 0x200]
add rax, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x200]
add rax, 0x428
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.14001fd90
mov rax, qword [rsp + 0x200]
add rax, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rax, qword [rsp + 0x200]
add rax, 0x428
lea rdx, [rsp + 0xc0]
mov rcx, rax
call fcn.14001f260
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14001f170
movzx eax, al
test eax, eax
je 0x140061ef2
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
mov eax, dword [rax]
mov dword [rsp + 0x78], eax
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
cmp dword [rax + 0x18], 0
je 0x140061ea2
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
cmp qword [rax + 0x10], 0
je 0x140061b6c
mov rax, qword [rsp + 0x200]
cmp qword [rax + 0x3f8], 0
je 0x140061b4f
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
xor edx, edx
mov rax, qword [rax + 0x10]
mov ecx, 0x3e8
div rcx
mov qword [rsp + 0x80], rax
xor edx, edx
mov rcx, qword [rsp + 0x200]
mov rax, qword [rcx + 0x3f8]
mov ecx, 0x3e8
div rcx
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
mov rcx, qword [rsp + 0x200]
mov rax, qword [rax + 0x10]
mov qword [rcx + 0x3f8], rax
cmp dword [rsp + 0x40], 0x3e8
jbe 0x140061b7e
mov dword [rsp + 0x40], 0x21
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x200]
mov rax, qword [rax + 0x3f0]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
imul rax, rax, 0xf4240
cqo
idiv qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
cvtsi2sd xmm0, qword [rsp + 0x98]
divsd xmm0, qword [0x14014fee0]
xor eax, eax
comisd xmm0, xmmword [0x14014ff18]
jb 0x140061bff
subsd xmm0, qword [0x14014ff18]
comisd xmm0, xmmword [0x14014ff18]
jae 0x140061bff
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x40]
cmp rax, qword [rsp + 0x68]
jbe 0x140061c29
mov eax, dword [rsp + 0x40]
sub rax, qword [rsp + 0x68]
mov dword [rsp + 0x40], eax
jmp 0x140061c31
mov dword [rsp + 0x40], 1
mov rax, qword [rsp + 0x200]
cmp qword [rax + 0x3f0], 0
jne 0x140061c4b
mov dword [rsp + 0x40], 1
mov r8d, dword [rsp + 0x40]
lea rdx, str.video_duration:_d
lea rcx, str.D:_svnplayersvnTLDrivingRecordPlayWndDlg.cpp_6129_:CPlayVideoWnd::VideoTLThreadRealization
call fcn.1400c46e0
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x200]
add rax, 0x3f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
movzx eax, byte [rax + 0x1fa420]
cmp eax, 3
jl 0x140061cd0
mov dword [rsp + 0x50], 3
jmp 0x140061cd8
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
add rax, 0x20
mov rcx, qword [rsp + 0x200]
add rcx, 0x2b0
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x5c]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0xd0]
mov qword [rsp + 0x20], rdx
mov r9d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xa0]
mov r8d, dword [rdx + 0x18]
mov rdx, rax
call qword [sym.imp.tlgpu.dll_TLPLAYER_DecodeFrame]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x140061d70
mov r8d, dword [rsp + 0x54]
lea rdx, str.TLPLAYER_DecodeFrame_error_ret:_d
lea rcx, str.D:_svnplayersvnTLDrivingRecordPlayWndDlg.cpp_6148_:CPlayVideoWnd::VideoTLThreadRealization
call fcn.1400c46e0
nop
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0x1a0], 8
jne 0x140061d93
mov rax, qword [rsp + 0x200]
mov dword [rax + 0x1a0], 2
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0x1a0], 2
jne 0x140061de4
xor eax, eax
cmp eax, 1
je 0x140061de4
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0x1a0], 2
je 0x140061dbe
jmp 0x140061de4
mov rax, qword [rsp + 0x200]
add rax, 0x2b0
mov rcx, rax
call qword [sym.imp.tlgpu.dll_TLPLAYER_ShowLastFrame]
mov ecx, 0x19
call fcn.1400618a0
nop
jmp 0x140061da4
mov rax, qword [rsp + 0x200]
mov rax, qword [rax + 0x148]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140061ea2
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0x1a0], 1
jne 0x140061ea2
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
mov rcx, qword [rsp + 0xa8]
mov r9d, dword [rcx + 0x1fa42c]
mov rcx, qword [rsp + 0xb0]
mov r8d, dword [rcx + 0x1fa428]
mov edx, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
call fcn.140053fd0
nop
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
mov rcx, qword [rsp + 0x200]
mov eax, dword [rax + 0x1c]
cmp dword [rcx + 0x228], eax
ja 0x140061ea2
mov rax, qword [rsp + 0x200]
mov dword [rax + 0x228], 0
mov rax, qword [rsp + 0x200]
add rax, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
mov rcx, qword [rsp + 0x200]
add rcx, 0x428
mov rdx, rax
call fcn.14006f1f0
mov rax, qword [rsp + 0x200]
add rax, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov ecx, 5
call fcn.1400618a0
nop
jmp 0x1400619ba
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140100c60
add rsp, 0x1f0
pop rdi
ret