Function at 0x1003ffc0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10078072
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10098428]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov dword [ebp], vtable.qmbase::MessageLoop.0
mov dword [esp + 0x20], 5
xor edi, edi
lea esp, [esp]
mov eax, ebp
call fcn.100402e0
mov esi, ebp
call fcn.10040970
mov eax, ebp
call fcn.100402e0
test al, al
je 0x10040021
add edi, 1
cmp edi, 0x64
jl 0x10040000
mov ecx, dword [ebp + 0x70]
test ecx, ecx
je 0x1004005d
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x10040056
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10040056
test esi, esi
je 0x1004004d
lea ecx, [esi - 4]
jmp 0x1004004f
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp + 0x70], 0
mov eax, dword [0x1009d8d4]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jne 0x10040103
call fcn.1004353e
cmp byte [eax + 0x39], 0
je 0x100400d2
call fcn.1004353e
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x100400be
mov ecx, dword [esi + 0x34]
mov eax, ecx
cdq
mov edi, 0xa
idiv edi
add ecx, 1
mov dword [esi + 0x34], ecx
test edx, edx
jne 0x100400b8
lea edi, [esi + 0xc]
push edi
call ebx
lea eax, [esi + 0x24]
push eax
call fcn.10042d56
push edi
mov byte [esi + 0x38], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x38], 0
je 0x100400d2
push str.Create_Thread_LocalPoint
push 0xb
push str.D:_for10.0includeAsyncFrame_MessageLoop.h
call fcn.10043373
add esp, 0xc
push 8
call fcn.10052f00
mov esi, eax
add esp, 4
test esi, esi
je 0x100400fc
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, esi
jmp 0x100400fe
xor eax, eax
mov dword [0x1009d8d4], eax
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x10040119
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1009d8d4]
test eax, eax
jne 0x100401b4
call fcn.1004353e
cmp byte [eax + 0x39], 0
je 0x10040183
call fcn.1004353e
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x1004016f
mov ecx, dword [esi + 0x34]
mov eax, ecx
cdq
mov edi, 0xa
idiv edi
add ecx, 1
mov dword [esi + 0x34], ecx
test edx, edx
jne 0x10040169
lea edi, [esi + 0xc]
push edi
call ebx
lea ecx, [esi + 0x24]
push ecx
call fcn.10042d56
push edi
mov byte [esi + 0x38], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x38], 0
je 0x10040183
push str.Create_Thread_LocalPoint
push 0xb
push str.D:_for10.0includeAsyncFrame_MessageLoop.h
call fcn.10043373
add esp, 0xc
push 8
call fcn.10052f00
mov esi, eax
add esp, 4
test esi, esi
je 0x100401ad
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, esi
jmp 0x100401af
xor eax, eax
mov dword [0x1009d8d4], eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push eax
mov esi, eax
call edi
test eax, eax
jne 0x1004020c
test esi, esi
je 0x10040202
or ebx, 0xffffffff
cmp dword [esi + 4], ebx
je 0x100401f9
call fcn.100434e4
test al, al
je 0x100401ec
push str.Destroy_Thread_LocalPoint
push 0xb
push str.D:_for10.0includeAsyncFrame_MessageLoop.h
call fcn.10043373
add esp, 0xc
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [esi + 4], ebx
push esi
call fcn.100531a0
add esp, 4
mov dword [0x1009d8d4], 0
lea esi, [ebp + 0x74]
call fcn.10041810
mov byte [esp + 0x20], 3
mov eax, dword [ebp + 0x70]
xor ebx, ebx
cmp eax, ebx
je 0x1004023e
lea esi, [eax + 4]
push esi
call edi
test eax, eax
jne 0x1004023e
cmp esi, ebx
je 0x10040235
lea ecx, [esi - 4]
jmp 0x10040237
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp + 0x48]
cmp eax, ebx
je 0x1004024e
push eax
call fcn.100531a0
add esp, 4
lea eax, [ebp + 0x2c]
push eax
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea esi, [ebp + 0x18]
call fcn.10041810
lea esi, [ebp + 4]
call fcn.10041810
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret