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

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x14001818a
mov byte [rbp + 7], 0
mov rax, qword [0x14005a080]
cmp rax, 3
jne 0x140017f68
cmp byte [rbp + 7], 0
je 0x140017f77
add rsp, 0x58
pop rsi
pop rbp
ret
lea rcx, [rbp + 7]
call fcn.140018210
cmp byte [rbp + 7], 0
jne 0x140017f61
mov ecx, dword [0x1400470c8]
test ecx, ecx
je 0x14001814b
dec ecx
call fcn.140044a0c
cmp rax, 2
jb 0x140017f9c
cmp byte [rax + 8], 0
jne 0x140018032
mov ecx, dword [0x1400470c8]
test ecx, ecx
je 0x14001815e
dec ecx
call fcn.140044a0c
test rax, rax
je 0x140017fe4
cmp rax, 1
jne 0x14001802c
lea rax, [0x14004f9c0]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_129f3b9964af4d4a709d1383930ade12dfe7c081library_std_src_threadlocal.rs
lea r9, [0x14004f1b8]
lea r8, [rbp - 0x20]
mov edx, 0x46
call fcn.140005920
movzx eax, byte [0x14005a108]
mov edx, 0x10
xor ecx, ecx
call fcn.1400354c0
test rax, rax
je 0x14001819d
lea rcx, [0x1400470b0]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x1400470c8]
test ecx, ecx
je 0x140018171
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.140044a04
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
mov rcx, qword [0x14005a088]
cmp rcx, rax
jne 0x140018052
mov eax, dword [0x14005a090]
inc eax
je 0x140017f61
jmp 0x140018073
mov rcx, rax
mov dl, 1
xor eax, eax
lock cmpxchg byte [0x14005a094], dl
jne 0x140017f61
mov qword [0x14005a088], rcx
mov eax, 1
mov dword [0x14005a090], eax
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 1
mov qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
mov byte [rbp - 3], 0
mov dword [rbp - 7], 0
cmp qword [0x14005a098], 0
jne 0x140018196
mov qword [0x14005a098], 0xffffffffffffffff
cmp byte [0x14005a0b8], 0
jne 0x1400180db
lea rcx, [0x14005a0a0]
call fcn.140018330
test rax, rax
je 0x1400180db
mov rcx, rax
call fcn.140016b60
cmp qword [0x14005a0a0], 0
je 0x1400180f6
mov rcx, qword [0x14005a0a8]
mov edx, 1
call fcn.140002cf0
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [0x14005a0b0], xmm1
movups xmmword [0x14005a0a0], xmm0
inc qword [0x14005a098]
dec dword [0x14005a090]
jne 0x140017f61
mov qword [0x14005a088], 0
xor eax, eax
xchg byte [0x14005a094], al
cmp al, 2
jne 0x140017f61
lea rcx, [0x14005a094]
call sub.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle
jmp 0x140017f61
lea rcx, [0x1400470b0]
call fcn.140017990
mov ecx, eax
jmp 0x140017f87
lea rcx, [0x1400470b0]
call fcn.140017990
mov ecx, eax
jmp 0x140017fac
lea rcx, [0x1400470b0]
mov rsi, rax
call fcn.140017990
mov ecx, eax
mov rax, rsi
jmp 0x14001801e
lea rcx, str.library_std_src_synconce.rs
call fcn.140005a50
call fcn.140005110
ud2
mov ecx, 8
mov edx, 0x10
call fcn.1400031e0
mov rsi, rax
cmp qword [0x14005a0a0], 0
je 0x1400181ca
mov rcx, qword [0x14005a0a8]
mov edx, 1
call fcn.140002cf0
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [0x14005a0b0], xmm1
movups xmmword [0x14005a0a0], xmm0
inc qword [0x14005a098]
jmp 0x1400181f5
call fcn.140018280
mov rcx, rsi
call fcn.140045030
call fcn.140005e40
int3