Function at 0x140005070
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 0x140005256
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400050a6
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x140005284
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x14000528a
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400052a3
mov rsi, rax
test rax, rax
jne 0x140005147
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov rax, qword [0x140197868]
movzx eax, byte [rax]
mov ecx, 0x60
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400052c2
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 0x1400052b3
dec ecx
mov rdx, rsi
call fcn.14015349c
lea rax, [rsi + 8]
test rdi, rdi
je 0x14000516c
lea rdx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rcx, [0x140157050]
cmovne rcx, rdx
jmp 0x140005173
lea rcx, [0x140157050]
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 0x140005284
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x140005284
lea rcx, [rsp + 0x38]
test rax, rax
je 0x140005274
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140005284
call sym.alloc::sync::Arc_T_A_::drop_slow::h423dc61c0678aa4a
jmp 0x140005284
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140005098
jmp 0x1400050a6
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140005284
call sym.alloc::sync::Arc_T_A_::drop_slow::h16394bfc342f7eb4
add rsi, 0x10
jmp 0x1400052a5
mov rcx, rbx
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400050c2
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::hf708679f60708267
mov ecx, eax
jmp 0x14000513f
mov ecx, 8
mov edx, 0x60
call dbg.handle_alloc_error
ud2