Function at 0x140088b40
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 rdi, rdx
mov r12, rcx
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movabs r14, 0xaaaaaaaaaaaaaaa
mov rax, qword [rcx]
mov r15, qword [rcx + 8]
sub r15, rax
sar r15, 3
movabs rdx, 0xaaaaaaaaaaaaaaab
imul r15, rdx
lea rcx, [r15 + 1]
cmp rcx, r14
ja 0x1400891f2
mov rbp, qword [r12 + 0x10]
sub rbp, rax
sar rbp, 3
imul rbp, rdx
mov rax, rbp
add rax, rbp
cmp rax, rcx
cmovb rax, rcx
movabs rcx, 0x555555555555555
cmp rbp, rcx
cmovb r14, rax
test r14, r14
jne 0x140088c51
xor ebx, ebx
lea rax, [r15 + r15*2]
lea rbp, [rbx + rax*8]
lea rcx, [r14 + r14*2]
lea rsi, [rbx + rcx*8]
mov rcx, qword [rdi + 0x10]
mov qword [rbp + 0x10], rcx
movups xmm0, xmmword [rdi]
movups xmmword [rbp], xmm0
lea rbx, [rbx + rax*8]
add rbx, 0x18
mov rdi, qword [r12]
mov r8, qword [r12 + 8]
sub r8, rdi
sub rbp, r8
test r8, r8
jle 0x140088c1b
mov rcx, rbp
mov rdx, rdi
call fcn.14005dcd0
mov rdi, qword [r12]
mov qword [r12], rbp
mov qword [r12 + 8], rbx
mov qword [r12 + 0x10], rsi
test rdi, rdi
jne 0x140088d74
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005b820
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140085dc0
mov qword [rsp + 0x48], rax
mov r13, rax
lea rax, [r14*8]
lea rsi, [rax + rax*2]
mov eax, 0x40
mov ecx, 0x40
test rsi, rsi
je 0x140088c81
bsr rcx, rsi
xor rcx, 0x3f
sub rax, rcx
lea rcx, [0x1400c6570]
mov cl, byte [rax + rcx]
mov rdx, rsi
shr rdx, cl
and edx, 7
lea rcx, [0x1400c65c0]
mov rcx, qword [rcx + rax*8]
and rcx, rsi
lea rax, [rdx + rax*8]
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1400c67c8]
movzx eax, word [rcx + rax*2 + 0x400]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x60], 0
cmp byte [r13 + 2], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
je 0x140088ea6
mov ebp, dword [0x1400e78f0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test ebx, ebx
jne 0x140088e8c
cmp rbp, 1
mov rdx, qword [rsp + 0x28]
jbe 0x140088f99
inc qword [rbp + 0x298]
cmp dx, 0x29
jae 0x14008902e
mov r13, rdx
shl r13, 4
mov rsi, rbp
add rsi, r13
cmp qword [rbp + r13], 0
je 0x1400890d4
inc qword [rbp + 0x2a0]
mov rbx, qword [rsi]
mov rax, qword [rbx]
test rax, rax
je 0x140088d5b
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x1400891de
bswap rax
dec byte [rbp + r13 + 8]
mov qword [rsi], rax
test rbx, rbx
jne 0x140088bd1
jmp 0x14008903c
call fcn.140085dc0
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 0x140088eff
cmp byte [r14 + 2], 0
je 0x14008910c
mov rax, r13
shl rax, 5
mov rbx, qword [r15 + rax + 0x10]
cmp byte [rbx + 0x1c], 0
je 0x14008910c
mov esi, dword [0x1400e78f0]
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 0x140088e99
cmp rsi, 2
jb 0x14008910c
sub rbx, r14
add rbx, 0xfffffffffffffff0
sar rbx, 3
movabs rax, 0xcccccccccccccccd
imul rax, rbx
inc qword [rsi + 0x2c0]
cmp rax, 0x28
ja 0x140089105
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 0x1400891c8
mov al, byte [rsi + 0x290]
test al, 1
je 0x140088c32
mov rcx, rsi
call fcn.14004e860
jmp 0x140088c32
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140088d00
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140088e08
mov rax, qword [rsp + 0x28]
lea rax, [rax + rax*4]
mov rsi, qword [rsp + 0x48]
lea r13, [rsi + rax*8]
add r13, 0x10
add rsi, 8
mov ebx, 1
xor ebp, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14008908f
jmp 0x140089209
pause
dec eax
jne 0x140088edd
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x140088ec7
jmp 0x140089087
mov rcx, r13
shl rcx, 5
mov rdx, qword [r15 + rcx + 0x10]
cmp byte [rdx + 0x1c], 0
je 0x140088dc6
lea rdx, [r15 + rcx]
add rdx, 0x10
mov rbp, qword [0x1400ddeb0]
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 [0x1400ddea0], rcx
add rcx, rax
mov rax, qword [0x1400ddea8]
cmp rcx, rax
jbe 0x140088c32
mov al, byte [0x1400ddec0]
test al, 1
jne 0x140088c32
lea rcx, [0x1400dde10]
mov edx, 1
call fcn.140084930
jmp 0x140088c32
je 0x14008903c
mov rsi, qword [rsp + 0x38]
mov byte [rsi + 2], 0
mov rcx, rsi
mov rbx, rdx
call fcn.14004e290
mov byte [rsi + 2], 1
mov qword [rsp + 0x30], rax
inc qword [rax + 0x298]
cmp bx, 0x29
jae 0x140089251
mov rbp, qword [rsp + 0x28]
shl rbp, 4
mov rax, qword [rsp + 0x30]
mov r13, rax
add r13, rbp
cmp qword [rax + rbp], 0
je 0x14008926e
mov rax, qword [rsp + 0x30]
inc qword [rax + 0x2a0]
mov rbx, qword [r13]
mov rax, qword [rbx]
test rax, rax
je 0x140089014
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x1400891de
bswap rax
mov rcx, qword [rsp + 0x30]
dec byte [rcx + rbp + 8]
mov qword [r13], rax
mov rdx, qword [rsp + 0x28]
jmp 0x140088d66
inc qword [rbp + 0x2b8]
inc qword [rbp + 0x2a8]
lea rax, [rdx + rdx*4]
mov rsi, qword [rsp + 0x48]
lea r13, [rsi + rax*8]
add r13, 0x10
add rsi, 8
mov ebx, 1
xor ebp, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14008908f
jmp 0x1400891fa
pause
dec eax
jne 0x14008906a
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x140089058
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r13]
mov rbx, qword [rax]
test rbx, rbx
je 0x14008922a
mov byte [rsp + 0x60], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400890bc
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400891de
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x140088bd1
inc qword [rbp + 0x2b0]
inc qword [rbp + 0x2a8]
mov rcx, rbp
mov rdx, qword [rsp + 0x28]
call fcn.14004e510
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsi]
test rbx, rbx
jne 0x140088d43
jmp 0x14008903c
inc qword [rsi + 0x2d0]
add r14, 8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov esi, 1
xor ebp, ebp
mov rbx, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call rbx
test al, al
jne 0x140089159
jmp 0x1400891e3
pause
dec eax
jne 0x140089134
add ebp, esi
add esi, esi
cmp esi, 0x40
mov eax, 0x40
cmovge esi, eax
cmp ebp, 0x3e8
jl 0x140089126
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r12]
cmp rax, rdi
je 0x1400892a3
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 0x140089218
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x60], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsp + 0x60], 0
je 0x140088c32
lea rcx, [rsp + 0x60]
call fcn.14002f610
jmp 0x140088c32
mov rdx, rsi
add rdx, rax
shr r8, 1
mov rcx, rsi
call fcn.14004e6a0
jmp 0x140088e71
call 0x140084730
mov eax, esi
test esi, esi
jg 0x140089134
jmp 0x14008913c
mov rcx, r12
call fcn.1400846a0
mov eax, ebx
test ebx, ebx
jg 0x14008906a
jmp 0x140089072
mov eax, ebx
test ebx, ebx
jg 0x140088edd
jmp 0x140088ee5
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.14004e8e0
jmp 0x14008919a
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, r13
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
mov r9, qword [rsp + 0x40]
call fcn.140038f30
mov rbx, rax
jmp 0x1400890c6
mov rax, qword [rsp + 0x30]
inc qword [rax + 0x2b8]
inc qword [rax + 0x2a8]
mov rdx, qword [rsp + 0x28]
jmp 0x14008903c
mov rcx, qword [rsp + 0x30]
inc qword [rcx + 0x2b0]
inc qword [rcx + 0x2a8]
mov rsi, qword [rsp + 0x28]
mov rdx, rsi
call fcn.14004e510
mov rdx, rsi
mov rbx, qword [r13]
test rbx, rbx
jne 0x140088ffc
jmp 0x14008903c
int3