Function at 0x1401a27d0
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, 0x68
mov rdi, rdx
mov r13, rcx
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs rbp, 0xaaaaaaaaaaaaaaa
mov rax, qword [rcx]
mov r14, qword [rcx + 8]
sub r14, rax
sar r14, 3
movabs rdx, 0xaaaaaaaaaaaaaaab
imul r14, rdx
lea rcx, [r14 + 1]
cmp rcx, rbp
ja 0x1401a2eb3
mov rbx, qword [r13 + 0x10]
sub rbx, rax
sar rbx, 3
imul rbx, rdx
lea rax, [rbx + rbx]
cmp rax, rcx
cmovb rax, rcx
movabs rcx, 0x555555555555555
cmp rbx, rcx
cmovb rbp, rax
test rbp, rbp
jne 0x1401a28e1
xor ebx, ebx
lea rax, [r14 + r14*2]
lea rsi, [rbx + rax*8]
lea rcx, [rbp*2]
add rcx, rbp
lea rbp, [rbx + rcx*8]
mov rcx, qword [rdi + 0x10]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
lea rbx, [rbx + rax*8]
add rbx, 0x18
mov rdi, qword [r13]
mov r8, qword [r13 + 8]
sub r8, rdi
sub rsi, r8
test r8, r8
jle 0x1401a28ad
mov rcx, rsi
mov rdx, rdi
call fcn.1400f5740
mov rdi, qword [r13]
mov qword [r13], rsi
mov qword [r13 + 8], rbx
mov qword [r13 + 0x10], rbp
test rdi, rdi
jne 0x1401a2a00
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400f32c0
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14019fb00
lea rax, [rbp*8]
lea rsi, [rax + rax*2]
mov eax, 0x40
mov ecx, 0x40
test rsi, rsi
je 0x1401a2909
bsr rcx, rsi
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1401c9f10]
mov cl, byte [rax + rcx]
mov rdx, rsi
shr rdx, cl
and edx, 7
lea rcx, [0x1401c9f60]
mov rcx, qword [rcx + rax*8]
and rcx, rsi
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1401ca168]
movzx eax, word [rcx + rax*2 + 0x400]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x50], 0
cmp byte [0x1401f9fd2], 0
mov qword [rsp + 0x38], rsi
je 0x1401a2b3a
mov ebx, dword [0x1402003c0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test r15d, r15d
jne 0x1401a2b1f
cmp r12, 1
mov rdx, qword [rsp + 0x30]
jbe 0x1401a2c33
inc qword [r12 + 0x298]
cmp dx, 0x29
jae 0x1401a2cc0
mov rsi, rdx
shl rsi, 4
mov r15, r12
add r15, rsi
cmp qword [r12 + rsi], 0
je 0x1401a2d79
inc qword [r12 + 0x2a0]
mov rbx, qword [r15]
mov rax, qword [rbx]
test rax, rax
je 0x1401a2b18
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x1401a2e98
bswap rax
dec byte [r12 + rsi + 8]
mov qword [r15], rax
test rbx, rbx
jne 0x1401a285e
jmp 0x1401a2cd0
call fcn.14019fb00
mov rax, rdi
and rax, 0xffffffffffe00000
mov rcx, rdi
shr rcx, 9
and ecx, 0xfe0
lea r15, [rax + rcx]
add r15, 0x1000
movzx ecx, word [r15 + 0x1e]
mov r13, rcx
neg r13
shl rcx, 5
mov r12, r15
sub r12, rcx
mov rcx, r12
and rcx, 0xfffffffffffff000
mov r14, qword [rcx]
cmp byte [r14], 2
je 0x1401a2b99
cmp byte [r14 + 2], 0
je 0x1401a2dbf
mov rax, r13
shl rax, 5
mov rbx, qword [r15 + rax + 0x10]
cmp byte [rbx + 0x1c], 0
je 0x1401a2dbf
mov esi, dword [0x1402003c0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebp, ebp
jne 0x1401a2b2d
cmp rsi, 2
jb 0x1401a2dbf
sub rbx, r14
add rbx, 0xfffffffffffffff0
sar rbx, 3
movabs rax, 0xcccccccccccccccd
imul rax, rbx
inc qword [rsi + 0x2c0]
cmp rax, 0x28
ja 0x1401a2db8
shl rax, 4
mov rcx, qword [rsi + rax]
bswap rcx
mov qword [rdi], rcx
not rcx
mov qword [rdi + 8], rcx
mov qword [rsi + rax], rdi
inc byte [rsi + rax + 8]
inc qword [rsi + 0x2c8]
movzx r8d, byte [rsi + rax + 9]
cmp byte [rsi + rax + 8], r8b
jae 0x1401a2e7b
mov al, byte [rsi + 0x290]
test al, 1
je 0x1401a28c2
mov rcx, rsi
call fcn.1400b9720
jmp 0x1401a28c2
xor eax, eax
jmp 0x1401a29e7
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401a2987
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401a2a94
mov rax, qword [rsp + 0x30]
lea rax, [rax + rax*4]
lea rcx, [0x1401f9fd0]
lea r15, [rcx + rax*8]
add r15, 0x10
mov esi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
lea rcx, [0x1401f9fd8]
call r12
test al, al
jne 0x1401a2d2d
jmp 0x1401a2eca
pause
dec eax
jne 0x1401a2b77
add ebx, esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp ebx, 0x3e8
jl 0x1401a2b60
jmp 0x1401a2d21
mov rcx, r13
shl rcx, 5
mov rdx, qword [r15 + rcx + 0x10]
cmp byte [rdx + 0x1c], 0
je 0x1401a2a52
lea rdx, [r15 + rcx]
add rdx, 0x10
mov rbp, qword [0x1401f5ea0]
and ebp, 1
shl rbp, 0xe
add rbp, rax
mov rcx, rdi
shr rcx, 4
shr rdi, 7
and edi, 0x3ff8
mov eax, 1
shl rax, cl
lock or qword [rdi + rbp + 0x4000], rax
mov rax, qword [rdx]
mov eax, dword [rax + 0x18]
mov rcx, rax
lock xadd qword [0x1401f5e90], rcx
add rcx, rax
mov rax, qword [0x1401f5e98]
cmp rcx, rax
jbe 0x1401a28c2
mov al, byte [0x1401f5eb0]
test al, 1
jne 0x1401a28c2
lea rcx, [0x1401f5e00]
mov edx, 1
call fcn.140152ac0
jmp 0x1401a28c2
je 0x1401a2cd0
mov byte [0x1401f9fd2], 0
lea rcx, [0x1401f9fd0]
mov rsi, rdx
call fcn.1400e9130
mov r12, rax
mov byte [0x1401f9fd2], 1
inc qword [rax + 0x298]
cmp si, 0x29
jae 0x1401a2f14
mov rsi, qword [rsp + 0x30]
shl rsi, 4
mov r15, r12
add r15, rsi
cmp qword [r12 + rsi], 0
je 0x1401a2f2e
inc qword [r12 + 0x2a0]
mov rbx, qword [r15]
mov rax, qword [rbx]
test rax, rax
je 0x1401a2e9d
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x1401a2e98
bswap rax
dec byte [r12 + rsi + 8]
mov qword [r15], rax
mov rdx, qword [rsp + 0x30]
jmp 0x1401a29f2
inc qword [r12 + 0x2b8]
inc qword [r12 + 0x2a8]
lea rax, [rdx + rdx*4]
lea rcx, [0x1401f9fd0]
lea r15, [rcx + rax*8]
add r15, 0x10
mov esi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
lea rcx, [0x1401f9fd8]
call r12
test al, al
jne 0x1401a2d2d
jmp 0x1401a2ebb
pause
dec eax
jne 0x1401a2d04
add ebx, esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp ebx, 0x3e8
jl 0x1401a2cf1
lea rcx, [0x1401f9fd8]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x1401a2eeb
mov byte [rsp + 0x50], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1401a2e91
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x1401a2e98
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
lea rcx, [0x1401f9fd8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1401a285e
movdqu xmm0, xmmword [r12 + 0x2a8]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [r12 + 0x2a8], xmm0
mov rcx, r12
mov rdx, qword [rsp + 0x30]
call fcn.1400c2020
mov rdx, qword [rsp + 0x30]
mov rbx, qword [r15]
test rbx, rbx
jne 0x1401a29cb
jmp 0x1401a2cd0
inc qword [rsi + 0x2d0]
add r14, 8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov esi, 1
xor ebp, ebp
mov rbx, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call rbx
test al, al
jne 0x1401a2e0c
jmp 0x1401a2ea4
pause
dec eax
jne 0x1401a2de7
add ebp, esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp ebp, 0x3e8
jl 0x1401a2dd9
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r12]
cmp rax, rdi
je 0x1401a2f6e
bswap rax
mov qword [rdi], rax
not rax
mov qword [rdi + 8], rax
mov qword [r12], rdi
shl r13, 5
movzx eax, word [r15 + r13 + 0x18]
dec eax
mov word [r15 + r13 + 0x18], ax
test ax, ax
jle 0x1401a2ed9
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0x50], 0
je 0x1401a28c2
lea rcx, [rsp + 0x50]
call fcn.140005990
jmp 0x1401a28c2
mov rdx, rsi
add rdx, rax
shr r8, 1
mov rcx, rsi
call fcn.1400b9550
jmp 0x1401a2afd
xor ecx, ecx
jmp 0x1401a2d5d
call 0x140152a70
xor eax, eax
jmp 0x1401a2cab
mov eax, esi
test esi, esi
jg 0x1401a2de7
jmp 0x1401a2def
mov rcx, r13
call fcn.1401261c0
mov eax, esi
test esi, esi
jg 0x1401a2d04
jmp 0x1401a2d0c
mov eax, esi
test esi, esi
jg 0x1401a2b77
jmp 0x1401a2b7f
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.1400b9250
jmp 0x1401a2e4d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [0x1401f9fd0]
mov rcx, r15
xor r8d, r8d
mov r9, qword [rsp + 0x38]
call fcn.1400c21b0
mov rbx, rax
jmp 0x1401a2d67
inc qword [r12 + 0x2b8]
inc qword [r12 + 0x2a8]
mov rdx, qword [rsp + 0x30]
jmp 0x1401a2cd0
movdqu xmm0, xmmword [r12 + 0x2a8]
pcmpeqd xmm1, xmm1
psubq xmm0, xmm1
movdqu xmmword [r12 + 0x2a8], xmm0
mov rcx, r12
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.1400c2020
mov rdx, rbx
mov rbx, qword [r15]
test rbx, rbx
jne 0x1401a2c8f
jmp 0x1401a2cd0
int3