Function at 0x140096500
Capabilities:
Check mutex on windows
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0x70], rdx
mov rdi, qword [rcx + 0x38]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
test rdi, rdi
je 0x140096591
mov qword [rsp + 0x30], rdi
mov eax, 1
lock xadd dword [rdi], eax
inc eax
cmp eax, 1
jle 0x14009657f
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rdi + 4], ecx
je 0x14009658e
mov edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rdi + 4], ecx
inc dword [rdi + 8]
lea rdx, [rsi + 0x48]
lea rcx, [rbp - 0x80]
call fcn.14000fad0
mov rdx, rax
mov rcx, rbx
call fcn.140096b90
mov rcx, qword [rsi]
mov rdi, qword [rbx + 0xf0]
cmp rdi, rcx
je 0x1400965d7
mov qword [rbx + 0xf0], rcx
test rcx, rcx
je 0x1400965c9
mov rax, qword [rcx]
call qword [rax]
test rdi, rdi
je 0x1400965d7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rsi + 0x40]
mov qword [rbx + 0xe0], rcx
mov byte [rbx + 0x30], 0
mov dword [rbp + 0x8c], 0x10d2
mov dword [rbp + 0x88], 0x10b6
mov dword [rbp + 0x20], 0x10f1
cmp byte [rbx + 0x58], 0
je 0x140096614
movsxd rax, dword [rbx + 0x5c]
mov qword [rbp + 0x28], rax
mov eax, dword [rbx + 0x60]
jmp 0x14009661f
movsxd rax, dword [rbx + 0x48]
mov qword [rbp + 0x28], rax
mov eax, dword [rbx + 0x4c]
cdqe
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 1
mov qword [rbp + 0x40], 1
xor edi, edi
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rdi
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x20]
lea r8, [rbp + 0x88]
lea edx, [rdi + 1]
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.OpenCL.dll_clCreateImage]
mov qword [rbx + 0xe8], rax
lea rdx, str.DDSharedMemorySource:_start_capture_thread._n
lea ecx, [rdi + 7]
call fcn.140083970
mov byte [rbx + 0x108], dil
call fcn.140061d80
mov rcx, rax
call fcn.14002fbe0
mov rcx, rax
call fcn.14002bff0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x180], rax
test rax, rax
jne 0x1400966cf
lea rdx, str.StartCapture_failed._n
lea ecx, [rdi + 7]
call fcn.140083970
jmp 0x140096781
lea rax, [0x140096cb0]
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x98], edi
mov ecx, 0x18
call fcn.14014f310
mov qword [rax], rbx
movups xmm0, xmmword [rbp + 0x90]
movups xmmword [rax + 8], xmm0
mov qword [rbp + 0x90], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14008bac0]
xor edx, edx
xor ecx, ecx
call fcn.14016b4dc
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140096818
cmp dword [rbx + 0x100], 0
jne 0x140096812
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm0
movups xmmword [rbx + 0xf8], xmm0
cmp dword [rbx + 0x100], 0
je 0x140096827
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call fcn.140129c40
test eax, eax
jne 0x140096832
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbx + 0xf8], xmm0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400967c0
add dword [rcx + 8], 0xffffffff
mov edx, dword [rcx + 8]
jne 0x140096797
mov dword [rcx + 4], edi
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
je 0x1400967c0
test edx, edx
jne 0x1400967c0
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
nop
lea rcx, [rsi + 0x48]
call fcn.14000fbc0
nop
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400967da
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400967e9
mov rax, qword [rcx]
call qword [rax + 8]
nop
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14016b5bc
nop
mov dword [rsp + 0x48], edi
mov ecx, 6
call fcn.140129a18
nop
mov ecx, 1
call fcn.140129a18
int3
mov ecx, eax
call fcn.1401299dc
int3