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

Disassembly:
push 0xffffffffffffffff
push 0x4d8e79
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 ebp, ebp
lea ecx, [esi + 0x28]
mov dword [esp + 0x20], ebp
call fcn.0043ee80
mov dword [esi + 0x30b0], 0x4e4d9c
mov dword [esi + 0x30b4], ebp
mov dword [esi + 0x30c0], ebp
mov dword [esi + 0x30bc], ebp
mov dword [esi + 0x30b8], ebp
mov dword [esi + 0x30c4], 0x4e7544
mov dword [esi + 0x30d0], ebp
mov dword [esi + 0x30d4], ebp
mov dword [esi + 0x30cc], ebp
mov dword [esi + 0x30c8], ebp
mov dword [esi + 0x30d8], ebp
mov dword [esi + 0x30dc], 0xa
lea edi, [esi + 0x30e4]
mov byte [esp + 0x20], 3
mov dword [esp + 0x14], edi
lea ebx, [edi + 0x20]
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [edi + 0x28]
mov dword [edi + 4], ebp
mov dword [edi], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x2c], ebp
mov dword [edi + 0x18], ebp
push 0x5e2540
mov ecx, ebx
mov byte [esp + 0x24], 4
mov dword [eax], ebp
call fcn.0045acce
mov dword [edi + 0x24], ebp
mov dword [esi + 0x3124], 0x4e7530
mov dword [esi + 0x3128], ebp
mov dword [esi + 0x312c], 0x11
mov dword [esi + 0x3130], ebp
mov dword [esi + 0x3134], ebp
mov dword [esi + 0x3138], ebp
mov dword [esi + 0x313c], 0xa
lea edi, [esi + 0x3140]
mov byte [esp + 0x20], 6
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.0042ebb0
lea ecx, [edi + 0xc8]
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0xcc]
mov byte [esp + 0x20], 8
call sub.MFC42.DLL_CString::CString_3
lea ebx, [edi + 0xd0]
mov byte [esp + 0x20], 9
mov ecx, ebx
call fcn.00419ae0
mov dword [ebx], 0x4e3774
mov dword [ebx + 0x14], ebp
lea ecx, [edi + 0xe8]
mov byte [esp + 0x20], 0xa
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0xfc]
mov byte [esp + 0x20], 0xb
call fcn.0041ae90
lea ecx, [edi + 0x11c]
mov byte [esp + 0x20], 0xc
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0x130]
mov byte [esp + 0x20], 0xd
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0x144]
mov byte [esp + 0x20], 0xe
call fcn.0041af80
mov dword [edi], 0x4e3714
mov dword [edi + 0xc4], ebp
mov dword [edi + 0x14], 1
add edi, 0x110
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
lea edx, [esi + 0x32a0]
mov bl, 0xf
push edx
mov byte [esp + 0x24], bl
mov dword [esi], 0x4e752c
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], ebp
mov dword [esi + 0x24], ebp
mov eax, dword [esi + 0x3128]
cmp eax, ebp
je 0x43a61d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x3128], ebp
push 0x1000
call sub.MFC42.DLL_operatornew
mov edi, eax
mov ecx, 0x400
xor eax, eax
mov dword [esi + 0x3128], edi
rep stosd dword es:[edi], eax
add esp, 4
mov dword [esi + 0x312c], 0x400
mov dword [esi + 0x32b8], ebp
mov dword [esi + 0x3120], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x30e0], eax
lea eax, [esi + 4]
push ecx
lea ecx, [esi + 0x30e4]
mov dword [eax], ebp
call fcn.0043a730
mov eax, dword [esi + 0x3114]
mov edx, dword [esi + 0x3140]
lea ecx, [esi + 0x3140]
push eax
call dword [edx + 0x28]
cmp dword [0x5e71a8], ebp
jne 0x43a6df
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ecx, [esp + 0x28]
mov dword [0x5e71a8], eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x5e71a8]
lea edx, [esp + 0x28]
push ecx
push 0x5c11bc
push edx
mov byte [esp + 0x2c], 0x10
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], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x5e71a8]
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