Function at 0x140014f10
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x140015147
test rbp, rbp
je 0x140014f4b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call r12
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x140014fc0
test esi, esi
jne 0x140014fb0
xor ecx, ecx
mov esi, 1
call r14
jmp 0x140014f7f
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x140014f7f
lea r12, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, r12
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140015197
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x140015130
xor edx, edx
test rdi, rdi
je 0x14001502d
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x140015158
mov eax, dword [rdi + 0x18]
mov edx, esi
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [sym.pthread_create_wrapper]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400150f8
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400150d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x1400150b0
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140015097
cmp eax, 0xffffffff
mov edx, 0xfffffffe
jl 0x140015071
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x140015071
mov rcx, qword [rbx + 0x30]
lea rsi, [rbx + 0x38]
test rcx, rcx
je 0x14001510b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call sym.pthread_mutex_destroy
mov rcx, r12
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140015197
pxor xmm0, xmm0
mov qword [rbx + 0x68], 0xffffffffffffffff
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x14001513d
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x140015180
mov eax, 0xb
jmp 0x1400150a1
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400183e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015190
mov eax, dword [rax + 0xc0]
jmp 0x140015025
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140015147
call sym.__pthread_self_lite.part.0
jmp 0x14001516e
call sym.replace_spin_keys.part.0
nop
nop dword [rax]