Function at 0x18021fce0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x1806d4e68]
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
je 0x18021fd06
and rax, 0xfffffffffffffffe
jmp 0x18021fd13
mov r8b, 1
mov ecx, 0xffffffff
call fcn.1801d21f0
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp method.tbb::internal::custom_scheduler_struct_tbb::internal::DefaultSchedulerTraits_.virtual_40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rsi, r8
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x60], rdx
mov r13, rcx
mov qword [rsp + 0x40], rcx
mov rax, qword [0x1806c73a8]
test rax, rax
je 0x18021fd91
lea rcx, [rdx - 0x18]
mov r9d, 2
lea r8, str.TBB_Scheduler
lea rdx, str._Constant
call rax
mov rdi, rsi
mov qword [rsp + 0x20], rsi
mov rax, qword [rbx + 0x68]
mov qword [rsp + 0x58], rax
mov rdx, qword [rbx + 0x70]
mov qword [rsp + 0x38], rdx
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x38]
mov qword [rbx + 0x40], rax
mov rcx, qword [rbx + 0xa0]
cmp rax, rcx
jne 0x18021fde8
mov eax, 1
movabs r14, 0xc000000000000000
cmp r12, rcx
cmove rax, r14
mov qword [rsp + 0x108], rax
jmp 0x18021fe2d
mov qword [rsp + 0x108], 1
cmp r12, rcx
je 0x18021fe2d
mov rax, qword [r12 - 0x38]
add rax, 0xa0
mov qword [rbx + 0x68], rax
mov rax, qword [rbx + 0x30]
add rax, 0x108
mov qword [rbx + 0x70], rax
cmp rax, rdx
je 0x18021fe2d
mov rax, qword [rax]
dec rax
mov qword [rbx + 0x168], rax
mov rdi, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180396d20
and dword [rsp + 0x28], 0xffffffc0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
test rsi, rsi
je 0x18021fe7a
mov rcx, qword [rsi - 0x38]
mov eax, dword [rsp + 0x30]
cmp dword [rcx + 0x70], eax
jne 0x18021fe67
mov rax, qword [rsp + 0x30]
shr rax, 0x20
cmp word [rcx + 0x74], ax
je 0x18021fe7a
mov rax, qword [rcx + 0x70]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.180396d28
xor r15d, r15d
nop dword [rax]
test rdi, rdi
je 0x180220228
lea r14, [rdi - 0x38]
mov rax, qword [r14]
mov rcx, qword [rax + 0xa0]
mov qword [rsp + 0x48], rcx
mov rax, qword [rbx + 0x68]
mov rcx, qword [rax]
cmp qword [rsp + 0x48], rcx
je 0x180220086
mov rsi, qword [rsp + 0x20]
test byte [rsi - 0xb], 0x10
jne 0x18022008b
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x88]
mov rdi, qword [rsp + 0x48]
cmp rdi, rcx
je 0x18021fee5
mov r8, rdi
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x88]
call fcn.180222f40
mov rcx, rbx
call fcn.18021dc30
cmp rdi, rax
jge 0x180220086
mov rax, qword [rbx + 0x158]
mov rcx, qword [rsp + 0x20]
test rax, rax
jne 0x18021ff1c
lea rax, [rcx - 0x28]
mov qword [rbx + 0x160], rax
mov qword [rax], r15
mov rax, qword [r13 + 0x158]
mov qword [rcx - 0x28], rax
mov qword [rbx + 0x158], rcx
mov rax, qword [rbx + 0x28]
cmp qword [rax + 8], 0
je 0x18021ff4c
mov rcx, rbx
call fcn.18021eb40
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x18021ff55
jmp 0x18021fe80
mov rcx, qword [rbx + 0x30]
call fcn.180221540
mov rsi, qword [rsp + 0x60]
add rsi, 0xffffffffffffffe8
mov r14, qword [rsp + 0x108]
movabs rax, 0xc000000000000000
cmp r14, rax
jne 0x18021ffd0
mov rax, qword [rbx + 0x40]
mov qword [rbx + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x68], rax
mov rcx, qword [rsp + 0x38]
cmp qword [rbx + 0x70], rcx
je 0x18021ffa7
mov rax, qword [rcx]
dec rax
mov qword [rbx + 0x168], rax
mov qword [rbx + 0x70], rcx
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x30], eax
jne 0x18021ffc1
movzx eax, word [rsp + 0x2c]
cmp word [rsp + 0x34], ax
je 0x18021ffcb
lea rcx, [rsp + 0x28]
call fcn.180396d28
jmp 0x1802202db
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x30]
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x1802202ee
mov rax, qword [rbx + 0x40]
mov qword [rbx + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x68], rax
mov rcx, qword [rsp + 0x38]
cmp qword [rbx + 0x70], rcx
je 0x18022001f
mov rax, qword [rcx]
dec rax
mov qword [rbx + 0x168], rax
mov qword [rbx + 0x70], rcx
mov rcx, qword [r12 - 0x38]
mov eax, dword [rcx + 0x80]
shr rax, 0x12
test al, 1
jne 0x180220047
cmp qword [r12 - 0x18], 1
jne 0x1802202bb
mov qword [r12 - 0x18], r15
cmp qword [rcx + 0x78], 0
je 0x1802202bb
mov rdi, qword [rcx + 0x88]
mov rax, qword [rbx + 0xa0]
cmp qword [rbx + 0x40], rax
jne 0x180220078
cmp rcx, qword [rax - 0x38]
jne 0x180220078
mov qword [rcx + 0x78], r15
and qword [rcx + 0x98], 0xfffffffffffffffe
test rdi, rdi
jne 0x18022039b
jmp 0x1802202bb
mov rsi, qword [rsp + 0x20]
mov rdi, r15
mov qword [rsp + 0x100], r15
mov qword [rbx + 0x38], rsi
mov qword [rsi - 0x28], rbx
mov byte [rsi - 0xc], 0
mov rcx, qword [r14]
cmp qword [rcx + 0x78], 0
jne 0x1802200f0
mov rax, qword [0x1806c73c0]
test rax, rax
je 0x1802200be
mov rcx, qword [rcx + 0x20]
call rax
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov rdi, rax
mov qword [rsp + 0x100], rax
mov rax, qword [0x1806c73b0]
test rax, rax
je 0x1802200e7
mov rcx, qword [r14]
mov rcx, qword [rcx + 0x20]
call rax
test rdi, rdi
je 0x1802200f0
and byte [rdi - 0xb], 0x6f
movzx ecx, byte [rsi - 0xc]
test ecx, ecx
je 0x1802201e0
sub ecx, 1
je 0x1802201c7
sub ecx, 2
je 0x1802201c1
sub ecx, 2
je 0x18022011d
cmp ecx, 1
je 0x180220121
jmp 0x18022021e
mov byte [rsi - 0xc], 3
and byte [rsi - 0xb], 0x6f
mov qword [rsp + 0x68], r14
mov rax, qword [0x1806c73d0]
lea rdi, [r14 + 0x20]
test rax, rax
je 0x18022013f
mov rcx, rdi
call rax
mov rax, 0xffffffffffffffff
lock xadd qword [rdi], rax
cmp rax, 1
jg 0x180220185
mov rax, qword [0x1806c73d8]
test rax, rax
je 0x180220162
mov rcx, rdi
call rax
mov rax, qword [rsp + 0x68]
cmp byte [rax + 0x2c], 6
jne 0x180220192
lea r9, [rbx + 0x90]
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rbx + 0x30]
call fcn.18022ea00
mov rdi, qword [rsp + 0x100]
jmp 0x18022021e
mov rdi, qword [rsp + 0x100]
test rdi, rdi
jne 0x1802201ae
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x100], rdi
jmp 0x18022021e
mov rdx, qword [rsp + 0x20]
lea r8, [rdx - 8]
mov rcx, rbx
call fcn.18021e650
jmp 0x18022021e
and byte [rsi - 0xb], 0x6f
jmp 0x18022021e
mov byte [rsi - 0xc], 3
and byte [rsi - 0xb], 0x6f
lea r8, [rsi - 8]
mov rdx, rsi
mov rcx, rbx
call fcn.18021e650
jmp 0x18022021e
mov r14, qword [rsi - 0x20]
mov qword [rsp + 0x78], r14
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
test r14, r14
je 0x180220213
lea r8, [rsp + 0x100]
mov rdx, r14
mov rcx, rbx
call fcn.180221660
mov rdi, qword [rsp + 0x100]
mov rdx, rsi
mov rcx, rbx
call fcn.180221590
mov qword [rsp + 0x20], rdi
jmp 0x18021fe80
lea rsi, [r12 - 0x18]
mov r14, qword [rsp + 0x108]
cmp qword [rsi], r14
jne 0x180220251
mov rax, qword [0x1806c73d8]
test rax, rax
je 0x18022024c
mov rcx, rsi
call rax
nop
jmp 0x18021ffed
mov rax, qword [rbx + 0x28]
cmp qword [rax + 8], 0
je 0x18021ff66
mov rcx, rbx
call fcn.18021f100
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x18021ff66
mov rax, qword [rax - 0x38]
mov qword [rsp + 0x80], rax
lea rcx, [rax + 0x70]
mov qword [rsp + 0x88], rcx
mov eax, dword [rsp + 0x30]
cmp dword [rcx], eax
jne 0x1802202a4
movzx eax, word [rsp + 0x34]
cmp word [rcx + 4], ax
je 0x1802202b6
mov rax, qword [rcx]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.180396d28
jmp 0x18021fe80
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x30], eax
jne 0x1802202d1
movzx eax, word [rsp + 0x2c]
cmp word [rsp + 0x34], ax
je 0x1802202db
lea rcx, [rsp + 0x28]
call fcn.180396d28
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rax - 0x38]
mov qword [rsp + 0x90], rax
lea rcx, [rax + 0x70]
mov qword [rsp + 0x98], rcx
jmp 0x180220291
lea rcx, [rsp + 0x28]
call fcn.18021dc90
mov rcx, rdi
call fcn.18021db30
int3