Function at 0x140008730
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 rsi, 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 rbp, qword [rsi + 0x2bc8]
mov rbx, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_SetLastError]
test rbp, rbp
je 0x140008858
nop word [rax + rax]
mov rax, qword [rbp + 8]
xor r14d, r14d
mov qword [rsp + 0x20], rax
test rax, rax
jle 0x14000884b
nop dword [rax]
mov r15d, dword [0x1400707a8]
mov r12, qword [rbp + r14*8 + 0x10]
call rsi
mov r13d, eax
mov ecx, r15d
call rbx
mov ecx, r13d
lea r13, [r12 - 0x10]
mov r15, rax
call rdi
mov rax, qword [r15 + 0x2be8]
mov rdx, qword [r15 + 0x2bf8]
sub rax, 1
js 0x140008801
lea rcx, [rdx + rax*8]
mov rdx, rcx
jmp 0x1400087ee
sub rax, 1
sub rdx, 8
cmp rax, 0xffffffffffffffff
je 0x140008801
cmp r13, qword [rdx]
jne 0x1400087e0
mov rax, qword [rcx]
mov qword [rdx], rax
sub qword [r15 + 0x2be8], 1
mov rax, qword [r12 - 0x10]
sub rax, 8
mov qword [r12 - 0x10], rax
cmp rax, 7
ja 0x14000883c
mov r15d, dword [0x1400707a8]
call rsi
mov dword [rsp + 0x2c], eax
mov ecx, r15d
call rbx
mov ecx, dword [rsp + 0x2c]
mov r15, rax
call rdi
lea rcx, [r15 + 0x50]
mov rdx, r13
call sym.addZCT__system_5862
add r14, 1
cmp qword [rsp + 0x20], r14
jne 0x1400087a0
mov rbp, qword [rbp]
test rbp, rbp
jne 0x140008788
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x18], 0
jle 0x140008884
nop
mov r14, qword [rsp + 0x30]
mov rcx, r14
call sym.collectZCT__system_6410
cmp qword [r14 + 0x18], 0
jg 0x140008870
mov rax, qword [rsp + 0x30]
mov r12, qword [rax + 0x2ba0]
test r12, r12
je 0x1400088cb
nop dword [rax]
mov ebp, dword [0x1400707a8]
mov r14, r12
mov r12, qword [r12]
call rsi
mov r15d, eax
mov ecx, ebp
call rbx
mov ecx, r15d
mov rbp, rax
call rdi
lea rdx, [r14 - 0x10]
lea rcx, [rbp + 0xa0]
call sym.rawDealloc__system_5267
test r12, r12
jne 0x140008898
mov r13, qword [rsp + 0x30]
mov r15d, dword [0x1400707a8]
mov r12, qword [r13 + 0x2ba8]
mov qword [r13 + 0x2ba0], 0
call rsi
mov ecx, r15d
mov r14d, eax
call rbx
mov ecx, r14d
mov rbp, rax
call rdi
lea rdx, [r12 - 0x10]
lea rcx, [rbp + 0xa0]
call sym.rawDealloc__system_5267
mov r14d, dword [0x1400707a8]
mov qword [r13 + 0x2ba8], 0
mov qword [r13 + 0x2b90], 0
call rsi
mov ecx, r14d
mov r12d, eax
call rbx
mov ecx, r12d
mov rbx, rax
call rdi
lea rcx, [rbx + 0xa0]
mov edx, 0x2010
call sym.rawAlloc__system_5138
movdqa xmm0, xmmword [0x14004e320]
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 [r13 + 0x2ba8], rdx
mov qword [r13 + 0x2ba0], 0
mov rsi, qword [r13 + 0x30]
mov rdi, qword [r13 + 0x40]
movups xmmword [r13 + 0x2b90], xmm0
test rsi, rsi
jle 0x1400089d7
xor ebx, ebx
nop dword [rax + rax]
mov rdx, qword [rdi + rbx*8]
mov rcx, qword [rsp + 0x30]
add rbx, 1
call sym.markS__system_6371
cmp rsi, rbx
jne 0x1400089c0
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call sym.markGlobals__system_6379
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_6367