Function at 0x18000be30
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
lea rax, vtable.DxCapture.0
mov qword [rcx], rax
call fcn.18000c140
mov rcx, rdi
call fcn.180014250
mov rcx, qword [rdi + 0xad8]
xor ebp, ebp
test rcx, rcx
je 0x18000bea4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18000be90
xor edx, edx
mov rcx, qword [rdi + 0xad8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0xad8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xad8], rbp
mov rcx, qword [rdi + 0xae0]
test rcx, rcx
je 0x18000bee2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18000bece
xor edx, edx
mov rcx, qword [rdi + 0xae0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0xae0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xae0], rbp
mov rbx, qword [rdi + 0x1db0]
test rbx, rbx
je 0x18000bf19
cmp dword [rbx], 1
jne 0x18000bf10
mov rsi, qword [rbx + 0x208]
test rsi, rsi
je 0x18000bf10
mov rcx, rsi
call fcn.18001d000
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rdi + 0x1d10]
test rcx, rcx
je 0x18000bf32
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rdi + 0x1d10], rbp
mov rcx, qword [rdi + 0x1d40]
test rcx, rcx
je 0x18000bf43
call fcn.18000c0e0
mov rcx, qword [rdi + 0x1d48]
test rcx, rcx
je 0x18000bf54
call fcn.18000c0e0
mov rcx, qword [rdi + 0x1d50]
test rcx, rcx
je 0x18000bf65
call fcn.18000c0e0
lea rcx, [rdi + 0xab0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
lea rcx, [rdi + 0x1d88]
lea rbx, vtable.CBitmap.0
mov qword [rcx], rbx
call fcn.18000f200
nop
lea rcx, [rdi + 0x1d78]
mov qword [rcx], rbx
call fcn.18000f200
nop
lea rcx, [rdi + 0x1d68]
mov qword [rcx], rbx
call fcn.18000f200
nop
lea rcx, [rdi + 0x1d58]
mov qword [rcx], rbx
call fcn.18000f200
nop
lea rcx, [rdi + 0x1ce8]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rdi + 0x13b0]
call fcn.1800360e0
nop
lea rax, vtable.SDLAudio.0
mov qword [rdi + 0xcb8], rax
lea rbx, [rdi + 0xcc0]
mov qword [rsp + 0x58], rbx
mov rcx, rbx
call fcn.18002d280
lea rcx, [rbx + 0x2a8]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbx + 0x268]
call qword [sym.imp.mfc100.dll_Ordinal_1210]
nop
lea rcx, [rbx + 0x260]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rdi + 0xaf0]
call qword [sym.imp.mfc100.dll_Ordinal_1210]
nop
mov rcx, qword [rdi + 0xa80]
test rcx, rcx
je 0x18000c04b
call qword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rdi + 0xa80], rbp
mov qword [rdi + 0xa88], rbp
mov qword [rdi + 0xa90], rbp
lea rcx, [rdi + 0x368]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rdi + 0x360]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rdi + reloc.mfc100.dll_Ordinal_856]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rdi + 0x348]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rcx, [rdi + 0x340]
call qword [sym.imp.mfc100.dll_Ordinal_889]
nop
lea rax, vtable.CDXObject.0
mov qword [rdi], rax
lea rcx, [rdi + 0x10]
call fcn.180031e80
nop
lea rcx, [rdi + 8]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.mfc100.dll_Ordinal_889]