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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
xor edx, edx
lea r12, [rsp + 0x60]
mov rbp, rcx
mov dword [rsp + 0x5c], 0x200
mov qword [rsp + 0x60], 0
mov rcx, r12
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
call method.winpids.set_bool_
test rbp, rbp
je 0x210158a90
mov ecx, 0x30
call sym.malloc_1
xor r9d, r9d
mov r8d, 0x30
mov ecx, 3
mov rdx, rax
mov r13, rax
call sym.NtQuerySystemInformation
mov r14d, eax
test eax, eax
js 0x210158a00
movabs rdx, 0xd6bf94d5e57a42bd
mov rcx, qword [r13 + 8]
sub rcx, qword [r13]
mov rax, rcx
imul rdx
lea rbx, [rdx + rcx]
sar rcx, 0x3f
sar rbx, 0x17
sub rbx, rcx
mov rcx, r13
call sym.free_1
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x40
call sym.GlobalMemoryStatusEx
mov ecx, dword [0x21034b024]
mov rax, qword [rsp + 0x88]
xor edx, edx
div rcx
xor edx, edx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x90]
div rcx
mov ecx, dword [rsp + 0x5c]
mov r15, rcx
mov rdi, rax
call sym.malloc_1
mov r13, rax
test rax, rax
je 0x210158b00
lea rsi, [rsp + 0x5c]
mov r8d, r15d
mov rdx, rax
mov ecx, 0x12
mov r9, rsi
call sym.NtQuerySystemInformation
mov r14d, eax
cmp eax, 0xc0000004
je 0x210158a28
test r14d, r14d
js 0x210158930
mov r14d, dword [r13 + 4]
mov ecx, dword [r13]
mov r15d, dword [0x21034b024]
mov rax, r14
sub eax, dword [r13 + 8]
test ecx, ecx
je 0x21015889b
mov r8, r13
nop dword [rax + rax]
add r8, rcx
mov edx, dword [r8 + 4]
mov rcx, rdx
sub ecx, dword [r8 + 8]
add r14, rdx
add rax, rcx
mov ecx, dword [r8]
test ecx, ecx
jne 0x210158880
mov rcx, r13
mov qword [rsp + 0x48], rax
call sym.free_1
mov rax, qword [rsp + 0x40]
mov qword [rbp], rbx
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x20], rax
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0x48], rax
mov eax, dword [rsp + 0x7c]
xor r13d, r13d
mov dword [rbp + 0x68], r15d
mov word [rbp + 0x50], ax
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov rcx, r12
call method.winpids.winpids__
mov eax, r13d
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test byte [0x210273880], 1
jne 0x210158980
mov ecx, dword [0x21034b024]
mov rax, qword [rsp + 0x98]
xor edx, edx
sub rax, qword [rsp + 0x88]
div rcx
xor edx, edx
mov r15, rcx
mov r14, rax
mov rax, qword [rsp + 0xa0]
sub rax, qword [rsp + 0x88]
div rcx
jmp 0x21015889b
xor r13d, r13d
nop word [rax + rax]
mov dword [rsp + 0x20], r14d
mov edx, 0x40
lea rcx, [0x210273880]
lea r9, str.NtQuerySystemInformation_SystemPagefileInformation___status__y
lea r8, str.int_sysinfo_sysinfo_
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov ecx, dword [0x21034b024]
mov rax, qword [rsp + 0x98]
xor edx, edx
sub rax, qword [rsp + 0x88]
div rcx
xor edx, edx
mov r15, rcx
mov r14, rax
mov rax, qword [rsp + 0xa0]
sub rax, qword [rsp + 0x88]
div rcx
test r13, r13
jne 0x21015889b
mov rsi, qword [rsp + 0x40]
mov qword [rbp], rbx
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x40], r14
jmp 0x2101588c2
test byte [0x210273880], 1
jne 0x210158a68
test r13, r13
je 0x210158af9
mov rcx, r13
xor ebx, ebx
call sym.free_1
jmp 0x2101587d7
mov rcx, r13
call sym.free_1
mov ecx, dword [rsp + 0x5c]
mov r15, rcx
call sym.malloc_1
mov r13, rax
test rax, rax
je 0x210158b00
mov r9, rsi
mov r8d, r15d
mov rdx, rax
mov ecx, 0x12
call sym.NtQuerySystemInformation
mov r14d, eax
jmp 0x210158855
mov dword [rsp + 0x20], eax
lea r9, str.NtQuerySystemInformation_SystemTimeOfDayInformation___status__y
lea r8, str.int_sysinfo_sysinfo_
mov edx, 0x40
lea rcx, [0x210273880]
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x210158a09
test byte [0x210273880], 1
jne 0x210158abc
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r13d, 0xffffffff
mov dword [rax], 0xe
call sym.msys_2.0.dll___errno
mov dword [rax], 0xe
jmp 0x21015890d
lea rax, str.int_sysinfo_sysinfo_
mov dword [rsp + 0x30], 0xe
lea r9, [0x2102ad6cb]
mov edx, 0x40
mov dword [rsp + 0x28], 0x314
lea r8, [0x2102ad6e8]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x210158a99
xor ebx, ebx
jmp 0x2101587d7
test byte [0x210273880], 1
jne 0x210158974
mov ecx, dword [0x21034b024]
mov rax, qword [rsp + 0x98]
xor edx, edx
sub rax, qword [rsp + 0x88]
div rcx
xor edx, edx
mov r15, rcx
mov r14, rax
mov rax, qword [rsp + 0xa0]
sub rax, qword [rsp + 0x88]
div rcx
jmp 0x2101589e3