Function at 0x140008340
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rcx
lea rax, [rcx + 0x2bd8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13, qword [rdi + 0x2bc8]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x140008468
nop word [rax + rax]
mov rax, qword [r13 + 8]
xor r14d, r14d
mov qword [rsp + 0x28], rax
test rax, rax
jle 0x14000845b
nop dword [rax]
mov r15d, dword [0x1400af708]
mov rsi, qword [r13 + r14*8 + 0x10]
call rbp
mov ebx, eax
mov ecx, r15d
call rdi
mov ecx, ebx
mov r15, rax
call r12
mov rax, qword [r15 + 0x2be8]
mov rdx, qword [r15 + 0x2bf8]
lea r8, [rsi - 0x10]
sub rax, 1
js 0x140008411
lea rcx, [rdx + rax*8]
mov rdx, rcx
jmp 0x1400083fe
sub rax, 1
sub rdx, 8
cmp rax, 0xffffffffffffffff
je 0x140008411
cmp r8, qword [rdx]
jne 0x1400083f0
mov rax, qword [rcx]
mov qword [rdx], rax
sub qword [r15 + 0x2be8], 1
mov rax, qword [rsi - 0x10]
mov qword [rsp + 0x20], r8
sub rax, 8
mov qword [rsi - 0x10], rax
cmp rax, 7
ja 0x14000844c
mov ebx, dword [0x1400af708]
call rbp
mov esi, eax
mov ecx, ebx
call rdi
mov ecx, esi
mov rbx, rax
call r12
mov rdx, qword [rsp + 0x20]
lea rcx, [rbx + 0x50]
call sym.addZCT__system_5813
add r14, 1
cmp qword [rsp + 0x28], r14
jne 0x1400083b0
mov r13, qword [r13]
test r13, r13
jne 0x140008398
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x18], 0
jle 0x140008494
nop
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call sym.collectZCT__system_6361
cmp qword [rbx + 0x18], 0
jg 0x140008480
mov rax, qword [rsp + 0x30]
mov rsi, qword [rax + 0x2ba0]
test rsi, rsi
je 0x1400084db
nop dword [rax]
mov ebx, dword [0x1400af708]
mov r13, rsi
mov rsi, qword [rsi]
call rbp
mov r15d, eax
mov ecx, ebx
call rdi
mov ecx, r15d
mov rbx, rax
call r12
lea rdx, [r13 - 0x10]
lea rcx, [rbx + 0xa0]
call sym.rawDealloc__system_5218
test rsi, rsi
jne 0x1400084a8
mov r14, qword [rsp + 0x30]
mov ebx, dword [0x1400af708]
mov rsi, qword [r14 + 0x2ba8]
mov qword [r14 + 0x2ba0], 0
call rbp
mov ecx, ebx
mov r13d, eax
call rdi
mov ecx, r13d
mov rbx, rax
call r12
lea rdx, [rsi - 0x10]
lea rcx, [rbx + 0xa0]
call sym.rawDealloc__system_5218
mov ebx, dword [0x1400af708]
mov qword [r14 + 0x2ba8], 0
mov qword [r14 + 0x2b90], 0
call rbp
mov ecx, ebx
mov esi, eax
call rdi
mov ecx, esi
mov rbx, rax
call r12
lea rcx, [rbx + 0xa0]
mov edx, 0x2010
call sym.rawAlloc__system_5089
movdqu xmm0, xmmword [0x1400693c0]
mov rdi, rax
lea rdx, [rax + 0x10]
mov qword [rax + 8], 1
add rdi, 0x18
mov rcx, rdx
mov qword [rax + 0x10], 0
mov qword [rax + 0x2008], 0
and rdi, 0xfffffffffffffff8
xor eax, eax
sub rcx, rdi
add ecx, 0x2000
shr ecx, 3
rep stosq qword [rdi], rax
mov qword [r14 + 0x2ba8], rdx
mov qword [r14 + 0x2ba0], 0
mov rsi, qword [r14 + 0x30]
mov rdi, qword [r14 + 0x40]
movups xmmword [r14 + 0x2b90], xmm0
test rsi, rsi
jle 0x1400085e7
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi + rbx*8]
mov rcx, qword [rsp + 0x30]
add rbx, 1
call sym.markS__system_6322
cmp rsi, rbx
jne 0x1400085d0
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call sym.markGlobals__system_6330
mov rcx, rdi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sweep__system_6318