Function at 0x40b640
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x421d89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esi + 0x18]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x44]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x50]
mov byte [esp + 0x10], 0xe
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x54]
mov byte [esp + 0x10], 0xf
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x58]
mov byte [esp + 0x10], 0x10
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 0x11
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 0x12
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 0x13
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x68]
mov byte [esp + 0x10], 0x14
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x6c]
mov byte [esp + 0x10], 0x15
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x70]
mov byte [esp + 0x10], 0x16
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 0x17
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x78]
mov byte [esp + 0x10], 0x18
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x7c]
mov byte [esp + 0x10], 0x19
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x80]
mov byte [esp + 0x10], 0x1a
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x84]
mov byte [esp + 0x10], 0x1b
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x88]
mov byte [esp + 0x10], 0x1c
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x8c]
mov byte [esp + 0x10], 0x1d
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x90]
mov byte [esp + 0x10], 0x1e
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x94]
mov byte [esp + 0x10], 0x1f
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 0x20
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 0x21
call sub.MFC42.DLL_CString::CString_4
mov ecx, esi
mov byte [esp + 0x10], 0x22
mov dword [esi], 0x424f2c
call fcn.004135f0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret