Function at 0x447590
Capabilities:
Allocate thread local storage
Set environment variable
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4b1abe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 8]
call fcn.004aad74
xor ebp, ebp
lea ecx, [esi + 0x28]
mov dword [esp + 0x20], ebp
call fcn.0043a190
mov dword [esi + 0x30b0], 0x4de684
mov dword [esi + 0x30b4], ebp
mov dword [esi + 0x30c0], ebp
mov dword [esi + 0x30bc], ebp
mov dword [esi + 0x30b8], ebp
lea ecx, [esi + 0x30e0]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_3
lea eax, [esi + 0x30e4]
mov dword [esi + 0x30c8], ebp
mov dword [esi + 0x30c4], ebp
mov dword [esi + 0x30dc], ebp
mov dword [esi + 0x30e8], ebp
mov dword [eax], ebp
mov dword [esi + 0x30f4], 0x4de670
mov dword [esi + 0x30f8], ebp
mov dword [esi + 0x30fc], 0x11
mov dword [esi + 0x3100], ebp
mov dword [esi + 0x3104], ebp
mov dword [esi + 0x3108], ebp
mov dword [esi + 0x310c], 0xa
lea ebx, [esi + 0x3110]
mov byte [esp + 0x20], 4
mov edi, ebx
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.00434270
lea ecx, [edi + 0x78]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString_3
mov dword [edi + 0x7c], 0x4d9a28
mov dword [edi + 0x80], ebp
mov dword [edi + 0x8c], ebp
mov dword [edi + 0x88], ebp
mov dword [edi + 0x84], ebp
lea ecx, [edi + 0x90]
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0xa4]
mov byte [esp + 0x20], 8
call fcn.00447880
lea ecx, [edi + 0xc0]
mov byte [esp + 0x20], 9
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [edi], 0x4d99e4
mov dword [edi + 0x74], ebp
mov dword [edi + 0x14], 1
add edi, 0xb8
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
lea edi, [esi + 0x31e4]
push ebp
mov ecx, edi
mov byte [esp + 0x24], 0xa
call sub.MFC42.DLL_CSyncObject::CSyncObject
mov dword [edi], 0x4de650
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0xffffffffffffffff
push 0x2000
lea ecx, [esi + 8]
mov byte [esp + 0x28], 0xb
mov dword [esi], 0x4de64c
call sub.MFC42.DLL_CDWordArray::SetSize
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x24], ebp
mov eax, dword [esi + 0x30f8]
cmp eax, ebp
je 0x44773d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x30f8], ebp
push 0x1000
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x400
xor eax, eax
mov dword [esi + 0x30f8], edi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2c]
lea edx, [esi + 4]
mov dword [esi + 0x30fc], 0x400
add esp, 4
mov dword [edx], ebp
mov eax, dword [edi]
mov dword [esi + 0x30c4], eax
mov ecx, dword [edi + 4]
mov dword [esi + 0x30c8], ecx
mov dx, word [edi + 8]
mov word [esi + 0x30cc], dx
mov eax, dword [edi + 0xc]
mov dword [esi + 0x30d0], eax
mov cx, word [edi + 0x10]
mov word [esi + 0x30d4], cx
mov dx, word [edi + 0x12]
mov word [esi + 0x30d6], dx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x30d8], eax
mov ecx, dword [edi + 0x18]
lea edx, [edi + 0x1c]
mov dword [esi + 0x30dc], ecx
push edx
lea ecx, [esi + 0x30e0]
call sub.MFC42.DLL_CString::operator_3
mov eax, dword [edi + 0x20]
mov dword [esi + 0x30e4], eax
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x30e8], ecx
mov edx, dword [edi + 0x28]
mov dword [esi + 0x30ec], edx
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x30f0], eax
mov eax, dword [esi + 0x30ec]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x28]
cmp dword [0x5603e8], ebp
jne 0x447854
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ecx, [esp + 0x28]
mov dword [0x5603e8], eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x5603e8]
lea edx, [esp + 0x28]
push ecx
push 0x54d4ec
push edx
mov byte [esp + 0x2c], 0xc
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x34]
add esp, 0xc
push eax
push str.QVMInstanceTlsIndex
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0xb
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x5603e8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4