Function at 0x6ab13ae0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push r12
push rdi
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x30], rcx
mov rcx, qword [0x6ab389b8]
test rcx, rcx
je 0x6ab13c3d
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x30]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
mov rcx, qword [0x6ab389f0]
test rcx, rcx
je 0x6ab13cf7
call sym._pthread_once_raw.constprop.5
mov rax, qword [0x6ab389e8]
test rax, rax
je 0x6ab13cd3
mov rdx, qword [rbp + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rsi, qword [rbp + 0x30]
mov rcx, rbx
mov dword [rsi + 0x68], eax
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x30]
mov rdx, rbp
lea rcx, [rax + 0xc0]
call sym._setjmp
test eax, eax
je 0x6ab13c64
mov rax, qword [0x6ab389b8]
test rax, rax
je 0x6ab13d1a
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x30]
lea rbx, [rax + 0x38]
mov rcx, rbx
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 0x30]
mov rsi, qword [rax + 8]
test rcx, rcx
je 0x6ab13bb6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x30]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x6ab13d6c
mov rcx, rbx
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
mov rax, qword [rbp + 0x30]
mov dword [rax + 0xb4], 1
lea r12, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
lea rdi, str.mtx_pthr_locked_shmem
mov rbx, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x6ab13c06
xor ecx, ecx
call rbx
mov rax, qword [0x6ab389b8]
test rax, rax
jne 0x6ab13c29
mov r8, r12
mov edx, 8
mov rcx, rdi
call sym.__shmem_winpthreads_grab
mov qword [0x6ab389b8], rax
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x6ab13c02
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x6ab389b8], rax
jmp 0x6ab13b01
mov rax, qword [0x6ab389b8]
test rax, rax
je 0x6ab13d48
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6ab13d3e
mov rdi, qword [rbp + 0x30]
mov rcx, qword [rdi + 8]
call rax
mov rbx, rax
nop
nop
mov rcx, qword [0x6ab389b8]
test rcx, rcx
je 0x6ab13ddd
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 0x1c8]
mov qword [rax + 8], rbx
test rcx, rcx
je 0x6ab13b8f
call sym._pthread_cleanup_dest.part.3
jmp 0x6ab13b8f
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x6ab389e8], rax
jmp 0x6ab13b3b
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x6ab389f0], rax
jmp 0x6ab13b26
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
lea rcx, str.mtx_pthr_locked_shmem
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x6ab389b8], rax
jmp 0x6ab13b87
mov ebx, pe_nt_image_headers64
jmp 0x6ab13c9a
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
lea rcx, str.mtx_pthr_locked_shmem
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x6ab389b8], rax
jmp 0x6ab13c74
mov rax, qword [rbp + 0x30]
mov rcx, rbx
mov dword [rax], 0xdeadbeef
call sym.pthread_mutex_unlock
mov rcx, rbx
call sym.pthread_mutex_destroy
cmp qword [rbp + 0x30], 0
je 0x6ab13da3
mov rax, qword [rbp + 0x30]
cmp qword [rax + 0x1c0], 0
jne 0x6ab13da3
mov rcx, rax
call sym.push_pthread_mem.part.0
mov rax, qword [0x6ab389e8]
test rax, rax
jne 0x6ab13dce
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call sym.__shmem_winpthreads_grab
mov qword [0x6ab389e8], rax
xor edx, edx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x6ab13beb
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov rcx, rax
mov qword [0x6ab389b8], rax
jmp 0x6ab13cac