Function at 0x10018ef60
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r14d, edx
mov rdi, rcx
lea rcx, [rax + 0x18]
call fcn.10018c2f0
nop
lea rbx, [rdi + 0x80]
mov qword [rsp + 0x28], rbx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rbx], edx
mov ecx, r15d
sete cl
mov rsi, qword [rsp + 0x28]
test ecx, ecx
jne 0x10018efc2
mov rcx, rsi
call fcn.10018e0f0
mov dword [rsp + 0x30], 1
mov rbx, qword [rdi + 0x198]
mov ecx, r15d
mov rdx, r15
mov eax, dword [rbx + 0x10]
test eax, eax
jne 0x10018efe5
mov eax, 1
jmp 0x10018efeb
add eax, 0x1f
shr eax, 5
cmp ecx, eax
jae 0x10018efff
mov rax, qword [rbx + 8]
mov dword [rdx + rax], r15d
inc ecx
add rdx, 4
jmp 0x10018efd7
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x18], eax
lea rcx, [rbx + 0x20]
call fcn.100105250
mov dword [rbx + 0xf8], 1
mov ebx, r15d
cmp dword [rdi + 0x10], ebx
jbe 0x10018f0c4
mov rsi, r15
nop word [rax + rax]
mov rax, qword [rdi + 8]
cmp qword [rsi + rax], 0
je 0x10018f0b0
mov rax, qword [rsi + rax]
mov eax, dword [rax + 0x20]
test eax, eax
jne 0x10018f0a6
mov r9, qword [rdi + 0x198]
mov rax, qword [rdi + 8]
mov rax, qword [rsi + rax]
cmp dword [r9 + 0xf8], 0
je 0x10018f0b0
mov rax, qword [rax + 0x50]
mov ecx, dword [rax + 4]
mov eax, ecx
shr eax, 5
and ecx, 0x1f
mov r8d, 1
shl r8d, cl
mov rcx, qword [r9 + 8]
lea rdx, [rcx + rax*4]
prefetchw byte [rdx]
mov eax, dword [rdx]
mov ecx, eax
or ecx, r8d
lock cmpxchg dword [rdx], ecx
jne 0x10018f084
and r8d, eax
jne 0x10018f0b0
lock dec dword [r9 + 0x18]
jne 0x10018f0b0
lea rcx, [r9 + 0x20]
call fcn.100105230
jmp 0x10018f0b0
mov edx, ebx
mov rcx, rdi
call fcn.10018fe00
inc ebx
add rsi, 0x40
cmp ebx, dword [rdi + 0x10]
jb 0x10018f030
mov rsi, qword [rsp + 0x28]
lea rbp, [rdi + 0x88]
mov rax, qword [rbp + 8]
cmp rax, rbp
je 0x10018f0df
test rax, rax
je 0x10018f0df
add rax, 0xfffffffffffffff8
jmp 0x10018f0e2
mov rax, r15
mov rbx, rax
test rax, rax
je 0x10018f19d
mov rbx, qword [rax + 0x10]
cmp rbx, rbp
je 0x10018f102
test rbx, rbx
je 0x10018f102
add rbx, 0xfffffffffffffff8
jmp 0x10018f105
mov rbx, r15
test rax, rax
je 0x10018f19d
nop
mov r9, qword [rdi + 0x198]
cmp dword [r9 + 0xf8], 0
je 0x10018f170
mov rax, qword [rax + 0x50]
mov ecx, dword [rax + 4]
mov eax, ecx
shr eax, 5
and ecx, 0x1f
mov r8d, 1
shl r8d, cl
mov rcx, qword [r9 + 8]
lea rdx, [rcx + rax*4]
prefetchw byte [rdx]
mov eax, dword [rdx]
nop word [rax + rax]
mov ecx, eax
or ecx, r8d
lock cmpxchg dword [rdx], ecx
jne 0x10018f150
and r8d, eax
jne 0x10018f170
lock dec dword [r9 + 0x18]
jne 0x10018f170
lea rcx, [r9 + 0x20]
call fcn.100105230
mov rax, rbx
test rbx, rbx
je 0x10018f18f
mov rbx, qword [rbx + 0x10]
cmp rbx, rbp
je 0x10018f18c
test rbx, rbx
je 0x10018f18c
add rbx, 0xfffffffffffffff8
jmp 0x10018f18f
mov rbx, r15
test rax, rax
jne 0x10018f110
mov rsi, qword [rsp + 0x28]
test rsi, rsi
je 0x10018f1a5
mov dword [rsi], r15d
lea rcx, [rsp + 0x90]
call fcn.10018c330
mov rsi, qword [rdi + 0x198]
mov dword [rsp + 0x38], r15d
call fcn.100068a00
mov rbx, rax
mov rcx, qword gs:[0x30]
lea rdi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10018f1ea
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x10018f1fb
mov rdi, qword [rdi + 0xd8]
test rdi, rdi
jne 0x10018f233
call fcn.100063d30
call fcn.100068a00
mov rbx, rax
mov rcx, qword gs:[0x30]
lea rdi, [rcx + rax]
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x10018f22c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rdi, qword [rdi + 0xd8]
mov qword [rsp + 0x40], rdi
mov eax, dword [rdi + 0x220]
mov ebx, eax
and ebx, 1
xor ebx, 1
mov dword [rsp + 0x38], ebx
or eax, 1
mov dword [rdi + 0x220], eax
lea rcx, [rsi + 0x20]
mov r8d, r14d
mov edx, 0x40015a
call fcn.1001052a0
mov dword [rsi + 0xf8], r15d
not ebx
and dword [rdi + 0x220], ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret