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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x120
mov rbx, rdx
mov rsi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140007af5
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140007aea
je 0x140007ae8
test rbx, rbx
je 0x1400078ca
mov rdi, qword [rbx]
mov qword [rbx], 0
test rdi, rdi
jne 0x140007a55
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x2f]
lea rdi, [rsp + 0x30]
mov r8d, 0x20
mov rdx, rdi
call sym.__rand_core::os::OsRng_as_rand_core::RngCore_::try_fill_bytes::hc6a38af4b28694bc
test rax, rax
jne 0x140007b4d
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x60]
lea r8, [0x140e5ef20]
lea rdx, [rsp + 0x90]
mov r9d, 8
call sym.rand_chacha::guts::init_chacha::h63920a7a72a1cb72
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movaps xmm2, xmmword [rsp + 0x80]
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm1
movups xmmword [rsp + 0xe0], xmm2
mov rax, qword [0x140e85d48]
movzx eax, byte [rax]
mov ecx, 0x170
mov edx, 0x10
call sym.__rust_alloc
test rax, rax
je 0x140007bb5
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
xorps xmm0, xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x60], xmm0
movaps xmmword [rax + 0x70], xmm0
movaps xmmword [rax + 0x80], xmm0
movaps xmmword [rax + 0x90], xmm0
movaps xmmword [rax + 0xa0], xmm0
movaps xmmword [rax + 0xb0], xmm0
movaps xmmword [rax + 0xc0], xmm0
movaps xmmword [rax + 0xd0], xmm0
movaps xmmword [rax + 0xe0], xmm0
movaps xmmword [rax + 0xf0], xmm0
movaps xmmword [rax + 0x100], xmm0
mov qword [rax + 0x110], 0x40
mov rax, qword [rsp + 0xe8]
mov qword [rdi + 0x148], rax
movups xmm0, xmmword [rsp + 0xb8]
movups xmm1, xmmword [rsp + 0xc8]
movups xmm2, xmmword [rsp + 0xd8]
movups xmmword [rdi + 0x138], xmm2
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov qword [rdi + 0x150], 0x10000
mov qword [rdi + 0x158], 0x10000
mov qword [rdi + 0x160], 0
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rsi
mov rax, qword [0x140e85d48]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140007b3c
mov qword [rax], rdi
mov rdi, rax
mov qword [rax + 8], rsi
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140007b10
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140007b1f
dec ecx
mov rdx, rdi
call fcn.1400a123c
test rbx, rbx
je 0x140007ae3
mov rcx, qword [rbx]
dec qword [rcx]
jne 0x140007ad0
dec qword [rcx + 8]
jne 0x140007ad0
mov edx, 0x170
mov r8d, 0x10
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rbx
call sym.__rust_dealloc
mov rax, rdi
jmp 0x140007aea
xor eax, eax
add rsp, 0x120
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h36f0af28e6a3c259
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400078ac
jmp 0x140007aea
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h36f0af28e6a3c259
mov ecx, eax
jmp 0x140007a94
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h36f0af28e6a3c259
mov ecx, eax
mov rdx, rdi
call fcn.1400a123c
test rbx, rbx
jne 0x140007ab2
jmp 0x140007ae3
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::hb3fff6b3e53f82da
jmp 0x140007bb3
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x90], rdi
lea rax, [sym.__rand_core::error::Error_as_core::fmt::Display_::fmt::h9e9609ef2bc1bb28]
mov qword [rsp + 0x98], rax
lea rax, [0x140e5f168]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, [0x140e5f1e0]
lea rcx, [rsp + 0x50]
call sym.core::panicking::panic_fmt::hf911af193ba9b3bd
ud2
mov ecx, 0x10
mov edx, 0x170
call sym.alloc::alloc::handle_alloc_error::hb3fff6b3e53f82da
mov rsi, rax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
test rax, rax
je 0x140007bde
mov rcx, rdi
call rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140007bf3
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call sym.__rust_dealloc
mov rcx, rsi
call sym._Unwind_Resume
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140007c10
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call sym.__rust_dealloc
call sym.core::panicking::panic_in_cleanup::h89f4ae6319243228
mov rsi, rax
lea rcx, [rsp + 0x50]
call sym.__alloc::rc::Rc_T_A__as_core::ops::drop::Drop_::drop::hcf12fdaa5dcce4e9
mov rcx, rsi
call sym._Unwind_Resume
int3