Function at 0x140058200
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140259410]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
mov byte [rsp + 0x20], r14b
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
lea rax, [rsp + 0x20]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], r14b
jne 0x140058264
lea rdx, [rsp + 0x20]
call fcn.14003e1d0
movdqa xmm0, xmmword [0x140243c80]
movdqu xmmword [rsp + 0x28], xmm0
mov r8d, 0x80000000
mov eax, r8d
xor ecx, ecx
cpuid
mov r9d, eax
mov dword [rsp + 0x2c], ebx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
cmp eax, 0x80000000
jb 0x140058312
nop dword [rax + rax]
mov eax, r8d
xor ecx, ecx
cpuid
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], ebx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
cmp r8d, 0x80000002
jne 0x1400582de
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rbp + 0xb0], xmm0
jmp 0x14005830a
cmp r8d, 0x80000003
jne 0x1400582f5
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rbp + 0xc0], xmm0
jmp 0x14005830a
cmp r8d, 0x80000004
jne 0x14005830a
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rbp + 0xd0], xmm0
inc r8d
cmp r8d, r9d
jbe 0x1400582b0
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x80]
call fcn.140097800
lea rax, [0x1400ebfd0]
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x38], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
mov dword [rsp + 0x24], 3
lea r12, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 8], r12
mov dword [rbp + 4], 0x78
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 8]
call fcn.140049490
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], r15
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.140049400
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x10], r14
mov dword [rbp - 8], 4
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rbp + 0x70], 0x40
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
movzx eax, word [0x1400eb5ac]
mov word [rsp + 0x20], ax
cmp byte [0x1400eb5ad], 0
je 0x1400583e9
mov byte [rsp + 0x20], 0xa
xor byte [rsp + 0x21], 0x38
mov rbx, qword [rbp + 0x78]
shr rbx, 0x14
mov edx, dword [rsp + 0x68]
lea rcx, [rbp - 0x80]
call fcn.140061550
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1400524d0
mov rcx, rax
mov rdx, rbx
call fcn.140061350
lea rax, [rbp + 0xb0]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140058420
lea rdx, [rbp + 0xb0]
mov rcx, rsi
call fcn.14003ddc0
movzx eax, word [0x1400eb5ac]
mov word [rsp + 0x20], ax
cmp byte [0x1400eb5ad], 0
je 0x140058458
mov byte [rsp + 0x20], 0xa
xor byte [rsp + 0x21], 0x38
lea rax, [rsp + 0x20]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140058460
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14003ddc0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
movdqa xmm1, xmmword [0x140243cb0]
movdqu xmmword [rbp + 0xc0], xmm1
mov byte [rbp + 0xb0], 0
mov dword [rsp + 0x24], 0x13
movups xmmword [rsp + 0x28], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400584d4
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x1400584d4
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140058505
test cl, 4
jne 0x1400584fb
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400584fb
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x140058505
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140058517
lea rcx, [rbp + 0xb0]
call fcn.1400624f0
nop
mov dword [rsp + 0x24], 0xb
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 0x10
cmovae rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xc0]
mov rcx, rsi
call fcn.14003ddc0
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x140058588
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058582
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005860f
call fcn.140095098
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r15
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.140060bd0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r12
mov rcx, qword [rbp - 0x80]
movsxd rdx, dword [rcx + 4]
lea ebx, [rdx - 0x10]
mov dword [rsp + rdx + 0x7c], ebx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140093d34
nop
mov rax, rsi
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140094a70
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400a3eb4
int3