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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test edx, edx
jne 0x14001b100
test r8, r8
je 0x14001b1e0
add rsp, 0x28
pop rbx
pop rsi
ret
cmp edx, 1
je 0x14001b1b0
cmp edx, 3
jne 0x14001b0f3
mov ecx, dword [0x1400203a8]
cmp ecx, 0xffffffff
je 0x14001b0f3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b0f3
test byte [rax + 0x40], 0x30
je 0x14001b210
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x14001b142
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14001b167
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b15f
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 0x14001b2d8
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je case.default.0x14001b1a6
mov ecx, dword [0x1400203a8]
xor edx, edx
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [0x140029d78]
test rax, rax
je 0x14001b1fe
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call rax
mov qword [0x140029d80], rax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [0x140029d80]
test rcx, rcx
je 0x14001b0f3
mov rax, qword [0x140029d70]
test rax, rax
je 0x14001b1fe
call rax
mov qword [0x140029d80], 0
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x14001b285
test rcx, rcx
je 0x14001b229
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 0x14001b24c
call sym._pthread_cleanup_dest.part.0
test byte [rbx + 0x44], 4
je 0x14001b2bc
mov rcx, qword [rbx + 0x28]
mov dword [rbx], 0xdeadbeef
test rcx, rcx
je 0x14001b167
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 0x14001b174
test rcx, rcx
je 0x14001b2bc
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 0x14001b2d8
mov qword [rbx + 0x68], 0xffffffffffffffff
jmp 0x14001b0f3
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x14001b2a5
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x14001b198
call sym.replace_spin_keys.part.0
nop
nop
add byte [rax + rsi], al
jae 0x14005529c
pop rax
add al, 0x73
xchg edi, eax
add dword [rbx + riz*4], eax
add dword [rax - 0x61], ebx
add al, 0x97
add dword [rcx + rax - 0x5bfba7ff], esp
add dword [rcx + 0x1a30401], esi
pop rax
lahf
add byte [rcx], al
add byte [rax], al
add byte [rax + riz*2], al
jae 0x1400552c0
push rdx
add al, 0x73
mov eax, dword [rcx]
add al, 0xa3
add dword [rdx - 0x61], edx
add byte [rcx], al
add byte [rax + riz*2], al
mov eax, dword [rcx]
add dh, byte [rdx]
lahf
add byte [rcx], al
add byte [rax], al
add byte [rax + riz*2], al
jae 0x1400552dd
pop rax
add al, 0x73
mov eax, dword [rcx]
add al, 0xa3
add dword [rax - 0x61], ebx
add byte [rcx], al
add byte [rax], al
add byte [rbx + rsi*2], al
xchg byte [rcx], al
add dword [rbx + 4], edx
xchg byte [rcx], al
mov eax, dword [rcx]
add esi, dword [rbx + 0x78]
lahf
add byte [rdx], al
add byte [rax], al
add byte [rax + riz*2], al
or al, byte [ebx]
pop rax
rol byte [rdx], 0x40
add dword [rax], eax
add byte [rax], al
lahf
add al, 0x67
mov eax, dword [rcx]
add dword [rbx], edx
xchg dword [rax], eax
add byte [rax], al
add eax, 0x800
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax + rax], al
pop rax
add dword [rdx + 4], edx
pop rax
lahf
add dword [rbx + riz*4], eax
add dword [rdx - 0x61], edx
add al, 0x9f
add eax, edi
add dword [rcx], eax
push rdx
add byte [rax], al
add byte [rcx], al
add byte [rcx], al
add byte [rcx], al
add byte [rcx], al
add byte [rcx], al
add byte [rdi + rdi], al
popfq
add dword [rcx], eax
push rbx
add al, 0xb0
add dword [rcx - 0x5ffcf5ff], edi
invalid