Function at 0x14000bfe0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rax, qword [0x1400ff028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rdx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rcx
lea rax, [rcx + 0x18]
mov qword [rsp + 0x48], rax
cmp rdx, rax
je 0x14000c44d
xorps xmm6, xmm6
xor r12d, r12d
mov qword [rsp + 0x50], rdx
mov rax, qword [rdx + 0x20]
mov rbx, qword [rax + 0x1000]
mov rbp, 0xffffffffffe00000
and rax, rbp
xor ecx, ecx
mov rdx, qword [rsp + 0x30]
test byte [rdx + 8], 1
sete cl
shl rcx, 0xe
add rax, rcx
add rax, 0x4000
mov rcx, rax
and rcx, rbp
mov qword [rsp + 0x58], rcx
lea r14, [rbx + 0x10]
lea rcx, [rbx + 0x1410]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rbx
lea rcx, [rbx + 8]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov rdi, qword [rax + rcx*8]
test rdi, rdi
mov qword [rsp + 0x68], rcx
je 0x14000c3e3
mov rdx, rcx
shl rdx, 0xa
add rdx, qword [rsp + 0x58]
mov rbp, rdx
shr rbp, 0xc
and ebp, 0x1fffff
lea rax, [rbp + 1]
mov qword [rsp + 0x78], rax
mov rax, rdx
and rax, 0xffffffffffe00000
mov rcx, rdx
shr rcx, 9
and ecx, 0xfe0
lea r13, [rax + rcx]
add r13, 0x1000
mov qword [rsp + 0x98], rdx
movabs rax, 0xfffffffe00000000
and rdx, rax
mov qword [rsp + 0x80], rbp
or rdx, rbp
mov qword [rsp + 0x70], rdx
bsf r15, rdi
mov rsi, r15
shl rsi, 4
or rsi, qword [rsp + 0x98]
movzx eax, byte [r13 + 0x1e]
mov rcx, rax
neg rcx
mov qword [rsp + 0x38], rcx
shl rax, 5
mov rcx, r13
sub rcx, rax
mov qword [rsp + 0x40], rcx
neg rax
mov rbx, qword [r13 + rax + 0x10]
mov eax, dword [rbx + 0x18]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x90]
cmp byte [rax + 2], 0
je 0x14000c2da
cmp r14, rbx
ja 0x14000c2da
cmp qword [rsp + 0x88], rbx
jb 0x14000c2da
mov qword [rsp + 0xa0], r15
mov r15, r13
mov r13, r12
mov r12, r14
mov ebp, dword [0x1401085a4]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test r14d, r14d
jne 0x14000c2bf
cmp rbp, 2
mov r14, r12
mov r12, r13
mov r13, r15
mov r15, qword [rsp + 0xa0]
jb 0x14000c2da
sub rbx, r14
sar rbx, 3
movabs rax, 0xcccccccccccccccd
imul rbx, rax
inc qword [rbp + 0x5c8]
cmp rbx, 0x28
ja 0x14000c2d3
shl rbx, 4
mov rax, qword [rbp + rbx]
bswap rax
mov qword [rsi], rax
not rax
mov qword [rsi + 8], rax
mov qword [rbp + rbx], rsi
mov cl, byte [rbp + rbx + 8]
inc cl
mov byte [rbp + rbx + 8], cl
movzx eax, word [rbp + rbx + 0xa]
add qword [rbp + 0x590], rax
inc qword [rbp + 0x5d0]
mov al, byte [rbp + rbx + 9]
cmp cl, al
ja 0x14000c3aa
mov al, byte [rbp + 0x598]
test al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jne 0x14000c3c4
shl rsi, 5
cmp byte [r13 + rsi + 0x1d], 0
jne 0x14000c2cd
add rbx, 0x10
mov rax, qword [rbx]
mov r8d, dword [rax + 0x18]
add r8, 0xfff
shr r8, 0xc
je 0x14000c29c
mov rax, qword [rsp + 0x80]
add r8, rax
mov rcx, qword [rsp + 0x78]
cmp r8, rcx
cmovbe r8, rcx
sub r8, rax
mov rcx, qword [rsp + 0x70]
xor edx, edx
call fcn.14006c1b0
add r12, qword [rsp + 0xa8]
mov rax, 0xfffffffffffffffe
mov ecx, r15d
rol rax, cl
and rdi, rax
jne 0x14000c113
jmp 0x14000c3e3
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000c1b5
mov r8, qword [rbx + 0x20]
jmp 0x14000c269
inc qword [rbp + 0x5d8]
movaps xmmword [rsp + 0xc0], xmm6
mov ebx, 1
xor ebp, ebp
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14000c326
mov eax, ebx
test ebx, ebx
jle 0x14000c306
pause
dec eax
jne 0x14000c2fe
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x14000c2e9
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
cmp rax, rsi
je 0x14000c4bd
bswap rax
mov qword [rsi], rax
not rax
mov qword [rsi + 8], rax
mov qword [rbx], rsi
mov rsi, qword [rsp + 0x38]
mov rax, rsi
shl rax, 5
movzx ecx, word [r13 + rax + 0x18]
dec ecx
mov word [r13 + rax + 0x18], cx
test cx, cx
jle 0x14000c3d1
movaps xmmword [rsp + 0xb0], xmm6
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0xc0], xmm0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0xc0], 0
je 0x14000c252
lea rcx, [rsp + 0xc0]
int3
mov rdx, rbp
add rdx, rbx
movzx r8d, al
shr r8, 1
mov rcx, rbp
int3
mov rcx, rbp
int3
mov rcx, rbx
lea rdx, [rsp + 0xb0]
call fcn.140002da0
jmp 0x14000c36e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rax + rcx*8], 0
inc rcx
cmp rcx, 0x800
jne 0x14000c099
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x14000c420
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14000c413
jmp 0x14000c43d
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
je 0x14000c43d
add rdx, 0x10
mov rcx, qword [rdx]
lea rdx, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
cmp qword [rax], rcx
jne 0x14000c42d
mov rdx, rax
cmp rax, qword [rsp + 0x48]
jne 0x14000c02e
jmp 0x14000c450
xor r12d, r12d
mov rax, qword [rsp + 0x30]
add qword [rax + 0xf8], r12
mov esi, dword [0x1401085a4]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test edi, edi
jne 0x14000c4b3
cmp rsi, 1
jbe 0x14000c487
mov rcx, rsi
int3
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140069b80
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000c479
int3