Function at 0x54a848
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54aeb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x44], 0x20
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x3c]
shr eax, 0x14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x64], 0x20
lea eax, [ebp - 0x64]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x58]
shr eax, 0x14
mov dword [ebp - 0x10], eax
push 0
push 0
mov eax, dword [ebx + 0x370]
mov eax, dword [eax + 0x2f8]
call fcn.00531da8
mov eax, dword [ebp - 0x3c]
shr eax, 0x14
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
fild qword [ebp - 0x6c]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebx + 0x370]
mov eax, dword [eax + 0x2f8]
call fcn.00531e40
push 0
push 0
mov eax, dword [ebx + 0x370]
mov eax, dword [eax + 0x2f8]
call fcn.00530c90
xor edx, edx
mov eax, dword [ebx + 0x370]
call fcn.00539760
mov esi, eax
mov edx, 1
mov eax, dword [ebx + 0x370]
call fcn.00539760
call fcn.00537654
test eax, eax
jle 0x54a9b1
mov eax, dword [esi + 0x84]
mov edx, 1
mov ecx, dword [eax]
call dword [ecx + 0xc]
fstp qword [ebp - 0x6c]
wait
mov eax, dword [esi + 0x84]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xc]
fsubr qword [ebp - 0x6c]
fstp qword [ebp - 0x20]
wait
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xa0]
mov eax, dword [esi + 0x84]
call fcn.005346f8
fadd qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x58]
shr eax, 0x14
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
fild qword [ebp - 0x6c]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov ecx, 0x20000000
xor edx, edx
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0x90]
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x58]
shr eax, 0x14
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x70]
call fcn.004094c0
lea eax, [ebp - 0x70]
mov edx, 0x54aec8
call fcn.00404b30
mov edx, dword [ebp - 0x70]
mov eax, dword [ebx + 0x388]
call fcn.0046d0e8
mov edx, 1
mov eax, dword [ebx + 0x370]
call fcn.00539760
mov esi, eax
mov edx, 1
mov eax, dword [ebx + 0x370]
call fcn.00539760
call fcn.00537654
test eax, eax
jle 0x54aa81
mov eax, dword [esi + 0x84]
mov edx, 1
mov ecx, dword [eax]
call dword [ecx + 0xc]
fstp qword [ebp - 0x6c]
wait
mov eax, dword [esi + 0x84]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0xc]
fsubr qword [ebp - 0x6c]
fstp qword [ebp - 0x20]
wait
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xa0]
mov eax, dword [esi + 0x84]
call fcn.005346f8
fadd qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x50]
shr eax, 0x14
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
fild qword [ebp - 0x6c]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov ecx, 0x20000000
xor edx, edx
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0x90]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x50]
shr eax, 0x14
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x74]
call fcn.004094c0
lea eax, [ebp - 0x74]
mov edx, 0x54aec8
call fcn.00404b30
mov edx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x384]
call fcn.0046d0e8
call fcn.0054a7ac
fstp qword [ebp - 8]
wait
fld qword [ebp - 8]
call fcn.00402c8c
mov edx, eax
mov eax, dword [ebx + 0x360]
call fcn.004d5d7c
push 0
push 0
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x2f8]
call fcn.00531da8
push 0x40590000
push 0
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x2f8]
call fcn.00531e40
push 0
push 0
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x2f8]
call fcn.00530c90
mov eax, dword [ebx + 0x308]
call fcn.0053a3ec
dec eax
test eax, eax
jl 0x54abc3
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x308]
call fcn.00539760
mov esi, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x308]
call fcn.00539760
call fcn.00537654
test eax, eax
jle 0x54abb7
mov edx, 1
mov eax, dword [esi + 0x84]
mov ecx, dword [eax]
call dword [ecx + 0xc]
fstp qword [ebp - 0x6c]
wait
xor edx, edx
mov eax, dword [esi + 0x84]
mov ecx, dword [eax]
call dword [ecx + 0xc]
fsubr qword [ebp - 0x6c]
fstp qword [ebp - 0x20]
wait
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xa0]
mov eax, dword [esi + 0x84]
call fcn.005346f8
fadd qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp - 4]
push dword [ebp - 8]
mov ecx, 0x20000000
xor edx, edx
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0x90]
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x54ab30
fld qword [ebp - 8]
call fcn.00402c98
push edx
push eax
lea eax, [ebp - 0x78]
call fcn.004094c0
lea eax, [ebp - 0x78]
mov edx, 0x54aed4
call fcn.00404b30
mov edx, dword [ebp - 0x78]
mov eax, dword [ebx + 0x30c]
call fcn.0046d0e8
xor edx, edx
mov eax, dword [ebx + 0x394]
call fcn.004d5c1c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x394]
call fcn.004d5ccc
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x394]
call fcn.004d5d7c
xor edx, edx
mov eax, dword [ebx + 0x360]
call fcn.004d5c1c
mov edx, 0x64
mov eax, dword [ebx + 0x360]
call fcn.004d5ccc
fld qword [ebp - 8]
call fcn.00402c98
mov edx, eax
mov eax, dword [ebx + 0x360]
call fcn.004d5d7c
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x80], eax
fild qword [ebp - 0x84]
fdiv dword [0x54aed8]
call fcn.00402c8c
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0x10
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x54aee4
call fcn.0040a4d0
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebx + 0x320]
call fcn.0046d0e8
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x80], eax
fild qword [ebp - 0x84]
fdiv dword [0x54aed8]
call fcn.00402c8c
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0x10
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x54aee4
call fcn.0040a4d0
mov edx, dword [ebp - 0x90]
mov eax, dword [ebx + 0x324]
call fcn.0046d0e8
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x80], eax
fild qword [ebp - 0x84]
fdiv dword [0x54aed8]
call fcn.00402c8c
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0x10
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x54aee4
call fcn.0040a4d0
mov edx, dword [ebp - 0x94]
mov eax, dword [ebx + 0x328]
call fcn.0046d0e8
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x80], eax
fild qword [ebp - 0x84]
fdiv dword [0x54aed8]
call fcn.00402c8c
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0x10
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x54aee4
call fcn.0040a4d0
mov edx, dword [ebp - 0x98]
mov eax, dword [ebx + 0x33c]
call fcn.0046d0e8
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x80], eax
fild qword [ebp - 0x84]
fdiv dword [0x54aed8]
call fcn.00402c8c
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0x10
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x54aee4
call fcn.0040a4d0
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebx + 0x344]
call fcn.0046d0e8
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x80], eax
fild qword [ebp - 0x84]
fdiv dword [0x54aed8]
call fcn.00402c8c
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0x10
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x54aee4
call fcn.0040a4d0
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebx + 0x340]
call fcn.0046d0e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54aeba
lea eax, [ebp - 0xa0]
mov edx, 5
call fcn.0040488c
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.0040488c
ret