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

Disassembly:
push 0xffffffffffffffff
push 0x4cfe0b
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 sub.MFC42.DLL_CDWordArray::CDWordArray
xor ebx, ebx
lea ecx, [esi + 0x28]
mov dword [esp + 0x20], ebx
call fcn.0043d2e0
mov dword [esi + 0x30b0], 0x4dab7c
mov dword [esi + 0x30b4], ebx
mov dword [esi + 0x30c0], ebx
mov dword [esi + 0x30bc], ebx
mov dword [esi + 0x30b8], ebx
lea ebp, [esi + 0x30c8]
mov byte [esp + 0x20], 2
mov dword [esp + 0x14], ebp
lea ecx, [ebp + 0x20]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp + 0x28]
mov dword [ebp + 4], ebx
mov dword [ebp], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x18], ebx
push 0x555f50
lea ecx, [ebp + 0x20]
mov byte [esp + 0x24], 3
mov dword [eax], ebx
call fcn.00454d4e
mov dword [ebp + 0x24], ebx
mov dword [esi + 0x3108], 0x4dd2b0
mov dword [esi + 0x310c], ebx
mov dword [esi + 0x3110], 0x11
mov dword [esi + 0x3114], ebx
mov dword [esi + 0x3118], ebx
mov dword [esi + 0x311c], ebx
mov dword [esi + 0x3120], 0xa
lea edi, [esi + 0x3124]
mov byte [esp + 0x20], 5
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.0042e0a0
lea ecx, [edi + 0xc8]
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0xcc]
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::CString_3
mov dword [edi + 0xd0], 0x4d9698
mov dword [edi + 0xd4], ebx
mov dword [edi + 0xe0], ebx
mov dword [edi + 0xdc], ebx
mov dword [edi + 0xd8], ebx
lea ecx, [edi + 0xe4]
mov byte [esp + 0x20], 9
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0xf8]
mov byte [esp + 0x20], 0xa
call fcn.004390d0
lea ecx, [edi + 0x118]
mov byte [esp + 0x20], 0xb
call sub.MFC42.DLL_CStringArray::CStringArray
mov byte [esp + 0x20], 0xc
lea ecx, [edi + 0x12c]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0x140]
mov byte [esp + 0x20], 0xd
call fcn.0041b0d0
mov dword [edi], 0x4d964c
mov dword [edi + 0xc4], ebx
mov dword [edi + 0x14], 1
add edi, 0x10c
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
lea edx, [esi + 0x3280]
mov byte [esp + 0x20], 0xe
push edx
mov dword [esi], 0x4dd2ac
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0xffffffffffffffff
push 0x2000
lea ecx, [esi + 8]
call sub.MFC42.DLL_CDWordArray::SetSize
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x310c]
cmp eax, ebx
je 0x438f81
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x310c], ebx
push 0x1000
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x400
xor eax, eax
mov dword [esi + 0x310c], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esi + 0x3110], 0x400
mov dword [esi + 0x3298], ebx
mov dword [esi + 0x3104], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [esp + 0x28]
mov dword [esi + 0x30c4], eax
lea eax, [esi + 4]
mov dword [eax], ebx
mov ecx, dword [edi]
mov dword [ebp], ecx
mov edx, dword [edi + 4]
mov dword [ebp + 4], edx
mov ax, word [edi + 8]
mov word [ebp + 8], ax
mov ecx, dword [edi + 0xc]
mov dword [ebp + 0xc], ecx
mov dx, word [edi + 0x10]
mov word [ebp + 0x10], dx
mov ax, word [edi + 0x12]
mov word [ebp + 0x12], ax
mov ecx, dword [edi + 0x14]
mov dword [ebp + 0x14], ecx
mov edx, dword [edi + 0x18]
lea ecx, [edi + 0x20]
mov dword [ebp + 0x18], edx
mov eax, dword [edi + 0x1c]
push ecx
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x1c], eax
call sub.MFC42.DLL_CString::operator_3
mov edx, dword [edi + 0x24]
mov dword [ebp + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [ebp + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [ebp + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [ebp + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [ebp + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [ebp + 0x38], ecx
mov eax, dword [esi + 0x30f8]
mov edx, dword [esi + 0x3124]
lea ecx, [esi + 0x3124]
push eax
call dword [edx + 0x28]
cmp dword [0x55abb8], ebx
jne 0x4390a3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ecx, [esp + 0x28]
mov dword [0x55abb8], eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x55abb8]
lea edx, [esp + 0x28]
push ecx
push 0x535540
push edx
mov byte [esp + 0x2c], 0xf
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], 0xe
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x55abb8]
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