Function at 0x180177dc0
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
movaps xmmword [rsp + 0x390], xmm6
mov rax, qword [0x180232200]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov r12, r9
mov r15, r8
mov r13, rdx
mov ebx, ecx
mov dword [rsp + 0x20], 0
mov dword [rbp + 0x240], 0x40
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rsi, qword [rbp + 0x248]
mov r14, qword [rbp + 0x250]
mov rdi, rsi
sub rdi, r14
xorps xmm0, xmm0
movups xmmword [rbp + 0x200], xmm0
mov qword [rbp + 0x218], 0xf
movsd xmm6, qword [0x1801b2010]
test ebx, ebx
je 0x180177ee2
sub ebx, 1
je 0x180177eba
sub ebx, 1
je 0x180177e92
cmp ebx, 1
jne 0x180177ee2
mov qword [rbp + 0x210], 2
mov eax, 0x4247
mov word [rbp + 0x200], ax
mov byte [rbp + 0x202], 0
movsd xmm6, qword [0x1801f7fc8]
jmp 0x180177ef6
mov qword [rbp + 0x210], 2
mov eax, 0x424d
mov word [rbp + 0x200], ax
mov byte [rbp + 0x202], 0
movsd xmm6, qword [0x1801f7fc0]
jmp 0x180177ef6
mov qword [rbp + 0x210], 2
mov eax, 0x424b
mov word [rbp + 0x200], ax
mov byte [rbp + 0x202], 0
movsd xmm6, qword [0x1801f7fb8]
jmp 0x180177ef6
mov qword [rbp + 0x210], 1
mov word [rbp + 0x200], 0x42
lea rax, [0x1801fb8b8]
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x198]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x118]
lea rcx, [rbp + 0x110]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x110], rax
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x118]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rbx, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x118], rbx
mov qword [rbp + 0x180], 0
mov dword [rbp + 0x188], 4
lea rax, [0x1801fb8b8]
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x90], 0
mov dword [rbp + 0x98], 4
lea rax, [0x1801fb8b8]
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rsp + 0x38], rbx
mov qword [rbp - 0x60], 0
mov dword [rbp - 0x58], 4
xorps xmm0, xmm0
cvtsi2sd xmm0, rsi
divsd xmm0, xmm6
cvttsd2si rdx, xmm0
lea rcx, [rbp + 0x110]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1801fe05c]
call fcn.18001ba20
lea rdx, [rbp + 0x200]
cmp qword [rbp + 0x218], 0xf
cmova rdx, qword [rbp + 0x200]
mov r8, qword [rbp + 0x210]
mov rcx, rax
call fcn.18001c1c0
xorps xmm0, xmm0
cvtsi2sd xmm0, rdi
divsd xmm0, xmm6
cvttsd2si rdx, xmm0
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1801fe05c]
call fcn.18001ba20
lea rdx, [rbp + 0x200]
cmp qword [rbp + 0x218], 0xf
cmova rdx, qword [rbp + 0x200]
mov r8, qword [rbp + 0x210]
mov rcx, rax
call fcn.18001c1c0
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
divsd xmm0, xmm6
cvttsd2si rdx, xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_long___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1801fe05c]
call fcn.18001ba20
lea rdx, [rbp + 0x200]
cmp qword [rbp + 0x218], 0xf
cmova rdx, qword [rbp + 0x200]
mov r8, qword [rbp + 0x210]
mov rcx, rax
call fcn.18001c1c0
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x110]
call fcn.18001ae50
mov rdx, rax
mov rcx, r13
call fcn.180015b90
mov rdx, qword [rbp + 0x238]
cmp rdx, 0xf
jbe 0x1801781e9
inc rdx
mov rcx, qword [rbp + 0x220]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801781e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801781e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180187890
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x20]
call fcn.18001ae50
mov rdx, rax
mov rcx, r15
call fcn.180015b90
mov rdx, qword [rbp + 0x238]
cmp rdx, 0xf
jbe 0x180178248
inc rdx
mov rcx, qword [rbp + 0x220]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180178243
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180178243
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180187890
lea rdx, [rbp + 0x220]
lea rcx, [rsp + 0x30]
call fcn.18001ae50
mov rdx, rax
mov rcx, r12
call fcn.180015b90
mov rdx, qword [rbp + 0x238]
cmp rdx, 0xf
jbe 0x1801782a9
inc rdx
mov rcx, qword [rbp + 0x220]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801782a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801782a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180187890
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x30], rbx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.18001ad60
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], rbx
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x28]
call fcn.18001ad60
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xa8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x110], rbx
mov rax, qword [rbp + 0x110]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x10c], edx
lea rcx, [rbp + 0x118]
call fcn.18001ad60
lea rcx, [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x198]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x218]
cmp rdx, 0xf
jbe 0x1801783c7
inc rdx
mov rcx, qword [rbp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801783c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801783c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180187890
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.180187870
mov rbx, qword [rsp + 0x3e0]
movaps xmm6, xmmword [rsp + 0x390]
add rsp, 0x3a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret