Function at 0x1400e51f0
Capabilities:
Get memory capacity

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov rbx, qword [rdx + 0x10]
mov qword [rsp + 0x28], rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8d, [rsi + 0x48]
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
test eax, eax
jne 0x1400e5272
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400e5276
mov rsi, qword [rbp - 0x60]
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov ecx, 3
mov word [r14 + 0xe], cx
mov edi, 1
mov dword [rsp + 0x20], edi
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov word [rbp - 0x72], cx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov r14d, 4
mov word [rsp + 0x7e], r14w
mov dword [rbp - 0x70], 0x40
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov r8, qword [rbp - 0x60]
mov r15, 0xffffffffffffffff
test eax, eax
cmove r8, r15
lea rax, str.free
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], r14d
mov r9, rbx
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140020960
mov dword [rbp - 0x70], 0x40
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov r8, qword [rbp - 0x68]
test eax, eax
cmove r8, r15
lea rax, str.total
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 5
mov r9, rbx
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140020960
lea rax, str.resident_set_memory
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], shutdown
mov r9, rbx
mov r8, rsi
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140020960
xorps xmm8, xmm8
movups xmmword [rbp - 0x18], xmm8
movsd qword [rbp - 0x20], xmm8
lea r13, [rbp - 0x20]
mov ebx, 0x216
lea r14d, [rdi + 0xf]
movsd xmm7, qword [0x1401a5168]
mov r15, qword [rsp + 0x78]
mov esi, dword [rsp + 0x74]
mov r12d, dword [rsp + 0x70]
movsd xmm6, qword [r13]
movsd qword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call fcn.14014af7c
cmp ax, 0xffff
je 0x1400e53ed
or edi, 2
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x6e], bx
movaps xmm6, xmmword [rsp + 0x60]
movsd xmm6, xmm8
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
mov word [rsp + 0x6e], ax
test dil, 4
je 0x1400e53e4
and edi, 0xfffffffb
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
jmp 0x1400e541c
mulsd xmm6, xmm7
movaps xmm0, xmm6
call fcn.1401735dc
divsd xmm0, xmm7
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov word [rsp + 0x5e], bx
movaps xmm6, xmmword [rsp + 0x50]
movsd xmm6, xmm0
movaps xmmword [rsp + 0x50], xmm6
cmp r12d, esi
jb 0x1400e547d
test esi, esi
jne 0x1400e542a
mov ebx, r14d
jmp 0x1400e5435
lea ebx, [rsi + 1]
shr ebx, 1
add ebx, esi
cmp ebx, esi
jbe 0x1400e5478
mov rdx, r15
movabs rax, 0xffffffffffff
and rdx, rax
mov r9d, ebx
shl r9, 4
mov r8d, esi
shl r8, 4
mov rcx, qword [rsp + 0x28]
call fcn.140018810
movabs rcx, 0xffff000000000000
and r15, rcx
or r15, rax
mov qword [rsp + 0x78], r15
mov esi, ebx
mov dword [rsp + 0x74], ebx
mov ebx, 0x216
mov ecx, r12d
add rcx, rcx
mov rax, r15
movabs r8, 0xffffffffffff
and rax, r8
inc r12d
mov dword [rsp + 0x70], r12d
movups xmmword [rax + rcx*8], xmm6
xor eax, eax
mov word [rsp + 0x5e], ax
add r13, 8
lea rax, [rbp - 8]
cmp r13, rax
jne 0x1400e5392
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov r12d, 0x405
mov word [rsp + 0x5e], r12w
mov rax, qword [rsp + 0x58]
movabs r15, 0xffff000000000000
and rax, r15
lea rcx, str.memory
or rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 6
mov r14, qword [rsp + 0x38]
mov edx, dword [r14]
mov eax, dword [r14 + 4]
mov ebx, select
cmp edx, eax
jb 0x1400e555d
test eax, eax
jne 0x1400e5515
mov edi, ebx
jmp 0x1400e5520
lea edi, [rax + 1]
shr edi, 1
add edi, eax
cmp edi, eax
jbe 0x1400e555d
mov rdx, qword [r14 + 8]
and rdx, r8
mov r9d, edi
shl r9, 5
mov r8, rax
shl r8, 5
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140018810
and qword [r14 + 8], r15
or qword [r14 + 8], rax
mov dword [r14 + 4], edi
mov edx, dword [r14]
movabs r8, 0xffffffffffff
jmp 0x1400e5562
mov rsi, qword [rsp + 0x28]
mov rcx, qword [r14 + 8]
and rcx, r8
mov eax, edx
shl rax, 5
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + rcx], xmm0
mov eax, dword [r14]
shl rax, 5
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rax + rcx + 0x10], xmm0
xor edi, edi
mov word [rbp - 0x72], di
inc dword [r14]
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov word [rsp + 0x5e], r12w
mov rax, qword [rsp + 0x58]
and rax, r15
lea rcx, str.load_average
or rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], ntohs
mov eax, dword [r14 + 4]
cmp dword [r14], eax
jb 0x1400e560d
test eax, eax
je 0x1400e55da
lea ebx, [rax + 1]
shr ebx, 1
add ebx, eax
cmp ebx, eax
jbe 0x1400e560d
mov rdx, qword [r14 + 8]
and rdx, r8
mov r9d, ebx
shl r9, 5
mov r8, rax
shl r8, 5
mov rcx, rsi
call fcn.140018810
and qword [r14 + 8], r15
or qword [r14 + 8], rax
mov dword [r14 + 4], ebx
movabs r8, 0xffffffffffff
mov rcx, qword [r14 + 8]
and rcx, r8
mov eax, dword [r14]
shl rax, 5
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + rcx], xmm0
mov eax, dword [r14]
shl rax, 5
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rax + rcx + 0x10], xmm0
mov word [rsp + 0x7e], di
inc dword [r14]
call fcn.14012784c
lea rcx, str.hardware_concurrency
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], shutdown
mov r9, rsi
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.14002ee30
nop
mov rax, r14
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140128f50
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret