Function at 0x4aa9b4
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4aae9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40ea10]
call fcn.00403068
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x40e5f8]
call fcn.00403068
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4aae75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4aad23
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x3c
jne 0x4aaaa1
mov eax, dword [ebp + 8]
mov dword [eax - 0x20], 0x20
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
call sub.kernel32.dll_GlobalMemoryStatus
xor eax, eax
push ebp
push 0x4aaa7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
fild dword [eax - 0x14]
fld xword [0x4aaeb0]
fmulp st(1)
call fcn.00402b5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aaa8c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov ecx, ebx
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
jmp 0x4aad17
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00403e68
dec eax
jle 0x4aac29
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
cmp byte [eax + 1], 0x3a
jne 0x4aac29
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
call fcn.00402b2c
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00403d90
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x50]
inc eax
je 0x4aab24
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040fa30
jmp 0x4aad17
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00403d90
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00403d90
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4949f0]
call fcn.00494be8
mov edx, dword [ebp + 8]
mov dword [edx - 0x28], eax
xor eax, eax
push ebp
push 0x4aab8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.00494fbc
fld xword [0x4aaeb0]
fmulp st(1)
call fcn.00402b5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aab99
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov ecx, ebx
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.00403090
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00403e68
mov ebx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x14]
cmp byte [eax + ebx - 1], 0x5c
jne 0x4aad17
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, ebx
dec ecx
mov edx, 1
call fcn.0040406c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x4aad17
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4949f0]
call fcn.00494be8
mov edx, dword [ebp + 8]
mov dword [edx - 0x28], eax
xor eax, eax
push ebp
push 0x4aac81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.00494fbc
fld xword [0x4aaeb0]
fmulp st(1)
call fcn.00402b5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aac90
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov ecx, ebx
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x28]
call fcn.00403090
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00403e68
mov ebx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x14]
cmp byte [eax + ebx - 1], 0x5c
jne 0x4aad17
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, ebx
dec ecx
mov edx, 1
call fcn.0040406c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [ebp - 4]
dec dword [ebp - 0x10]
jne 0x4aaa21
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4aad59
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040fbe8
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x44]
inc dword [ebp - 4]
dec dword [ebp - 0x10]
jne 0x4aad39
mov eax, dword [ebp + 8]
cmp word [eax + 0xa], 0
je 0x4aae1f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4aae01
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, 0x4aaec4
call fcn.0044be44
mov eax, dword [ebp - 0x2c]
mov ecx, 1
pop edx
call fcn.00409060
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
lea ebx, [eax + 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x2c]
xor ecx, ecx
mov eax, dword [ebx + 4]
call dword [ebx]
inc dword [ebp - 4]
dec dword [ebp - 0x10]
jne 0x4aad86
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x2c]
push eax
push 0
mov eax, dword [ebp + 8]
lea ebx, [eax + 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x2c]
xor ecx, ecx
mov eax, dword [ebx + 4]
call dword [ebx]
mov dl, 1
mov eax, dword [0x40e5f8]
call fcn.00403068
mov edx, dword [ebp + 8]
mov dword [edx - 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4aae57
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x30]
xor edx, edx
call fcn.0040fa30
dec dword [ebp - 0x10]
jne 0x4aae45
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aae7c
mov eax, dword [ebp - 0xc]
call fcn.00403090
mov eax, dword [ebp - 8]
call fcn.00403090
ret