Function at 0x5164dc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x5164e4
push esi
mov esi, edx
xor eax, eax
push ebp
push 0x5167c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x40], 0x40
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
push 0x5167e4
mov eax, dword [ebp - 0x3c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00413548
push dword [ebp - 0x48]
push 0x51680c
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00407334
mov edx, dword [ebp - 0x44]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0x400
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.00408054
mov dword [ebp - 0x58], eax
sub edx, 0x80000000
mov dword [ebp - 0x54], edx
fild qword [ebp - 0x58]
fadd qword [0x516810]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x50]
mov eax, 0x516824
call fcn.00416054
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 0x51683c
call fcn.00407250
mov edx, dword [ebp - 0x4c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0x400
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.00408054
mov dword [ebp - 0x58], eax
sub edx, 0x80000000
mov dword [ebp - 0x54], edx
fild qword [ebp - 0x58]
fadd qword [0x516810]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x60]
mov eax, 0x516824
call fcn.00416054
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 0x516878
call fcn.00407250
mov edx, dword [ebp - 0x5c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0x400
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00408054
mov dword [ebp - 0x58], eax
sub edx, 0x80000000
mov dword [ebp - 0x54], edx
fild qword [ebp - 0x58]
fadd qword [0x516810]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x68]
mov eax, 0x516824
call fcn.00416054
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
mov edx, 0x5168b4
call fcn.00407250
mov edx, dword [ebp - 0x64]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0x400
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00408054
mov dword [ebp - 0x58], eax
sub edx, 0x80000000
mov dword [ebp - 0x54], edx
fild qword [ebp - 0x58]
fadd qword [0x516810]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x70]
mov eax, 0x516824
call fcn.00416054
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x5168e4
call fcn.00407250
mov edx, dword [ebp - 0x6c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0x400
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00408054
mov dword [ebp - 0x58], eax
sub edx, 0x80000000
mov dword [ebp - 0x54], edx
fild qword [ebp - 0x58]
fadd qword [0x516810]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x78]
mov eax, 0x516824
call fcn.00416054
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x516914
call fcn.00407250
mov edx, dword [ebp - 0x74]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0x400
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00408054
mov dword [ebp - 0x58], eax
sub edx, 0x80000000
mov dword [ebp - 0x54], edx
fild qword [ebp - 0x58]
fadd qword [0x516810]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x80]
mov eax, 0x516824
call fcn.00416054
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x51694c
call fcn.00407250
mov edx, dword [ebp - 0x7c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0x400
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408054
mov dword [ebp - 0x58], eax
sub edx, 0x80000000
mov dword [ebp - 0x54], edx
fild qword [ebp - 0x58]
fadd qword [0x516810]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x88]
mov eax, 0x516824
call fcn.00416054
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 0x516984
call fcn.00407250
mov edx, dword [ebp - 0x84]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5167d0
lea eax, [ebp - 0x88]
mov edx, 0xc
call fcn.00406d8c
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00406d8c
ret