Function at 0x40d890
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410297
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x43ce6c]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x43ce6c]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x30], eax
call fcn.0040c7a0
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.foundation.dll_char_const____cdecl_ags_expand_environment_variables_char_const__]
mov ebx, eax
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0x414244
push ebx
mov dword [esp + 0x258], 0
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
test eax, eax
jne 0x40d95b
lea edx, [esp + 0x14]
push str.Definition_file_is_not_available_in_the_execution_path
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 8
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
mov ebx, dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
push eax
push 0
push 1
call ebx
add esp, 0xc
jmp 0x40d961
mov ebx, dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.foundation.dll_public:_void___thiscall_AGS_Input_File::constructor_char_const__]
cmp byte [ebp + 0x28], 0
mov byte [esp + 0x250], 1
jne 0x40de3d
lea ecx, [esp + 0x18]
call dword [sym.imp.foundation.dll_public:_bool___thiscall_AGS_Input_File::is_open_void_const]
test al, al
je 0x40de83
mov dword [esp + 0x20], 0
test esi, esi
je 0x40d9f8
push esi
call fcn.00401460
add esp, 4
mov dword [esp + 0x20], eax
call sub.mfc90.dll_Ordinal_1137
mov eax, dword [eax + 4]
mov byte [esp + 0x13], 0
test eax, eax
je 0x40d9d7
add eax, 0xa5
push esi
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40d9d7
mov byte [esp + 0x13], 1
cmp dword [esp + 0x20], 0
je 0x40d9f8
cmp dword [0x43ee74], 0
jne 0x40d9f8
cmp byte [esp + 0x13], 0
je 0x40d9f8
mov ecx, dword [esp + 0x20]
mov dword [0x43ee74], ecx
mov edx, dword [sym.imp.ags_widgets.dll_bool_AGS_SDL_Symbol::_symbol_added]
lea ecx, [esp + 0x18]
mov byte [edx], 0
call dword [sym.imp.foundation.dll_public:_unsigned_short_int___thiscall_AGS_Input_File::get_16_bit_unsigned_void_]
movzx esi, ax
mov eax, 0xa661
cmp si, ax
je 0x40da6b
push 0xef19
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_4431]
push 0
push 0x10
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call sub.mfc90.dll_Ordinal_1183
mov edx, dword [esp + 0x1c]
movzx ecx, si
push ecx
push edx
lea eax, [esp + 0x1c]
push str.File__s_does_not_start_with_magic_number__expected:_A661__found:__04X__n
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0
push 0
call ebx
add esp, 0xc
mov esi, dword [sym.imp.foundation.dll_public:_unsigned_short_int___thiscall_AGS_Input_File::get_16_bit_unsigned_void_]
lea ecx, [esp + 0x18]
call esi
movzx eax, ax
cmp ax, 2
je 0x40dad3
push 0xef19
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_4431]
push 0
push 0x10
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call sub.mfc90.dll_Ordinal_1183
mov ecx, dword [esp + 0x1c]
push 2
push 2
push ecx
lea edx, [esp + 0x20]
push str.File__s_specifies_unsupported_A661_version__d___expecting_A661_version__d._n
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x14
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0
push 0
call ebx
add esp, 0xc
lea ecx, [esp + 0x18]
call esi
movzx eax, ax
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], eax
call esi
movzx ecx, ax
mov edx, 0x80
mov si, cx
mov dword [esp + 0x28], ecx
cmp si, dx
jae 0x40db29
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esp + 0x5c]
push str.In_file__s__size_of_OEM_free_data_is_less_than_128_bits
push ecx
mov byte [esp + 0x3b], 0
call dword [sym.imp.foundation.dll_int___cdecl_ags_sprintf_char___char_const___void_const___void_const___void_const___void_const___void_const___void_const___void_const___void_const__]
lea edx, [esp + 0x64]
push edx
jmp 0x40db6b
movzx eax, si
and eax, 0x8000001f
jns 0x40db38
dec eax
or eax, 0xffffffe0
inc eax
jne 0x40db3e
mov bl, 1
jmp 0x40db78
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
lea edx, [esp + 0x5c]
push str.In_file__s__size_of_OEM_free_data_is_not_a_multiple_of_32_bits
push edx
mov byte [esp + 0x3b], 0
call dword [sym.imp.foundation.dll_int___cdecl_ags_sprintf_char___char_const___void_const___void_const___void_const___void_const___void_const___void_const___void_const___void_const__]
lea eax, [esp + 0x64]
push eax
push 0
push 3
call ebx
mov bl, byte [esp + 0x47]
add esp, 0x34
shr si, 5
push edi
mov word [esp + 0x2c], si
call fcn.0040d800
add esp, 4
test al, al
je 0x40dc71
test bl, bl
je 0x40dbbb
cmp si, 4
jb 0x40dbbb
movzx eax, si
test eax, eax
jle 0x40dbbb
mov edi, dword [sym.imp.foundation.dll_public:_unsigned_int___thiscall_AGS_Input_File::get_32_bit_unsigned_void_]
mov esi, eax
jmp 0x40dbb0
lea ecx, [esp + 0x18]
call edi
sub esi, 1
jne 0x40dbb0
mov ebx, dword [sym.imp.foundation.dll_public:_bool___thiscall_AGS_Input_File::end_of_file_void_const]
lea ecx, [esp + 0x18]
call ebx
test al, al
jne 0x40deb6
mov ebx, dword [sym.imp.foundation.dll_public:_int___thiscall_AGS_Input_File::file_position_void_const]
lea ecx, [esp + 0x18]
call dword [sym.imp.foundation.dll_public:_unsigned_char___thiscall_AGS_Input_File::get_8_bit_unsigned_void_]
lea ecx, [esp + 0x18]
movzx edi, al
call dword [sym.imp.foundation.dll_public:_bool___thiscall_AGS_Input_File::end_of_file_void_const]
test al, al
jne 0x40de29
mov eax, edi
sub eax, 0xa0
je 0x40de03
sub eax, 0x50
je 0x40ddf0
push 0xef19
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_4431]
push 0
push 0x10
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call sub.mfc90.dll_Ordinal_1183
mov esi, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x1c]
call ebx
push eax
lea ecx, [esp + 0x20]
call ebx
push eax
push esi
lea edx, [esp + 0x24]
push str.File__s__position__d___0x_X_:_Unknown_block_command_0x_02X_n
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x18
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0
push 0
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
jmp 0x40de29
test bl, bl
je 0x40dbbb
cmp si, 4
jb 0x40dbbb
mov esi, dword [0x43ee78]
cmp esi, 0x64
jge 0x40dbbb
test esi, esi
jne 0x40dcce
mov byte [0x43e4b3], 0
mov byte [0x43e4b2], 0
mov byte [0x43e4b1], 0
mov byte [0x43e4b0], 0
mov byte [0x43e4b4], 3
mov byte [0x43e4b7], 0
mov byte [0x43e4b6], 0
mov byte [0x43e4b5], 0
mov ebx, dword [sym.imp.foundation.dll_public:_bool___thiscall_AGS_Input_File::end_of_file_void_const]
imul esi, esi, 0x19
add esi, 8
lea ecx, [esp + 0x18]
mov byte [esi + 0x43e4b0], 0
mov byte [esi + 0x43e4b1], 0xb
xor edi, edi
call ebx
test al, al
jne 0x40dd1a
cmp edi, 0xb
jge 0x40dd2c
lea ecx, [esp + 0x18]
call dword [sym.imp.foundation.dll_public:_char___thiscall_AGS_Input_File::get_char_void_]
mov byte [edi + esi + 0x43e4b2], al
lea ecx, [esp + 0x18]
inc edi
call ebx
test al, al
je 0x40dcf4
cmp edi, 0xb
jge 0x40dd2c
push str.Definition_File_ended_while_reading_identifier_n
push 0
push 1
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ecx, eax
shr ecx, 8
mov byte [esi + 0x43e4bd], cl
lea ecx, [esp + 0x18]
mov byte [esi + 0x43e4be], al
mov byte [esi + 0x43e4c0], 0
mov byte [esi + 0x43e4bf], 0
call dword [sym.imp.foundation.dll_public:_unsigned_char___thiscall_AGS_Input_File::get_8_bit_unsigned_void_]
lea ecx, [esp + 0x18]
mov byte [esi + 0x43e4c1], 0
mov byte [esi + 0x43e4c2], 4
xor edi, edi
call ebx
test al, al
jne 0x40dd94
cmp edi, 4
jge 0x40dd94
lea ecx, [esp + 0x18]
call dword [sym.imp.foundation.dll_public:_char___thiscall_AGS_Input_File::get_char_void_]
mov byte [edi + esi + 0x43e4c3], al
lea ecx, [esp + 0x18]
inc edi
call ebx
test al, al
je 0x40dd73
cmp edi, 4
mov byte [esi + 0x43e4c8], 0
mov byte [esi + 0x43e4c7], 0
jge 0x40ddb9
push str.Definition_File_ended_while_reading_resource_version_n
push 0
push 1
call dword [sym.imp.foundation.dll_void___cdecl_ags_log_message_enum_AGS_Error_Level__unsigned_short_int__char_const__]
add esp, 0xc
movzx eax, word [esp + 0x28]
cmp eax, 4
jle 0x40dde5
mov edi, dword [sym.imp.foundation.dll_public:_unsigned_int___thiscall_AGS_Input_File::get_32_bit_unsigned_void_]
lea esi, [eax - 4]
lea esp, [esp]
lea ecx, [esp + 0x18]
call ebx
test al, al
jne 0x40dde0
lea ecx, [esp + 0x18]
call edi
sub esi, 1
jne 0x40ddd0
inc dword [0x43ee78]
jmp 0x40dbc1
mov eax, dword [sym.imp.ags_widgets.dll_bool_AGS_SDL_Symbol::_symbol_added]
lea esi, [esp + 0x18]
mov byte [eax], 1
call fcn.0040d670
jmp 0x40de29
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push ecx
push edx
mov edx, dword [ebp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0040cbf0
add esp, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
call dword [sym.imp.foundation.dll_public:_bool___thiscall_AGS_Input_File::end_of_file_void_const]
test al, al
je 0x40dbd5
jmp 0x40deb6
push 0x5a0
call dword [sym.imp.foundation.dll_public:_static_void____cdecl_AGS_Object::operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x250], 2
test eax, eax
je 0x40de7b
mov edx, dword [0x43ee74]
mov ecx, dword [esp + 0x2c]
push 0
push edx
mov edx, dword [ebp + 0x1c]
push ecx
push edx
mov ecx, eax
call dword [sym.imp.ags_framework.dll_public:_void___thiscall_AGS_Layer::constructor_int__class_AGS_Container___class_AGS_Application___int_]
mov dword [esp + 0x24], eax
jmp 0x40deb6
xor eax, eax
mov dword [esp + 0x24], eax
jmp 0x40deb6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
lea eax, [esp + 0x15c]
push str.Failed_to_open_definition_file___s.__Layer_will_be_empty.
push eax
call dword [sym.imp.foundation.dll_int___cdecl_ags_sprintf_char___char_const___void_const___void_const___void_const___void_const___void_const___void_const___void_const___void_const__]
lea ecx, [esp + 0x164]
push ecx
push 0
push 2
call ebx
add esp, 0x34
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40dec8
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 0
call dword [sym.imp.foundation.dll_public:_void___thiscall_AGS_Input_File::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0040e824
mov esp, ebp
pop ebp
ret