Function at 0x14000c2bc
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, rcx
xor r13d, r13d
xor eax, eax
lock cmpxchg dword [rcx + 0x16c], r13d
je 0x14000c675
xor eax, eax
lock cmpxchg dword [rcx + 0x168], r13d
je 0x14000c675
xor eax, eax
lock cmpxchg dword [rcx + 0x170], r13d
je 0x14000c675
lea esi, [r13 + 1]
mov eax, esi
lock xadd dword [rcx + 0x164], eax
add eax, esi
cmp eax, dword [rcx + 0x1bc]
jbe 0x14000c345
lock add dword [rcx + 0x18c], esi
lock dec dword [rcx + 0x164]
jmp 0x14000c675
mov eax, esi
lock xadd dword [rcx + 0x1b4], eax
add eax, esi
cmp eax, dword [rcx + 0x1c4]
jbe 0x14000c41e
lock add dword [rcx + 0x190], esi
mov qword [rbp + 0x6f], r13
mov rcx, qword [rcx + 0x70]
mov rax, qword [rcx]
lea rdx, [rbp + 0x6f]
mov rax, qword [rax + 0x50]
call qword [case.0x14002394e.0]
test eax, eax
jns 0x14000c3c3
lea r14, str.HRESULT
mov qword [rbp - 0x51], r14
mov dword [rbp - 0x49], eax
mov word [rbp - 0x45], r13w
lea r15, [0x140028ca8]
mov qword [rbp - 0x59], r15
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
lea rax, str.CMovieRecorderMF::CreateVideoSample__hr_
mov ecx, 0x130851f
mov qword [rsp + 0x20], rax
call fcn.140009690
jmp 0x14000c667
mov rcx, qword [rdi + 0x118]
mov rax, qword [rcx]
mov r8, qword [rbp + 0x6f]
mov edx, dword [rdi + 0x124]
mov rax, qword [rax + 0x38]
call qword [case.0x14002394e.0]
test eax, eax
jns 0x14000c667
lea r14, str.HRESULT
mov qword [rbp - 0x39], r14
mov dword [rbp - 0x31], eax
mov word [rbp - 0x2d], r13w
lea r15, [0x140028ca8]
mov qword [rbp - 0x41], r15
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
lea rax, str.CMovieRecorderMF::CreateVideoSample__m_spSinkWriter__SendStreamTick_m_videoStreamIndex__timestamp__
mov ecx, 0x1308520
jmp 0x14000c3b4
mov rbx, r13
mov qword [rbp + 0x77], rbx
mov qword [rbp + 0x67], r13
mov byte [rbp - 0x79], r13b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rbp - 0x61], r13b
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x71], xmm1
cmp qword [rcx + 0x118], r13
je 0x14000c64c
cmp dword [rcx + 0x124], 0xffffffff
je 0x14000c64c
lea rbx, [rcx + 0x78]
test rbx, rbx
je 0x14000c46f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, rbx
neg rax
sbb r14, r14
and r14, rbx
mov ecx, dword [rdi + 0x12c]
lea eax, [rcx + 1]
mov dword [rdi + 0x12c], eax
test ecx, ecx
mov rcx, qword [rdi + 0x70]
jne 0x14000c4a9
mov qword [rdi + 0x58], r13
mov rax, qword [rcx]
movabs rdx, 0x7fffffffffffffff
mov rax, qword [rax + 0x68]
jmp 0x14000c4b4
mov rax, qword [rcx]
lea rdx, [rbp + 0x67]
mov rax, qword [rax + 0x50]
call qword [case.0x14002394e.0]
test eax, eax
jns 0x14000c4dc
mov edx, eax
mov rcx, rdi
call fcn.14000fa40
test r14, r14
je 0x14000c4d7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x14000c667
mov rax, qword [rdi + 0x58]
cmp qword [rbp + 0x67], rax
jge 0x14000c501
lock add dword [rdi + 0x18c], esi
test r14, r14
je 0x14000c4fc
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x14000c667
cmp byte [rbp - 0x79], r13b
jne 0x14000c516
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov byte [rbp - 0x79], sil
lea rdx, [rbp + 0x77]
mov rcx, rdi
call fcn.14000ef0c
mov r12d, eax
lea rcx, [rsp + 0x30]
call fcn.14001067c
mov rbx, qword [rbp + 0x77]
test r12d, r12d
js 0x14000c55e
nop dword [rax + rax]
mov rdx, qword [rbp + 0x67]
mov qword [rdi + 0x58], rdx
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x120]
call qword [case.0x14002394e.0]
mov r12d, eax
test r14, r14
je 0x14000c56d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea r14, str.HRESULT
lea r15, [0x140028ca8]
test r12d, r12d
js 0x14000c5fa
cmp byte [rbp - 0x61], r13b
jne 0x14000c594
lea rcx, [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov byte [rbp - 0x61], sil
mov rcx, qword [rdi + 0x118]
mov rax, qword [rcx]
mov r8, rbx
mov edx, dword [rdi + 0x124]
mov rax, qword [rax + 0x30]
call qword [case.0x14002394e.0]
mov r12d, eax
lea rcx, [rbp - 0x71]
call fcn.14001067c
nop dword [rax]
test r12d, r12d
jns 0x14000c690
mov qword [rbp - 0x21], r14
mov dword [rbp - 0x19], r12d
mov word [rbp - 0x15], r13w
mov qword [rbp - 0x29], r15
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rax, str.CMovieRecorderMF::CreateVideoSample__hr_
mov qword [rsp + 0x20], rax
mov ecx, 0x1308523
call fcn.140009690
nop
mov rcx, qword [rdi + 0x118]
mov rax, qword [rcx]
mov r8, qword [rbp + 0x67]
mov edx, dword [rdi + 0x124]
mov rax, qword [rax + 0x38]
call qword [case.0x14002394e.0]
test eax, eax
jns 0x14000c64c
mov qword [rbp + 0xf], r14
mov dword [rbp + 0x17], eax
mov word [rbp + 0x1b], r13w
mov qword [rbp + 7], r15
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea rax, str.CMovieRecorderMF::CreateVideoSample__m_spSinkWriter__SendStreamTick_m_videoStreamIndex__timestamp__
mov ecx, 0x1308541
mov qword [rsp + 0x20], rax
call fcn.140009690
nop
test rbx, rbx
je 0x14000c662
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x10]
call qword [case.0x14002394e.0]
nop
test sil, sil
je 0x14000c66e
lock dec dword [rdi + 0x1b4]
lock dec dword [rdi + 0x164]
mov rbx, qword [rsp + 0x138]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rdi + 0x118]
mov rax, qword [rcx]
mov r8, rdi
mov edx, dword [rdi + 0x124]
mov rax, qword [rax + 0x40]
call qword [case.0x14002394e.0]
test eax, eax
jns 0x14000c6e9
lea r14, str.HRESULT
mov qword [rbp - 9], r14
mov dword [rbp - 1], eax
mov word [rbp + 3], r13w
lea r15, [0x140028ca8]
mov qword [rbp - 0x11], r15
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
lea rax, str.CMovieRecorderMF::CreateVideoSample__hrPlaceMarker_
mov ecx, 0x1308540
jmp 0x14000c641
mov sil, r13b
jmp 0x14000c64c