Function at 0x1400dc830
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov r13, rdx
mov r14, rcx
mov qword [rbp - 8], rcx
mov qword [rbp], rdx
call fcn.1400c5340
nop
lea rcx, [r14 + 0x48]
call fcn.14000f9b0
nop
lea rax, vtable.DrawPipeline.0
mov qword [r14], rax
lea rax, vtable.DrawPipeline.1.0
mov qword [r14 + 0x48], rax
lea rax, [r14 + 0x60]
mov qword [rsp + 0x40], rax
lea rcx, [rax + 8]
call fcn.140029760
nop
xor r15d, r15d
mov qword [r14 + 0xc0], r15
mov qword [r14 + 0xc8], r15
mov qword [r14 + 0xd8], r15
mov qword [r14 + 0xe0], r15
mov qword [r14 + 0xe8], r15
mov qword [r14 + 0xf0], r15
mov qword [r14 + 0xf8], r15
mov qword [r14 + 0x100], r15
mov qword [r14 + 0x108], r15
mov qword [r14 + 0x110], r15
mov qword [r14 + 0x118], r15
mov qword [r14 + 0x120], r15
mov qword [r14 + 0x128], r15
mov qword [r14 + 0x130], r15
mov qword [r14 + 0x138], r15
mov qword [r14 + 0x140], r15
mov qword [r14 + 0x148], r15
mov qword [r14 + 0x150], r15
mov qword [r14 + 0x158], r15
mov qword [r14 + 0x160], r15
mov qword [r14 + 0x168], r15
mov qword [r14 + 0x170], r15
mov qword [r14 + 0x178], r15
mov qword [r14 + 0x180], r15
mov qword [r14 + 0x188], r15
mov qword [r14 + 0x190], r15
mov qword [r14 + 0x198], r15
mov qword [r14 + 0x1a0], r15
mov qword [r14 + 0x1a8], r15
mov qword [r14 + 0x1b0], r15
mov qword [r14 + 0x1b8], r15
mov qword [r14 + 0x1c0], r15
mov qword [r14 + 0x1c8], r15
mov qword [r14 + 0x1d0], r15
mov qword [r14 + 0x1d8], r15
mov qword [r14 + 0x1e0], r15
mov ecx, 0x190
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::DisplayCapture_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov rcx, rbx
call fcn.1400972b0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x18], xmm0
mov qword [r14 + 0xc0], rbx
mov rbx, qword [r14 + 0xc8]
mov qword [r14 + 0xc8], rdi
lea r12, [r15 - 1]
test rbx, rbx
je 0x1400dca2d
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dca2d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dca2d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov dword [r14 + 0xd0], r15d
mov ecx, 0x110
call fcn.14014f310
mov rsi, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::CapturePipelineSync_.0
mov qword [rsi], rax
lea rdi, [rsi + 0x10]
mov qword [rsp + 0x38], rdi
lea rax, vtable.PipelineElement.0
mov qword [rdi], rax
mov qword [rdi + 8], r15
mov byte [rdi + 0x10], 0
lea rax, vtable.amf::AMFCriticalSection.0
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], r15
mov ecx, 0x28
call fcn.14014f310
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rdi + 0x20], rbx
lea rax, vtable.Pipelines::CapturePipelineSync.0
mov qword [rdi], rax
mov qword [rdi + 0x40], r15
mov qword [rdi + 0x48], r15
mov qword [rdi + 0x50], r15
lea rcx, [rdi + 0x58]
call fcn.14002bab0
nop
mov qword [rdi + 0xf8], r15
mov ecx, 0x18
call fcn.14014f310
mov rbx, rax
mov qword [rsp + 0x38], rax
mov dword [rax], r15d
mov qword [rax + 4], r15
mov qword [rdi + 0x28], rax
mov dword [rax], r15d
mov qword [rax + 4], r15
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rbx + 0x10], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x38], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x40], rax
mov qword [r14 + 0xe8], rdi
mov rbx, qword [r14 + 0xf0]
mov qword [r14 + 0xf0], rsi
test rbx, rbx
je 0x1400dcb77
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dcb77
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dcb77
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x178
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::Upscaling_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov rcx, rbx
call fcn.1400fd0e0
nop
mov qword [r14 + 0xd8], rbx
mov rbx, qword [r14 + 0xe0]
mov qword [r14 + 0xe0], rdi
test rbx, rbx
je 0x1400dcbf9
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dcbf9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dcbf9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x568
call fcn.14014f310
mov rsi, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::IndicatorOverlay_.0
mov qword [rsi], rax
lea rdi, [rsi + 0x10]
mov qword [rsp + 0x40], rdi
mov rcx, rdi
call fcn.1400851e0
nop
lea rcx, [rdi + 0x4d0]
call fcn.14000f9b0
nop
lea rax, vtable.Pipelines::IndicatorOverlay.0
mov qword [rdi], rax
lea rax, vtable.Pipelines::IndicatorOverlay.1.0
mov qword [rdi + 0x4d0], rax
lea rcx, [rdi + 0x500]
mov qword [rsp + 0x30], rcx
add rcx, 8
call fcn.140029760
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x4f0], rax
mov byte [rdi + 0x4f8], 0
mov qword [rdi + 0x148], r15
lea rbx, str.d3aac03d_d527_4b42_aaec_9466c04acc8f
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x148], rax
mov qword [rdi + 0x150], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
mov r8d, 0x24
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140005060
nop
lea r8, str.mutex_
lea rcx, [rbp - 0x48]
call fcn.140009740
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp - 0x48]
call fcn.140004ff0
lea r8, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae r8, qword [rbp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 0x150], rax
lea rcx, [rbp + 0x50]
call fcn.140004ff0
nop
mov qword [r14 + 0xf8], rdi
mov rbx, qword [r14 + 0x100]
mov qword [r14 + 0x100], rsi
test rbx, rbx
je 0x1400dcd9f
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dcd9f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dcd9f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x608
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::ToastOverlay_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov rcx, rbx
call fcn.1400f95f0
nop
mov qword [r14 + 0x108], rbx
mov rbx, qword [r14 + 0x110]
mov qword [r14 + 0x110], rdi
test rbx, rbx
je 0x1400dce21
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dce21
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dce21
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x638
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::InGameUiOverlay_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
movdqu xmmword [rsp + 0x68], xmm0
mov rcx, qword [r13 + 8]
test rcx, rcx
je 0x1400dce6c
lock inc dword [rcx + 8]
mov rcx, qword [r13 + 8]
mov rax, qword [r13]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rcx
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.1400b9d60
nop
mov qword [r14 + 0x118], rbx
mov rbx, qword [r14 + 0x120]
mov qword [r14 + 0x120], rdi
test rbx, rbx
je 0x1400dcecd
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dcecd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dcecd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x540
call fcn.14014f310
mov rbx, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rsi, vtable.std::_Ref_count_obj2_class_Pipelines::PerfMonUiOverlay_.0
mov qword [rax], rsi
lea rdi, [rax + 0x10]
movdqu xmmword [rsp + 0x78], xmm0
mov rdx, qword [r13 + 8]
test rdx, rdx
je 0x1400dcf18
lock inc dword [rdx + 8]
mov rdx, qword [r13 + 8]
mov rax, qword [r13]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rdx
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400c3d70
nop
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x48]
lea rcx, [r14 + 0x128]
call fcn.140029a40
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400dcf8a
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400dcf8a
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dcf8a
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 8]
mov ecx, 0x540
call fcn.14014f310
mov rbx, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
mov qword [rax], rsi
lea rdi, [rax + 0x10]
movdqu xmmword [rbp - 0x78], xmm0
mov rdx, qword [r13 + 8]
test rdx, rdx
je 0x1400dcfcd
lock inc dword [rdx + 8]
mov rdx, qword [r13 + 8]
mov rax, qword [r13]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rdx
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.1400c3d70
nop
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x58]
lea rcx, [r14 + 0x138]
call fcn.140029a40
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400dd03d
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400dd03d
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd03d
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 8]
mov ecx, 0x530
call fcn.14014f310
mov rsi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::InGameUiCursorOverlay_.0
mov qword [rsi], rax
lea rdi, [rsi + 0x10]
mov qword [rsp + 0x38], rdi
mov rcx, rdi
call fcn.1400851e0
nop
lea rcx, [rdi + 0x4d0]
call fcn.14000f9b0
lea rax, vtable.Pipelines::InGameUiCursorOverlay.1.0
mov qword [rdi], rax
lea rax, vtable.Pipelines::InGameUiCursorOverlay.0
mov qword [rdi + 0x4d0], rax
mov word [rdi + 0x4e8], 1
mov byte [rdi + 0x4ea], 0
mov byte [rdi + 0x501], 1
movabs rax, 0x3ff0000000000000
mov qword [rdi + 0x508], rax
mov qword [rdi + 0x510], rax
mov qword [rdi + 0x518], r15
mov qword [rsp + 0x40], r15
mov rax, r15
mov qword [rdi + 0x4ec], rax
mov qword [rdi + 0x4f4], r15
mov dword [rdi + 0x4fc], r15d
mov qword [r14 + 0x158], rdi
mov rbx, qword [r14 + 0x160]
mov qword [r14 + 0x160], rsi
test rbx, rbx
je 0x1400dd13b
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd13b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd13b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x610
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::CameraSource_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov rdx, r13
mov rcx, rbx
call fcn.1400e0ac0
nop
mov qword [r14 + 0x178], rbx
mov rbx, qword [r14 + 0x180]
mov qword [r14 + 0x180], rdi
test rbx, rbx
je 0x1400dd1c0
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd1c0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd1c0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x590
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::ChatOverlay_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
movdqu xmmword [rbp - 0x68], xmm0
mov rcx, qword [r13 + 8]
test rcx, rcx
je 0x1400dd20a
lock inc dword [rcx + 8]
mov rcx, qword [r13 + 8]
mov rax, qword [r13]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rcx
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.14009c8c0
nop
mov qword [r14 + 0x188], rbx
mov rbx, qword [r14 + 0x190]
mov qword [r14 + 0x190], rdi
test rbx, rbx
je 0x1400dd268
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd268
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd268
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lea rcx, [rbp + 8]
call fcn.1400e05b0
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rcx + 8]
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [r14 + 0x198], rax
mov rbx, qword [r14 + 0x1a0]
mov qword [r14 + 0x1a0], rdx
test rbx, rbx
je 0x1400dd2c7
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd2c7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd2c7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x1400dd2fb
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd2fb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd2fb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x160
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::Screenshot_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov rcx, rbx
call fcn.1400ee830
nop
mov qword [r14 + 0x1a8], rbx
mov rbx, qword [r14 + 0x1b0]
mov qword [r14 + 0x1b0], rdi
test rbx, rbx
je 0x1400dd37d
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd37d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd37d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x520
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::FreeSyncLogoOverlay_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
movdqu xmmword [rbp - 0x58], xmm0
mov rcx, qword [r13 + 8]
test rcx, rcx
je 0x1400dd3c7
lock inc dword [rcx + 8]
mov rcx, qword [r13 + 8]
mov rax, qword [r13]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rcx
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.1400b6ab0
nop
mov qword [r14 + 0x1b8], rbx
mov rbx, qword [r14 + 0x1c0]
mov qword [r14 + 0x1c0], rdi
test rbx, rbx
je 0x1400dd425
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd425
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd425
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
call fcn.140061f60
mov rcx, rax
call fcn.1400647a0
cmp eax, 4
jl 0x1400dd4c2
mov ecx, 0x5f8
call fcn.14014f310
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::CustomSourceOverlay_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov edx, SHCreateMemStream
mov rcx, rbx
call fcn.1400a1650
nop
mov qword [r14 + 0x1c8], rbx
mov rbx, qword [r14 + 0x1d0]
mov qword [r14 + 0x1d0], rdi
test rbx, rbx
je 0x1400dd4c2
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd4c2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd4c2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov ecx, 0x40
call fcn.14014f310
mov rsi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_Pipelines::DisplayCaptureEnd_.0
mov qword [rsi], rax
lea rdi, [rsi + 0x10]
lea rax, vtable.PipelineElement.0
mov qword [rdi], rax
mov qword [rdi + 8], r15
mov byte [rdi + 0x10], 0
lea rax, vtable.amf::AMFCriticalSection.0
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], r15
mov ecx, 0x28
call fcn.14014f310
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rdi + 0x20], rbx
lea rax, vtable.Pipelines::DisplayCaptureEnd.0
mov qword [rdi], rax
mov qword [rdi + 0x28], r15
mov qword [r14 + 0x1d8], rdi
mov rbx, qword [r14 + 0x1e0]
mov qword [r14 + 0x1e0], rsi
test rbx, rbx
je 0x1400dd584
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd584
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400dd584
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, dword [r14 + 0x60]
and eax, 0xfffc04b3
or eax, 0x93
mov dword [r14 + 0x60], eax
mov byte [r14 + 0xa8], 0
mov dword [r14 + 0xb8], r15d
mov dword [r14 + 0xbc], r12d
mov dword [r14 + 0x218], r12d
mov byte [r14 + 0x200], 0
mov qword [r14 + 0x1e8], r15
mov qword [r14 + 0x1f0], r15
lea rbx, str.dc322a75_453b_4442_b354_801fdc243ef6
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [r14 + 0x1f0], rax
mov qword [r14 + 0x1f8], r15
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r15w
mov r8d, 0x24
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140005060
nop
lea r8, str.mutex_
lea rcx, [rbp - 0x28]
call fcn.140009740
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rbp - 0x28]
call fcn.140004ff0
lea r8, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae r8, qword [rbp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [r14 + 0x1f8], rax
mov qword [r14 + 0x204], 1
mov dword [r14 + 0x20c], r15d
mov dword [r14 + 0x210], 4
mov dword [r14 + 0x214], 4
mov dword [rbp + 0x28], r15d
lea r8, [rbp + 0x28]
lea rdx, str.WaWindowOpacity
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400074d0
test al, al
jne 0x1400dd6fe
lea r8, [rbp + 0x28]
lea rdx, str.WaWindowOpacity
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400075b0
test al, al
jne 0x1400dd6fe
lea rdx, [rbp + 0x28]
lea rcx, str.WaWindowOpacity
call fcn.140007690
test al, al
je 0x1400dd708
mov eax, dword [rbp + 0x28]
mov dword [r14 + 0x204], eax
mov dword [rbp + 0x28], r15d
lea r8, [rbp + 0x28]
lea rdx, str.WaWindowWidth
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400074d0
test al, al
jne 0x1400dd756
lea r8, [rbp + 0x28]
lea rdx, str.WaWindowWidth
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400075b0
test al, al
jne 0x1400dd756
lea rdx, [rbp + 0x28]
lea rcx, str.WaWindowWidth
call fcn.140007690
test al, al
je 0x1400dd760
mov eax, dword [rbp + 0x28]
mov dword [r14 + 0x210], eax
mov dword [rbp + 0x28], r15d
lea r8, [rbp + 0x28]
lea rdx, str.WaWindowHeight
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400074d0
test al, al
jne 0x1400dd7ae
lea r8, [rbp + 0x28]
lea rdx, str.WaWindowHeight
lea rcx, str.SOFTWAREAMDDVR
call fcn.1400075b0
test al, al
jne 0x1400dd7ae
lea rdx, [rbp + 0x28]
lea rcx, str.WaWindowHeight
call fcn.140007690
test al, al
je 0x1400dd7b8
mov eax, dword [rbp + 0x28]
mov dword [r14 + 0x214], eax
mov eax, dword [r14 + 0x210]
imul eax, dword [r14 + 0x214]
shl eax, 2
movsxd rdi, eax
add rdi, 0x30
cmp qword [r14 + 0x1f0], 0
je 0x1400dd917
mov edx, 0x3e8
mov rcx, qword [r14 + 0x1f8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400dd83b
cmp eax, 0x80
je 0x1400dd905
cmp eax, 0x102
je 0x1400dd82f
cmp eax, 0xffffffff
jne 0x1400dd917
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.DrawPipeline_constructor___WAIT_FAILED:__d
mov ecx, 7
call fcn.1400838f0
jmp 0x1400dd917
lea rdx, str.DrawPipeline_constructor___WAIT_TIMEOUT
jmp 0x1400dd90c
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [r14 + 0x1f0]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x1400dd8ef
mov rcx, rdi
call fcn.1401567b4
mov rbx, rax
test rax, rax
je 0x1400dd8ef
mov qword [rax], rdi
movups xmm0, xmmword [r14 + 0x208]
movups xmmword [rax + 8], xmm0
mov eax, dword [r14 + 0x204]
mov dword [rbx + 0x18], eax
mov eax, dword [r14 + 0x210]
mov dword [rbx + 0x1c], eax
mov ecx, dword [r14 + 0x214]
mov dword [rbx + 0x20], ecx
lea eax, [rax*4]
mov dword [rbx + 0x24], eax
imul eax, ecx
test eax, eax
jle 0x1400dd8d9
lea rcx, [rbx + 0x28]
nop word [rax + rax]
mov byte [rcx], 0xff
inc r15d
lea rcx, [rcx + 1]
mov eax, dword [rbx + 0x20]
imul eax, dword [rbx + 0x24]
cmp r15d, eax
jl 0x1400dd8c0
mov rdi, qword [rbx]
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140151a90
mov rcx, rbx
call fcn.140155e3c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [r14 + 0x1f8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rdx, str.DrawPipeline_constructor___WAIT_ABANDONED
mov ecx, 7
call fcn.1400838f0
nop
lea rcx, [rbp + 0x30]
call fcn.140004ff0
nop
mov rbx, qword [r13 + 8]
test rbx, rbx
je 0x1400dd954
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400dd954
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x1400dd954
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
mov rax, r14
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret