Function at 0x140052aa0
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 0x140052c86
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140052ad6
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x140052cb4
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x140052cba
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140052cd3
mov rsi, rax
test rax, rax
jne 0x140052b77
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 0x140052cf2
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 0x140052ce3
dec ecx
mov rdx, rsi
call fcn.14015349c
lea rax, [rsi + 8]
test rdi, rdi
je 0x140052b9c
lea rdx, [rdi + 8]
cmp qword [rdi], 0
mov qword [rdi], 0
lea rcx, [0x140160d10]
cmovne rcx, rdx
jmp 0x140052ba3
lea rcx, [0x140160d10]
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 0x140052cb4
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x140052cb4
lea rcx, [rsp + 0x38]
test rax, rax
je 0x140052ca4
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140052cb4
call sym.alloc::sync::Arc_T_A_::drop_slow::h736100757bbc3e37
jmp 0x140052cb4
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 0x140052ac8
jmp 0x140052ad6
mov rax, qword [rsp + 0x38]
lock dec qword [rax]
jne 0x140052cb4
call sym.alloc::sync::Arc_T_A_::drop_slow::h825ef9eb403066bd
add rsi, 0x10
jmp 0x140052cd5
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 0x140052af2
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 0x140052b6f
mov ecx, 8
mov edx, 0x60
call dbg.handle_alloc_error
ud2