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

Disassembly:
push 0xffffffffffffffff
push 0x100c19c2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100ee3e0]
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]
push ebp
call fcn.10058f90
mov esi, ebp
call fcn.10059600
push ebp
call fcn.10058f90
test al, al
je 0x10058d5f
add edi, 1
cmp edi, 0x64
jl 0x10058d40
cmp dword [ebp + 0x70], 0
lea esi, [ebp + 0x70]
je 0x10058d8c
mov ecx, esi
call fcn.100348a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [esi]
test eax, eax
je 0x10058d86
lea ecx, [eax + 4]
call fcn.100350f3
mov dword [esi], 0
mov eax, dword [0x1010a3b8]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jne 0x10058e32
call fcn.1005e6a7
cmp byte [eax + 0x39], 0
je 0x10058e01
call fcn.1005e6a7
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x10058ded
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 0x10058de7
lea edi, [esi + 0xc]
push edi
call ebx
lea ecx, [esi + 0x24]
push ecx
call fcn.1005bc76
push edi
mov byte [esi + 0x38], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x38], 0
je 0x10058e01
push str.Create_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.1005c293
add esp, 0xc
push 8
call fcn.10071ce7
mov esi, eax
add esp, 4
test esi, esi
je 0x10058e2b
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 0x10058e2d
xor eax, eax
mov dword [0x1010a3b8], eax
mov ecx, dword [eax + 4]
xor edi, edi
cmp ecx, 0xffffffff
je 0x10058e49
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1010a3b8]
cmp eax, edi
jne 0x10058ee2
call fcn.1005e6a7
cmp byte [eax + 0x39], 0
je 0x10058eb3
call fcn.1005e6a7
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x10058e9f
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 0x10058e99
lea edi, [esi + 0xc]
push edi
call ebx
lea edx, [esi + 0x24]
push edx
call fcn.1005bc76
push edi
mov byte [esi + 0x38], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x38], 0
je 0x10058eb3
push str.Create_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.1005c293
add esp, 0xc
push 8
call fcn.10071ce7
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
je 0x10058edb
mov dword [esi], edi
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
mov eax, esi
jmp 0x10058edd
xor eax, eax
mov dword [0x1010a3b8], eax
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10058f34
cmp esi, edi
je 0x10058f2e
or ebx, 0xffffffff
cmp dword [esi + 4], ebx
je 0x10058f25
call fcn.1005c404
test al, al
je 0x10058f18
push str.Destroy_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.1005c293
add esp, 0xc
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [esi + 4], ebx
push esi
call fcn.10071fb0
add esp, 4
mov dword [0x1010a3b8], edi
lea esi, [ebp + 0x74]
call fcn.1005a7f0
lea ecx, [ebp + 0x70]
mov byte [esp + 0x20], 3
call fcn.1003508c
mov eax, dword [ebp + 0x48]
cmp eax, edi
je 0x10058f59
push eax
call fcn.10071fb0
add esp, 4
lea ecx, [ebp + 0x2c]
push ecx
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea esi, [ebp + 0x18]
call fcn.1005a7f0
lea esi, [ebp + 4]
call fcn.1005a7f0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret