Function at 0x56c710
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b2b10
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x76f950]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x70], ebx
mov dword [ebx], vtable.iTVPMemoryAllocator.0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.HeapAllocAllocator.0
mov dword [ebx + 4], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
lea edx, [ebp - 0x6c]
mov ecx, str._bitmapheapsize
movlpd qword [ebp - 0x60], xmm0
call fcn.004312a0
test al, al
je 0x56c7f1
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x54]
call fcn.004daf90
mov byte [ebp - 4], 2
push str.auto
lea ecx, [ebp - 0x54]
call fcn.00406ae0
test al, al
je 0x56c7af
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
jmp 0x56c7d2
lea ecx, [ebp - 0x6c]
call fcn.00402770
mov esi, edx
mov edi, eax
or eax, esi
jne 0x56c7cb
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebx + 4], eax
shld esi, edi, 0x14
shl edi, 0x14
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x56c7f7
mov ecx, dword [eax]
test ecx, ecx
jne 0x56c7ec
mov ecx, eax
call fcn.004df580
jmp 0x56c7f7
dec ecx
mov dword [eax], ecx
jmp 0x56c7f7
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
cmp dword [ebx + 4], 0
jne 0x56c8a0
mov eax, edi
or eax, esi
jne 0x56c85d
push 0x3c
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0x40
call fcn.0063ac00
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
test esi, esi
jne 0x56c841
cmp edi, 0x20000000
ja 0x56c841
shrd edi, esi, 1
shr esi, 1
jmp 0x56c84a
add edi, 0xf8000000
adc esi, 0xffffffff
test esi, esi
jne 0x56c856
cmp edi, 0x20000000
jbe 0x56c85d
mov edi, 0x20000000
xor esi, esi
cmp dword [ebx + 4], 0
jne 0x56c8a0
test esi, esi
jne 0x56c86f
cmp edi, 0x100000
jbe 0x56c8a0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebx + 4], eax
test eax, eax
jne 0x56c8a0
test esi, esi
jne 0x56c895
cmp edi, 0x8000000
ja 0x56c895
shrd edi, esi, 1
shr esi, 1
jmp 0x56c863
add edi, 0xf8000000
adc esi, 0xffffffff
jmp 0x56c863
mov eax, dword [ebx + 4]
test eax, eax
je 0x56c8bd
push 4
lea ecx, [ebp - 0x54]
push ecx
push 0
push eax
mov dword [ebp - 0x54], 2
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.004df4c0
mov esi, eax
push 0xffffffffffffffff
push str._info__Use_separate_heap_allocater_for_Bitmap
mov ecx, esi
call fcn.0040bb30
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 3
xor dl, dl
lea ecx, [ebp - 0x54]
call fcn.004e14a0
mov byte [ebp - 4], 1
test esi, esi
je 0x56c8fd
mov ecx, dword [esi]
test ecx, ecx
jne 0x56c8fa
mov ecx, esi
call fcn.004df580
jmp 0x56c8fd
dec ecx
mov dword [esi], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.004dd7c0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00633732
mov esp, ebp
pop ebp
ret