Function at 0x14000be00
Capabilities:
Terminate thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x140024018]
xor rax, rsp
mov qword [rbp - 0x18], rax
xor eax, eax
mov rbx, rdx
mov qword [rbp - 0x28], rax
mov rsi, rcx
mov qword [rbp - 0x20], rax
mov rcx, rbx
mov rax, qword [rdx]
lea rdx, [rbp - 0x28]
call qword [rax + 0x18]
lea rdi, [rsi + 0x30]
mov rcx, rdi
lea rdx, [rbp - 0x28]
call fcn.14000e4c0
test rax, rax
je 0x14000c192
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x38]
call fcn.14000fde0
mov rax, qword [rbp - 0x38]
cmp qword [rax + 0x50], 0
je 0x14000c192
mov qword [rsp + 0xb0], r14
lea r9, [rbp - 0x38]
mov qword [rsp + 0x70], r15
mov rdx, rbx
xor r15d, r15d
mov qword [rbp - 0x38], r15
call fcn.14000f540
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rcx, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rcx, qword [rbp - 0x48]
mov edx, 0x1d4c0
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r14, qword [rbp - 0x38]
mov ebx, eax
test eax, eax
je 0x14000bf17
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rcx, qword [rbp - 0x48]
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov r9, r14
mov dword [rsp + 0x20], ebx
lea r8, str.Failed_to_wait_for_stopping__s:__d
mov rcx, rsi
lea edx, [r15 + 2]
call fcn.14000a5c0
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
lea r8, str.StopRunning__Name:__s__RunningThread__p
mov r9, r14
mov rcx, rsi
mov rdx, qword [rax + 0x50]
mov qword [rsp + 0x20], rdx
mov edx, 4
call fcn.14000a5c0
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rcx, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x48]
mov rcx, rdi
mov qword [rax + 0x50], r15
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
cmp qword [rax + 0x58], r15
je 0x14000bfd1
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rcx, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
mov qword [rax + 0x58], r15
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
cmp qword [rax + 0x60], r15
je 0x14000c021
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rcx, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
mov qword [rax + 0x60], r15
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
cmp qword [rax + 0x68], r15
je 0x14000c071
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rcx, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
mov qword [rax + 0x68], r15
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
cmp qword [rax + 0x78], r15
je 0x14000c102
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
mov rsi, qword [rax + 0x78]
test rsi, rsi
je 0x14000c0ea
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov r9, qword [rsi + 0x58]
lea rdx, [rbp - 0x38]
lea rcx, [rsi + 0x58]
mov r8, qword [r9]
call fcn.140002910
mov rcx, qword [rsi + 0x58]
mov edx, 0x28
call fcn.140016704
mov edx, 0x68
mov rcx, rsi
call fcn.140016704
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
mov qword [rax + 0x78], r15
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
cmp qword [rax + 0x80], r15
je 0x14000c15f
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
mov rcx, qword [rax + 0x80]
test rcx, rcx
je 0x14000c144
call fcn.14000bd20
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
mov qword [rax + 0x80], r15
lea r8, [rbp - 0x28]
mov rcx, rdi
lea rdx, [rbp - 0x48]
call fcn.14000fde0
mov rax, qword [rbp - 0x48]
mov qword [rax + 0x70], r15
mov r15, qword [rsp + 0x70]
test r14, r14
je 0x14000c18a
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rsp + 0xb0]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1400163f0
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
ret