Function at 0x403b2f
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405a53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x9c], 0x20
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0xa0], ecx
push 1
lea ecx, [ebp - 0x144]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 4], 0
push 3
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x144]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::open_char_const___int_]
lea ecx, [ebp - 0x74]
call fcn.004055e8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.004055e8
mov byte [ebp - 4], 2
mov dword [ebp - 0xb0], 1
mov dword [ebp - 0x78], 0
push 0x64
push 0
lea eax, [ebp - 0x70]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x64
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x144]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___int_]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0x403c24
mov dword [ebp - 0x15c], 0
jmp 0x403c3b
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14c]
add ecx, dword [eax + 4]
mov dword [ebp - 0x15c], ecx
mov ecx, dword [ebp - 0x15c]
call dword [sym.imp.MSVCP60.dll_public:_void____thiscall_std::ios_base::operator_void__void_const]
test eax, eax
je 0x403c8a
lea edx, [ebp - 0x70]
push edx
push 0x409198
lea eax, [ebp - 0x74]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0
push 0x40919c
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x403c76
jmp 0x403c8a
mov ecx, dword [ebp - 0xb0]
add ecx, 1
mov dword [ebp - 0xb0], ecx
jmp 0x403bf7
push 4
push 0xb
lea edx, [ebp - 0x150]
push edx
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::Mid
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x164]
push ecx
lea ecx, [ebp - 0xa8]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x150]
call sub.MFC42.DLL_CString::CString
push 0
push 0x4091a8
lea ecx, [ebp - 0xa8]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x403d05
lea ecx, [ebp - 0xa8]
call fcn.00404ac0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x78], eax
jmp 0x403d1d
lea ecx, [ebp - 0xa8]
call fcn.00404ac0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xa4]
xor edx, edx
mov ecx, 0x139e58
div ecx
cmp dword [ebp - 0x78], eax
jb 0x403e49
mov eax, dword [ebp - 0xa4]
xor edx, edx
mov ecx, 0x1f63c0
div ecx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
je 0x403d62
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
jmp 0x403d47
push 0xa
lea ecx, [ebp - 0xa8]
call fcn.00404ac0
push eax
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
push 0x4091ac
lea ecx, [ebp - 0xa8]
call fcn.00404ac0
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push str.memsize___
push 0x4091bc
lea ecx, [ebp - 0x74]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x154]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x16c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x154]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x74]
push ecx
push 0x4091c0
lea edx, [ebp - 0x74]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00405080
mov dword [ebp - 0x148], eax
push 0
push 0x47
lea ecx, [ebp - 0x144]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_int__enum_std::ios_base::seekdir_]
mov eax, dword [ebp - 0x148]
add eax, 1
push eax
lea ecx, [ebp - 0x74]
call fcn.00404ac0
push eax
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
lea ecx, [ebp - 0x144]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::close_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4