Function at 0x6ae128
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov byte [ebp - 1], 0
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp + 8]
mov dword [eax - 0xe0], 0x100000
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
mov byte [eax + 0x9a], 0
mov eax, dword [ebp + 8]
cmp byte [eax - 0xb9], 0
je 0x6ae410
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 0
jne 0x6ae187
mov eax, dword [ebp + 8]
sub dword [eax - 0xf8], 0xc
sbb dword [eax - 0xf4], 0
jmp 0x6ae1e1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 1
je 0x6ae1ab
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 2
je 0x6ae1ab
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 3
jne 0x6ae1e1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x28]
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x34]
add ebx, eax
mov eax, ebx
cdq
mov ecx, dword [ebp + 8]
sub dword [ecx - 0xf8], eax
sbb dword [ecx - 0xf4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x74]
call fcn.00471440
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x74]
call fcn.00471460
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 0
jne 0x6ae277
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
cmp dword [eax + 0x150], 0
je 0x6ae26a
mov eax, dword [ebp + 8]
mov ax, word [eax - 0x110]
push eax
mov eax, dword [ebp + 8]
mov ax, word [eax - 0x10c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x108]
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffe0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
mov ecx, dword [eax + 0x150]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x74]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
call fcn.006ad97c
test al, al
je 0x6ae26a
xor eax, eax
jmp 0x6ae26c
mov al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 0x117], al
jmp 0x6ae2e2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 1
je 0x6ae29b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 2
je 0x6ae29b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 3
jne 0x6ae2e2
push 0
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x74]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
mov edx, dword [eax + 0x150]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov ebx, dword [eax]
call dword [ebx + 4]
xor al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 0x117], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
cmp byte [eax + 0x140], 0
je 0x6ae312
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
add eax, 0x150
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x7c]
mov edx, dword [edx + 0x150]
call fcn.0040b2b4
jmp 0x6ae3fd
mov eax, dword [ebp + 8]
cmp byte [eax - 0x117], 0
je 0x6ae3c2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
add eax, 0x9a
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
lea ecx, [eax + 0x150]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
mov edx, dword [edx + 0x2e]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 1
je 0x6ae372
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 2
je 0x6ae372
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x3e], 3
jne 0x6ae3de
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov eax, dword [eax + 0x184]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x7c]
mov edx, dword [edx + 0x150]
call fcn.0040b730
je 0x6ae3de
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
cmp byte [eax + 0x9a], 0
jne 0x6ae3de
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
mov edx, dword [eax + 0x150]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc0]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx]
jmp 0x6ae3de
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
add eax, 0x150
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x7c]
mov edx, dword [edx + 0x150]
call fcn.0040b2b4
mov eax, dword [ebp + 8]
cmp byte [eax - 0x117], 0
je 0x6ae3fd
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
cmp byte [eax + 0x9a], 0
je 0x6ae1f2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
cmp byte [eax + 0x9a], 0
jne 0x6ae795
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xe0]
add eax, 2
call fcn.00406ebc
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xc4], edx
mov eax, dword [ebp + 8]
add eax, 0xffffff90
xor ecx, ecx
mov edx, 0x40
call fcn.00407dc8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov dword [edx - 0x70], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xe0]
mov edx, dword [ebp + 8]
mov dword [edx - 0x6c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 0xf8]
mov dword [eax - 0x68], ecx
mov ecx, dword [edx - 0xf4]
mov dword [eax - 0x64], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x60], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x5c], edx
mov eax, dword [ebp + 8]
mov dword [eax - 0x58], 0
mov dword [eax - 0x54], 0
xor eax, eax
push ebp
push 0x6ae78a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x6ae4db
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x6ae7a0
mov eax, dword [ebp + 8]
add eax, 0xffffff90
mov ecx, 0x40
call fcn.0068e700
call fcn.0068c328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6ae715
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xf4]
mov eax, dword [eax - 0xf8]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx - 0xd8]
sbb edx, dword [ecx - 0xd4]
push edx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xe0]
cdq
cmp edx, dword [esp + 4]
jne 0x6ae532
cmp eax, dword [esp]
pop edx
pop eax
jae 0x6ae551
jmp 0x6ae536
pop edx
pop eax
jge 0x6ae551
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xe0]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx - 0xb8], eax
mov dword [ecx - 0xb4], edx
jmp 0x6ae57e
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xf4]
mov eax, dword [eax - 0xf8]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx - 0xd8]
sbb edx, dword [ecx - 0xd4]
mov ecx, dword [ebp + 8]
mov dword [ecx - 0xb8], eax
mov dword [ecx - 0xb4], edx
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xb8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.006ad9e8
pop ecx
test al, al
jne 0x6ae5a5
call fcn.0040a620
jmp 0x6ae795
mov eax, dword [ebp + 8]
push eax
call fcn.006adaa4
pop ecx
test al, al
jne 0x6ae5bd
call fcn.0040a620
jmp 0x6ae795
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc4]
call fcn.00406ef0
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0xc4], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xcc]
mov eax, dword [eax - 0xd0]
mov ecx, dword [ebp + 8]
add dword [ecx - 0x120], eax
adc dword [ecx - 0x11c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xb4]
mov eax, dword [eax - 0xb8]
mov ecx, dword [ebp + 8]
add dword [ecx - 0xd8], eax
adc dword [ecx - 0xd4], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x11c]
mov eax, dword [eax - 0x120]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0xc]
jne 0x6ae630
cmp eax, dword [ecx + 8]
jae 0x6ae646
jmp 0x6ae632
jge 0x6ae646
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xdc]
call fcn.00471460
jmp 0x6ae6ad
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x11c]
mov eax, dword [eax - 0x120]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx - 0xd0]
sbb edx, dword [ecx - 0xcc]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0xc]
jne 0x6ae673
cmp eax, dword [ecx + 8]
jae 0x6ae6ad
jmp 0x6ae675
jge 0x6ae6ad
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xcc]
mov eax, dword [eax - 0xd0]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x11c]
mov eax, dword [eax - 0x120]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 8]
sbb edx, dword [ecx + 0xc]
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jle 0x6ae706
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
cdq
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 8]
adc edx, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 0x11c]
jne 0x6ae6db
cmp eax, dword [ecx - 0x120]
ja 0x6ae706
jmp 0x6ae6dd
jg 0x6ae706
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x6ae6ee
cmp dword [eax + 8], 0
jbe 0x6ae743
jmp 0x6ae6f0
jle 0x6ae743
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xdc]
call fcn.00471460
jmp 0x6ae743
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x7c]
cmp byte [eax + 0x98], 0
jne 0x6ae743
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0xd4]
mov eax, dword [eax - 0xd8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 0xf4]
jne 0x6ae73d
cmp eax, dword [ecx - 0xf8]
jb 0x6ae4f9
jmp 0x6ae743
jl 0x6ae4f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ae791
mov eax, dword [ebp + 8]
add eax, 0xffffff90
call fcn.0068fe94
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc4], 0
je 0x6ae775
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc4]
call fcn.00406ef0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x6ae789
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00406ef0
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret