Function at 0x140007130
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, 0x58
lea rax, [rcx + 0x2110]
mov byte [rcx + 0x2930], 1
mov r13, rcx
mov qword [rsp + 0x40], rax
lea rax, [rcx + 0x2910]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
mov r15, qword [rax]
test r15, r15
je 0x140007302
xor r14d, r14d
nop word cs:[rax + rax]
mov rbx, qword [r15 + r14*8 + 0x10]
mov rsi, r14
shl rsi, 6
test rbx, rbx
jne 0x1400071ad
jmp 0x1400072e8
add rsi, 1
shr rbx, 1
je 0x1400072e8
test bl, 1
je 0x1400071a0
mov rcx, qword [r15 + 8]
shl rcx, 9
or rcx, rsi
mov rdx, rcx
sar rdx, 9
movzx eax, dl
mov rax, qword [r13 + rax*8 + 0x2110]
test rax, rax
jne 0x1400071e8
jmp 0x1400071a0
mov rax, qword [rax]
test rax, rax
je 0x1400071a0
cmp qword [rax + 8], rdx
jne 0x1400071e0
mov rdx, rcx
and edx, 0x1ff
mov r8, rdx
sar r8, 6
mov rax, qword [rax + r8*8 + 0x10]
bt rax, rdx
jae 0x1400071a0
mov rdi, rcx
shl rdi, 0xc
test byte [rdi], 1
je 0x1400071a0
mov rbp, qword [rdi + 8]
cmp rbp, 0xfc0
jle 0x140007331
cmp qword [rdi + 0x28], 1
jbe 0x1400071a0
mov rcx, rdi
mov r9, qword [r13 + 0x2b98]
mov r8, qword [r13 + 0x2ba8]
lea r12, [rdi + 0x20]
shr rcx, 0xc
mov rax, rcx
and rax, r9
mov rdx, qword [r8 + rax*8]
test rdx, rdx
jne 0x140007271
jmp 0x140007281
lea rax, [rax + rax*4 + 1]
and rax, r9
mov rdx, qword [r8 + rax*8]
test rdx, rdx
je 0x140007281
cmp rcx, qword [rdx + 8]
jne 0x140007260
test byte [rdx + 0x10], 4
jne 0x1400071a0
mov ebp, dword [0x1400707a8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rsp + 0x28]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi + 0x28]
cmp qword [rax + 0x28], 0
je 0x1400072c9
add qword [rbp + 0x98], 1
lea rcx, [r12 + 0x10]
call qword [rax + 0x28]
sub qword [rbp + 0x98], 1
lea rcx, [r13 + 0x68]
mov rdx, r12
add rsi, 1
call sym.rawDealloc__system_5267
shr rbx, 1
jne 0x1400071ad
nop word [rax + rax]
add r14, 1
cmp r14, 8
jne 0x140007180
mov r15, qword [r15]
test r15, r15
jne 0x140007173
add qword [rsp + 0x40], 8
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x48], rax
jne 0x140007162
mov byte [r13 + 0x2930], 0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdi + 0x30]
lea r9, [rdi + 0x40]
mov r12, r9
add rax, r9
mov rdi, rax
cmp r9, rax
jae 0x1400071a0
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
mov r14, r9
nop dword [rax]
cmp qword [r14 + 8], 1
jbe 0x1400073c7
mov rcx, r12
mov r10, qword [r13 + 0x2b98]
mov r8, qword [r13 + 0x2ba8]
shr rcx, 0xc
mov rax, rcx
and rax, r10
mov rdx, qword [r8 + rax*8]
test rdx, rdx
jne 0x1400073a1
jmp 0x1400073f0
lea rax, [rax + rax*4 + 1]
and rax, r10
mov rdx, qword [r8 + rax*8]
test rdx, rdx
je 0x1400073f0
cmp rcx, qword [rdx + 8]
jne 0x140007390
mov rcx, r12
mov eax, 1
shr rcx, 4
movzx ecx, cl
mov r8, rcx
shl rax, cl
shr r8, 6
and rax, qword [rdx + r8*8 + 0x10]
je 0x1400073f0
add r12, rbp
mov r14, r12
cmp rdi, r12
ja 0x140007360
mov r15, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
jmp 0x1400071a0
mov ebx, dword [0x1400707a8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r15d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [r14 + 8]
cmp qword [rdx + 0x28], 0
je 0x140007436
add qword [rbx + 0x98], 1
lea rcx, [r12 + 0x10]
call qword [rdx + 0x28]
sub qword [rbx + 0x98], 1
lea rcx, [r13 + 0x68]
mov rdx, r14
call sym.rawDealloc__system_5267
jmp 0x1400073c7