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

Disassembly:
push 0xffffffffffffffff
push 0x4b21cc
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.004ac438
xor ebp, ebp
lea ecx, [esi + 0x28]
mov dword [esp + 0x20], ebp
call fcn.0043d0a0
mov dword [esi + 0x30b0], 0x4bb0b8
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_4
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], 0x4bd488
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.00433200
lea ecx, [edi + 0x78]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString_4
mov dword [edi + 0x7c], 0x4b923c
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.00438980
lea ecx, [edi + 0xc0]
mov byte [esp + 0x20], 9
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [edi + 0xd4]
mov byte [esp + 0x20], 0xa
call sub.MFC42.DLL_CStringArray::CStringArray
mov dword [edi], 0x4b91f0
mov dword [edi + 0x74], ebp
mov dword [edi + 0x14], 1
xor ecx, ecx
add edi, 0xb8
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov byte [esp + 0x20], 0xb
lea edi, [esi + 0x31f8]
push ebp
mov ecx, edi
call sub.MFC42.DLL_CSyncObject::CSyncObject
mov dword [edi], 0x4bd468
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0xffffffffffffffff
push 0x2000
lea ecx, [esi + 8]
mov byte [esp + 0x28], 0xc
mov dword [esi], 0x4bd464
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 0x43883d
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_2
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 [0x52bce4], ebp
jne 0x438954
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
lea ecx, [esp + 0x28]
mov dword [0x52bce4], eax
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [0x52bce4]
lea edx, [esp + 0x28]
push ecx
push 0x5084fc
push edx
mov byte [esp + 0x2c], 0xd
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], 0xc
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x52bce4]
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