Function at 0x6fdbf8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040a554
xor eax, eax
push ebp
push 0x6fde38
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x34], 0x20
lea eax, [ebx + 8]
mov edx, dword [ebp - 4]
call fcn.0040a850
lea eax, [ebp - 0x38]
mov ecx, 0x6fde54
mov edx, dword [ebx + 8]
call fcn.0040b87c
mov eax, dword [ebp - 0x38]
mov dl, 1
call fcn.00425428
test al, al
je 0x6fdd16
lea eax, [ebp - 0x3c]
mov ecx, 0x6fde54
mov edx, dword [ebx + 8]
call fcn.0040b87c
mov edx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.006fdecc
mov eax, dword [ebx + 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x6fde10
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x34]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
cmp dword [ebp - 0x28], 0xe4e1c0
jb 0x6fde10
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 8]
call fcn.00423e94
mov ecx, dword [0x824564]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x6e85f0]
call fcn.006e8ff8
mov esi, eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 8]
mov edx, dword [ebx + 8]
call fcn.0040b87c
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.006ea7a0
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x40]
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x6fdc9f
jmp 0x6fde10
lea eax, [ebp - 0x48]
mov ecx, 0x6fde6c
mov edx, dword [ebx + 8]
call fcn.0040b87c
mov eax, dword [ebp - 0x48]
mov ecx, 0x88d2c8
mov edx, 0x1ff
call fcn.0042563c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x6fdd89
lea edx, [ebp - 8]
mov eax, dword [0x88d2dc]
call fcn.00423e94
mov ecx, dword [0x824564]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x6e85f0]
call fcn.006e8ff8
mov esi, eax
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebx + 8]
call fcn.0040b87c
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.006ea7a0
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x40]
mov eax, 0x88d2c8
call fcn.0042568c
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
cmp dword [ebp - 0x28], 0xe4e1c0
jb 0x6fde10
cmp dword [ebp - 0xc], 0
jne 0x6fde10
lea edx, [ebp - 8]
mov eax, dword [0x88d2dc]
call fcn.00423e94
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x6fde84
call fcn.0040bbfc
dec eax
je 0x6fdd89
mov ecx, dword [0x824564]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x6e85f0]
call fcn.006e8ff8
mov esi, eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 8]
mov edx, dword [ebx + 8]
call fcn.0040b87c
mov edx, dword [ebp - 0x50]
mov eax, esi
call fcn.006ea7a0
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x40]
jmp 0x6fdd89
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6fde3f
lea eax, [ebp - 0x50]
mov edx, 7
call fcn.0040a4d0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a4d0
ret