Function at 0x14004d1e0
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 [0x1401993f8]
mov eax, dword [0x1401993fc]
add edx, eax
je 0x14004d292
mov dword [rbp - 0x28], r12d
call fcn.1400057e0
mov qword [rbp - 0x30], rax
lock inc dword [rbp - 0x28]
mov dword [rbp + 0x40], 1
mov rax, qword [rbp - 0x30]
test rax, rax
jne 0x14004d255
call fcn.1400057e0
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.140004bd0
nop
mov eax, dword [rbp + 0x40]
test al, 1
je 0x14004d2ca
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 0x14004d2c6
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp - 0x28], eax
cmp eax, 1
jns 0x14004d2b2
lock inc dword [rbp - 0x28]
mov rax, qword [0x140198db8]
cmp eax, 0xffffffff
je 0x14004d2ea
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov rax, qword [0x140198db8]
jmp 0x14004d2f0
mov ecx, dword [0x140198dbc]
lea edx, [rcx + 1]
cmp eax, 0xffffffff
je 0x14004d303
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 0x14004d328
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 0x14004d3a8
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x14006aed5.0]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14004d378
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14004d373
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x14004d373
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14004d360
mov rbx, rax
jmp 0x14004d39f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14004d39f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14004d390
mov rdi, qword [r13 + 8]
cmp rbx, rdi
jne 0x14004d334
mov r8, qword [rdi + 8]
lea rdx, [r13 + 8]
lea rcx, [r13 + 8]
call fcn.140066ff0
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.14004bad0
nop
mov ebx, esi
test esi, esi
jle 0x14004d3f2
test r14, r14
je 0x14004d3ec
test esi, esi
jle 0x14004d3ec
dec esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec ebx
test ebx, ebx
jg 0x14004d3d8
lea rcx, [rbp - 0x10]
call fcn.14002f940
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret