Function at 0x442870
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5bc
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00451ad0
add esp, 0xc
mov dword [ebp - 0xd8], 0x40
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
push str.Total_Virtual__llu_n
call fcn.0043ef70
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
push str.Avail_Virtual__llu_n
call fcn.0043ef70
add esp, 0x18
call fcn.00457e80
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_HeapLock]
xor ebx, ebx
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x4c], 0
push 0x64
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x30], 0
push esi
push eax
mov dword [ebp - 0x48], 0
xor edi, edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x24], ebx
call fcn.00451ad0
push 0x80
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.00451ad0
push 0x100
lea eax, [ebp - 0x3bc]
push esi
push eax
call fcn.00451ad0
push 0x80
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.00451ad0
push 0x100
lea eax, [ebp - 0x4bc]
push esi
push eax
call fcn.00451ad0
push 0x80
push esi
lea eax, [ebp - 0x1d8]
push eax
call fcn.00451ad0
add esp, 0x48
lea eax, [ebp - 0x5bc]
push 0x100
push esi
push eax
call fcn.00451ad0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x80], eax
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
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
je 0x442bc0
nop
mov bx, word [ebp - 0x76]
mov esi, dword [ebp - 0x7c]
test bl, 2
je 0x442a83
add dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x78]
adc dword [ebp - 0x4c], 0
movzx eax, al
cdq
add dword [ebp - 0x30], eax
adc dword [ebp - 0x48], edx
inc dword [ebp - 0x50]
xor ecx, ecx
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x442a58
inc ecx
cmp ecx, 0x20
jl 0x442a45
xor ecx, ecx
inc dword [ebp + ecx*4 - 0x258]
xor ecx, ecx
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x442a74
inc ecx
cmp ecx, 0x20
jl 0x442a61
xor ecx, ecx
add dword [ebp + ecx*8 - 0x3bc], esi
adc dword [ebp + ecx*8 - 0x3b8], 0
test bl, 1
je 0x442af2
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x5c], esi
movzx ecx, al
adc dword [ebp - 0x20], 0
mov eax, ecx
cdq
add dword [ebp - 0x44], eax
adc dword [ebp - 0x54], edx
and ecx, 0xfffffffc
add dword [ebp - 0x34], ecx
adc dword [ebp - 0x2c], 0
inc dword [ebp - 0x24]
xor ecx, ecx
lea ecx, [ecx]
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x442ac3
inc ecx
cmp ecx, 0x20
jl 0x442ab0
xor ecx, ecx
inc dword [ebp + ecx*4 - 0x1d8]
xor ecx, ecx
lea esp, [esp]
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x442ae3
inc ecx
cmp ecx, 0x20
jl 0x442ad0
xor ecx, ecx
add dword [ebp + ecx*8 - 0x5bc], esi
adc dword [ebp + ecx*8 - 0x5b8], 0
test bl, 4
mov ebx, dword [ebp - 0x78]
je 0x442b70
add dword [ebp - 0xc], esi
movzx ecx, bl
adc dword [ebp - 0x1c], 0
mov eax, ecx
cdq
add dword [ebp - 0x58], eax
adc dword [ebp - 0x38], edx
and ecx, 0xfffffffc
add dword [ebp - 0x64], ecx
adc dword [ebp - 0x60], 0
inc dword [ebp - 0x40]
xor ecx, ecx
lea esp, [esp]
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x442b33
inc ecx
cmp ecx, 0x20
jl 0x442b20
xor ecx, ecx
inc dword [ebp + ecx*4 - 0x158]
xor ecx, ecx
lea esp, [esp]
mov eax, 1
shl eax, cl
cmp esi, eax
jl 0x442b53
inc ecx
cmp ecx, 0x20
jl 0x442b40
xor ecx, ecx
add dword [ebp + ecx*8 - 0x4bc], esi
adc dword [ebp + ecx*8 - 0x4b8], 0
cmp bh, 0x40
jne 0x442b70
add dword [ebp - 4], esi
adc dword [ebp - 0x14], 0
jmp 0x442b75
cmp bh, 0x64
jae 0x442ba5
mov esi, dword [ebp - 0x18]
movzx eax, bh
mov ebx, dword [ebp - 8]
cmp byte [ebp + eax - 0x2bc], 0
jne 0x442bab
add edi, dword [ebp - 0x74]
mov byte [ebp + eax - 0x2bc], 1
adc ebx, 0
add esi, dword [ebp - 0x70]
mov dword [ebp - 8], ebx
adc dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], esi
jmp 0x442bab
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
jne 0x442a20
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push dword [ebp - 0x10]
push str.hHeap__p_n
call fcn.0043ef70
push dword [ebp - 0x4c]
push dword [ebp - 0x28]
push str.Uncommitted__llu_n
call fcn.0043ef70
push dword [ebp - 0x48]
push dword [ebp - 0x30]
push str.Uncommitted_OverHead__llu_n
call fcn.0043ef70
push dword [ebp - 0x50]
push str.Uncommitted_blocks__u_n
call fcn.0043ef70
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push str.Used__llu_n
call fcn.0043ef70
push dword [ebp - 0x38]
push dword [ebp - 0x58]
push str.Used_Overhead__llu_n
call fcn.0043ef70
add esp, 0x40
push dword [ebp - 0x40]
push str.Used_blocks__u_n
call fcn.0043ef70
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push str.Used_Overhead___beyond_4_byte_alignment____llu_n
call fcn.0043ef70
push dword [ebp - 0x20]
push dword [ebp - 0x5c]
push str.Other__llu_n
call fcn.0043ef70
push dword [ebp - 0x54]
push dword [ebp - 0x44]
push str.Other_Overhead__llu_n
call fcn.0043ef70
push dword [ebp - 0x24]
push str.Other_blocks__u_n
call fcn.0043ef70
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push str.Other_Overhead___beyond_4_byte_alignment____llu_n
call fcn.0043ef70
add esp, 0x40
push ebx
push edi
push str.Committed_size__llu_n
call fcn.0043ef70
push dword [ebp - 0x14]
push dword [ebp - 4]
push str.Committed_size_in_large_blocks__llu_n
call fcn.0043ef70
push dword [ebp - 0x3c]
push esi
push str.Uncommitted_size__llu_n
call fcn.0043ef70
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
sbb ecx, dword [ebp - 0x1c]
add eax, edi
adc ecx, ebx
push ecx
push eax
push str.Free_fragments__llu_n
call fcn.0043ef70
push str.total_bytes
push str.count
push 0x5021c4
push 0x5021c8
push str.Free_blocks_size__12s__12s__12s__12s_n
call fcn.0043ef70
mov esi, 1
add esp, 0x44
lea edi, [esi + 1]
mov eax, dword [ebp + esi*4 - 0x258]
test eax, eax
je 0x442d1f
push dword [ebp + esi*8 - 0x3b8]
push dword [ebp + esi*8 - 0x3bc]
push eax
mov eax, edi
push edi
ror eax, 1
push eax
push str.Free_blocks_size__12u__12u__12u__12llu_n
call fcn.0043ef70
add esp, 0x18
inc esi
rol edi, 1
cmp esi, 0x20
jl 0x442cf2
mov esi, 1
lea edi, [esi + 1]
nop
mov eax, dword [ebp + esi*4 - 0x158]
test eax, eax
je 0x442d5d
push dword [ebp + esi*8 - 0x4b8]
push dword [ebp + esi*8 - 0x4bc]
push eax
mov eax, edi
push edi
ror eax, 1
push eax
push str.Used_blocks_size__12u__12u__12u__12llu_n
call fcn.0043ef70
add esp, 0x18
inc esi
rol edi, 1
cmp esi, 0x20
jl 0x442d30
mov esi, 1
lea edi, [esi + 1]
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x1d8]
test eax, eax
je 0x442d9d
push dword [ebp + esi*8 - 0x5b8]
push dword [ebp + esi*8 - 0x5bc]
push eax
mov eax, edi
push edi
ror eax, 1
push eax
push str.Other_blocks_size__12u__12u__12u__12llu_n
call fcn.0043ef70
add esp, 0x18
inc esi
rol edi, 1
cmp esi, 0x20
jl 0x442d70
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x90], eax
call fcn.00457e80
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x84], 0
call fcn.0044a290
lea ecx, [ebp - 0x98]
call fcn.00449f50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret