Function at 0x1008424f
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 [0x1012cdb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x7c]
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x10084298
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0xf4]
xor al, al
mov byte [ebp - 2], al
xor eax, eax
inc eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
xor esi, esi
jmp 0x100842c9
mov eax, dword [ecx + 0x1c]
lea edi, [ecx + 4]
mov dword [ebp - 0xc], eax
xor al, al
mov byte [ebp - 2], al
mov eax, dword [edi]
mov dword [ebp - 8], 1
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x100ea420]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0xf0], 0
jne 0x100842e5
test esi, esi
je 0x100842e5
push 2
pop eax
mov dword [edx + 0xf0], ecx
mov dword [ebp - 8], eax
mov edx, dword [ebx + 0xc]
mov esi, dword [edx + 0xf0]
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10084302
cmp byte [esi + 0xb2], 0
je 0x10084302
mov byte [ebp - 1], 1
test edi, edi
jne 0x10084312
mov eax, dword [edx + 0x54]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x1008431c
mov dword [ecx + 0xf4], eax
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x78]
and dword [eax + 0x78], 0
mov dword [ebp - 8], edi
test edi, edi
jne 0x100844a6
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0xf0], 0
je 0x1008438e
sub esp, 0x10
lea esi, [ebx + 8]
mov ecx, dword [esi]
mov eax, esp
and dword [eax], 0
and dword [eax + 4], 0
and dword [eax + 8], 0
and dword [eax + 0xc], 0
call fcn.1007f1f8
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0xe8], 0
je 0x10084389
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 0x100843cc
mov dword [ebp - 0x10], esi
jmp 0x10084394
lea eax, [ebx + 8]
mov dword [ebp - 0x10], eax
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 dword [0x100ea420]
lea ecx, [edi + 0x28]
call esi
mov esi, dword [ebp - 0x10]
test al, al
je 0x100843c9
mov edi, dword [ebp - 0x20]
mov dword [ebp - 8], edi
jmp 0x100843cc
mov edi, dword [ebp - 8]
cmp dword [ebp - 0x1c], 0
jne 0x10084406
test edi, edi
jne 0x10084406
mov ecx, dword [esi]
add ecx, 8
call fcn.1006e556
mov ecx, dword [esi]
mov edi, eax
add ecx, 8
mov dword [ebp - 8], edi
test edi, edi
jne 0x100843f5
call fcn.1006d890
jmp 0x10084406
push 0
push 0
call fcn.1006dfc4
push eax
mov ecx, edi
call fcn.1007bede
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10084432
test edi, edi
jne 0x1008441d
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 al, byte [eax + 4]
and al, 1
movzx eax, al
push eax
call fcn.10083f77
and dword [ebp - 0x14], 0
test edi, edi
jne 0x10084499
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, 1
jne 0x10084461
cmp byte [ebp - 1], 0
jne 0x10084453
mov byte [ebp - 2], cl
mov ecx, dword [ebx + 0xc]
call fcn.10083c95
mov ecx, dword [ebx + 0xc]
push ebx
call fcn.10079bb6
jmp 0x10084331
jle 0x10084331
cmp byte [ebp - 1], 0
jne 0x10084487
mov ecx, dword [ebx + 0xc]
push ebx
call fcn.10079b4c
test al, al
jne 0x10084481
mov ecx, ebx
call fcn.10084221
mov byte [ebp - 2], 0
jmp 0x1008448f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x10084331
cmp byte [ebp - 2], 0
je 0x100844a6
mov ecx, ebx
call fcn.10084221
mov edi, dword [ebx + 0xc]
push dword [ebp - 8]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x100ea420]
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 dword [0x100ea420]
mov ecx, edi
call esi
jmp 0x10084267