Function at 0x14006f690
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r15, rcx
mov rax, qword [0x140162028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140131038]
mov qword [rcx], rax
lea rdi, [rcx + 8]
lea rax, str.p__a_
mov qword [rcx + 8], rax
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400d5580
mov rcx, rbx
mov rdx, r15
call fcn.1400d56c0
call fcn.1400d56d0
mov rcx, rax
mov rdx, rdi
call fcn.1400d59f0
mov r14, qword [r15 + 0x10]
add r14, 8
mov rcx, r14
call fcn.14007ae30
cmp qword [r15 + 0x18], 0
jne 0x14006f9c2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9, qword [r15 + 0x10]
mov rsi, qword [r9 + 0x318]
test rsi, rsi
je 0x14006f8ad
mov r8d, eax
movsxd rcx, eax
mov rax, rsi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rsi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov rbx, rax
and rbx, rdx
shr rax, 2
and rax, rdx
add rax, rbx
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r13, 0x101010101010101
imul r13, rax
shr r13, 0x38
cmp r13, 1
jbe 0x14006f982
mov r10, rcx
cmp rsi, rcx
ja 0x14006f7a6
mov rax, rcx
xor edx, edx
div rsi
mov r10, rdx
mov r12, qword [r9 + 0x310]
mov rax, qword [r12 + r10*8]
test rax, rax
je 0x14006f8ad
mov rbx, qword [rax]
test rbx, rbx
je 0x14006f8ad
lea r11, [rsi - 1]
mov rax, qword [rbx + 8]
cmp rax, rcx
jne 0x14006f94a
cmp dword [rbx + 0x10], r8d
jne 0x14006f966
cmp r13d, 1
jbe 0x14006f98e
cmp rsi, rcx
ja 0x14006f7fb
mov rax, rcx
xor edx, edx
div rsi
mov rcx, rdx
mov r8, qword [r12 + rcx*8]
mov rax, qword [r8]
cmp rax, rbx
jne 0x14006f977
lea rax, [r9 + 0x320]
cmp r8, rax
jne 0x14006f925
mov rax, qword [rbx]
test rax, rax
je 0x14006f843
mov rax, qword [rax + 8]
cmp r13d, 1
jbe 0x14006f99e
cmp rax, rsi
jb 0x14006f83e
xor edx, edx
div rsi
mov rax, rdx
cmp rax, rcx
je 0x14006f84b
mov qword [r12 + rcx*8], 0
mov rdi, qword [rbx]
test rdi, rdi
je 0x14006f881
mov rax, qword [rdi + 8]
cmp r13d, 1
jbe 0x14006f996
cmp rax, rsi
jb 0x14006f86e
xor edx, edx
div rsi
mov rax, rdx
cmp rax, rcx
je 0x14006f881
mov rcx, qword [r9 + 0x310]
mov qword [rcx + rax*8], r8
mov rdi, qword [rbx]
mov qword [r8], rdi
mov qword [rbx], 0
dec qword [r9 + 0x328]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14006f8a5
lock dec dword [rcx + 8]
je 0x14006f9ab
mov rcx, rbx
call fcn.1400ef7cc
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rsi, qword [r15 + 0x10]
mov ecx, dword [0x140163d10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006f8f4
movsxd rcx, dword [rsi + 0x2f8]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 0x2fc]
movsxd rdx, dword [rsi + 0x2f8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [r15 + 0x18]
xor eax, eax
mov qword [r15 + 0x18], rax
test rdi, rdi
jne 0x14006fa02
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f0560
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [r8 + 8]
cmp r13d, 1
jbe 0x14006f9a6
cmp rax, rsi
jb 0x14006f93c
xor edx, edx
div rsi
mov rax, rdx
cmp rax, rcx
jne 0x14006f81b
jmp 0x14006f84b
cmp r13d, 1
jbe 0x14006f9bd
cmp rax, rsi
jb 0x14006f95d
xor edx, edx
div rsi
mov rax, rdx
cmp rax, r10
jne 0x14006f8ad
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006f7ca
jmp 0x14006f8ad
mov r8, rax
mov rax, qword [rax]
jmp 0x14006f802
lea r10, [rsi - 1]
and r10, rcx
jmp 0x14006f7a6
and rcx, r11
jmp 0x14006f7fb
and rax, r11
jmp 0x14006f86e
and rax, r11
jmp 0x14006f83e
and rax, r11
jmp 0x14006f93c
add rcx, 8
add rcx, 0xfffffffffffffff8
call fcn.14006e470
jmp 0x14006f8a5
and rax, r11
jmp 0x14006f95d
mov rax, qword [r15 + 0x10]
mov rax, qword [rax + 0x368]
cmp dword [r15 + 0x28], eax
jne 0x14006f70d
mov rax, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
mov rcx, qword [rax + 0x20]
mov qword [r15 + 0x18], 0
lea r8, [rsp + 0x20]
mov qword [r8], rdx
mov rdx, qword [r15 + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14006f70d
mov rcx, rdi
call fcn.1400d5f10
mov rcx, rdi
call fcn.1400ef7cc
jmp 0x14006f907