Function at 0x425ac0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4579ab
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x425d2e
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
lea eax, [ebp - 0x8c]
push eax
call fcn.00429860
add esp, 0xc
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0
call fcn.0040ded0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x425b58
mov eax, dword [ecx]
jmp 0x425b5a
mov eax, ecx
push 5
push str.total
mov byte [eax], 0
call fcn.00403d00
mov ecx, edi
call fcn.00407440
mov cl, byte [ebp - 0x60]
mov esi, eax
mov dl, byte [esi]
mov byte [esi], cl
mov eax, dword [ebp - 0x58]
mov byte [ebp - 0x60], dl
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040a110
mov eax, dword [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x425bc4
inc eax
push 1
push eax
push dword [ebp - 0x8c]
call fcn.004035c0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
lea eax, [ebp - 0x8c]
push eax
call fcn.00429860
add esp, 0xc
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 3
call fcn.0040ded0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x425c13
mov eax, dword [ecx]
jmp 0x425c15
mov eax, ecx
push 5
push str.avail
mov byte [eax], 0
call fcn.00403d00
mov ecx, edi
call fcn.00407440
mov cl, byte [ebp - 0x60]
mov esi, eax
mov dl, byte [esi]
mov byte [esi], cl
mov eax, dword [ebp - 0x58]
mov byte [ebp - 0x60], dl
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.0040a110
mov eax, dword [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x425c7f
inc eax
push 1
push eax
push dword [ebp - 0x8c]
call fcn.004035c0
add esp, 0xc
push dword [ebp - 0x4c]
lea eax, [ebp - 0xa4]
push eax
call fcn.00429840
add esp, 8
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 6
call fcn.0040ded0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x425cc2
mov eax, dword [ecx]
jmp 0x425cc4
mov eax, ecx
push 4
push str.load
mov byte [eax], 0
call fcn.00403d00
mov ecx, edi
call fcn.00407440
mov cl, byte [ebp - 0x74]
mov esi, eax
mov dl, byte [esi]
mov byte [esi], cl
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 0x74], dl
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], edx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.0040a110
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x425d2a
push 1
inc eax
push eax
push dword [ebp - 0xa4]
call fcn.004035c0
add esp, 0xc
xor eax, eax
jmp 0x425d62
push 0x402580
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_retrieve_memory_information._Error_code:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004021b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret