Function at 0x140050f10
Capabilities:
Get memory capacity

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x388
movaps xmmword [rsp + 0x370], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x170]
call fcn.140050cd0
movzx ebp, byte [rsp + 0x170]
and bpl, 1
je 0x140050f4f
mov rdi, qword [rsp + 0x180]
jmp 0x140050f57
lea rdi, [rsp + 0x171]
mov rcx, rdi
call sub.msvcrt.dll_strlen
cmp rax, 0xfffffffffffffff0
jae 0x1400516bb
mov rbx, rax
cmp rax, 0x16
ja 0x140050f86
lea eax, [rbx + rbx]
mov byte [rsp + 0xb8], al
lea r14, [rsp + 0xb9]
jmp 0x140050fc3
mov r15, rbx
or r15, 0xf
inc r15
mov rcx, r15
call fcn.14006fb50
mov r14, rax
mov qword [rsp + 0xc8], rax
or r15, 1
mov qword [rsp + 0xb8], r15
mov qword [rsp + 0xc0], rbx
movzx ebp, byte [rsp + 0x170]
and bpl, 1
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memmove
mov byte [r14 + rbx], 0
test bpl, bpl
je 0x140050fe8
mov rcx, qword [rsp + 0x180]
call fcn.14006fbd0
mov byte [rsp + 0x170], 0
lea rcx, [rsp + 0x170]
mov edx, 0x80
call fcn.1400508c0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x160], xmm0
movaps xmmword [rsp + 0x150], xmm0
movaps xmmword [rsp + 0x140], xmm0
mov dword [rsp + 0x130], 0x40
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
mov rdx, qword [rsp + 0x138]
shr rdx, 0x1e
lea rcx, [rsp + 0x40]
call fcn.1400735b0
lea r8, str.Total_Physical_Memory_:
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.140071ac0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
lea rdx, str.GB__FREE_Physical_Memory_:
lea rcx, [rsp + 0x20]
call fcn.140071fd0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x140]
shr rdx, 0x1e
lea rcx, [rsp + 0xa0]
call fcn.1400735b0
movzx r8d, byte [rsp + 0xa0]
test r8b, 1
je 0x1400510ed
mov rdx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
jmp 0x1400510f8
shr r8, 1
lea rdx, [rsp + 0xa1]
lea rcx, [rsp + 0x60]
call fcn.140071800
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x90], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x80], xmm0
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
lea rdx, [0x1401fd3bf]
lea rcx, [rsp + 0x80]
call fcn.140071fd0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x100], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xf0], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
test byte [rsp + 0x80], 1
jne 0x1400511b3
test byte [rsp + 0xa0], 1
jne 0x1400511ca
test byte [rsp + 0x60], 1
jne 0x1400511de
test byte [rsp + 0x20], 1
jne 0x1400511ef
test byte [rsp + 0x40], 1
je 0x140051190
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
mov dword [rsp + 0xec], 0x343658
lea rcx, [rsp + 0x40]
call fcn.140050e20
test byte [rsp + 0x40], 1
je 0x140051202
mov rdi, qword [rsp + 0x50]
jmp 0x140051207
mov rcx, qword [rsp + 0x90]
call fcn.14006fbd0
test byte [rsp + 0xa0], 1
je 0x140051171
mov rcx, qword [rsp + 0xb0]
call fcn.14006fbd0
test byte [rsp + 0x60], 1
je 0x140051178
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
test byte [rsp + 0x20], 1
je 0x14005117f
mov rcx, qword [rsp + 0x30]
call fcn.14006fbd0
test byte [rsp + 0x40], 1
jne 0x140051186
jmp 0x140051190
lea rdi, [rsp + 0x41]
mov rcx, rdi
call sub.msvcrt.dll_strlen
cmp rax, 0xfffffffffffffff0
jae 0x1400516c8
mov rbx, rax
cmp rax, 0x16
ja 0x140051230
lea eax, [rbx + rbx]
mov byte [rsp + 0x20], al
lea r14, [rsp + 0x21]
jmp 0x140051258
mov r15, rbx
or r15, 0xf
inc r15
mov rcx, r15
call fcn.14006fb50
mov r14, rax
mov qword [rsp + 0x30], rax
or r15, 1
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], rbx
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memmove
mov byte [r14 + rbx], 0
lea rdx, [0x1401fd3c2]
lea rcx, [rsp + 0x20]
call fcn.140071fd0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0xec]
call fcn.140071fd0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x90], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x80], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
test byte [rsp + 0x60], 1
jne 0x140051307
test byte [rsp + 0x20], 1
jne 0x140051318
test byte [rsp + 0x40], 1
je 0x1400512ee
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
movzx edi, byte [rsp + 0x80]
mov ecx, edi
and cl, 1
je 0x14005132b
mov rdi, qword [rsp + 0x88]
jmp 0x14005132e
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
test byte [rsp + 0x20], 1
je 0x1400512dd
mov rcx, qword [rsp + 0x30]
call fcn.14006fbd0
test byte [rsp + 0x40], 1
jne 0x1400512e4
jmp 0x1400512ee
shr rdi, 1
lea r14, [rdi + 2]
cmp r14, 0xfffffffffffffff0
jae 0x1400516d2
cmp r14, 0x16
ja 0x140051368
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], 0
add r14b, r14b
mov byte [rsp + 0xd0], r14b
xor eax, eax
jmp 0x1400513a4
mov rbx, r14
or rbx, 0xf
inc rbx
mov rcx, rbx
call fcn.14006fb50
or rbx, 1
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd8], r14
movzx ecx, byte [rsp + 0x80]
and cl, 1
mov r14d, ebx
test r14b, 1
lea rbx, [rsp + 0xd1]
cmovne rbx, rax
test cl, cl
je 0x1400513c2
mov rdx, qword [rsp + 0x90]
jmp 0x1400513ca
lea rdx, [rsp + 0x81]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memmove
mov word [rbx + rdi], 0xa0d
mov byte [rbx + rdi + 2], 0
movzx r8d, byte [rsp + 0xb8]
test r8b, 1
je 0x140051401
mov rdx, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xc0]
jmp 0x14005140c
lea rdx, [rsp + 0xb9]
shr r8, 1
lea rcx, [rsp + 0xd0]
call fcn.140071800
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x120], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x110], xmm0
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
lea rdx, [0x1401fd3c4]
lea rcx, [rsp + 0x110]
call fcn.140071fd0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0xb0], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xa0], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
movzx r8d, byte [rsp + 0xf0]
test r8b, 1
je 0x140051495
mov rdx, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
jmp 0x1400514a0
shr r8, 1
lea rdx, [rsp + 0xf1]
lea rcx, [rsp + 0xa0]
call fcn.140071800
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
lea rdx, str._r_nboard:
lea rcx, [rsp + 0x40]
call fcn.140071fd0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x170]
call fcn.140071fd0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
lea rdx, [0x1401fd3c4]
lea rcx, [rsp + 0x60]
call fcn.140071fd0
mov rcx, qword [rax + 0x10]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
test byte [rsp + 0x60], 1
jne 0x1400515ed
test byte [rsp + 0x20], 1
jne 0x140051602
test byte [rsp + 0x40], 1
jne 0x140051617
test byte [rsp + 0xa0], 1
jne 0x14005162f
test byte [rsp + 0x110], 1
jne 0x14005164a
test byte [rsp + 0xd0], 1
jne 0x140051665
test byte [rsp + 0x80], 1
jne 0x140051680
test byte [rsp + 0xf0], 1
jne 0x14005169b
test byte [rsp + 0xb8], 1
je 0x1400515d2
mov rcx, qword [rsp + 0xc8]
call fcn.14006fbd0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x370]
add rsp, 0x388
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
test byte [rsp + 0x20], 1
je 0x14005156a
mov rcx, qword [rsp + 0x30]
call fcn.14006fbd0
test byte [rsp + 0x40], 1
je 0x140051575
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
test byte [rsp + 0xa0], 1
je 0x140051583
mov rcx, qword [rsp + 0xb0]
call fcn.14006fbd0
test byte [rsp + 0x110], 1
je 0x140051591
mov rcx, qword [rsp + 0x120]
call fcn.14006fbd0
test byte [rsp + 0xd0], 1
je 0x14005159f
mov rcx, qword [rsp + 0xe0]
call fcn.14006fbd0
test byte [rsp + 0x80], 1
je 0x1400515ad
mov rcx, qword [rsp + 0x90]
call fcn.14006fbd0
test byte [rsp + 0xf0], 1
je 0x1400515bb
mov rcx, qword [rsp + 0x100]
call fcn.14006fbd0
test byte [rsp + 0xb8], 1
jne 0x1400515c5
jmp 0x1400515d2
lea rcx, [rsp + 0xb8]
call fcn.140030800
lea rcx, [rsp + 0x20]
call fcn.140030800
lea rcx, [rsp + 0xd0]
call fcn.140030800
mov rsi, rax
test byte [rsp + 0x60], 1
jne 0x140051734
test byte [rsp + 0x20], 1
jne 0x140051751
test byte [rsp + 0x40], 1
jne 0x14005176e
test byte [rsp + 0xa0], 1
jne 0x140051795
test byte [rsp + 0x110], 1
jne 0x1400517c3
test byte [rsp + 0xd0], 1
jne 0x1400517f1
test byte [rsp + 0x80], 1
jne 0x140051949
jmp 0x140051967
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
test byte [rsp + 0x20], 1
je 0x1400516f0
jmp 0x140051751
mov rcx, qword [rsp + 0x30]
call fcn.14006fbd0
test byte [rsp + 0x40], 1
je 0x1400516f7
jmp 0x14005176e
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
test byte [rsp + 0xa0], 1
je 0x140051705
jmp 0x140051795
mov rcx, qword [rsp + 0xb0]
call fcn.14006fbd0
test byte [rsp + 0x110], 1
je 0x140051713
jmp 0x1400517c3
mov rcx, qword [rsp + 0x120]
call fcn.14006fbd0
test byte [rsp + 0xd0], 1
je 0x140051721
jmp 0x1400517f1
mov rcx, qword [rsp + 0xe0]
call fcn.14006fbd0
test byte [rsp + 0x80], 1
jne 0x140051949
jmp 0x140051967
mov rcx, qword [rsp + 0x90]
jmp 0x140051962
call fcn.14006fbd0
test byte [rsp + 0xf0], 1
je 0x14005197e
mov rcx, qword [rsp + 0x100]
call fcn.14006fbd0
test byte [rsp + 0xb8], 1
je 0x140051995
mov rcx, qword [rsp + 0xc8]
call fcn.14006fbd0
mov rcx, rsi
call fcn.14009a110
mov rsi, rax
test byte [rsp + 0x170], 1
je 0x140051995
mov rcx, qword [rsp + 0x180]
jmp 0x140051990