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

Disassembly:
push 0xffffffffffffffff
push 0x4b5ae7
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 fcn.004afd38
xor ebx, ebx
lea ecx, [esi + 0x28]
mov dword [esp + 0x24], ebx
call fcn.0043cf70
mov dword [esi + 0x30b0], 0x4bff3c
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_4
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 0x52e2b8
mov byte [esp + 0x28], 3
mov dword [eax], ebx
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 0x3104], 0x4c2564
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.00432660
lea ecx, [edi + 0x78]
mov byte [esp + 0x24], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 0x7c]
mov byte [esp + 0x24], 7
call sub.MFC42.DLL_CString::CString_4
mov dword [edi + 0x80], 0x4be15c
mov dword [edi + 0x84], ebx
mov dword [edi + 0x90], ebx
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x88], ebx
lea ecx, [edi + 0x94]
mov byte [esp + 0x24], 9
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0xa8]
mov byte [esp + 0x24], 0xa
call fcn.00438410
lea ecx, [edi + 0xc4]
mov byte [esp + 0x24], 0xb
call sub.MFC42.DLL_CStringArray::CStringArray
mov byte [esp + 0x24], 0xc
lea ecx, [edi + 0xd8]
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [edi], 0x4be110
mov dword [edi + 0x74], ebx
mov dword [edi + 0x14], 1
add edi, 0xbc
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
lea edx, [esi + 0x320c]
mov byte [esp + 0x24], 0xd
push edx
mov dword [esi], 0x4c2560
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 0x4382c7
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 + 0x3224], 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 [0x531f5c], ebx
jne 0x4383df
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ecx, [esp + 0x2c]
mov dword [0x531f5c], eax
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [0x531f5c]
lea edx, [esp + 0x2c]
push ecx
push 0x50e420
push edx
mov byte [esp + 0x30], 0xe
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], 0xd
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x531f5c]
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