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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.1401df720
sub rsp, rax
mov ecx, 0xa80
call fcn.140020c60
mov rbx, rax
test rax, rax
je 0x1400306b9
lea rcx, [0x140357108]
mov byte [0x140357100], 0
call fcn.1400307e0
xor esi, esi
mov byte [rbx], 0
xor eax, eax
mov word [rsp + 0x20], 0
xorps xmm0, xmm0
mov dword [rbp - 0x1e], eax
xor edx, edx
mov word [rbp - 0x1a], ax
mov r8d, 0xb0
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x20]
mov byte [rbp - 8], al
movups xmmword [rbp - 0x3e], xmm0
mov qword [rsp + 0x28], rsi
movups xmmword [rbp - 0x2e], xmm0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov dword [rbp - 0x48], 0x3e8
mov dword [rbp - 0x44], 0x3e8
mov word [rbp - 0x40], 0xffff
mov qword [rbp - 0x18], rsi
mov qword [rbp], rsi
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], rsi
call fcn.1401e1b90
mov qword [rbp + 0xd0], 1
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0xe0], 1
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xf0], 1
mov qword [rbp + 0xf8], rsi
mov qword [rbp + 0x100], 1
mov qword [rbp + 0x108], rsi
mov qword [rbp + 0x110], 1
mov qword [rbp + 0x118], rsi
mov qword [rbp + 0x120], 1
mov qword [rbp + 0x128], rsi
mov qword [rbp + 0x130], 1
mov qword [rbp + 0x138], rsi
mov qword [rbp + 0x140], 1
mov qword [rbp + 0x148], rsi
mov qword [rbp + 0x150], 1
mov qword [rbp + 0x158], rsi
mov qword [rbp + 0x160], 1
mov qword [rbp + 0x168], rsi
mov qword [rbp + 0x170], 1
mov qword [rbp + 0x178], rsi
mov qword [rbp + 0x180], 1
mov qword [rbp + 0x188], rsi
mov qword [rbp + 0x190], 1
mov qword [rbp + 0x198], rsi
mov qword [rbp + 0x1a0], 1
mov qword [rbp + 0x1a8], rsi
mov qword [rbp + 0x1b0], 1
mov qword [rbp + 0x1b8], rsi
mov qword [rbp + 0x1c0], 1
mov qword [rbp + 0x1c8], rsi
mov qword [rbp + 0x1d0], 1
mov qword [rbp + 0x1d8], rsi
mov qword [rbp + 0x1e0], 1
mov qword [rbp + 0x1e8], rsi
mov qword [rbp + 0x1f0], 1
xor eax, eax
mov qword [rbp + 0x1f8], rsi
xor edx, edx
mov dword [rbp + 0x251], eax
mov r8d, 0x6d8
mov word [rbp + 0x255], ax
lea rcx, [rbp + 0x280]
mov byte [rbp + 0x257], al
mov qword [rbp + 0x200], 1
mov qword [rbp + 0x208], rsi
mov qword [rbp + 0x210], 1
mov qword [rbp + 0x218], rsi
mov qword [rbp + 0x220], 1
mov qword [rbp + 0x228], rsi
mov qword [rbp + 0x230], 1
mov qword [rbp + 0x238], rsi
mov qword [rbp + 0x240], 1
mov qword [rbp + 0x248], rsi
mov byte [rbp + 0x250], 6
mov qword [rbp + 0x258], rsi
mov qword [rbp + 0x260], rsi
mov qword [rbp + 0x268], rsi
mov qword [rbp + 0x270], rsi
mov qword [rbp + 0x278], rsi
call fcn.1401e1b90
lea rcx, [rbx + 8]
mov qword [rbp + 0x958], rsi
lea rdx, [rsp + 0x20]
mov byte [rbp + 0x960], sil
mov r8d, 0xa48
call fcn.1401e14e0
mov ecx, dword [0x140577180]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400306cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140577180]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
jne 0x14003064e
mov ecx, 0xa80
call fcn.140020c60
mov rdi, rax
test rax, rax
je 0x1400306b9
xorps xmm0, xmm0
mov byte [rax], sil
xor eax, eax
mov word [rbp + 0x970], si
xor edx, edx
mov dword [rbp + 0xa32], eax
mov r8d, 0xb0
mov word [rbp + 0xa36], ax
lea rcx, [rbp + 0xa70]
mov qword [rbp + 0xa40], rax
mov byte [rbp + 0xa48], al
mov qword [rbp + 0x978], rsi
mov qword [rbp + 0x980], rsi
mov qword [rbp + 0x988], rsi
mov qword [rbp + 0x990], rsi
mov qword [rbp + 0x998], rsi
mov qword [rbp + 0x9a0], rsi
mov qword [rbp + 0x9a8], rsi
mov qword [rbp + 0x9b0], rsi
mov qword [rbp + 0x9b8], rsi
mov qword [rbp + 0x9c0], rsi
mov qword [rbp + 0x9c8], rsi
mov qword [rbp + 0x9d0], rsi
mov qword [rbp + 0x9d8], rsi
mov qword [rbp + 0x9e0], rsi
mov qword [rbp + 0x9e8], rsi
mov qword [rbp + 0x9f0], rsi
mov qword [rbp + 0x9f8], rsi
mov qword [rbp + 0xa00], rsi
mov dword [rbp + 0xa08], 0x3e8
mov dword [rbp + 0xa0c], 0x3e8
mov word [rbp + 0xa10], 0xffff
movups xmmword [rbp + 0xa12], xmm0
mov qword [rbp + 0xa38], rsi
movups xmmword [rbp + 0xa22], xmm0
mov qword [rbp + 0xa50], rsi
mov qword [rbp + 0xa58], rsi
mov qword [rbp + 0xa60], rsi
mov qword [rbp + 0xa68], rsi
call fcn.1401e1b90
mov qword [rbp + 0xb20], 1
mov qword [rbp + 0xb28], rsi
mov qword [rbp + 0xb30], 1
mov qword [rbp + 0xb38], rsi
mov qword [rbp + 0xb40], 1
mov qword [rbp + 0xb48], rsi
mov qword [rbp + 0xb50], 1
mov qword [rbp + 0xb58], rsi
mov qword [rbp + 0xb60], 1
mov qword [rbp + 0xb68], rsi
mov qword [rbp + 0xb70], 1
mov qword [rbp + 0xb78], rsi
mov qword [rbp + 0xb80], 1
mov qword [rbp + 0xb88], rsi
mov qword [rbp + 0xb90], 1
mov qword [rbp + 0xb98], rsi
mov qword [rbp + 0xba0], 1
mov qword [rbp + 0xba8], rsi
mov qword [rbp + 0xbb0], 1
mov qword [rbp + 0xbb8], rsi
mov qword [rbp + 0xbc0], 1
mov qword [rbp + 0xbc8], rsi
mov qword [rbp + 0xbd0], 1
mov qword [rbp + 0xbd8], rsi
mov qword [rbp + 0xbe0], 1
mov qword [rbp + 0xbe8], rsi
mov qword [rbp + 0xbf0], 1
mov qword [rbp + 0xbf8], rsi
mov qword [rbp + 0xc00], 1
mov qword [rbp + 0xc08], rsi
mov qword [rbp + 0xc10], 1
mov qword [rbp + 0xc18], rsi
mov qword [rbp + 0xc20], 1
mov qword [rbp + 0xc28], rsi
mov qword [rbp + 0xc30], 1
mov qword [rbp + 0xc38], rsi
mov qword [rbp + 0xc40], 1
mov qword [rbp + 0xc48], rsi
mov qword [rbp + 0xc50], 1
mov qword [rbp + 0xc58], rsi
mov qword [rbp + 0xc60], 1
xor eax, eax
mov qword [rbp + 0xc68], rsi
xor edx, edx
mov dword [rbp + 0xca1], eax
mov r8d, 0x6d8
mov word [rbp + 0xca5], ax
lea rcx, [rbp + 0xcd0]
mov byte [rbp + 0xca7], al
mov qword [rbp + 0xc70], 1
mov qword [rbp + 0xc78], rsi
mov qword [rbp + 0xc80], 1
mov qword [rbp + 0xc88], rsi
mov qword [rbp + 0xc90], 1
mov qword [rbp + 0xc98], rsi
mov byte [rbp + 0xca0], 6
mov qword [rbp + 0xca8], rsi
mov qword [rbp + 0xcb0], rsi
mov qword [rbp + 0xcb8], rsi
mov qword [rbp + 0xcc0], rsi
mov qword [rbp + 0xcc8], rsi
call fcn.1401e1b90
lea rcx, [rdi + 8]
mov qword [rbp + 0x13a8], rsi
lea rdx, [rbp + 0x970]
mov byte [rbp + 0x13b0], sil
mov r8d, 0xa48
call fcn.1401e14e0
mov ecx, dword [0x140577180]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400306cb
lea rcx, [rdi + 8]
cmp byte [rcx + 0x330], sil
je 0x140030665
xor edx, edx
call fcn.140030d00
mov rcx, rax
movzx eax, byte [rcx + 0x330]
cmp al, 2
ja 0x140030692
cmp byte [0x140357024], sil
jne 0x140030690
cmp byte [rcx], sil
je 0x140030690
cmp byte [rcx + 1], sil
jg 0x140030690
cmp dword [0x1403702f0], esi
ja 0x140030690
xor al, al
jmp 0x140030692
mov al, 1
xchg byte [rcx + 0x330], al
cmp al, 2
je 0x140030665
lea r11, [rsp + 0x14c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
jmp fcn.1400640f0
lea rcx, str._jemalloc_:_Error_allocating_TSD_n
call fcn.14002eb70
call fcn.1401f3454
int3
lea rcx, str._jemalloc_:_Error_setting_TSD_n
call fcn.14002eb70
call fcn.1401f3454
int3