Function at 0x1000e4960
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov ebx, r8d
mov r13d, edx
mov r14, rcx
xor edi, edi
test rcx, rcx
lea r15, [rcx - 0x18]
jne 0x1000e499e
mov r15d, edi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], rdi
mov dword [rbp - 8], edi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x18], r15
mov rcx, r15
call fcn.1000e4770
mov qword [rbp - 0x28], rax
mov rcx, r15
call fcn.1000e4820
mov qword [rbp - 0x20], rax
mov rsi, rdi
or r12, 0xffffffffffffffff
cmp ebx, 0x40
jne 0x1000e49df
mov qword [rbp - 0x48], r12
jmp 0x1000e49ed
mov ecx, ebx
mov ebx, 1
shl rbx, cl
mov qword [rbp - 0x48], rbx
mov edx, 1
lea rcx, [rbp - 0x38]
call fcn.100057f20
nop
test r13d, r13d
je 0x1000e4a1d
mov rcx, qword [r14]
test rcx, rcx
je 0x1000e4a1d
test byte [rcx + 0xc], 0x40
je 0x1000e4a1d
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jne 0x1000e4d01
test r14, r14
lea rcx, [r14 - 0x18]
jne 0x1000e4a29
mov rcx, rdi
call fcn.100117d70
nop
xor ebx, ebx
test rsi, rsi
jne 0x1000e4a40
mov rbx, qword [rbp - 0x28]
jmp 0x1000e4b38
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x1000e4b38
cmp rax, qword [rbp - 0x20]
je 0x1000e4b0a
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [r15 + 0x10], edx
mov ecx, ebx
sete cl
test ecx, ecx
jne 0x1000e4a78
lea rcx, [r15 + 0x10]
call fcn.1000de1b0
mov rbx, qword [rsi + 0x48]
cmp rbx, r15
je 0x1000e4a8c
test rbx, rbx
je 0x1000e4a8c
add rbx, 0xffffffffffffffc0
jmp 0x1000e4a8e
xor ebx, ebx
test rbx, rbx
je 0x1000e4ad8
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x1000e4abd
nop word [rax + rax]
lea edx, [rcx + 1]
mov eax, ecx
lock cmpxchg dword [rbx + 0x50], edx
cmp ecx, eax
je 0x1000e4ab9
pause
mov ecx, dword [rbx + 0x50]
test ecx, ecx
jne 0x1000e4aa0
jmp 0x1000e4abd
test edx, edx
jne 0x1000e4ad8
mov rbx, qword [rbx + 0x48]
cmp rbx, r15
je 0x1000e4ad1
test rbx, rbx
je 0x1000e4ad1
add rbx, 0xffffffffffffffc0
jmp 0x1000e4ad3
xor ebx, ebx
test rbx, rbx
jne 0x1000e4a93
mov dword [r15 + 0x10], 0
mov qword [rbp - 0x28], rbx
mov eax, r12d
lock xadd dword [rsi + 0x50], eax
dec eax
jne 0x1000e4b38
cmp qword [rsi + 0x48], 0
je 0x1000e4b02
lea rcx, [rsi + 0x40]
call fcn.1000e48d0
jmp 0x1000e4b38
mov rcx, rsi
mov rax, qword [rsi]
jmp 0x1000e4b36
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x28], rbx
add rcx, 0x40
mov eax, r12d
lock xadd dword [rcx + 0x10], eax
dec eax
jne 0x1000e4b38
cmp qword [rcx + 8], rbx
je 0x1000e4b2f
call fcn.1000e48d0
jmp 0x1000e4b38
add rcx, 0xffffffffffffffc0
mov rax, qword [rcx]
call qword [rax]
mov rsi, rbx
test rbx, rbx
je 0x1000e4ce2
mov rax, qword [rbp - 0x48]
test qword [rbx + 0x20], rax
je 0x1000e4a30
mov rax, qword [rbx + 0x18]
mov qword [rbp + 0x40], rax
mov eax, dword [rbp + 0x40]
test eax, eax
js 0x1000e4c01
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x1000e4c01
test r13d, r13d
je 0x1000e4baf
mov rax, qword [r14]
test rax, rax
je 0x1000e4baf
test byte [rax + 0xc], 0x20
je 0x1000e4baf
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x1000e4baf
lea rdx, [rbx + 8]
mov rax, qword [r14]
mov r9, qword [rax]
mov eax, dword [rbp + 0x40]
xor r8d, r8d
cmp eax, 1
setne r8b
mov rcx, qword [r14]
call qword [r9 + 0x20]
cmp eax, 0x80000000
je 0x1000e4c01
mov rax, qword [rbp + 0x40]
mov qword [rbp - 0x50], rax
or dword [rbp - 0x50], 0x80000000
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp - 0x50]
lock cmpxchg qword [rbx + 0x18], rcx
jne 0x1000e4b52
and dword [rbx + 0x28], 0xfffffffe
mov eax, dword [rbp + 0x40]
cmp eax, 1
jne 0x1000e4c01
lea rcx, [rbx + 0x40]
mov eax, r12d
lock xadd dword [rcx + 0x10], eax
dec eax
jne 0x1000e4c01
cmp qword [rcx + 8], 0
je 0x1000e4bf8
call fcn.1000e48d0
jmp 0x1000e4c01
add rcx, 0xffffffffffffffc0
mov rax, qword [rcx]
call qword [rax]
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000e4c2c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000e4c3d
mov r8, qword [rbx + 0xd8]
test r8, r8
jne 0x1000e4c74
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000e4c6d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov r8, qword [rbx + 0xd8]
rdtsc
shl rdx, 0x20
or rax, rdx
mov rdx, qword [r8 + 0x2f8]
cmp rax, rdx
ja 0x1000e4ccf
mov rcx, rdx
sub rcx, rax
mov rax, qword [r8 + 0x218]
cmp rcx, qword [rax + 0xab0]
jbe 0x1000e4cae
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
jne 0x1000e4ccf
mov rcx, qword [r8 + 0x210]
mov eax, dword [rcx + 0xb4]
test al, 4
je 0x1000e4a30
mov rax, qword [rcx + 0x98]
jmp 0x1000e4a30
lea rdx, [0x10023f400]
xor ecx, ecx
call fcn.100058870
jmp 0x1000e4a30
test r13d, r13d
je 0x1000e4cff
mov rcx, qword [r14]
test rcx, rcx
je 0x1000e4cff
test byte [rcx + 0xc], 0x80
je 0x1000e4cff
mov rax, qword [rcx]
mov rdx, qword [rbp + 0x58]
call qword [rax + 0x30]
xor edi, edi
mov rcx, qword [rbp - 0x30]
mov eax, dword [rbp - 0x38]
not eax
and dword [rcx + 0x220], eax
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x1000e4d44
lea rcx, [rax + 0x40]
mov eax, r12d
lock xadd dword [rcx + 0x10], eax
dec eax
jne 0x1000e4d40
cmp qword [rcx + 8], 0
je 0x1000e4d37
call fcn.1000e48d0
jmp 0x1000e4d40
add rcx, 0xffffffffffffffc0
mov rax, qword [rcx]
call qword [rax]
mov qword [rbp - 0x28], rdi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1000e4d77
add rcx, 0x40
lock xadd dword [rcx + 0x10], r12d
dec r12d
jne 0x1000e4d73
cmp qword [rcx + 8], 0
je 0x1000e4d6a
call fcn.1000e48d0
jmp 0x1000e4d73
add rcx, 0xffffffffffffffc0
mov rax, qword [rcx]
call qword [rax]
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret