Function at 0x140077560
Capabilities:
Get memory capacity

Disassembly:
push rbp
push rbx
push rsi
push r13
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov qword [rcx + 0x48], rdx
mov r14, rcx
xor r13d, r13d
mov dword [rbp + 0x80], 0x11c
xor edx, edx
mov dword [rsp + 0x40], r13d
lea rcx, [rbp + 0x84]
mov r8d, 0x118
mov esi, r13d
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400775d7
cmp byte [rbp + 0x19a], 1
setne al
mov byte [r14 + 0x5c], al
mov qword [rbp - 0x60], r13
lea rdx, str.kernel32.dll
mov qword [rbp - 0x50], r13
mov r8, 0xffffffffffffffff
mov qword [rbp - 0x48], 7
inc r8
cmp word [rdx + r8*2], si
jne 0x1400775f5
lea rcx, [rbp - 0x60]
call fcn.14001e1e0
lea rdx, [rbp - 0x60]
lea rcx, [rbp]
call fcn.1400291f0
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.14003f320
lea rcx, [rbp]
movzx ebx, al
call fcn.1400292c0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140077671
mov rcx, qword [rbp - 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007766c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007766c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
mov qword [rsp + 0x2e8], rdi
mov qword [rsp + 0x2f0], r12
mov qword [rsp + 0x2f8], r15
test bl, bl
je 0x140077ac0
mov edx, dword [rsp + 0x64]
lea rcx, [rbp - 0x60]
call fcn.1400772b0
mov eax, dword [rsp + 0x68]
and eax, 0x40004
mov qword [rbp - 0x68], 0xf
cmp eax, 0x40004
jne 0x1400776dc
movsd xmm0, qword [str.Windows_NT]
movzx eax, word [0x1400df5a8]
movsd qword [rbp - 0x80], xmm0
mov word [rbp - 0x78], ax
mov qword [rbp - 0x70], 0xa
mov byte [rbp - 0x76], sil
jmp 0x14007770a
mov eax, dword [str.Unknown]
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x80], eax
movzx eax, word [0x1400df5b4]
mov word [rbp - 0x7c], ax
movzx eax, byte [0x1400df5b6]
mov byte [rbp - 0x7a], al
mov qword [rbp - 0x70], 7
mov byte [rbp - 0x79], sil
mov ecx, dword [rsp + 0x50]
lea rdx, [0x1400df5d4]
mov eax, ecx
lea r12, [r14 + 0x28]
shr eax, 0x10
mov dword [r14 + 0x50], eax
movzx eax, cx
mov ecx, dword [rsp + 0x54]
mov dword [r14 + 0x54], eax
mov eax, ecx
shr eax, 0x10
movzx r8d, cx
lea rcx, [rbp]
mov dword [r14 + 0x58], eax
call fcn.14002b840
mov rdx, rax
mov rcx, r12
call fcn.140010290
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x14007778c
mov rcx, qword [rbp]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077787
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140077787
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
mov rbx, qword [rbp - 0x50]
mov r15, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x60]
test rbx, rbx
jne 0x1400777a9
lea rax, [0x1400d51d8]
jmp 0x1400778be
cmp r15, 0x10
mov qword [rbp - 0x20], r13
lea r9, [rbp - 0x60]
mov qword [rbp - 8], 0xf
cmovae r9, rdi
mov qword [rbp - 0x10], 2
mov byte [rbp - 0x1e], sil
mov eax, 0x2820
mov word [rbp - 0x20], ax
cmp rbx, 0xd
ja 0x1400777fe
lea rax, [rbx + 2]
mov r8, rbx
mov rdx, r9
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x1e]
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbp - 0x20]
mov byte [rbp + rbx - 0x1e], sil
jmp 0x14007781a
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140014f10
mov r15, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x60]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14007786d
lea rax, [rcx + 1]
cmp rdx, 0x10
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
cmovae rax, qword [rbp - 0x40]
mov word [rax + rcx], 0x29
lea rax, [rbp - 0x40]
jmp 0x14007788d
xor r8d, r8d
mov qword [rsp + 0x20], 1
lea r9, [0x1400d5fc0]
lea rcx, [rbp - 0x40]
lea edx, [r8 + 1]
call fcn.140014f10
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov byte [rax], sil
mov esi, 0xe
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rax, qword [rbp + 0x20]
cmp qword [r12 + 0x18], 0x10
jb 0x1400778ca
mov r12, qword [r12]
cmp qword [rbp - 0x68], 0x10
lea r8, [rbp - 0x80]
mov r9d, dword [r14 + 0x50]
lea rdx, str._s__u._u._u._s_s
cmovae r8, qword [rbp - 0x80]
lea rcx, [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [r14 + 0x58]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov eax, dword [r14 + 0x54]
mov dword [rsp + 0x20], eax
call fcn.14002b840
mov rdx, rax
lea rcx, [r14 + 8]
call fcn.140010290
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x14007794d
mov rcx, qword [rbp]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077948
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140077a33
call fcn.1400ce80c
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], 0xf
mov byte [rbp], r13b
test sil, 8
je 0x1400779ae
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x14007799e
mov rcx, qword [rbp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077999
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140077a33
call fcn.1400ce80c
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], r13b
test sil, 4
je 0x1400779fb
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1400779eb
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400779e6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140077a33
call fcn.1400ce80c
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], r13b
test sil, 2
je 0x140077a3f
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140077a3f
mov rcx, qword [rbp - 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077a3a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140077a3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140077a76
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077a71
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140077ab1
call fcn.1400ce80c
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], r13b
cmp r15, 0x10
jb 0x140077ac0
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140077ab8
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140077ab8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400ce80c
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x40], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140077b4b
mov rcx, qword [rbp + 0x48]
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, qword [0x1400fe0d8]
test rcx, rcx
js 0x140077af4
cvtsi2sd xmm0, rcx
jmp 0x140077b09
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mov rcx, qword [rbp + 0x50]
divsd xmm0, xmm1
cvttsd2si edx, xmm0
xorps xmm0, xmm0
mov dword [r14 + 0x64], edx
test rcx, rcx
js 0x140077b28
cvtsi2sd xmm0, rcx
jmp 0x140077b3d
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
divsd xmm0, xmm1
cvttsd2si eax, xmm0
sub edx, eax
mov dword [r14 + 0x60], edx
mov r12, qword [rsp + 0x2f0]
mov rdi, qword [rsp + 0x2e8]
mov r15, qword [rsp + 0x2f8]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x2b0
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret