Function at 0x18021fc00
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 0x18021fc26
and rax, 0xfffffffffffffffe
jmp 0x18021fc33
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::IntelSchedulerTraits_.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, 0xc0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x60], rdx
mov r13, rcx
mov qword [rsp + 0x40], rcx
mov rsi, r8
mov qword [rsp + 0x20], r8
mov rax, qword [rcx + 0x68]
mov qword [rsp + 0x58], rax
mov rdx, qword [rcx + 0x70]
mov qword [rsp + 0x118], rdx
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x38]
mov qword [rcx + 0x40], rax
mov rcx, qword [rcx + 0xa0]
cmp rax, rcx
jne 0x1802209c5
mov eax, 1
movabs r15, 0xc000000000000000
cmp r14, rcx
cmove rax, r15
mov qword [rsp + 0x110], rax
jmp 0x180220a09
mov qword [rsp + 0x110], 1
cmp r14, rcx
je 0x180220a09
mov rax, qword [r14 - 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 0x180220a09
mov rax, qword [rax]
dec rax
mov qword [rbx + 0x168], rax
mov rsi, 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 rdi, rdi
je 0x180220a56
mov rcx, qword [rdi - 0x38]
mov eax, dword [rsp + 0x30]
cmp dword [rcx + 0x70], eax
jne 0x180220a43
mov rax, qword [rsp + 0x30]
shr rax, 0x20
cmp word [rcx + 0x74], ax
je 0x180220a56
mov rax, qword [rcx + 0x70]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.180396d28
xor r12d, r12d
nop dword [rax]
test rsi, rsi
je 0x180220e4d
lea r15, [rsi - 0x38]
mov rax, qword [r15]
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 0x180220c71
mov rdi, qword [rsp + 0x20]
test byte [rdi - 0xb], 0x10
jne 0x180220c76
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x88]
mov rdi, qword [rsp + 0x48]
cmp rdi, rcx
je 0x180220ac5
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 0x180220c71
mov rax, qword [rbx + 0x158]
mov rcx, qword [rsp + 0x20]
test rax, rax
jne 0x180220afc
lea rax, [rcx - 0x28]
mov qword [rbx + 0x160], rax
mov qword [rax], r12
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 0x180220b2c
mov rcx, rbx
call fcn.18021eb40
mov rsi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x180220b35
jmp 0x180220a60
mov rcx, qword [rbx + 0x30]
call fcn.180221540
mov rdi, qword [rsp + 0x60]
add rdi, 0xffffffffffffffe8
mov r14, qword [rsp + 0x108]
mov r15, qword [rsp + 0x110]
movabs rax, 0xc000000000000000
cmp r15, rax
jne 0x180220bbb
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 + 0x118]
cmp qword [rbx + 0x70], rcx
je 0x180220b92
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 0x180220bac
movzx eax, word [rsp + 0x2c]
cmp word [rsp + 0x34], ax
je 0x180220bb6
lea rcx, [rsp + 0x28]
call fcn.180396d28
jmp 0x180220f07
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x30]
mov rsi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x180220f1a
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 + 0x118]
cmp qword [rbx + 0x70], rcx
je 0x180220c0d
mov rax, qword [rcx]
dec rax
mov qword [rbx + 0x168], rax
mov qword [rbx + 0x70], rcx
mov rcx, qword [r14 - 0x38]
mov eax, dword [rcx + 0x80]
shr rax, 0x12
test al, 1
jne 0x180220c32
cmp qword [r14 - 0x18], 1
jne 0x180220ee7
mov qword [r14 - 0x18], r12
cmp qword [rcx + 0x78], 0
je 0x180220ee7
mov rdi, qword [rcx + 0x88]
mov rax, qword [rbx + 0xa0]
cmp qword [rbx + 0x40], rax
jne 0x180220c63
cmp rcx, qword [rax - 0x38]
jne 0x180220c63
mov qword [rcx + 0x78], r12
and qword [rcx + 0x98], 0xfffffffffffffffe
test rdi, rdi
jne 0x180220f97
jmp 0x180220ee7
mov rdi, qword [rsp + 0x20]
mov rsi, r12
mov qword [rsp + 0x38], r12
mov qword [rbx + 0x38], rdi
mov qword [rdi - 0x28], rbx
mov byte [rdi - 0xc], 0
mov rax, qword [r15]
cmp qword [rax + 0x78], 0
jne 0x180220cae
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180220cae
and byte [rax - 0xb], 0x6f
movzx ecx, byte [rdi - 0xc]
test ecx, ecx
je 0x180220d74
sub ecx, 1
je 0x180220d58
sub ecx, 2
je 0x180220d4f
sub ecx, 2
je 0x180220cdb
cmp ecx, 1
je 0x180220cdf
jmp 0x180220e43
mov byte [rdi - 0xc], 3
and byte [rdi - 0xb], 0x6f
mov qword [rsp + 0x68], r15
cmp qword [r15 + 0x20], 1
jne 0x180220cf5
mov qword [r15 + 0x20], r12
jmp 0x180220d1b
mov rax, 0xffffffffffffffff
lock xadd qword [r15 + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rax, 1
jg 0x180220e43
mov rdi, qword [rsp + 0x20]
mov r15, qword [rsp + 0x68]
cmp byte [r15 + 0x2c], 6
jne 0x180220d3d
lea r9, [rbx + 0x90]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbx + 0x30]
call fcn.18022ea00
jmp 0x180220e43
test rsi, rsi
jne 0x180220d60
mov rsi, rdi
mov qword [rsp + 0x38], rdi
jmp 0x180220e43
and byte [rdi - 0xb], 0x6f
jmp 0x180220e43
mov byte [rdi - 0xc], 3
and byte [rdi - 0xb], 0x6f
lea r8, [rdi - 8]
mov rdx, rdi
mov rcx, rbx
call fcn.18021e650
jmp 0x180220e43
mov r14, qword [rdi - 0x20]
mov qword [rsp + 0x70], r14
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
test r14, r14
je 0x180220df8
cmp qword [r14 - 0x18], 1
jne 0x180220d99
mov qword [r14 - 0x18], r12
jmp 0x180220dbb
mov rax, 0xffffffffffffffff
lock xadd qword [r14 - 0x18], rax
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
cmp rax, 1
jg 0x180220df8
mov r14, qword [rsp + 0x70]
cmp byte [r14 - 0xc], 6
jne 0x180220dda
lea r9, [rbx + 0x90]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbx + 0x30]
call fcn.18022ea00
jmp 0x180220df8
test rsi, rsi
jne 0x180220de9
mov rsi, r14
mov qword [rsp + 0x38], r14
jmp 0x180220df8
lea r8, [r14 - 8]
mov rdx, r14
mov rcx, rbx
call fcn.18021e650
mov qword [rsp + 0x80], r15
mov byte [r15 + 0x2c], 4
mov rax, qword [r15 + 8]
cmp rax, rbx
jne 0x180220e22
mov rax, qword [rbx + 0x98]
mov qword [r15 + 0x30], rax
mov qword [rbx + 0x98], rdi
jmp 0x180220e43
test rax, rax
je 0x180220e39
cmp rax, 0x1000
jb 0x180220e43
mov rdx, rdi
call fcn.18021e200
jmp 0x180220e43
lea rcx, [rdi - 0x40]
call qword [case.0x18022e5e6.0]
mov qword [rsp + 0x20], rsi
jmp 0x180220a60
mov r14, qword [rsp + 0x108]
lea rdi, [r14 - 0x18]
mov r15, qword [rsp + 0x110]
cmp qword [rdi], r15
jne 0x180220e7d
mov rax, qword [0x1806c73d8]
test rax, rax
je 0x180220e78
mov rcx, rdi
call rax
nop
jmp 0x180220bd8
mov rax, qword [rbx + 0x28]
cmp qword [rax + 8], 0
je 0x180220b4e
mov rcx, rbx
call fcn.18021f100
mov rsi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x180220b4e
mov rax, qword [rax - 0x38]
mov qword [rsp + 0x88], rax
lea rcx, [rax + 0x70]
mov qword [rsp + 0x90], rcx
mov eax, dword [rsp + 0x30]
cmp dword [rcx], eax
jne 0x180220ed0
movzx eax, word [rsp + 0x34]
cmp word [rcx + 4], ax
je 0x180220ee2
mov rax, qword [rcx]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.180396d28
jmp 0x180220a60
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x30], eax
jne 0x180220efd
movzx eax, word [rsp + 0x2c]
cmp word [rsp + 0x34], ax
je 0x180220f07
lea rcx, [rsp + 0x28]
call fcn.180396d28
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rax - 0x38]
mov qword [rsp + 0x98], rax
lea rcx, [rax + 0x70]
mov qword [rsp + 0xa0], rcx
jmp 0x180220ebd
lea rcx, [rsp + 0x28]
call fcn.18021dc90
mov rcx, rdi
call fcn.18021db30
int3