Function at 0x100a7b34
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 [0x10ee0174]
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 0x100a7b6c
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0xf4]
mov dword [ebp - 0xc], ecx
jmp 0x100a7b72
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0xc], eax
xor al, al
mov byte [ebp - 1], 0
xor edx, edx
mov byte [ebp - 2], al
inc edx
xor eax, eax
mov dword [ebp - 8], edx
test esi, esi
je 0x100a7ba0
lea edi, [esi + 4]
mov eax, dword [edi]
mov esi, dword [eax + 0x40]
mov ecx, esi
call fcn.1002265a
mov ecx, edi
call esi
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0xf0], 0
jne 0x100a7bb9
test eax, eax
je 0x100a7bb9
push 2
mov dword [ecx + 0xf0], esi
pop edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0xf0]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x100a7bd6
cmp byte [ecx + 0xb2], 0
je 0x100a7bd6
mov byte [ebp - 1], 1
cmp dword [ebp - 0xc], 0
jne 0x100a7be5
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x100a7bef
mov dword [esi + 0xf4], edx
mov eax, dword [ebx + 0xc]
xor ecx, ecx
mov edi, dword [eax + 0x78]
mov dword [ebp - 8], edi
mov dword [eax + 0x78], ecx
test edi, edi
jne 0x100a7d68
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0xf0], ecx
je 0x100a7c52
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 8]
call fcn.100a2918
mov eax, dword [ebx + 0xc]
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
je 0x100a7c52
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0xf0]
mov dword [eax + 0xe8], ecx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], edi
mov dword [eax + 0xf0], ecx
jmp 0x100a7c86
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x28]
push 1
push ecx
push dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov esi, dword [edi + 0x48]
mov ecx, esi
push eax
call fcn.1002265a
lea ecx, [edi + 0x28]
call esi
mov esi, dword [ebp - 0x10]
test al, al
je 0x100a7c83
mov edi, dword [ebp - 0x20]
mov dword [ebp - 8], edi
jmp 0x100a7c86
mov edi, dword [ebp - 8]
cmp dword [ebp - 0x18], 0
jne 0x100a7cc2
test edi, edi
jne 0x100a7cc2
mov ecx, dword [ebx + 8]
add ecx, 8
call fcn.10092e0c
mov ecx, dword [ebx + 8]
mov edi, eax
add ecx, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x100a7cb1
call fcn.10092166
jmp 0x100a7cc2
push 0
push 0
call fcn.1009287d
push eax
mov ecx, edi
call fcn.1009f6de
test esi, esi
je 0x100a7cee
test edi, edi
jne 0x100a7cd6
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.100a784d
xor esi, esi
mov dword [ebp - 0x10], esi
test edi, edi
jne 0x100a7d5a
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 1
jne 0x100a7d1f
cmp byte [ebp - 1], 0
jne 0x100a7d0f
mov byte [ebp - 2], cl
mov ecx, dword [ebx + 0xc]
call fcn.100a7584
mov ecx, dword [ebx + 0xc]
push ebx
call fcn.1009d463
xor ecx, ecx
jmp 0x100a7c05
push 0
pop ecx
jle 0x100a7c05
cmp byte [ebp - 1], cl
jne 0x100a7d48
mov ecx, dword [ebx + 0xc]
push ebx
call fcn.1009d3fa
test al, al
jne 0x100a7d41
mov ecx, ebx
call fcn.100a7b04
xor ecx, ecx
mov byte [ebp - 2], cl
jmp 0x100a7d52
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
jmp 0x100a7c05
mov al, byte [ebp - 2]
test al, al
je 0x100a7d68
mov ecx, ebx
call fcn.100a7b04
mov edi, dword [ebx + 0xc]
push dword [ebp - 8]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call fcn.1002265a
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.1002265a
mov ecx, edi
call esi
jmp 0x100a7b4c