Function at 0x10008fc4
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x10009210
mov al, byte [ecx + 0xc]
test al, 1
je 0x100090f7
mov eax, dword [ecx]
mov edx, dword [esi + 4]
mov eax, dword [eax]
lea edi, [esi + 4]
push edx
call eax
mov dword [edi], eax
cmp eax, ebx
jne 0x10009015
mov ecx, dword [esi + 0x14]
test byte [ecx + 0xc], 0x40
je 0x10009005
mov edx, dword [esi + 0x10]
cmp byte [edx + 0x18], bl
je 0x10009015
mov eax, dword [esi + 0x10]
mov byte [eax + 0x18], 1
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 0x14]
mov al, byte [ecx + 0xc]
mov dl, al
and dl, 0x11
cmp dl, 1
jne 0x1000904d
mov eax, dword [esi + 0x10]
add eax, 0x14
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov eax, 1
lock xadd dword [edx], eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], ecx
mov byte [esi + 0xc], 1
jmp 0x10009073
and al, 0xe
cmp al, 6
jb 0x10009073
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x19], bl
je 0x10009073
add eax, 0x14
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov eax, 1
lock xadd dword [edx], eax
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x14]
cmp dword [edx + 4], ebx
je 0x10009324
mov eax, dword [0x1004c1c8]
cmp eax, ebx
je 0x10009094
mov edx, dword [esi + 0x10]
add edx, 0x10
push edx
call eax
add esp, 4
mov eax, dword [esi + 0x10]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov eax, 0xffffffff
lock xadd dword [edx], eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
dec ecx
je 0x100090ef
mov edx, dword [esi - 0x14]
push 0x1c
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
call sym.tbb.dll_public:_class_tbb::task____thiscall_tbb::internal::allocate_additional_child_of_proxy::allocate_unsigned_int_const
cmp eax, ebx
je 0x100090dd
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.10008180
jmp 0x100090df
xor eax, eax
mov ecx, dword [eax - 0x18]
mov edx, dword [ecx]
push ebp
lea ebp, [eax - 4]
push ebp
push eax
mov eax, dword [edx]
call eax
pop ebp
mov byte [esi + 0x18], bl
jmp 0x10009235
mov ecx, dword [esi + 0x10]
cmp byte [ecx + 0x18], bl
jne 0x1000900c
and al, 0xe
cmp al, 6
jb 0x10009126
cmp byte [ecx + 0x19], bl
je 0x10009126
add ecx, 0x14
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov eax, 1
lock xadd dword [edx], eax
mov dword [esp + 0x10], eax
mov eax, dword [0x1004c1c8]
cmp eax, ebx
je 0x1000913b
mov ecx, dword [esi + 0x10]
add ecx, 0x10
push ecx
call eax
add esp, 4
mov edx, dword [esi + 0x10]
add edx, 0x10
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov eax, 0xffffffff
lock xadd dword [edx], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
dec eax
je 0x10009194
mov ecx, dword [esi - 0x14]
mov dword [esp + 0x18], ecx
push 0x1c
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call sym.tbb.dll_public:_class_tbb::task____thiscall_tbb::internal::allocate_additional_child_of_proxy::allocate_unsigned_int_const
cmp eax, ebx
je 0x10009184
mov edx, dword [esi + 0x10]
push edx
mov ecx, eax
call fcn.10008180
jmp 0x10009186
xor eax, eax
mov ecx, dword [eax - 0x18]
mov edx, dword [ecx]
lea edi, [eax - 4]
push edi
push eax
mov eax, dword [edx]
call eax
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov eax, dword [esi + 4]
mov edx, dword [edx]
lea edi, [esi + 4]
push eax
call edx
mov dword [edi], eax
cmp eax, ebx
jne 0x100090ef
mov eax, dword [esi + 0x14]
test byte [eax + 0xc], 0x40
je 0x100091cc
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100090ef
mov ecx, dword [esi + 0x10]
mov byte [ecx + 0x18], 1
mov edx, dword [esi + 0x14]
mov al, byte [edx + 0xc]
and al, 0xe
cmp al, 6
jb 0x1000900c
mov esi, dword [esi + 0x10]
cmp byte [esi + 0x19], bl
je 0x1000900c
add esi, 0x14
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x14]
mov eax, 0xffffffff
lock xadd dword [edx], eax
mov dword [esp + 0x10], eax
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov edx, dword [ecx]
mov eax, dword [esi + 4]
mov edx, dword [edx]
lea edi, [esi + 4]
push eax
call edx
mov dword [edi], eax
mov eax, dword [esi + 0x14]
test byte [eax + 0xc], 1
je 0x10009235
mov ecx, dword [esi + 8]
push esi
push ecx
mov ecx, dword [eax + 8]
call fcn.10008b50
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 4]
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x100092b0
test byte [eax + 0xc], 1
je 0x1000933a
mov ecx, dword [eax + 8]
push ebx
push edi
call fcn.100085d0
test al, al
je 0x1000933a
mov eax, dword [esi + 0x14]
mov cl, 0x20
test byte [eax + 0xc], cl
je 0x100092a4
jmp 0x10009270
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 4]
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x100092a4
test byte [eax + 0xc], cl
jne 0x10009270
cmp eax, ebx
je 0x100092a4
mov cl, byte [eax + 0xc]
and cl, 1
sete dl
movzx ecx, dl
push ecx
mov ecx, dword [eax + 8]
push edi
call fcn.10008700
test al, al
jne 0x1000933a
pop edi
mov dword [esi + 0x14], ebx
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov edx, dword [esi + 0x10]
add edx, 0x10
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov eax, 1
lock xadd dword [edx], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 4]
inc edx
test byte [ecx + 0xc], 0x20
je 0x100092ff
cmp edx, 1
jne 0x1000900c
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 4]
push ebx
push edx
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
cmp edx, 1
ja 0x1000900c
cmp byte [eax + 0x18], bl
jne 0x1000900c
mov ecx, dword [0x1004c1c4]
cmp ecx, ebx
je 0x10009324
add eax, 0x10
push eax
call ecx
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov word [edi + 8], bx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
mov byte [esi + 0x18], 1
mov dword [esi + 0x14], ecx
pop edi
mov byte [esi - 8], 3
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret