Function at 0x140011d30
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 [0x140131038]
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 0x14001219d
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 0x140012133
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 0x14001202a
cmp r14, rbx
ja 0x14001202a
cmp qword [rsp + 0x88], rbx
jb 0x14001202a
mov qword [rsp + 0xa0], r15
mov r15, r13
mov r13, r12
mov r12, r14
mov ebp, dword [0x14013bdb8]
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 0x14001200f
cmp rbp, 2
mov r14, r12
mov r12, r13
mov r13, r15
mov r15, qword [rsp + 0xa0]
jb 0x14001202a
sub rbx, r14
sar rbx, 3
movabs rax, 0xcccccccccccccccd
imul rbx, rax
inc qword [rbp + 0x5c8]
cmp rbx, 0x28
ja 0x140012023
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 0x1400120fa
mov al, byte [rbp + 0x598]
test al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jne 0x140012114
shl rsi, 5
cmp byte [r13 + rsi + 0x1d], 0
jne 0x14001201d
add rbx, 0x10
mov rax, qword [rbx]
mov r8d, dword [rax + 0x18]
add r8, 0xfff
shr r8, 0xc
je 0x140011fec
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.14007c4d0
add r12, qword [rsp + 0xa8]
mov rax, 0xfffffffffffffffe
mov ecx, r15d
rol rax, cl
and rdi, rax
jne 0x140011e63
jmp 0x140012133
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140011f05
mov r8, qword [rbx + 0x20]
jmp 0x140011fb9
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 0x140012076
mov eax, ebx
test ebx, ebx
jle 0x140012056
pause
dec eax
jne 0x14001204e
add ebp, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp ebp, 0x3e8
jl 0x140012039
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 0x14001220d
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 0x140012121
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 0x140011fa2
lea rcx, [rsp + 0xc0]
call fcn.1400a8e60
jmp 0x140011fa2
mov rdx, rbp
add rdx, rbx
movzx r8d, al
shr r8, 1
mov rcx, rbp
call fcn.140041000
jmp 0x140011f8a
mov rcx, rbp
call fcn.14003fbc0
jmp 0x140011fa2
mov rcx, rbx
lea rdx, [rsp + 0xb0]
call fcn.140002dc0
jmp 0x1400120be
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rax + rcx*8], 0
inc rcx
cmp rcx, 0x800
jne 0x140011de9
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdx + 8]
test rcx, rcx
je 0x140012170
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x140012163
jmp 0x14001218d
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
je 0x14001218d
add rdx, 0x10
mov rcx, qword [rdx]
lea rdx, [rcx + 0x10]
mov rax, qword [rcx + 0x10]
cmp qword [rax], rcx
jne 0x14001217d
mov rdx, rax
cmp rax, qword [rsp + 0x48]
jne 0x140011d7e
jmp 0x1400121a0
xor r12d, r12d
mov rax, qword [rsp + 0x30]
add qword [rax + 0xf8], r12
mov esi, dword [0x14013bdb8]
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 0x140012203
cmp rsi, 1
jbe 0x1400121d7
mov rcx, rsi
call fcn.14003fbc0
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140079ea0
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 0x1400121c9
int3