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

Disassembly:
push 0xffffffffffffffff
push 0x10076462
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10095428]
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.1003e7b0
mov esi, ebp
call fcn.1003ee40
mov eax, ebp
call fcn.1003e7b0
test al, al
je 0x1003e4f1
add edi, 1
cmp edi, 0x64
jl 0x1003e4d0
mov ecx, dword [ebp + 0x70]
test ecx, ecx
je 0x1003e52d
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x1003e526
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1003e526
test esi, esi
je 0x1003e51d
lea ecx, [esi - 4]
jmp 0x1003e51f
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp + 0x70], 0
mov eax, dword [0x1009a284]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jne 0x1003e5d3
call fcn.10041a55
cmp byte [eax + 0x39], 0
je 0x1003e5a2
call fcn.10041a55
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x1003e58e
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 0x1003e588
lea edi, [esi + 0xc]
push edi
call ebx
lea eax, [esi + 0x24]
push eax
call fcn.10041264
push edi
mov byte [esi + 0x38], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x38], 0
je 0x1003e5a2
push str.Create_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.1004188a
add esp, 0xc
push 8
call fcn.100515d4
mov esi, eax
add esp, 4
test esi, esi
je 0x1003e5cc
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 0x1003e5ce
xor eax, eax
mov dword [0x1009a284], eax
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
je 0x1003e5e9
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1009a284]
test eax, eax
jne 0x1003e684
call fcn.10041a55
cmp byte [eax + 0x39], 0
je 0x1003e653
call fcn.10041a55
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x1003e63f
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 0x1003e639
lea edi, [esi + 0xc]
push edi
call ebx
lea ecx, [esi + 0x24]
push ecx
call fcn.10041264
push edi
mov byte [esi + 0x38], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x38], 0
je 0x1003e653
push str.Create_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.1004188a
add esp, 0xc
push 8
call fcn.100515d4
mov esi, eax
add esp, 4
test esi, esi
je 0x1003e67d
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 0x1003e67f
xor eax, eax
mov dword [0x1009a284], eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push eax
mov esi, eax
call edi
test eax, eax
jne 0x1003e6dc
test esi, esi
je 0x1003e6d2
or ebx, 0xffffffff
cmp dword [esi + 4], ebx
je 0x1003e6c9
call fcn.100419fb
test al, al
je 0x1003e6bc
push str.Destroy_Thread_LocalPoint
push 0xb
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projincludeAsyncFrame_MessageLoop.h
call fcn.1004188a
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.10051870
add esp, 4
mov dword [0x1009a284], 0
lea esi, [ebp + 0x74]
call fcn.1003fce0
mov byte [esp + 0x20], 3
mov eax, dword [ebp + 0x70]
xor ebx, ebx
cmp eax, ebx
je 0x1003e70e
lea esi, [eax + 4]
push esi
call edi
test eax, eax
jne 0x1003e70e
cmp esi, ebx
je 0x1003e705
lea ecx, [esi - 4]
jmp 0x1003e707
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp + 0x48]
cmp eax, ebx
je 0x1003e71e
push eax
call fcn.10051870
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.1003fce0
lea esi, [ebp + 4]
call fcn.1003fce0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret