Function at 0x140051540
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.140051300
movzx ebp, byte [rsp + 0x170]
and bpl, 1
je 0x14005157f
mov rdi, qword [rsp + 0x180]
jmp 0x140051587
lea rdi, [rsp + 0x171]
mov rcx, rdi
call sub.msvcrt.dll_strlen
cmp rax, 0xfffffffffffffff0
jae 0x140051ceb
mov rbx, rax
cmp rax, 0x16
ja 0x1400515b6
lea eax, [rbx + rbx]
mov byte [rsp + 0xb8], al
lea r14, [rsp + 0xb9]
jmp 0x1400515f3
mov r15, rbx
or r15, 0xf
inc r15
mov rcx, r15
call fcn.1400731c0
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 0x140051618
mov rcx, qword [rsp + 0x180]
call fcn.140073240
mov byte [rsp + 0x170], 0
lea rcx, [rsp + 0x170]
mov edx, 0x80
call fcn.140050ef0
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.140076a80
lea r8, str.Total_Physical_Memory_:
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.140075130
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.140075640
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.140076a80
movzx r8d, byte [rsp + 0xa0]
test r8b, 1
je 0x14005171d
mov rdx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
jmp 0x140051728
shr r8, 1
lea rdx, [rsp + 0xa1]
lea rcx, [rsp + 0x60]
call fcn.140074e70
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, [0x1402614d5]
lea rcx, [rsp + 0x80]
call fcn.140075640
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 0x1400517e3
test byte [rsp + 0xa0], 1
jne 0x1400517fa
test byte [rsp + 0x60], 1
jne 0x14005180e
test byte [rsp + 0x20], 1
jne 0x14005181f
test byte [rsp + 0x40], 1
je 0x1400517c0
mov rcx, qword [rsp + 0x50]
call fcn.140073240
mov dword [rsp + 0xec], 0x343658
lea rcx, [rsp + 0x40]
call fcn.140051450
test byte [rsp + 0x40], 1
je 0x140051832
mov rdi, qword [rsp + 0x50]
jmp 0x140051837
mov rcx, qword [rsp + 0x90]
call fcn.140073240
test byte [rsp + 0xa0], 1
je 0x1400517a1
mov rcx, qword [rsp + 0xb0]
call fcn.140073240
test byte [rsp + 0x60], 1
je 0x1400517a8
mov rcx, qword [rsp + 0x70]
call fcn.140073240
test byte [rsp + 0x20], 1
je 0x1400517af
mov rcx, qword [rsp + 0x30]
call fcn.140073240
test byte [rsp + 0x40], 1
jne 0x1400517b6
jmp 0x1400517c0
lea rdi, [rsp + 0x41]
mov rcx, rdi
call sub.msvcrt.dll_strlen
cmp rax, 0xfffffffffffffff0
jae 0x140051cf8
mov rbx, rax
cmp rax, 0x16
ja 0x140051860
lea eax, [rbx + rbx]
mov byte [rsp + 0x20], al
lea r14, [rsp + 0x21]
jmp 0x140051888
mov r15, rbx
or r15, 0xf
inc r15
mov rcx, r15
call fcn.1400731c0
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, [0x1402614d8]
lea rcx, [rsp + 0x20]
call fcn.140075640
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.140075640
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 0x140051937
test byte [rsp + 0x20], 1
jne 0x140051948
test byte [rsp + 0x40], 1
je 0x14005191e
mov rcx, qword [rsp + 0x50]
call fcn.140073240
movzx edi, byte [rsp + 0x80]
mov ecx, edi
and cl, 1
je 0x14005195b
mov rdi, qword [rsp + 0x88]
jmp 0x14005195e
mov rcx, qword [rsp + 0x70]
call fcn.140073240
test byte [rsp + 0x20], 1
je 0x14005190d
mov rcx, qword [rsp + 0x30]
call fcn.140073240
test byte [rsp + 0x40], 1
jne 0x140051914
jmp 0x14005191e
shr rdi, 1
lea r14, [rdi + 2]
cmp r14, 0xfffffffffffffff0
jae 0x140051d02
cmp r14, 0x16
ja 0x140051998
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 0x1400519d4
mov rbx, r14
or rbx, 0xf
inc rbx
mov rcx, rbx
call fcn.1400731c0
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 0x1400519f2
mov rdx, qword [rsp + 0x90]
jmp 0x1400519fa
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 0x140051a31
mov rdx, qword [rsp + 0xc8]
mov r8, qword [rsp + 0xc0]
jmp 0x140051a3c
lea rdx, [rsp + 0xb9]
shr r8, 1
lea rcx, [rsp + 0xd0]
call fcn.140074e70
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, [0x1402614da]
lea rcx, [rsp + 0x110]
call fcn.140075640
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 0x140051ac5
mov rdx, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
jmp 0x140051ad0
shr r8, 1
lea rdx, [rsp + 0xf1]
lea rcx, [rsp + 0xa0]
call fcn.140074e70
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.140075640
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.140075640
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, [0x1402614da]
lea rcx, [rsp + 0x60]
call fcn.140075640
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 0x140051c1d
test byte [rsp + 0x20], 1
jne 0x140051c32
test byte [rsp + 0x40], 1
jne 0x140051c47
test byte [rsp + 0xa0], 1
jne 0x140051c5f
test byte [rsp + 0x110], 1
jne 0x140051c7a
test byte [rsp + 0xd0], 1
jne 0x140051c95
test byte [rsp + 0x80], 1
jne 0x140051cb0
test byte [rsp + 0xf0], 1
jne 0x140051ccb
test byte [rsp + 0xb8], 1
je 0x140051c02
mov rcx, qword [rsp + 0xc8]
call fcn.140073240
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.140073240
test byte [rsp + 0x20], 1
je 0x140051b9a
mov rcx, qword [rsp + 0x30]
call fcn.140073240
test byte [rsp + 0x40], 1
je 0x140051ba5
mov rcx, qword [rsp + 0x50]
call fcn.140073240
test byte [rsp + 0xa0], 1
je 0x140051bb3
mov rcx, qword [rsp + 0xb0]
call fcn.140073240
test byte [rsp + 0x110], 1
je 0x140051bc1
mov rcx, qword [rsp + 0x120]
call fcn.140073240
test byte [rsp + 0xd0], 1
je 0x140051bcf
mov rcx, qword [rsp + 0xe0]
call fcn.140073240
test byte [rsp + 0x80], 1
je 0x140051bdd
mov rcx, qword [rsp + 0x90]
call fcn.140073240
test byte [rsp + 0xf0], 1
je 0x140051beb
mov rcx, qword [rsp + 0x100]
call fcn.140073240
test byte [rsp + 0xb8], 1
jne 0x140051bf5
jmp 0x140051c02
lea rcx, [rsp + 0xb8]
call fcn.140035730
lea rcx, [rsp + 0x20]
call fcn.140035730
lea rcx, [rsp + 0xd0]
call fcn.140035730
mov rsi, rax
test byte [rsp + 0x60], 1
jne 0x140051d64
test byte [rsp + 0x20], 1
jne 0x140051d81
test byte [rsp + 0x40], 1
jne 0x140051d9e
test byte [rsp + 0xa0], 1
jne 0x140051dc5
test byte [rsp + 0x110], 1
jne 0x140051df3
test byte [rsp + 0xd0], 1
jne 0x140051e21
test byte [rsp + 0x80], 1
jne 0x140051f79
jmp 0x140051f97
mov rcx, qword [rsp + 0x70]
call fcn.140073240
test byte [rsp + 0x20], 1
je 0x140051d20
jmp 0x140051d81
mov rcx, qword [rsp + 0x30]
call fcn.140073240
test byte [rsp + 0x40], 1
je 0x140051d27
jmp 0x140051d9e
mov rcx, qword [rsp + 0x50]
call fcn.140073240
test byte [rsp + 0xa0], 1
je 0x140051d35
jmp 0x140051dc5
mov rcx, qword [rsp + 0xb0]
call fcn.140073240
test byte [rsp + 0x110], 1
je 0x140051d43
jmp 0x140051df3
mov rcx, qword [rsp + 0x120]
call fcn.140073240
test byte [rsp + 0xd0], 1
je 0x140051d51
jmp 0x140051e21
mov rcx, qword [rsp + 0xe0]
call fcn.140073240
test byte [rsp + 0x80], 1
jne 0x140051f79
jmp 0x140051f97
mov rcx, qword [rsp + 0x90]
jmp 0x140051f92
call fcn.140073240
test byte [rsp + 0xf0], 1
je 0x140051fae
mov rcx, qword [rsp + 0x100]
call fcn.140073240
test byte [rsp + 0xb8], 1
je 0x140051fc5
mov rcx, qword [rsp + 0xc8]
call fcn.140073240
mov rcx, rsi
call fcn.14009d370
mov rsi, rax
test byte [rsp + 0x170], 1
je 0x140051fc5
mov rcx, qword [rsp + 0x180]
jmp 0x140051fc0