Function at 0x140061f20
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 rsi
push rdi
sub rsp, 0x378
mov rax, qword [0x140173240]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
nop
xor eax, eax
cmp eax, 1
je 0x140062462
mov rax, qword [rsp + 0x390]
mov rax, qword [rax + 0x148]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x390]
cmp dword [rax + 0x1a0], 0
je 0x140061fab
mov rax, qword [rsp + 0x390]
cmp dword [rax + 0x1a0], 7
je 0x140061fab
mov rax, qword [rsp + 0x390]
cmp dword [rax + 0x1a0], 3
jne 0x140061ff0
mov rax, qword [rsp + 0x390]
add rax, 0x450
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x390]
add rax, 0x478
mov rcx, rax
call fcn.14006f060
mov rax, qword [rsp + 0x390]
add rax, 0x450
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rax, qword [rsp + 0x390]
add rax, 0x450
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x390]
add rax, 0x478
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14001fd90
mov rax, qword [rsp + 0x390]
add rax, 0x450
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rax, qword [rsp + 0x390]
add rax, 0x478
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.14001f260
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14001f170
movzx eax, al
test eax, eax
je 0x140062452
lea rcx, [rsp + 0x38]
call fcn.14001f1f0
movzx eax, word [rax + 0x18]
test eax, eax
je 0x1400623ad
lea rcx, [rsp + 0x38]
call fcn.14001f1f0
cmp qword [rax + 0x10], 0
je 0x140062158
xor eax, eax
cmp eax, 1
je 0x1400620e4
mov rax, qword [rsp + 0x390]
cmp qword [rax + 0x3f8], 0
jbe 0x1400620e2
lea rcx, [rsp + 0x38]
call fcn.14001f1f0
mov rcx, qword [rsp + 0x390]
mov rcx, qword [rcx + 0x3f8]
cmp qword [rax + 0x10], rcx
jbe 0x1400620e0
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x140062098
jmp 0x1400620e4
jmp 0x140062098
mov rax, qword [rsp + 0x390]
cmp qword [rax + 0x448], 0
je 0x14006213b
lea rcx, [rsp + 0x38]
call fcn.14001f1f0
xor edx, edx
mov rax, qword [rax + 0x10]
mov ecx, 0x3e8
div rcx
mov qword [rsp + 0x50], rax
xor edx, edx
mov rcx, qword [rsp + 0x390]
mov rax, qword [rcx + 0x448]
mov ecx, 0x3e8
div rcx
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x38]
call fcn.14001f1f0
mov rcx, qword [rsp + 0x390]
mov rax, qword [rax + 0x10]
mov qword [rcx + 0x448], rax
cmp dword [rsp + 0x34], 0x3e8
jbe 0x14006216a
mov dword [rsp + 0x34], 0x21
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x390]
mov rax, qword [rax + 0x440]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
imul rax, rax, 0xf4240
cqo
idiv qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
cvtsi2sd xmm0, qword [rsp + 0x68]
divsd xmm0, qword [0x14014fee0]
xor eax, eax
comisd xmm0, xmmword [0x14014ff18]
jb 0x1400621dc
subsd xmm0, qword [0x14014ff18]
comisd xmm0, xmmword [0x14014ff18]
jae 0x1400621dc
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp rax, qword [rsp + 0x48]
jbe 0x140062206
mov eax, dword [rsp + 0x34]
sub rax, qword [rsp + 0x48]
mov dword [rsp + 0x34], eax
jmp 0x14006220e
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x390]
cmp qword [rax + 0x440], 0
jne 0x140062228
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x390]
mov rcx, qword [rcx + 0x448]
cmp qword [rax + 0x3f8], rcx
jbe 0x140062279
mov rax, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x390]
mov rcx, qword [rcx + 0x448]
mov rax, qword [rax + 0x3f8]
sub rax, rcx
cmp rax, 0xf4240
jbe 0x140062279
mov dword [rsp + 0x34], 1
mov r8d, dword [rsp + 0x34]
lea rdx, str.audio_duration:_d
lea rcx, str.D:_svnplayersvnTLDrivingRecordPlayWndDlg.cpp_6310_:CPlayVideoWnd::AudioTLThreadRealization
call fcn.1400c46e0
mov rax, qword [rsp + 0x390]
add rax, 0x440
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x281
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x390]
add rax, 0x2b0
mov edx, dword [0x1405fd818]
mov rcx, rax
call qword [sym.imp.tlgpu.dll_TLPLAYER_SetAudioVolume]
lea rax, [rsp + 0x90]
lea rcx, [0x1405fd7a0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x390]
add rax, 0x2b0
lea r8, [rsp + 0x90]
movzx edx, byte [0x1401753fc]
mov rcx, rax
call qword [sym.imp.tlgpu.dll_TLPLAYER_EnableAudioEqualizer]
cmp dword [0x1405fda30], 0
je 0x140062333
mov byte [rsp + 0x30], 1
jmp 0x140062338
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x390]
add rax, 0x2b0
mov r8d, dword [0x1405fda34]
movzx edx, byte [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.tlgpu.dll_TLPLAYER_EnableRemoveNoise]
lea rcx, [rsp + 0x38]
call fcn.14001f1f0
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x38]
call fcn.14001f1f0
add rax, 0x1a
mov rcx, qword [rsp + 0x390]
add rcx, 0x2b0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0xd0]
mov edx, dword [rsp + 0x44]
mov r8d, edx
mov rdx, rax
call qword [sym.imp.tlgpu.dll_TLPLAYER_DecordOneAudioFrame]
nop
mov rax, qword [rsp + 0x390]
cmp dword [rax + 0x1a0], 2
jne 0x1400623fe
xor eax, eax
cmp eax, 1
je 0x1400623fe
mov rax, qword [rsp + 0x390]
cmp dword [rax + 0x1a0], 2
je 0x1400623d8
jmp 0x1400623fe
mov rax, qword [rsp + 0x390]
add rax, 0x2b0
mov rcx, rax
call qword [sym.imp.tlgpu.dll_TLPLAYER_ShowLastFrame]
mov ecx, 0x19
call fcn.1400618a0
nop
jmp 0x1400623be
mov rax, qword [rsp + 0x390]
add rax, 0x450
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rsp + 0x390]
add rax, 0x478
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140070ca0
nop
mov rax, qword [rsp + 0x390]
add rax, 0x450
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov ecx, 5
call fcn.1400618a0
nop
jmp 0x140061f59
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140100c60
add rsp, 0x378
pop rdi
pop rsi
ret