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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r15, rcx
mov ecx, dword [0x1401d5478]
cmp byte [0x1401d547c], 0
je 0x140032315
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x14003231c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
test rax, rax
jne 0x140032504
mov ecx, dword [0x1401d5468]
cmp byte [0x1401d546c], al
je 0x14003233b
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140032342
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
mov ebx, 1
test rax, rax
je 0x140032525
mov rcx, qword [r15]
lea rax, [0x14012dc10]
mov qword [rbp - 0x29], rax
and qword [rbp - 0x21], 0
mov word [rbp - 0x19], 0x101
mov qword [rbp - 0x11], rcx
mov rax, qword [rcx]
lea rdx, [rbp - 0x29]
mov rax, qword [rax]
call qword [case.0x140007d11.0]
cmp byte [rbp - 0x19], 0
je 0x140032504
lea rcx, [rbp + 0x17]
call fcn.140035c54
mov r12, qword [rax]
mov rdi, qword [rax + 8]
and qword [rax], 0
and qword [rax + 8], 0
or esi, 0xffffffff
mov r14, qword [rbp + 0x1f]
test r14, r14
je 0x1400323e8
nop dword [rax]
mov eax, esi
lock xadd dword [r14 + 8], eax
add eax, esi
jne 0x1400323e8
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax]
call qword [case.0x140007d11.0]
mov eax, esi
lock xadd dword [r14 + 0xc], eax
add eax, esi
jne 0x1400323e8
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
nop
lea rax, [0x14012dcd8]
mov qword [rbp - 9], rax
test rdi, rdi
je 0x1400323fc
lock add dword [rdi + 8], ebx
mov qword [rbp - 1], r12
mov qword [rbp + 7], rdi
test r12, r12
je 0x1400325ce
mov rcx, qword [r15]
mov rax, qword [rcx]
lea rdx, [rbp - 9]
mov rax, qword [rax]
call qword [case.0x140007d11.0]
test rdi, rdi
je 0x140032429
lock add dword [rdi + 8], ebx
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], rdi
mov rax, qword [r15 + 0x10]
lea r8, [rbp - 0x39]
mov rdx, qword [rax]
mov rcx, qword [r15 + 8]
call fcn.1400328a4
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14003248a
mov eax, esi
lock xadd dword [rcx + 8], eax
add eax, esi
jne 0x14003248a
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140007d11.0]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x14003248a
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
nop
mov rbx, qword [rbp + 7]
test rbx, rbx
je 0x1400324c9
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1400324c9
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140007d11.0]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1400324c9
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
nop
test rdi, rdi
je 0x140032504
mov eax, esi
lock xadd dword [rdi + 8], eax
add eax, esi
jne 0x140032504
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140007d11.0]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
add eax, esi
jne 0x140032504
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140007d11.0]
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rax, [0x1401d5468]
mov qword [rbp - 0x49], rax
and dword [rbp - 0x41], 0
mov edi, 7
mov ecx, dword [0x1401d5468]
mov rdx, rbx
cmp byte [0x1401d546c], 0
je 0x140032553
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140032560
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
nop word [rax + rax]
test eax, eax
jne 0x140032569
mov rcx, rdi
int 0x29
lock xadd dword [rbp - 0x41], ebx
mov r8, qword [r15 + 0x10]
mov rcx, qword [r15 + 0x18]
add rcx, 8
mov r9, qword [r15]
mov r8, qword [r8]
mov rdx, qword [r15 + 8]
call fcn.14002ef50
mov rcx, qword [r15 + 0x18]
call fcn.140032d1c
or esi, 0xffffffff
mov eax, dword [rbp - 0x41]
test eax, eax
je 0x140032504
mov eax, esi
lock xadd dword [rbp - 0x41], eax
mov rcx, qword [rbp - 0x49]
xor edx, edx
cmp byte [rcx + 4], dl
mov ecx, dword [rcx]
je 0x1400325bc
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x1400325c3
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test eax, eax
jne 0x140032595
mov rcx, rdi
int 0x29
jmp 0x140032595
lea rdx, str.StructuredTraceCopier_requires_non_null_IStructuredTrace_to_receive_the_copy.
lea rcx, [rbp + 0x27]
call fcn.14001fa5c
lea rdx, [0x140185288]
lea rcx, [rbp + 0x27]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
nop
mov r11, rsp
mov byte [r11 + 0x18], r8b
mov dword [rsp + 0x10], edx
sub rsp, 0x48
lea rax, [r11 + 0x10]
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x20], rax
lea rcx, [r11 + 8]
lea rax, [r11 + 0x18]
mov qword [r11 - 0x18], rax
lea rax, [r11 - 0x28]
mov qword [r11 + 8], rax
call fcn.140034f1c
add rsp, 0x48
ret