Function at 0x100aecfa
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov ebx, ecx
push ebx
push dword [0x1018bf50]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0x7c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x100aed2f
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xf4]
jmp 0x100aed32
mov eax, dword [esi + 0x1c]
xor edi, edi
mov dword [ebp - 0xc], eax
xor al, al
mov byte [ebp - 1], 0
inc edi
mov byte [ebp - 2], al
xor edx, edx
mov dword [ebp - 8], edi
test esi, esi
je 0x100aed65
lea edi, [esi + 4]
mov eax, dword [edi]
mov esi, dword [eax + 0x40]
mov ecx, esi
call fcn.1008e82d
mov ecx, edi
call esi
mov esi, dword [ebp - 0x10]
mov edx, eax
mov edi, dword [ebp - 8]
mov eax, dword [ebx + 0xc]
lea ecx, [eax + 0xf0]
cmp dword [ecx], 0
jne 0x100aed7f
test edx, edx
je 0x100aed7f
push 2
mov dword [ecx], esi
mov eax, dword [ebx + 0xc]
pop edi
mov edx, dword [eax + 0xf0]
mov ecx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x100aed9b
cmp byte [edx + 0xb2], 0
je 0x100aed9b
mov byte [ebp - 1], 1
cmp dword [ebp - 0xc], 0
jne 0x100aedaa
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x100aedb7
mov dword [esi + 0xf4], edi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x78]
and dword [ecx + 0x78], 0
mov dword [ebp - 8], eax
test eax, eax
jne 0x100aef40
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0xf0], 0
je 0x100aee1f
sub esp, 0x10
mov eax, esp
and dword [eax], 0
and dword [eax + 4], 0
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov ecx, dword [ebx + 8]
call fcn.100a9925
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0xe8], 0
je 0x100aee1f
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0xf0]
mov dword [eax + 0xe8], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], edi
and dword [eax + 0xf0], 0
jmp 0x100aee56
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x28]
and dword [ebp - 0x28], 0
and dword [ebp - 0x20], 0
push 1
mov esi, dword [edi + 0x48]
mov ecx, esi
push 0
push dword [ebp - 0xc]
push eax
call fcn.1008e82d
lea ecx, [edi + 0x28]
call esi
mov esi, dword [ebp - 0x10]
test al, al
je 0x100aee53
mov edi, dword [ebp - 0x20]
mov dword [ebp - 8], edi
jmp 0x100aee56
mov edi, dword [ebp - 8]
cmp dword [ebp - 0x18], 0
jne 0x100aee9f
test edi, edi
jne 0x100aee9f
mov eax, dword [ebx + 8]
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov edi, eax
lea ecx, [edi - 8]
neg edi
sbb edi, edi
and edi, ecx
mov ecx, dword [ebx + 8]
add ecx, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x100aee8e
call fcn.10098be7
jmp 0x100aee9f
push 0
push 0
call fcn.1009930d
push eax
mov ecx, edi
call fcn.100a6643
test esi, esi
je 0x100aeecb
test edi, edi
jne 0x100aeeb3
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, esi
mov al, byte [eax + 4]
and al, 1
movzx eax, al
push eax
call fcn.100aea1a
xor esi, esi
mov dword [ebp - 0x10], esi
test edi, edi
jne 0x100aef33
mov edi, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 1
jne 0x100aeefb
cmp byte [ebp - 1], 0
jne 0x100aeeed
mov ecx, dword [ebx + 0xc]
mov byte [ebp - 2], 1
call fcn.100ae749
mov ecx, dword [ebx + 0xc]
push ebx
call fcn.100a43ba
jmp 0x100aedc9
jle 0x100aedc9
cmp byte [ebp - 1], 0
jne 0x100aef21
mov ecx, dword [ebx + 0xc]
push ebx
call fcn.100a4351
test al, al
jne 0x100aef1b
mov ecx, ebx
call fcn.100aecca
mov byte [ebp - 2], 0
jmp 0x100aef29
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x100aedc9
cmp byte [ebp - 2], 0
je 0x100aef40
mov ecx, ebx
call fcn.100aecca
mov edi, dword [ebx + 0xc]
push dword [ebp - 8]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call fcn.1008e82d
mov ecx, edi
call esi
mov edi, dword [ebx + 0x10]
push 1
push dword [ebp - 8]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call fcn.1008e82d
mov ecx, edi
call esi
jmp 0x100aed12