Function at 0x10015200
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003e328
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1004d650]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x1004fea0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x10015249
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x1001525c
push 1
push ebx
push 0xffffffffffffffff
call fcn.10012020
add esp, 0xc
mov dword [esp + 0x1c], eax
mov edi, eax
mov eax, dword [esi]
cmp dword [edi + 0x10], eax
jne 0x100152d0
cmp dword [edi + 8], ebx
jne 0x100152b5
mov eax, dword [eax + 0x84]
test eax, 0xfffffffe
je 0x100152b5
or ebp, 0xffffffff
jmp 0x10015280
mov dword [esp + 0x28], vtable.tbb::interface7::internal::wait_body.0
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], ebx
call dword [vtable.tbb::interface7::internal::wait_body.0]
mov eax, dword [esi]
mov eax, dword [eax + 0x84]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x28], vtable.tbb::interface7::internal::delegate_base.0
test eax, 0xfffffffe
jne 0x10015280
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
cmp eax, ebx
je 0x1001546a
mov eax, dword [esi]
mov eax, dword [eax + 0x180]
cmp eax, ebx
jne 0x1001535c
mov eax, dword [esi]
add eax, 0x180
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lock cmpxchg dword [edx], ecx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], ebx
jne 0x1001535c
mov dword [esp + 0x34], vtable.tbb::interface7::internal::wait_body.0
mov dword [esp + 0x38], edi
cmp dword [esi + 0xc], ebx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi]
sete dl
movzx eax, dl
push eax
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x58], 1
call fcn.10014060
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x34], vtable.tbb::interface7::internal::delegate_base.0
jmp 0x1001545a
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x18], eax
mov edx, dword [esi + 4]
push 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 2
mov dword [esp + 0x34], edx
call sym.tbb.dll_public:_class_tbb::task____thiscall_tbb::internal::allocate_root_with_context_proxy::allocate_unsigned_int_const
cmp eax, ebx
je 0x1001539d
lea ecx, [esp + 0x18]
mov byte [eax - 7], 1
mov dword [eax], vtable.tbb::interface7::internal::wait_task.0
mov dword [eax + 4], ecx
mov ebp, eax
jmp 0x1001539f
xor ebp, ebp
mov edx, dword [0x1004fea0]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x28], eax
mov eax, dword [0x1004c22c]
cmp eax, ebx
jne 0x100153bd
xor eax, eax
jmp 0x100153bf
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0xd4]
mov dword [edx + 0x10], eax
mov edi, dword [esi]
mov byte [ebp - 8], 2
or byte [ebp - 7], 0x10
mov eax, dword [0x1004c1c8]
lea ebx, [edi + 0x9c]
test eax, eax
je 0x100153e9
push ebx
call eax
add esp, 4
mov eax, dword [esp + 0x28]
add eax, 0x34
push eax
push ebp
mov ecx, ebx
call fcn.10014c70
mov ecx, dword [edi + 0x88]
cmp ecx, 1
je 0x10015412
mov ecx, dword [edi + 0xc0]
push 1
push edi
call fcn.10012ef0
mov ecx, edi
call fcn.10013ec0
mov edx, dword [edi + 0x88]
cmp edx, 1
je 0x10015432
mov ecx, dword [edi + 0xc0]
push 1
push edi
call fcn.10012ef0
mov eax, dword [esp + 0x18]
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [esi]
mov eax, dword [eax + 0xd0]
cmp eax, ebx
jne 0x100152e0
mov eax, dword [esi]
mov eax, dword [eax + 0x84]
test eax, 0xfffffffe
jne 0x10015487
mov edx, dword [esi]
cmp dword [edx + 0x180], ebx
je 0x100152b5
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x100152d0