Function at 0x1400124c0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
push r14
push r13
push r12
push rbx
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
call sym._fpreset
lea rcx, [0x1400fb1a8]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea r12, [rax + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
cmp dword [0x14012ed60], 1
je 0x1400125c7
lea rcx, [0x1400fb1a0]
xor ebx, ebx
call sym.pthread_spin_lock
mov r13, qword [0x14012ed10]
lea rax, [0x14012ed60]
jmp 0x140012530
cmp qword [r13], rax
je 0x1400126f6
mov rbx, r13
mov r13, qword [r13 + 0x18]
test r13, r13
jne 0x14001251f
mov edx, 0x20
mov ecx, 1
call sym.calloc
mov r13, rax
lea rax, [0x14012ed60]
mov qword [r13], rax
mov dword [r13 + 0x10], 1
test rbx, rbx
je 0x140012732
mov qword [rbx + 0x18], r13
lea rcx, [r13 + 8]
xor edx, edx
call sym.pthread_mutex_init
lea rcx, [0x1400fb1a0]
lea r14, [r13 + 8]
call sym.pthread_spin_unlock
mov rcx, r14
call sym.pthread_mutex_lock
mov ebx, dword [0x14012ed60]
test ebx, ebx
jne 0x140012700
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400fb1b8], eax
add eax, 1
je sym.pthread_create_wrapper.cold
mov dword [0x14012ed60], 1
mov rcx, r14
call sym.pthread_mutex_unlock
mov rcx, r13
call sym.leaveOnceObject.part.0
mov rdx, qword [rbp + 0x10]
mov ecx, dword [0x1400fb1b8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword [rbp + 0x10]
mov rcx, r12
mov dword [rdx + 0x70], eax
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
je 0x14001269c
lea rcx, [0x1400fb1a8]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea r12, [rax + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x30]
mov rbx, qword [rax + 8]
test rcx, rcx
je 0x14001263a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x10]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x140012746
mov rcx, r12
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.pthread_mutex_destroy
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea r13, [0x1400fb1a8]
mov rcx, r13
call sym.pthread_mutex_unlock
test eax, eax
jne 0x14001273e
xor ecx, ecx
call r12
jmp 0x140012685
lea rcx, [0x1400fb1a8]
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140012792
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rdx + 8]
call rax
mov rbx, rax
nop
nop
lea rcx, [0x1400fb1a8]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], rbx
test rcx, rcx
je 0x140012613
call sym._pthread_cleanup_dest.part.0
jmp 0x140012613
add dword [r13 + 0x10], 1
jmp 0x140012572
cmp ebx, 1
je 0x1400125b7
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, ebx
lea r8, [0x14012ed60]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x1400125b7
mov qword [0x14012ed10], r13
jmp 0x140012567
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__endthreadex]
mov rax, qword [rbp + 0x10]
mov rcx, r12
mov dword [rax], 0xdeadbeef
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.pthread_mutex_destroy
cmp qword [rbp + 0x10], 0
je 0x140012775
mov rax, qword [rbp + 0x10]
cmp qword [rax + 0x1d0], 0
je 0x140012788
mov ecx, dword [0x1400fb1b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x140012677
mov rcx, rax
call sym.push_pthread_mem.part.0
jmp 0x140012775
mov ebx, pe_nt_image_headers64
jmp 0x1400126c6