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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r13, rcx
xor r12d, r12d
mov dword [rbp + 0x40], r12d
lea rcx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea rbx, str.secc::CUIPluginManager::DestroyAllPlugins
mov qword [rbp - 0x10], rbx
mov edx, dword [0x1401c1658]
mov eax, dword [0x1401c165c]
add edx, eax
je 0x140054352
mov dword [rbp - 0x28], r12d
call fcn.140005ad0
mov qword [rbp - 0x30], rax
lock inc dword [rbp - 0x28]
mov dword [rbp + 0x40], 1
mov rax, qword [rbp - 0x30]
test rax, rax
jne 0x140054315
call fcn.140005ad0
mov qword [rbp - 0x30], rax
lock inc dword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
mov dword [rbp + 0x48], 0x20
mov qword [rsp + 0x30], rbx
lea rax, str._s_start:
mov qword [rsp + 0x28], rax
lea rax, str._CScopeTrace::operator___
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp + 0x48]
movsx edx, r12w
call fcn.140004c90
nop
mov eax, dword [rbp + 0x40]
test al, 1
je 0x14005438a
and eax, 0xfffffffe
mov dword [rbp + 0x40], eax
mov qword [rbp - 0x30], r12
mov eax, 0xffffffff
lock xadd dword [rbp - 0x28], eax
cmp eax, 1
js 0x140054386
call fcn.140005e40
mov eax, 0xffffffff
lock xadd dword [rbp - 0x28], eax
cmp eax, 1
jns 0x140054372
lock inc dword [rbp - 0x28]
mov rax, qword [0x1401c0ff8]
cmp eax, 0xffffffff
je 0x1400543aa
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov rax, qword [0x1401c0ff8]
jmp 0x1400543b0
mov ecx, dword [0x1401c0ffc]
lea edx, [rcx + 1]
cmp eax, 0xffffffff
je 0x1400543c3
movsxd rdx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, r12d
mov dword [rbp - 0x18], r12d
lea r14, [r13 + 0x18]
mov qword [rbp - 0x20], r14
test r14, r14
je 0x1400543e8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 1
mov dword [rbp - 0x18], esi
mov rdi, qword [r13 + 8]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140054468
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140077645.0]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140054438
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140054433
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x140054433
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140054420
mov rbx, rax
jmp 0x14005445f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14005445f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140054450
mov rdi, qword [r13 + 8]
cmp rbx, rdi
jne 0x1400543f4
mov r8, qword [rdi + 8]
lea rdx, [r13 + 8]
lea rcx, [r13 + 8]
call fcn.140073210
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov qword [rdi + 0x10], rdi
mov qword [r13 + 0x10], r12
lea rcx, [r13 + 0x48]
call fcn.140052b90
nop
mov ebx, esi
test esi, esi
jle 0x1400544b2
test r14, r14
je 0x1400544ac
test esi, esi
jle 0x1400544ac
dec esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec ebx
test ebx, ebx
jg 0x140054498
lea rcx, [rbp - 0x10]
call fcn.140032660
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret