Function at 0x1400eb160
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp], rax
movzx r12d, r8b
movzx ebx, dl
mov rsi, rcx
cmp byte [rcx + 0x2f8], 0
je 0x1400eb453
lea rdx, str.SceneInVideoOverlay___Drain_custom_source_elements
mov ecx, 7
call fcn.140083970
mov rcx, qword [rsi + 0x300]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [rsi + 0x310]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x48]
call fcn.140061c90
mov rcx, rax
call fcn.14001bf30
test al, al
je 0x1400eb1fa
mov rcx, qword [rsi + 0x320]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x48]
jmp 0x1400eb20d
test bl, bl
jne 0x1400eb20d
mov rcx, qword [rsi + 0x330]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x20]
mov rbx, qword [rsi + 0x350]
mov r15, qword [rsi + 0x358]
cmp rbx, r15
je 0x1400eb40e
nop dword [rax]
nop dword [rax + rax]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140006b00
nop
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140006b00
mov eax, dword [rbx + 0x40]
mov dword [rbp - 0x80], eax
movzx eax, byte [rbx + 0x44]
mov byte [rbp - 0x7c], al
movzx eax, byte [rbx + 0x45]
mov byte [rbp - 0x7b], al
movups xmm0, xmmword [rbx + 0x48]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rbx + 0x58]
movups xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [rbx + 0x68]
movups xmmword [rbp - 0x58], xmm0
mov eax, dword [rbx + 0x78]
mov dword [rbp - 0x48], eax
mov eax, dword [rbx + 0x7c]
mov dword [rbp - 0x44], eax
movzx eax, byte [rbx + 0x80]
mov byte [rbp - 0x40], al
movups xmm0, xmmword [rbx + 0x88]
movups xmmword [rbp - 0x38], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x340]
call fcn.1400eb910
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x40]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x48]
lea r8, [rsp + 0x40]
mov ecx, 7
test eax, eax
je 0x1400eb2e6
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
lea rdx, str.Error_draining_custom_source:__s
call fcn.1400838f0
jmp 0x1400eb2fe
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
lea rdx, str.Drained_custom_source:__s
call fcn.140083970
test r12b, r12b
je 0x1400eb3ea
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 0x340]
call fcn.1400eb910
mov r8, qword [rax]
mov r8, qword [r8 + 0x40]
add r8, 0x5a8
lea rdx, str.AMDSrcExt_
lea rcx, [rbp - 0x20]
call fcn.140044750
lea r8, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae r8, qword [rbp - 0x20]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rdi, rax
test rax, rax
je 0x1400eb3be
mov edx, 0xbb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r14d, eax
cmp eax, 0x80
jne 0x1400eb37f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x20]
call fcn.140004ff0
cmp r14d, 0x102
jne 0x1400eb3c7
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
lea rdx, str.Custom_source_exit_timed_out:__s
mov ecx, 7
call fcn.1400838f0
jmp 0x1400eb3ea
lea rcx, [rbp - 0x20]
call fcn.140004ff0
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
lea rdx, str.Custom_source_exited:__s
mov ecx, 7
call fcn.140083970
nop
lea rcx, [rsp + 0x60]
call fcn.140004ff0
lea rcx, [rsp + 0x40]
call fcn.140004ff0
add rbx, 0x98
cmp rbx, r15
jne 0x1400eb230
mov rdi, qword [rsi + 0x358]
mov rbx, qword [rsi + 0x350]
cmp rbx, rdi
je 0x1400eb445
lea rcx, [rbx + 0x20]
call fcn.140004ff0
mov rcx, rbx
call fcn.140004ff0
add rbx, 0x98
cmp rbx, rdi
jne 0x1400eb421
mov rbx, qword [rsi + 0x350]
mov qword [rsi + 0x358], rbx
mov byte [rsi + 0x2f8], 0
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret