Function at 0x140011320
Capabilities:
Terminate thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rdi, rcx
mov eax, 1
xchg dword [rcx + 0x3c], eax
xor esi, esi
cmp qword [rcx + 0x48], rsi
je 0x14001136c
mov qword [rbp + 0x77], 1
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8d, [rsi + 1]
lea rdx, [rbp + 0x77]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp qword [rdi + 0xa8], rsi
je 0x140011425
mov rcx, rdi
call fcn.1400116c0
mov rbx, qword [rdi + 0xa8]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x19], rax
mov rax, qword [rbx + 8]
mov qword [rbp - 0x11], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x19]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lock xadd dword [0x14008ce28], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400113d5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400113f7
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.1400109d0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rdi + 0xa8]
test rbx, rbx
je 0x14001141a
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbx
call fcn.1400345e0
mov qword [rdi + 0xa8], rsi
lock dec dword [rdi + 0x30]
mov eax, esi
lock xadd dword [rdi + 0x30], eax
test eax, eax
jle 0x1400115c0
lea r14, [0x140089e50]
nop dword [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rbx, qword [rdi + 0x88]
test rbx, rbx
je 0x140011476
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
lea rdx, [rbp - 0x29]
mov rcx, rbx
call qword [rax + 0x28]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140011460
mov rdx, qword [rdi + 0x90]
test rdx, rdx
je 0x1400114b4
mov rax, qword [rbp - 0x21]
test rax, rax
je 0x140011495
mov qword [rax + 0x20], rdx
mov rdx, qword [rbp - 0x29]
jmp 0x140011499
mov qword [rbp - 0x29], rdx
mov rax, qword [rdi + 0x98]
mov qword [rbp - 0x21], rax
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rsi
jmp 0x1400114b8
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x140011514
mov r8, rdx
mov rax, rdx
mov rcx, rdx
test rax, rax
je 0x1400114e6
mov rax, qword [rcx + 0x20]
mov qword [rbp - 0x29], rax
mov rcx, qword [rbp - 0x21]
test rax, rax
cmove rcx, rsi
mov qword [rbp - 0x21], rcx
mov qword [r8 + 0x20], rsi
lock dec dword [rdi + 0x30]
mov rax, qword [rdx + 0x28]
mov dword [rbp - 9], esi
mov qword [rbp - 1], r14
xor r9d, r9d
lea r8, [rbp - 9]
xor ecx, ecx
call rax
mov rdx, qword [rbp - 0x29]
mov r8, rdx
mov rax, rdx
mov rcx, rdx
test rdx, rdx
jne 0x1400114c6
jmp 0x140011562
mov dword [rbp + 0x67], esi
mov qword [rbp + 0x7f], rsi
mov qword [rbp + 0x6f], rsi
mov eax, dword [rdi + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x6f]
lea r8, [rbp + 0x7f]
lea rdx, [rbp + 0x67]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp qword [rbp + 0x6f], 0
je 0x140011562
lock dec dword [rdi + 0x30]
mov rdx, qword [rbp + 0x6f]
mov rax, qword [rdx + 0x28]
mov dword [rbp + 7], esi
mov qword [rbp + 0xf], r14
xor r9d, r9d
lea r8, [rbp + 7]
xor ecx, ecx
call rax
nop
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x1400115b1
mov r8, rdx
mov rax, rdx
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x29], rax
mov rcx, qword [rbp - 0x21]
test rax, rax
cmove rcx, rsi
mov qword [rbp - 0x21], rcx
mov qword [r8 + 0x20], rsi
mov rax, qword [rdx + 0x28]
mov dword [rbp + 0x17], esi
mov qword [rbp + 0x1f], r14
xor r9d, r9d
lea r8, [rbp + 0x17]
xor ecx, ecx
call rax
mov rdx, qword [rbp - 0x29]
mov r8, rdx
mov rax, rdx
test rdx, rdx
jne 0x140011571
mov eax, esi
lock xadd dword [rdi + 0x30], eax
test eax, eax
jg 0x140011440
mov rbx, qword [rdi + 0x48]
test rbx, rbx
je 0x140011660
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x27], rax
mov rax, qword [rbx + 8]
mov qword [rbp + 0x2f], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 0x27]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lock xadd dword [0x14008ce28], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x14001161a
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14001163c
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.1400109d0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rdi + 0x48]
test rbx, rbx
je 0x14001165c
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbx
call fcn.1400345e0
mov qword [rdi + 0x48], rsi
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret