Function at 0x14029aa60
Capabilities:
Get memory capacity

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x490]
sub rsp, 0x590
xorps xmm0, xmm0
lea rcx, [rbp - 0x50]
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x50], 0x40
movzx ebx, dl
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rdx, qword [rbp - 0x28]
lea rcx, str.Total_Virtual__llu_n
call fcn.14029c780
mov rdx, qword [rbp - 0x20]
lea rcx, str.Avail_Virtual__llu_n
call fcn.14029c780
xor r12d, r12d
test bl, bl
je 0x14029b007
mov qword [rsp + 0x5b0], rsi
mov qword [rsp + 0x588], rdi
mov qword [rsp + 0x580], r13
mov qword [rsp + 0x578], r14
mov qword [rsp + 0x570], r15
call fcn.14033ccdc
mov rcx, rax
mov qword [rbp + 0x4c8], rax
call qword [sym.imp.KERNEL32.dll_HeapLock]
xorps xmm0, xmm0
mov qword [rsp + 0x30], r12
mov ebx, r12d
mov qword [rsp + 0x38], r12
xor edx, edx
mov qword [rsp + 0x40], r12
mov r8d, 0x100
mov qword [rsp + 0x48], r12
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x50], r12
movups xmmword [rbp - 0x10], xmm0
mov esi, r12d
mov r14d, r12d
movups xmmword [rbp], xmm0
mov r13d, r12d
mov edi, r12d
movups xmmword [rbp + 0x10], xmm0
mov r15d, r12d
mov dword [rbp + 0x4b8], ebx
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp + 0x4c0], ebx
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
call fcn.1403224b0
xorps xmm0, xmm0
lea rcx, [rbp + 0x270]
xor edx, edx
mov r8d, 0x100
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
call fcn.1403224b0
xorps xmm0, xmm0
lea rcx, [rbp + 0x370]
xor edx, edx
mov r8d, 0x100
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
call fcn.1403224b0
mov rcx, qword [rbp + 0x4c8]
lea rdx, [rsp + 0x58]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x78], rax
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
je 0x14029adc6
mov edx, 0xfffffffc
nop
movzx r10d, word [rsp + 0x66]
movzx r11d, byte [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
test r10b, 2
je 0x14029acb2
add rsi, rcx
add r14, r11
inc r12d
xor edx, edx
xor r8d, r8d
mov eax, 1
nop dword [rax]
cmp ecx, eax
jl 0x14029ac83
inc edx
rol eax, 1
inc r8
cmp edx, 0x20
jl 0x14029ac70
xor r8d, r8d
inc dword [rbp + r8*4 - 0x10]
xor edx, edx
xor r8d, r8d
mov eax, 1
cmp ecx, eax
jl 0x14029aca5
inc edx
rol eax, 1
inc r8
cmp edx, 0x20
jl 0x14029ac92
xor r8d, r8d
add qword [rbp + r8*8 + 0x170], rcx
mov edx, 0xfffffffc
test r10b, 1
je 0x14029ad2e
add qword [rsp + 0x40], rcx
mov rax, r11
add qword [rsp + 0x48], rax
and rax, rdx
add qword [rsp + 0x50], rax
xor edx, edx
inc dword [rbp + 0x4c0]
mov eax, 1
xor r8d, r8d
nop dword [rax]
cmp ecx, eax
jl 0x14029acf3
inc edx
rol eax, 1
inc r8
cmp edx, 0x20
jl 0x14029ace0
xor r8d, r8d
inc dword [rbp + r8*4 + 0xf0]
xor edx, edx
xor r8d, r8d
mov eax, 1
cmp ecx, eax
jl 0x14029ad18
inc edx
rol eax, 1
inc r8
cmp edx, 0x20
jl 0x14029ad05
xor r8d, r8d
mov eax, dword [rsp + 0x68]
add qword [rbp + r8*8 + 0x370], rcx
add rdi, rax
mov eax, dword [rsp + 0x6c]
add r15, rax
test r10b, 4
je 0x14029ada7
inc dword [rbp + 0x4b8]
mov rax, r11
add qword [rsp + 0x30], rax
mov edx, 0xfffffffc
and rax, rdx
add r13, rcx
add qword [rsp + 0x38], rax
xor edx, edx
xor r8d, r8d
mov eax, 1
nop dword [rax]
cmp ecx, eax
jl 0x14029ad73
inc edx
rol eax, 1
inc r8
cmp edx, 0x20
jl 0x14029ad60
xor r8d, r8d
inc dword [rbp + r8*4 + 0x70]
xor edx, edx
xor r8d, r8d
mov eax, 1
cmp ecx, eax
jl 0x14029ad95
inc edx
rol eax, 1
inc r8
cmp edx, 0x20
jl 0x14029ad82
xor r8d, r8d
add qword [rbp + r8*8 + 0x270], rcx
cmp byte [rsp + 0x65], 0x40
jne 0x14029ada7
add rbx, rcx
mov rcx, qword [rbp + 0x4c8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_HeapWalk]
mov edx, 0xfffffffc
test eax, eax
jne 0x14029ac40
mov rcx, qword [rbp + 0x4c8]
call qword [sym.imp.KERNEL32.dll_HeapUnlock]
mov rdx, qword [rbp + 0x4c8]
lea rcx, str.hHeap__p_n
call fcn.14029c780
mov rdx, rsi
lea rcx, str.Uncommitted__llu_n
call fcn.14029c780
mov rdx, r14
lea rcx, str.Uncommitted_OverHead__llu_n
call fcn.14029c780
mov edx, r12d
lea rcx, str.Uncommitted_blocks__u_n
call fcn.14029c780
mov rdx, r13
lea rcx, str.Used__llu_n
call fcn.14029c780
mov rdx, qword [rsp + 0x30]
lea rcx, str.Used_Overhead__llu_n
call fcn.14029c780
mov edx, dword [rbp + 0x4b8]
lea rcx, str.Used_blocks__u_n
call fcn.14029c780
mov rdx, qword [rsp + 0x38]
lea rcx, str.Used_Overhead___beyond_4_byte_alignment____llu_n
call fcn.14029c780
mov rdx, qword [rsp + 0x40]
lea rcx, str.Other__llu_n
call fcn.14029c780
mov rdx, qword [rsp + 0x48]
lea rcx, str.Other_Overhead__llu_n
call fcn.14029c780
mov edx, dword [rbp + 0x4c0]
lea rcx, str.Other_blocks__u_n
call fcn.14029c780
mov rdx, qword [rsp + 0x50]
lea rcx, str.Other_Overhead___beyond_4_byte_alignment____llu_n
call fcn.14029c780
mov rdx, rdi
lea rcx, str.Committed_size__llu_n
call fcn.14029c780
mov rdx, rbx
lea rcx, str.Committed_size_in_large_blocks__llu_n
call fcn.14029c780
mov rdx, r15
lea rcx, str.Uncommitted_size__llu_n
call fcn.14029c780
sub rbx, r13
lea rcx, str.Free_fragments__llu_n
lea rdx, [rdi + rbx]
call fcn.14029c780
lea rax, str.total_bytes
lea r9, str.count
mov qword [rsp + 0x20], rax
lea r8, [0x140487428]
lea rdx, [0x140487ac0]
lea rcx, str.Free_blocks_size__12s__12s__12s__12s_n
call fcn.14029c780
mov r13, qword [rsp + 0x580]
lea r14, [rbp + 0x178]
mov ebx, 2
lea rsi, [rbp - 0xc]
mov r12d, 0x1f
mov edi, ebx
mov r15d, r12d
nop dword [rax + rax]
mov r9d, dword [rsi]
test r9d, r9d
je 0x14029af53
mov rax, qword [r14]
lea rcx, str.Free_blocks_size__12u__12u__12u__12llu_n
mov edx, edi
mov qword [rsp + 0x20], rax
ror edx, 1
mov r8d, edi
call fcn.14029c780
rol edi, 1
add rsi, 4
add r14, 8
sub r15, 1
jne 0x14029af30
mov edi, ebx
lea r14, [rbp + 0x278]
lea rsi, [rbp + 0x74]
mov r15, r12
mov r9d, dword [rsi]
test r9d, r9d
je 0x14029af96
mov rax, qword [r14]
lea rcx, str.Used_blocks_size__12u__12u__12u__12llu_n
mov edx, edi
mov qword [rsp + 0x20], rax
ror edx, 1
mov r8d, edi
call fcn.14029c780
rol edi, 1
add rsi, 4
add r14, 8
sub r15, 1
jne 0x14029af73
mov r15, qword [rsp + 0x570]
lea rsi, [rbp + 0x378]
mov r14, qword [rsp + 0x578]
lea rdi, [rbp + 0xf4]
mov r9d, dword [rdi]
test r9d, r9d
je 0x14029afe7
mov rax, qword [rsi]
lea rcx, str.Other_blocks_size__12u__12u__12u__12llu_n
mov edx, ebx
mov qword [rsp + 0x20], rax
ror edx, 1
mov r8d, ebx
call fcn.14029c780
rol ebx, 1
add rdi, 4
add rsi, 8
sub r12, 1
jne 0x14029afc4
mov rdi, qword [rsp + 0x588]
mov rsi, qword [rsp + 0x5b0]
mov dword [rbp - 0x80], r12d
mov qword [rbp - 0x78], r12
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp - 0x70], rax
call fcn.14033ccdc
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], r12
mov byte [rbp - 0x58], 0
call fcn.1402a2940
lea rcx, [rbp - 0x80]
call fcn.1402a2560
add rsp, 0x590
pop r12
pop rbx
pop rbp
ret