Function at 0x140077850
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 0x1400778c7
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 0x1400778e5
lea rcx, [rbp - 0x60]
call fcn.14001e4a0
lea rdx, [rbp - 0x60]
lea rcx, [rbp]
call fcn.1400294b0
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.14003f600
lea rcx, [rbp]
movzx ebx, al
call fcn.140029580
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140077961
mov rcx, qword [rbp - 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007795c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007795c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
mov qword [rsp + 0x2e8], rdi
mov qword [rsp + 0x2f0], r12
mov qword [rsp + 0x2f8], r15
test bl, bl
je 0x140077db0
mov edx, dword [rsp + 0x64]
lea rcx, [rbp - 0x60]
call fcn.1400775a0
mov eax, dword [rsp + 0x68]
and eax, 0x40004
mov qword [rbp - 0x68], 0xf
cmp eax, 0x40004
jne 0x1400779cc
movsd xmm0, qword [str.Windows_NT]
movzx eax, word [0x1400df5f8]
movsd qword [rbp - 0x80], xmm0
mov word [rbp - 0x78], ax
mov qword [rbp - 0x70], 0xa
mov byte [rbp - 0x76], sil
jmp 0x1400779fa
mov eax, dword [str.Unknown]
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x80], eax
movzx eax, word [0x1400df604]
mov word [rbp - 0x7c], ax
movzx eax, byte [0x1400df606]
mov byte [rbp - 0x7a], al
mov qword [rbp - 0x70], 7
mov byte [rbp - 0x79], sil
mov ecx, dword [rsp + 0x50]
lea rdx, [0x1400df624]
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.14002bb00
mov rdx, rax
mov rcx, r12
call fcn.140010290
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x140077a7c
mov rcx, qword [rbp]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077a77
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140077a77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
mov rbx, qword [rbp - 0x50]
mov r15, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x60]
test rbx, rbx
jne 0x140077a99
lea rax, [0x1400d51d8]
jmp 0x140077bae
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 0x140077aee
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 0x140077b0a
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.1400151d0
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 0x140077b5d
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 0x140077b7d
xor r8d, r8d
mov qword [rsp + 0x20], 1
lea r9, [0x1400d5fc0]
lea rcx, [rbp - 0x40]
lea edx, [r8 + 1]
call fcn.1400151d0
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 0x140077bba
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.14002bb00
mov rdx, rax
lea rcx, [r14 + 8]
call fcn.140010290
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x140077c3d
mov rcx, qword [rbp]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077c38
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140077d23
call fcn.1400ceafc
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], 0xf
mov byte [rbp], r13b
test sil, 8
je 0x140077c9e
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x140077c8e
mov rcx, qword [rbp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077c89
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140077d23
call fcn.1400ceafc
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], 0xf
mov byte [rbp + 0x20], r13b
test sil, 4
je 0x140077ceb
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140077cdb
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077cd6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140077d23
call fcn.1400ceafc
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], r13b
test sil, 2
je 0x140077d2f
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140077d2f
mov rcx, qword [rbp - 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077d2a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140077d2a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140077d66
mov rcx, qword [rbp - 0x80]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077d61
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140077da1
call fcn.1400ceafc
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], r13b
cmp r15, 0x10
jb 0x140077db0
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140077da8
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140077da8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400ceafc
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x40], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140077e3b
mov rcx, qword [rbp + 0x48]
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, qword [0x1400fe0d8]
test rcx, rcx
js 0x140077de4
cvtsi2sd xmm0, rcx
jmp 0x140077df9
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 0x140077e18
cvtsi2sd xmm0, rcx
jmp 0x140077e2d
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.1400cebd0
add rsp, 0x2b0
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret