Function at 0x6c6a60
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, ecx
push 0x42480000
call fcn.00408a10
fstp dword [ebx + 0x1ab0]
add esp, 4
call fcn.007126a4
mov esi, eax
and esi, 0x800003ff
jns 0x6c6a95
dec esi
or esi, 0xfffffc00
inc esi
xor edi, edi
inc esi
mov dword [ebx + 0x1b60], edi
mov dword [ebx + 0x1ab8], edi
mov dword [ebx + 0x1b74], edi
mov dword [ebx + 0x1b6c], edi
mov dword [ebx + 0x1b78], edi
mov eax, dword [ebx + 0x37d8]
cmp eax, esi
je 0x6c6aff
mov ecx, 0x814260
mov dword [ebx + 0x37d8], esi
call fcn.00533580
test eax, eax
je 0x6c6aff
mov ecx, dword [0x7dad98]
cmp ecx, edi
je 0x6c6aee
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x7dad98]
call fcn.004fe260
mov ecx, 0x814260
call fcn.00533580
mov ecx, eax
call fcn.005af2a0
cmp dword [ebx + 0x37d4], esi
je 0x6c6b46
mov ecx, 0x814260
mov dword [ebx + 0x37d4], esi
call fcn.00533580
test eax, eax
je 0x6c6b46
mov ecx, dword [0x7dad98]
cmp ecx, edi
je 0x6c6b35
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [0x7dad98]
call fcn.004fe260
mov ecx, 0x814260
call fcn.00533580
mov ecx, eax
call fcn.005af2a0
or edx, 0xffffffff
mov dword [ebx + 0x1b60], esi
mov dword [ebx + 0x1abc], esi
mov edi, 0x797c94
mov ecx, edx
xor eax, eax
mov dword [ebx + 0x1ac8], esi
lea esi, [ebx + 0xf5c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x1ae8], eax
mov dword [ebx + 0x1aec], eax
mov dword [ebx + 0x1af0], eax
mov dword [ebx + 0x1adc], eax
mov dword [ebx + 0x1ae0], eax
mov ecx, 2
mov dword [ebx + 0x1ae4], eax
mov dword [ebx + 0x1b0c], ecx
mov dword [ebx + 0x1b10], ecx
mov dword [ebx + 0x1b20], ecx
mov dword [ebx + 0x1b14], ecx
mov dword [ebx + 0x1b18], ecx
mov dword [ebx + 0x1b1c], ecx
mov dword [ebx + 0x1ac0], eax
mov dword [ebx + 0x1b28], eax
mov dword [ebx + 0x1b3c], eax
mov dword [ebx + 0x1b40], eax
mov dword [ebx + 0x1b44], eax
mov dword [ebx + 0x1b34], eax
mov dword [ebx + 0x1b38], eax
mov dword [ebx + 0x1b2c], eax
mov dword [ebx + 0x1b48], eax
mov dword [ebx + 0x1b4c], eax
mov dword [ebx + 0x1b50], eax
mov dword [ebx + 0x1b58], eax
mov dword [ebx + 0x1b54], eax
mov dword [ebx + 0x1b24], eax
mov dword [ebx + 0x1b30], eax
mov dword [ebx + 0x1ab8], eax
mov ecx, 0xf423f
mov dword [ebx + 0x1b74], eax
mov dword [ebx + 0x1ac4], ecx
mov dword [ebx + 0x1b70], ecx
mov dword [ebx + 0x1454], eax
mov dword [ebx + 0x1458], eax
mov dword [ebx + 0x145c], eax
mov dword [ebx + 0x1460], eax
mov dword [ebx + 0x1464], 0xd
mov dword [ebx + 0x1468], 5
mov byte [ebx + 0x1444], al
mov dword [ebx + 0x1448], edx
mov dword [ebx + 0x144c], edx
mov byte [ebx + 0x1450], al
mov dword [ebx + 0x146c], 0x14
mov dword [ebx + 0x1470], eax
mov ecx, 1
mov dword [ebx + 0x1b5c], eax
mov dword [ebx + 0x3708], eax
mov dword [ebx + 0x370c], eax
mov dword [ebx + 0x3710], eax
mov dword [ebx + 0x1488], eax
mov dword [ebx + 0x1b80], ecx
mov dword [ebx + 0x1490], ecx
mov dword [ebx + 0x1494], eax
mov dword [ebx + 0x36d4], ecx
mov dword [ebx + 0x3670], eax
mov dword [ebx + 0x3688], eax
mov dword [ebx + 0x368c], eax
mov dword [ebx + 0x36e8], eax
mov dword [ebx + 0x36ec], eax
mov dword [ebx + 0x366c], ecx
mov dword [ebx + 0x3674], eax
mov dword [ebx + 0x367c], ecx
mov dword [ebx + 0x3680], ecx
mov dword [ebx + 0x3684], ecx
mov dword [ebx + 0x3698], eax
mov dword [ebx + 0x369c], eax
mov dword [ebx + 0x36a0], eax
mov dword [ebx + 0x36f0], eax
mov dword [ebx + 0x36f4], eax
mov dword [ebx + 0x3678], ecx
mov dword [0x83e074], eax
mov byte [ebx + 0x36e0], cl
mov byte [ebx + 0x36e1], cl
mov ecx, 8
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x24]
mov dword [ebx + 0x36cc], eax
push ecx
mov dword [ebx + 0x36a8], eax
mov dword [ebx + 0x3690], eax
mov dword [ebx + 0x36b8], eax
mov word [ebx + 0x3798], ax
mov dword [ebp - 0x24], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x1c]
lea edi, [ebx + 0xfdc]
cmp ecx, 0x9b72ec0
mov ecx, 0xfc
sbb edx, edx
neg edx
xor eax, eax
mov dword [ebx + 0x36d8], edx
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret