Function at 0x1800019d0
Capabilities:
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, rcx
mov edi, r9d
lea rcx, str.capture_init_shmem
mov r12d, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [rsp + 0x70]
mov ebx, edi
imul ebx, esi
mov rdx, rbp
add ebx, 0x1f
and ebx, 0xffffffe0
lea r14d, [rbx*2 + 0x40]
mov ecx, r14d
call fcn.1800026d0
test al, al
jne 0x180001a40
lea rcx, str.capture_init_shmem:_Failed_to_initialize_memory
call fcn.1800023b0
xor al, al
jmp 0x180001c36
mov r8, qword [0x180034d68]
mov qword [r15], r8
mov dword [r8], 0xffffffff
lea rax, [r8 + 0x20]
and rax, 0xffffffffffffffe0
sub rax, r8
cmp rax, 0xc
lea ecx, [rax + 0x20]
cmovae ecx, eax
mov rax, qword [r15]
xor r9d, r9d
mov dword [rax + 4], ecx
mov rdx, qword [r15]
mov ecx, dword [rdx + 4]
add ecx, ebx
mov dword [rdx + 8], ecx
xor edx, edx
mov rax, qword [0x180034a30]
mov ecx, dword [rsp + 0x78]
mov dword [rax], 1
mov rax, qword [0x180034a30]
mov dword [rax + 4], 4
mov rax, qword [0x180034a30]
mov dword [rax + 0xc], ebp
xor ebp, ebp
mov rax, qword [0x180034a30]
mov dword [rax + 8], ebp
mov rax, qword [0x180034a30]
mov dword [rax + 0x10], ecx
mov rax, qword [0x180034a30]
movzx ecx, byte [rsp + 0x80]
mov byte [rax + 0x30], cl
mov rcx, qword [0x180034a30]
mov eax, dword [0x180034d54]
mov dword [rcx + 0x28], eax
xor ecx, ecx
mov rax, qword [0x180034a30]
mov dword [rax + 0x2c], r14d
mov rax, qword [0x180034a30]
mov dword [rax + 0x24], esi
mov rax, qword [0x180034a30]
mov dword [rax + 0x14], r12d
mov rax, qword [0x180034a30]
mov dword [rax + 0x18], edi
mov rax, qword [0x180034a30]
mov dword [rax + 0x1c], r12d
mov rax, qword [0x180034a30]
mov dword [rax + 0x20], edi
mov dword [0x180034e54], esi
mov dword [0x180034e58], edi
mov eax, dword [r8 + 4]
add rax, r8
mov qword [0x180034e28], rax
mov eax, dword [r8 + 8]
add rax, r8
xor r8d, r8d
mov qword [0x180034e30], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x180034e40], rax
test rax, rax
jne 0x180001b67
lea rbx, str.init_shmem_thread:_Failed_to_create_copy_event:__d
jmp 0x180001bf0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x180034e48], rax
test rax, rax
jne 0x180001b8e
lea rbx, str.init_shmem_thread:_Failed_to_create_stop_event:__d
jmp 0x180001bf0
lea rbx, [0x180034d80]
mov edi, 3
nop word [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add rbx, 0x28
sub rdi, 1
jne 0x180001ba0
lea rcx, [0x180034df8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
lea r8, [0x180001da0]
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180034e38], rax
test rax, rax
jne 0x180001c04
lea rbx, str.init_shmem_thread:_Failed_to_create_thread:__d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1800023b0
xor al, al
jmp 0x180001c36
mov rcx, qword [0x180034a50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x180001c2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.capture_init_shmem:_Failed_to_signal_ready:__d
call fcn.1800023b0
xor al, al
jmp 0x180001c36
mov byte [0x180034b74], 1
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret