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

Disassembly:
mov rcx, qword [rcx + 0x78]
test rcx, rcx
jne 0x140031ba0
xor eax, eax
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x1400cf248]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rsi, rcx
movzx eax, byte [rcx + 0x70]
nop
test al, al
jne 0x140031be5
xor eax, eax
jmp 0x140031e49
xor ebx, ebx
cmp qword [rcx + 0x40], rbx
je 0x140031d0a
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x24], bl
lea r14, [0x14009ebc0]
mov qword [rsp + 0x28], r14
mov rdi, qword [rcx + 0xb8]
mov eax, ebx
lock xadd dword [rdi + 0x30], eax
test eax, eax
jne 0x140031c40
mov rcx, rdi
call fcn.14002b070
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x24], bl
mov qword [rsp + 0x28], r14
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
jmp 0x140031cf7
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
lea rax, [rdi + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1400fe760]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x30]
mov ecx, dword [0x1400fe760]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call fcn.140029cc0
test rax, rax
je 0x140031cc3
nop
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call fcn.140029cc0
test rax, rax
jne 0x140031ca0
mov rdx, qword [rsp + 0x40]
mov ecx, dword [0x1400fe760]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x48]
mov esi, 3
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140031ced
call fcn.140063820
add rdi, 8
sub rsi, 1
jne 0x140031ce0
cmp dword [rsp + 0x20], 0
jne 0x140031e74
mov rax, rbx
jmp 0x140031e49
mov r14, rbx
lea r15, vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea r12, vtable.shmm::message_in_stream.0
nop dword [rax + rax]
mov qword [rsp + 0x60], r15
mov ecx, 0x10
call fcn.140062ea0
mov rdi, rax
test rax, rax
je 0x140031d48
mov cl, 1
call fcn.14003ad24
mov qword [rdi + 8], rax
mov qword [rbp - 0x40], rdi
jmp 0x140031d4c
mov qword [rbp - 0x40], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x54]
mov qword [rbp - 0x48], rax
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rbp - 0x78], rbx
mov qword [rsp + 0x60], r12
mov dword [rbp - 0x38], ebx
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi + 0x68]
call fcn.140030190
test eax, eax
je 0x140031e09
lea rdx, [rsp + 0x60]
mov rcx, qword [rsi + 0x48]
call fcn.14002fe90
inc r14
mov qword [rsp + 0x60], r15
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140031d20
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140031df7
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140031df7
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov edx, 0x10
mov rcx, rdi
call fcn.140062edc
jmp 0x140031d20
mov qword [rsp + 0x60], r15
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x140031e46
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140031e39
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140031e39
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov edx, 0x10
mov rcx, rbx
call fcn.140062edc
mov rax, r14
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400634e0
lea r11, [rsp + 0x8e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rcx, [rsp + 0x20]
call fcn.140031080
int3