Function at 0x140050600
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [0x1401b03c8]
test rbx, rbx
je 0x140050898
mov qword [rsp + 0x50], rbp
lea rbp, [0x1401aff60]
mov qword [rsp + 0x58], rsi
xor esi, esi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
lea r12, str.TerminateThread__
mov qword [rsp + 0x38], r14
lea r14, str.SetEvent__
mov qword [rsp + 0x30], r15
lea r15, str.WaitForSingleObject__
cmp dword [rbx + 0x24], 1
mov rdi, qword [rbx + 0x430]
jne 0x140050819
mov rdx, rbx
lea rcx, [0x1401b03c8]
call fcn.1400675d0
mov edx, dword [0x1401b05e0]
mov eax, esi
test edx, edx
je 0x1400506d9
mov r8, qword [rbx + 0x18]
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
lea r9d, [rax + 1]
cmp qword [rbp + rcx*8 + 0x480], r8
je 0x1400506aa
mov eax, r9d
cmp r9d, edx
jb 0x140050690
jmp 0x1400506d9
movsxd rax, r9d
mov r8, rdx
sub r8, rax
lea rdx, [rbp + 0x480]
shl r8, 3
lea rdx, [rdx + rax*8]
lea eax, [r9 - 1]
movsxd rcx, eax
lea rcx, [rcx*8 + 0x480]
add rcx, rbp
call sub.VCRUNTIME140.dll_memmove
mov dword [rbx + 0x20], 1
dec dword [0x1401b05e0]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x140050733
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005070a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140050733
jmp 0x14005070f
mov eax, 0xffffe5d4
mov dword [rsp + 0x28], eax
lea r8, str.PollRemoveWorker
mov r9d, 0x1f0
mov qword [rsp + 0x20], r14
lea rdx, str._s:_d____s_failed:__d_n
xor ecx, ecx
call fcn.140051100
mov rcx, qword [rbx]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140050787
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005075c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005078e
jmp 0x140050761
mov eax, 0xffffe5d4
mov dword [rsp + 0x28], eax
lea r8, str.PollRemoveWorker
mov r9d, 0x1f4
mov qword [rsp + 0x20], r15
lea rdx, str._s:_d____s_failed:__d_n
xor ecx, ecx
call fcn.140051100
jmp 0x14005078e
cmp eax, 0x102
jne 0x1400507dc
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1400507dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400507b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400507dc
jmp 0x1400507b8
mov eax, 0xffffe5d4
mov dword [rsp + 0x28], eax
lea r8, str.PollRemoveWorker
mov r9d, 0x1fa
mov qword [rsp + 0x20], r12
lea rdx, str._s:_d____s_failed:__d_n
xor ecx, ecx
call fcn.140051100
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
mov qword [rbx], rsi
test rcx, rcx
je 0x1400507fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14005080e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x18], rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14005086e
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x14005086e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005083d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14005086e
jmp 0x140050842
mov eax, 0xffffe5d4
mov dword [rsp + 0x28], eax
lea r8, str.PollStartWorkers
mov r9d, 0x19e
mov qword [rsp + 0x20], r14
lea rdx, str._s:_d____s_failed:__d_n
xor ecx, ecx
call fcn.140051100
mov rcx, rbx
call fcn.140050320
mov rbx, rdi
test rdi, rdi
jne 0x140050652
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rbx
ret