Function at 0x40e7a0
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4761d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5f8
mov eax, dword [0x4ca010]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x604], eax
mov eax, dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push eax
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push ecx
push 0x24
push 0x1c
lea edx, [esp + 0x224]
push edx
call fcn.00462ba0
xor edi, edi
mov dword [esp + 0x610], edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], 0x428
mov dword [esp + 0x2c], 0x42b
mov dword [esp + 0x30], 0x3ea
mov dword [esp + 0x34], 0x401
mov dword [esp + 0x38], 0x418
mov dword [esp + 0x3c], 0x3ed
mov dword [esp + 0x40], 0x3eb
mov dword [esp + 0x44], 0x40b
mov dword [esp + 0x48], 0x416
mov dword [esp + 0x4c], 0x417
mov dword [esp + 0x50], 0x419
mov dword [esp + 0x54], 0x42c
mov dword [esp + 0x58], 0x436
mov dword [esp + 0x5c], 0x435
mov dword [esp + 0x60], 0x42a
mov dword [esp + 0x64], 0x41c
mov dword [esp + 0x68], 0x40e
mov dword [esp + 0x6c], 0x437
mov dword [esp + 0x70], 0x427
mov dword [esp + 0x74], 0x69
mov dword [esp + 0x78], 0x68
mov dword [esp + 0x7c], 0x42d
mov dword [esp + 0x80], 0xaa
mov dword [esp + 0x84], 0x9b
mov dword [esp + 0x88], 0x429
mov dword [esp + 0x8c], 0x425
mov dword [esp + 0x90], 0x6a
mov dword [esp + 0x94], 0x6b
mov dword [esp + 0x98], 0x6c
mov dword [esp + 0x9c], 0x6d
mov dword [esp + 0xa0], 0x6e
mov dword [esp + 0xa4], 0x6f
mov dword [esp + 0xa8], 0x70
mov dword [esp + 0xac], 0x71
mov dword [esp + 0xb0], 0x72
mov dword [esp + 0xb4], 0x73
mov dword [esp + 0xb8], 0x74
mov dword [esp + 0xbc], 0x75
mov dword [esp + 0xc0], 0x76
mov dword [esp + 0xc4], 0x77
mov dword [esp + 0xc8], 0x78
mov dword [esp + 0xcc], 0x79
mov dword [esp + 0xd0], 7
mov dword [esp + 0xd4], 0x7a
mov dword [esp + 0xd8], 0x7b
mov dword [esp + 0xdc], 0x7c
mov dword [esp + 0xe0], 0x7d
mov dword [esp + 0xe4], 0x7e
mov dword [esp + 0xe8], 5
mov dword [esp + 0xec], 0x7f
mov dword [esp + 0xf0], 0x80
mov dword [esp + 0xf4], 0x81
mov dword [esp + 0xf8], 0x82
mov dword [esp + 0xfc], 0x83
mov dword [esp + 0x100], 0x84
mov dword [esp + 0x104], 0x85
mov dword [esp + 0x108], 0x86
mov dword [esp + 0x10c], 0x87
push str.ABOUT_BOX_ID_OK
lea ecx, [esp + 0x218]
mov dword [esp + 0x114], 0x88
mov dword [esp + 0x118], 0x89
mov dword [esp + 0x11c], 0x8a
mov dword [esp + 0x120], 0x8b
mov dword [esp + 0x124], 0x8c
mov dword [esp + 0x128], 0x8d
mov dword [esp + 0x12c], 0x8e
mov dword [esp + 0x130], 0x8f
mov dword [esp + 0x134], 0x90
mov dword [esp + 0x138], 0x91
mov dword [esp + 0x13c], 0x92
mov dword [esp + 0x140], 0x93
mov dword [esp + 0x144], 0x94
mov dword [esp + 0x148], 0x95
mov dword [esp + 0x14c], 0x96
mov dword [esp + 0x150], 0x97
mov dword [esp + 0x154], 0x98
mov dword [esp + 0x158], 0x99
mov dword [esp + 0x15c], 0x9a
mov dword [esp + 0x160], 0x9c
mov dword [esp + 0x164], 0x9d
mov dword [esp + 0x168], 0x9e
mov dword [esp + 0x16c], 0x9f
mov dword [esp + 0x170], 0xa0
mov dword [esp + 0x174], 0xa1
mov dword [esp + 0x178], 0xa2
mov dword [esp + 0x17c], 0xa3
mov dword [esp + 0x180], 0xa4
mov dword [esp + 0x184], 0xa5
mov dword [esp + 0x188], 0xa6
mov dword [esp + 0x18c], 0xa7
mov dword [esp + 0x190], 0xaf
mov dword [esp + 0x194], 0xb0
mov dword [esp + 0x198], 0xb1
mov dword [esp + 0x19c], 0xb2
mov dword [esp + 0x1a0], 0xb3
mov dword [esp + 0x1a4], 0xb4
mov dword [esp + 0x1a8], 0xb5
mov dword [esp + 0x1ac], 0xb6
mov dword [esp + 0x1b0], 0xb7
mov dword [esp + 0x1b4], 0xb8
mov dword [esp + 0x1b8], 0xb9
mov dword [esp + 0x1bc], 0xba
mov dword [esp + 0x1c0], 0xbb
mov dword [esp + 0x1c4], 0xbc
mov dword [esp + 0x1c8], 0xbd
mov dword [esp + 0x1cc], 0xbe
mov dword [esp + 0x1d0], 0xbf
mov dword [esp + 0x1d4], 0xc0
mov dword [esp + 0x1d8], 0xc1
mov dword [esp + 0x1dc], 0xc2
mov dword [esp + 0x1e0], 0xc3
mov dword [esp + 0x1e4], 0xc4
mov dword [esp + 0x1e8], 0xc5
mov dword [esp + 0x1ec], 0xc6
mov dword [esp + 0x1f0], 0xc7
mov dword [esp + 0x1f4], 0xc8
mov dword [esp + 0x1f8], 0xc9
mov dword [esp + 0x1fc], 0xca
mov dword [esp + 0x200], 0xcb
mov dword [esp + 0x204], 0xcc
mov dword [esp + 0x208], 0xcd
mov dword [esp + 0x20c], 0xce
mov dword [esp + 0x210], 0xcf
mov dword [esp + 0x214], 0xd0
call dword [0x47e5e4]
push str.DOWNAREA_ID_OK
lea ecx, [esp + 0x234]
call dword [0x47e5e4]
push str.GAMESET_ID_CANCEL
lea ecx, [esp + 0x250]
call dword [0x47e5e4]
push str.GAMESET_ID_OK
lea ecx, [esp + 0x26c]
call dword [0x47e5e4]
push str.IDC_AREA_STATIC
lea ecx, [esp + 0x288]
call dword [0x47e5e4]
push str.IDC_ATI_STATIC
lea ecx, [esp + 0x2a4]
call dword [0x47e5e4]
push str.IDC_BUTTON_EXIT
lea ecx, [esp + 0x2c0]
call dword [0x47e5e4]
push str.IDC_BUTTON_OPTION
lea ecx, [esp + 0x2dc]
call dword [0x47e5e4]
push str.IDC_BUTTON_PATCH
lea ecx, [esp + 0x2f8]
call dword [0x47e5e4]
push str.IDC_BUTTON_RETRY
lea ecx, [esp + 0x314]
call dword [0x47e5e4]
push str.IDC_BUTTON_START
lea ecx, [esp + 0x330]
call dword [0x47e5e4]
push str.IDC_CHECK_NOCHECK
lea ecx, [esp + 0x34c]
call dword [0x47e5e4]
push str.IDC_CHECK_PASSIVE
lea ecx, [esp + 0x368]
call dword [0x47e5e4]
push str.IDC_CHECK_USE_HTTP
lea ecx, [esp + 0x384]
call dword [0x47e5e4]
push str.IDC_CHECK_WINDOWMODE
lea ecx, [esp + 0x3a0]
call dword [0x47e5e4]
push str.IDC_DISPLAY_STATIC
lea ecx, [esp + 0x3bc]
call dword [0x47e5e4]
push str.IDC_DOWNAREA_STATIC
lea ecx, [esp + 0x3d8]
call dword [0x47e5e4]
push str.IDC_DOWNLOAD_STATIC
lea ecx, [esp + 0x3f4]
call dword [0x47e5e4]
push str.IDC_NVIDIA_STATIC
lea ecx, [esp + 0x410]
call dword [0x47e5e4]
push str.IDC_READYTOSTART
lea ecx, [esp + 0x42c]
call dword [0x47e5e4]
push str.IDC_STATIC_ATI_LINK
lea ecx, [esp + 0x448]
call dword [0x47e5e4]
push str.IDC_STATIC_NVIDIA_LINK
lea ecx, [esp + 0x464]
call dword [0x47e5e4]
push str.IDC_TITLE_STATIC
lea ecx, [esp + 0x480]
call dword [0x47e5e4]
push str.WARNING_ID_OK
lea ecx, [esp + 0x49c]
call dword [0x47e5e4]
push str.IDD_GAMESETDLG
lea ecx, [esp + 0x4b8]
call dword [0x47e5e4]
push str.IDD_ABOUT_BOX
lea ecx, [esp + 0x4d4]
call dword [0x47e5e4]
push str.IDD_DIALOG_DOWNLOAD_AREA
lea ecx, [esp + 0x4f0]
call dword [0x47e5e4]
push str.IDD_DIALOG_WARNING_WHQL
lea ecx, [esp + 0x50c]
call dword [0x47e5e4]
push str.IDC_VIDEO_STATIC
lea ecx, [esp + 0x528]
call dword [0x47e5e4]
push str.IDC_VER_STATIC
lea ecx, [esp + 0x544]
call dword [0x47e5e4]
push str.IDS_WHQL_CVD
lea ecx, [esp + 0x560]
call dword [0x47e5e4]
push str.IDS_WHQL_UCVD
lea ecx, [esp + 0x57c]
call dword [0x47e5e4]
push str.IDS_ABOUTBOX
lea ecx, [esp + 0x598]
call dword [0x47e5e4]
push str.IDC_GRAPHIC_OPTION
lea ecx, [esp + 0x5b4]
call dword [0x47e5e4]
push str.IDC_SOUND_OPTION
lea ecx, [esp + 0x5d0]
call dword [0x47e5e4]
push str.IDS_MESSAGE
lea ecx, [esp + 0x5ec]
call dword [0x47e5e4]
lea ecx, [esp + 0x10]
call dword [0x47e138]
mov byte [esp + 0x610], 1
lea ebx, [esi + 0x108]
lea ebp, [esp + 0x214]
push 0x14
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x610], 2
je 0x40efe7
mov ecx, eax
call sub.MFC71.DLL_CStringArray::CStringArray
mov esi, eax
jmp 0x40efe9
xor esi, esi
mov eax, dword [esp + edi*4 + 0x18]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x614], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
call sub.MFC71.DLL_CStringArray::SetAtGrow
push ebp
mov ecx, ebx
call fcn.0040e640
inc edi
add ebp, 0x1c
cmp edi, 0x20
mov dword [eax], esi
jle 0x40efc2
push 0x14
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x610], 3
je 0x40f048
mov ecx, eax
call sub.MFC71.DLL_CStringArray::CStringArray
mov edi, eax
jmp 0x40f04a
xor edi, edi
mov byte [esp + 0x610], 1
mov esi, 0x21
mov edx, dword [esp + esi*4 + 0x18]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call sub.MFC71.DLL_CStringArray::SetAtGrow
inc esi
cmp esi, 0x2e
jle 0x40f057
lea edx, [esp + 0x5b0]
push edx
mov ecx, ebx
call fcn.0040e640
push 0x14
mov dword [eax], edi
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x610], 4
je 0x40f0b2
mov ecx, eax
call sub.MFC71.DLL_CStringArray::CStringArray
mov edi, eax
jmp 0x40f0b4
xor edi, edi
mov byte [esp + 0x610], 1
mov esi, 0x2f
mov eax, dword [esp + esi*4 + 0x18]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call sub.MFC71.DLL_CStringArray::SetAtGrow
inc esi
cmp esi, 0x34
jle 0x40f0c1
lea edx, [esp + 0x5cc]
push edx
mov ecx, ebx
call fcn.0040e640
push 0x14
mov dword [eax], edi
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x610], 5
je 0x40f11c
mov ecx, eax
call sub.MFC71.DLL_CStringArray::CStringArray
mov edi, eax
jmp 0x40f11e
xor edi, edi
mov byte [esp + 0x610], 1
mov esi, 0x35
jmp 0x40f130
mov eax, dword [esp + esi*4 + 0x18]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call sub.MFC71.DLL_CStringArray::SetAtGrow
inc esi
cmp esi, 0x7e
jle 0x40f130
lea edx, [esp + 0x5e8]
push edx
mov ecx, ebx
call fcn.0040e640
lea ecx, [esp + 0x10]
mov dword [eax], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push eax
push 0x24
push 0x1c
lea ecx, [esp + 0x220]
push ecx
mov dword [esp + 0x620], 0xffffffff
call fcn.00462c60
mov ecx, dword [esp + 0x608]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5f8]
mov eax, 1
pop ebx
call fcn.00462a29
add esp, 0x604
ret