Function at 0x5c5df0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
push 0x40
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.005d2a30
add esp, 0xc
mov dword [ebp - 0xd4], 0x40
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
push str.Total_Virtual__llu_n
call fcn.005bbee0
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push str.Avail_Virtual__llu_n
call fcn.005bbee0
add esp, 0x18
cmp byte [ebp + 8], 0
je 0x5c6308
push ebx
push esi
push edi
call fcn.005e50b1
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_HeapLock]
xor ebx, ebx
mov dword [ebp - 0x1c], 0
push 0x80
lea eax, [ebp - 0x154]
mov dword [ebp - 0x18], 0
xor esi, esi
mov dword [ebp - 0x24], 0
push ebx
push eax
mov dword [ebp - 0x20], 0
xor edi, edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x50], ebx
call fcn.005d2a30
push 0x100
lea eax, [ebp - 0x354]
push ebx
push eax
call fcn.005d2a30
push 0x80
lea eax, [ebp - 0x1d4]
push ebx
push eax
call fcn.005d2a30
push 0x100
lea eax, [ebp - 0x454]
push ebx
push eax
call fcn.005d2a30
push 0x80
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.005d2a30
push 0x100
lea eax, [ebp - 0x554]
push ebx
push eax
call fcn.005d2a30
xor eax, eax
add esp, 0x48
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
je 0x5c6122
jmp 0x5c5fa0
mov bx, word [ebp - 0x72]
mov esi, dword [ebp - 0x78]
test bl, 2
je 0x5c6003
add dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x74]
adc dword [ebp - 0x18], 0
movzx eax, al
cdq
add dword [ebp - 0x24], eax
adc dword [ebp - 0x20], edx
inc dword [ebp - 0x28]
xor ecx, ecx
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x5c5fd8
inc ecx
cmp ecx, 0x20
jl 0x5c5fc5
xor ecx, ecx
inc dword [ebp + ecx*4 - 0x154]
xor ecx, ecx
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x5c5ff4
inc ecx
cmp ecx, 0x20
jl 0x5c5fe1
xor ecx, ecx
add dword [ebp + ecx*8 - 0x354], esi
adc dword [ebp + ecx*8 - 0x350], 0
test bl, 1
je 0x5c608c
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x44], esi
movzx ecx, al
adc dword [ebp - 0x40], 0
mov eax, ecx
cdq
add dword [ebp - 0x4c], eax
adc dword [ebp - 0x48], edx
and ecx, 0xfffffffc
add dword [ebp - 0x58], ecx
adc dword [ebp - 0x54], 0
inc dword [ebp - 0x50]
xor ecx, ecx
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x5c6044
inc ecx
cmp ecx, 0x20
jl 0x5c6031
xor ecx, ecx
inc dword [ebp + ecx*4 - 0x254]
xor ecx, ecx
lea ecx, [ecx]
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x5c6063
inc ecx
cmp ecx, 0x20
jl 0x5c6050
xor ecx, ecx
add dword [ebp + ecx*8 - 0x554], esi
mov eax, dword [ebp - 0x14]
adc dword [ebp + ecx*8 - 0x550], 0
add eax, dword [ebp - 0x70]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x60]
adc dword [ebp - 0x10], 0
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x60], eax
adc dword [ebp - 0x5c], 0
test bl, 4
je 0x5c6107
mov eax, dword [ebp - 0x74]
add dword [ebp - 8], esi
movzx ecx, al
adc dword [ebp - 0xc], 0
mov eax, ecx
cdq
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
and ecx, 0xfffffffc
add dword [ebp - 0x3c], ecx
adc dword [ebp - 0x38], 0
inc dword [ebp - 0x34]
xor ecx, ecx
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x5c60c9
inc ecx
cmp ecx, 0x20
jl 0x5c60b6
xor ecx, ecx
inc dword [ebp + ecx*4 - 0x1d4]
xor ecx, ecx
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x5c60e5
inc ecx
cmp ecx, 0x20
jl 0x5c60d2
xor ecx, ecx
add dword [ebp + ecx*8 - 0x454], esi
mov ebx, dword [ebp + 8]
adc dword [ebp + ecx*8 - 0x450], 0
cmp byte [ebp - 0x73], 0x40
jne 0x5c610a
add edi, esi
adc ebx, 0
mov dword [ebp + 8], ebx
jmp 0x5c610a
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
jne 0x5c5fa0
mov esi, dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push dword [ebp - 4]
push str.hHeap__p_n
call fcn.005bbee0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push str.Uncommitted__llu_n
call fcn.005bbee0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push str.Uncommitted_OverHead__llu_n
call fcn.005bbee0
push dword [ebp - 0x28]
push str.Uncommitted_blocks__u_n
call fcn.005bbee0
push dword [ebp - 0xc]
push dword [ebp - 8]
push str.Used__llu_n
call fcn.005bbee0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push str.Used_Overhead__llu_n
call fcn.005bbee0
add esp, 0x40
push dword [ebp - 0x34]
push str.Used_blocks__u_n
call fcn.005bbee0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str.Used_Overhead___beyond_4_byte_alignment____llu_n
call fcn.005bbee0
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push str.Other__llu_n
call fcn.005bbee0
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push str.Other_Overhead__llu_n
call fcn.005bbee0
push dword [ebp - 0x50]
push str.Other_blocks__u_n
call fcn.005bbee0
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push str.Other_Overhead___beyond_4_byte_alignment____llu_n
call fcn.005bbee0
add esp, 0x40
push dword [ebp - 0x10]
push esi
push str.Committed_size__llu_n
call fcn.005bbee0
push ebx
push edi
push str.Committed_size_in_large_blocks__llu_n
call fcn.005bbee0
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push str.Uncommitted_size__llu_n
call fcn.005bbee0
sub edi, dword [ebp - 8]
sbb ebx, dword [ebp - 0xc]
add edi, esi
adc ebx, dword [ebp - 0x10]
push ebx
push edi
push str.Free_fragments__llu_n
call fcn.005bbee0
push str.total_bytes
push str.count
push 0x626870
push 0x64a574
push str.Free_blocks_size__12s__12s__12s__12s_n
call fcn.005bbee0
mov esi, 1
add esp, 0x44
lea edi, [esi + 1]
nop
mov eax, dword [ebp + esi*4 - 0x154]
test eax, eax
je 0x5c627d
push dword [ebp + esi*8 - 0x350]
push dword [ebp + esi*8 - 0x354]
push eax
mov eax, edi
push edi
ror eax, 1
push eax
push str.Free_blocks_size__12u__12u__12u__12llu_n
call fcn.005bbee0
add esp, 0x18
inc esi
rol edi, 1
cmp esi, 0x20
jl 0x5c6250
mov esi, 1
lea edi, [esi + 1]
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x1d4]
test eax, eax
je 0x5c62bd
push dword [ebp + esi*8 - 0x450]
push dword [ebp + esi*8 - 0x454]
push eax
mov eax, edi
push edi
ror eax, 1
push eax
push str.Used_blocks_size__12u__12u__12u__12llu_n
call fcn.005bbee0
add esp, 0x18
inc esi
rol edi, 1
cmp esi, 0x20
jl 0x5c6290
mov esi, 1
lea edi, [esi + 1]
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x254]
test eax, eax
je 0x5c62fd
push dword [ebp + esi*8 - 0x550]
push dword [ebp + esi*8 - 0x554]
push eax
mov eax, edi
push edi
ror eax, 1
push eax
push str.Other_blocks_size__12u__12u__12u__12llu_n
call fcn.005bbee0
add esp, 0x18
inc esi
rol edi, 1
cmp esi, 0x20
jl 0x5c62d0
pop edi
pop esi
pop ebx
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x8c], eax
call fcn.005e50b1
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x80], 0
call fcn.005cb270
lea ecx, [ebp - 0x94]
call fcn.005caf50
mov esp, ebp
pop ebp
ret 4