Function at 0x1400a7f60
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, 0x78
mov rbp, rdx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [r8]
mov qword [rdx], rax
lea rsi, [rsp + 0x38]
mov rdx, rsi
call fcn.1400a8340
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
je 0x1400a80e1
call fcn.1400339e0
prefetcht0 byte [rdi]
mov rbx, rdi
and rbx, 0xffffffffffe00000
mov rax, rdi
shr rax, 9
and eax, 0xfe0
lea rcx, [rbx + rax]
add rcx, 0x1000
movzx eax, byte [rcx + 0x1e]
mov r13, rax
neg r13
shl rax, 5
mov r15, rcx
sub r15, rax
prefetcht0 byte [r15]
mov rax, r15
and rax, 0xfffffffffffff000
mov rsi, qword [rax]
cmp byte [rsi], 2
mov qword [rsp + 0x28], rcx
je 0x1400a810f
mov qword [rsp + 0x30], rbp
cmp byte [rsi + 2], 0
je 0x1400a8209
mov rax, r13
shl rax, 5
mov r14, qword [rcx + rax + 0x10]
lea r12, [rsi + 0x10]
cmp r12, r14
ja 0x1400a8209
lea rax, [rsi + 0x1410]
cmp rax, r14
jb 0x1400a8209
mov ebx, dword [0x14013bdb8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test ebp, ebp
jne 0x1400a8102
cmp rbx, 2
jb 0x1400a8209
sub r14, r12
sar r14, 3
movabs rax, 0xcccccccccccccccd
imul rax, r14
inc qword [rbx + 0x5c8]
cmp rax, 0x28
ja 0x1400a8202
shl rax, 4
mov rcx, qword [rbx + rax]
bswap rcx
mov qword [rdi], rcx
not rcx
mov qword [rdi + 8], rcx
mov qword [rbx + rax], rdi
mov dl, byte [rbx + rax + 8]
inc dl
mov byte [rbx + rax + 8], dl
movzx ecx, word [rbx + rax + 0xa]
add qword [rbx + 0x590], rcx
inc qword [rbx + 0x5d0]
mov cl, byte [rbx + rax + 9]
cmp dl, cl
ja 0x1400a82a8
mov al, byte [rbx + 0x598]
test al, 1
mov rbp, qword [rsp + 0x30]
jne 0x1400a82c2
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140079ea0
mov rax, rbp
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400a805c
mov al, byte [0x140134798]
cmp al, 2
je 0x1400a8316
mov rax, r13
shl rax, 5
mov r8, qword [rcx + rax + 0x10]
lea rdx, [rsi + 0x10]
cmp rdx, r8
ja 0x1400a8003
lea rdx, [rsi + 0x1410]
cmp rdx, r8
jb 0x1400a8003
mov r10d, dword [r8 + 0x18]
cmp byte [rcx + rax + 0x1d], 0
mov r8, r10
jne 0x1400a832d
mov rax, qword [0x140134770]
and eax, 1
shl rax, 0xe
lea r9, [rax + rbx]
lea rdx, [rax + rbx]
add rdx, 0x4000
mov rcx, rdi
shr rcx, 4
mov ebx, edi
shr ebx, 0xa
and ebx, 0x7ff
mov esi, 1
shl rsi, cl
mov rax, qword [r9 + rbx*8 + 0x4000]
mov rcx, rax
or rcx, rsi
lock cmpxchg qword [rdx + rbx*8], rcx
jne 0x1400a8197
test rax, rsi
jne 0x1400a8336
mov rsi, r10
lock xadd qword [0x140134760], rsi
add rsi, r10
mov rbx, qword [0x140134768]
cmp byte [0x140134799], 1
jne 0x1400a81d7
mov rcx, rdi
xor edx, edx
call fcn.14007c4d0
cmp rsi, rbx
jbe 0x1400a80e1
mov al, byte [0x140134798]
test al, al
jne 0x1400a80e1
call fcn.1400a59e0
mov edx, 1
call fcn.1400f3f50
jmp 0x1400a80e1
inc qword [rbx + 0x5d8]
add rsi, 8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov ebx, 1
xor ebp, ebp
mov r14, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, rsi
call r14
test al, al
je 0x1400a82cf
mov rax, qword [r15]
cmp rax, rdi
mov rcx, qword [rsp + 0x28]
je 0x1400a833b
bswap rax
mov qword [rdi], rax
not rax
mov qword [rdi + 8], rax
mov qword [r15], rdi
shl r13, 5
movzx eax, word [rcx + r13 + 0x18]
dec eax
mov word [rcx + r13 + 0x18], ax
test ax, ax
mov rbp, qword [rsp + 0x30]
jle 0x1400a8304
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x60], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0x60], 0
je 0x1400a80e1
lea rcx, [rsp + 0x60]
call fcn.1400a8e60
jmp 0x1400a80e1
mov rdx, rbx
add rdx, rax
movzx r8d, cl
shr r8, 1
mov rcx, rbx
call fcn.140041000
jmp 0x1400a80ce
mov rcx, rbx
call fcn.14003fbc0
jmp 0x1400a80e1
mov eax, ebx
test ebx, ebx
jle 0x1400a82dd
pause
dec eax
jne 0x1400a82d5
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x1400a8223
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400a8231
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140002dc0
jmp 0x1400a827a
call fcn.1400a59e0
mov rcx, rax
call fcn.1400c6d80
mov rcx, qword [rsp + 0x28]
jmp 0x1400a811d
mov r8, qword [r15 + 0x20]
jmp 0x1400a8158
call fcn.1400f8470
int3