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

Disassembly:
push 0xffffffffffffffff
push 0x4cf1bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ecx, [esi + 8]
call sub.MFC42.DLL_CDWordArray::CDWordArray
xor ebx, ebx
lea ecx, [esi + 0x28]
mov dword [esp + 0x24], ebx
call fcn.0043bfe0
mov dword [esi + 0x30b0], 0x4d9b98
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 + 0x24], 2
mov dword [esp + 0x18], ebp
lea ecx, [ebp + 0x20]
mov dword [esp + 0x10], ecx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 0x24]
mov dword [ebp + 4], ebx
mov dword [ebp], ebx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x18], ebx
push 0x554ea0
mov byte [esp + 0x28], 3
mov dword [eax], ebx
call fcn.0045456e
mov dword [esi + 0x3104], 0x4dc1d8
mov dword [esi + 0x3108], ebx
mov dword [esi + 0x310c], 0x11
mov dword [esi + 0x3110], ebx
mov dword [esi + 0x3114], ebx
mov dword [esi + 0x3118], ebx
mov dword [esi + 0x311c], 0xa
lea edi, [esi + 0x3120]
mov byte [esp + 0x24], 5
mov ecx, edi
mov dword [esp + 0x18], edi
call fcn.0042d9f0
lea ecx, [edi + 0xac]
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0xb0]
mov byte [esp + 0x24], 7
call sub.MFC42.DLL_CString::CString_3
mov dword [edi + 0xb4], 0x4d86a0
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xbc], ebx
lea ecx, [edi + 0xc8]
mov byte [esp + 0x24], 9
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0xdc]
mov byte [esp + 0x24], 0xa
call fcn.00438090
lea ecx, [edi + 0xfc]
mov byte [esp + 0x24], 0xb
call sub.MFC42.DLL_CStringArray::CStringArray
mov byte [esp + 0x24], 0xc
lea ecx, [edi + 0x110]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0x124]
mov byte [esp + 0x24], 0xd
call fcn.0041a9c0
mov dword [edi], 0x4d8654
mov dword [edi + 0xa8], ebx
mov dword [edi + 0x14], 1
add edi, 0xf0
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
lea edx, [esi + 0x3260]
mov byte [esp + 0x24], 0xe
push edx
mov dword [esi], 0x4dc1d4
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 + 0x3108]
cmp eax, ebx
je 0x437f53
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x3108], ebx
push 0x1000
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x400
xor eax, eax
mov dword [esi + 0x3108], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esi + 0x310c], 0x400
mov dword [esi + 0x3278], ebx
mov dword [esi + 0x3100], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [esp + 0x2c]
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]
lea ecx, [esi + 0x3120]
mov dword [ebp + 0x34], eax
mov eax, dword [esi + 0x30f4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
cmp dword [0x559b00], ebx
jne 0x43806b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ecx, [esp + 0x2c]
mov dword [0x559b00], eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x559b00]
lea edx, [esp + 0x2c]
push ecx
push 0x534540
push edx
mov byte [esp + 0x30], 0xf
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
push str.QVMInstanceTlsIndex
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 0xe
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x559b00]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4