Function at 0x14001cc50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test edx, edx
jne 0x14001cc70
test r8, r8
je 0x14001cd50
add rsp, 0x28
pop rbx
pop rsi
ret
cmp edx, 1
je 0x14001cd20
cmp edx, 3
jne 0x14001cc63
mov ecx, dword [0x1400ce318]
cmp ecx, 0xffffffff
je 0x14001cc63
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001cc63
test byte [rax + 0x40], 0x30
je 0x14001cd80
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x14001ccb2
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001ccd7
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001cccf
call rsi
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001ce48
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je case.default.0x14001cd16
mov ecx, dword [0x1400ce318]
xor edx, edx
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [0x140100bf8]
test rax, rax
je 0x14001cd6e
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call rax
mov qword [0x140100c00], rax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [0x140100c00]
test rcx, rcx
je 0x14001cc63
mov rax, qword [0x140100bf0]
test rax, rax
je 0x14001cd6e
call rax
mov qword [0x140100c00], 0
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x14001cdf5
test rcx, rcx
je 0x14001cd99
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x1d8]
mov qword [rbx + 0x30], 0
mov dword [rbx + 0xbc], 1
test rcx, rcx
je 0x14001cdbc
call sym._pthread_cleanup_dest.part.0
test byte [rbx + 0x44], 4
je 0x14001ce2c
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x14001ccd7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001cce4
test rcx, rcx
je 0x14001ce2c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x14001ce48
mov qword [rbx + 0x68], 0xffffffffffffffff
jmp 0x14001cc63
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001ce15
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001cd08
call sym.replace_spin_keys.part.0
nop
nop
push 0x1401227
add byte [rax], al
add byte [rsi], cl
add byte [rdx], r8b
add byte [rax], al
push rax
sub byte [rdx], dl
add dword [rax], eax
add byte [rax], al
add byte [r14], r9b
push rbp
add byte [rax], al
add byte [rax], cl
and byte [rdx], dl
add dword [rax], eax
add byte [rax], al
add byte [r14], r9b
add byte [r8], al
add byte [rax + 0x140122d], ah
add byte [rax], al
add byte [rbp], al
add byte [rax + r8], r9b
add byte [rax + 0x28], bh
adc al, byte [rax + 1]
add byte [rax], al
add byte [rbp], al
add byte [rbx], r8b
add byte [rax], al
or byte [rax], ch
adc al, byte [rax + 1]
add byte [rax], al
add byte [rbp], al
add byte [rdx], r8b
add byte [rax], al
invalid