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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov rdi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14002e1c6
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002e016
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x14002e1f4
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x14002e1fa
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14002e213
mov rsi, rax
test rax, rax
jne 0x14002e0b7
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov rax, qword [0x140166748]
movzx eax, byte [rax]
mov ecx, 0x60
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14002e232
mov rsi, rax
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
movups xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x14002e223
dec ecx
mov rdx, rsi
call fcn.140126534
lea rax, [rsi + 8]
test rdi, rdi
je 0x14002e0dc
lea rdx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rcx, [0x14012fdd8]
cmovne rcx, rdx
jmp 0x14002e0e3
lea rcx, [0x14012fdd8]
movups xmm0, xmmword [rcx + 0x40]
movaps xmmword [rsp + 0xc0], xmm0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
mov rcx, qword [rax + 0x50]
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rax + 0x40]
movaps xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 8], 1
movaps xmm0, xmmword [rsp + 0xc0]
movups xmmword [rsi + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movaps xmm2, xmmword [rsp + 0xa0]
movaps xmm3, xmmword [rsp + 0xb0]
movups xmmword [rsi + 0x40], xmm3
movups xmmword [rsi + 0x30], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
cmp qword [rsp + 0x20], 0
je 0x14002e1f4
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x14002e1f4
lea rcx, [rsp + 0x38]
test rax, rax
je 0x14002e1e4
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x14002e1f4
call sym.alloc::sync::Arc_T_A_::drop_slow::h86335ceece3bfac7
jmp 0x14002e1f4
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002e008
jmp 0x14002e016
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x14002e1f4
call sym.alloc::sync::Arc_T_A_::drop_slow::hd49ddedda78a998c
add rsi, 0x10
jmp 0x14002e215
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14002e032
xor esi, esi
mov rax, rsi
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14002e0af
mov ecx, 8
mov edx, 0x60
call dbg.handle_alloc_error
ud2