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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov rdi, rcx
mov ecx, dword [0x1402e86f8]
test ecx, ecx
je 0x14011c32e
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14011c090
mov rbx, rax
cmp qword [rax + 8], 0
je 0x14011c090
add rbx, 0x10
jmp 0x14011c317
mov ecx, dword [0x1402e86f8]
test ecx, ecx
je 0x14011c341
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14011c1df
mov rsi, rax
test rax, rax
jne 0x14011c121
mov qword [rsp + 0x98], 0
lea rax, [0x1402e86e0]
mov qword [rsp + 0x90], rax
mov al, byte [0x1403f9274]
mov ecx, 0x98
mov edx, 8
call fcn.140061500
test rax, rax
je 0x14011c393
mov rsi, rax
lea rdx, [rsp + 0x90]
mov r8d, 0x98
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov ecx, dword [0x1402e86f8]
test ecx, ecx
je 0x14011c354
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14011c1f3
lea rbx, [rsp + 0x90]
mov r8d, 0x90
mov rcx, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
mov qword [rdi], 0
cmp qword [rbx], 0
je 0x14011c1e6
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
movups xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov r13, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rsp + 0xd8]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rsp + 0xe8]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rsp + 0xf8]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x108]
movaps xmmword [rsp + 0x60], xmm0
mov r12, qword [rsp + 0x118]
jmp 0x14011c28d
xor ebx, ebx
jmp 0x14011c317
lea rcx, [rsp + 0x90]
call fcn.140101187
call fcn.140234fc0
test rax, rax
je 0x14011c367
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lea r8, [rcx + 1]
mov qword [rax], r8
movups xmm0, xmmword [0x1403b5170]
movups xmm1, xmmword [str.PQ__]
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xb8], rdx
pxor xmm2, xmm2
movdqa xmmword [rsp + 0x80], xmm2
pcmpeqd xmm2, xmm2
movdqa xmmword [rsp + 0x70], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
mov eax, 8
mov qword [rsp + 0x38], rax
mov eax, 0x500000
mov qword [rsp + 0x30], rax
xor r12d, r12d
xor r13d, r13d
mov ebp, 8
xor r14d, r14d
xor r15d, r15d
lea rdx, [rsi + 8]
lea rdi, [rsp + 0x90]
mov r8d, 0x90
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov qword [rsi + 8], 1
lea rbx, [rsi + 0x10]
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r14
mov qword [rsi + 0x20], rbp
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi + 0x28], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x40], r13
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x48], rax
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmm2, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x80], xmm2
movups xmmword [rsi + 0x60], xmm0
movups xmmword [rsi + 0x70], xmm1
mov qword [rsi + 0x90], r12
mov rcx, rdi
call fcn.140101187
mov rax, rbx
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1402e86e0]
call fcn.14020bf50
mov ecx, eax
jmp 0x14011c072
lea rcx, [0x1402e86e0]
call fcn.14020bf50
mov ecx, eax
jmp 0x14011c0a0
lea rcx, [0x1402e86e0]
call fcn.14020bf50
mov ecx, eax
jmp 0x14011c119
lea rax, str.J__
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadlocal.rs
lea r9, [0x14034a9c8]
lea r8, [rsp + 0x90]
mov edx, 0x46
call fcn.14007f9a0
lea rsi, [rsp + 0x98]
mov ecx, 8
mov edx, 0x98
call fcn.140077010
ud2