Function at 0x180005960
Capabilities:
Get memory capacity

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rax, qword [0x1800cf380]
xor rax, rbp
mov qword [rbp - 8], rax
mov ecx, dword [0x1800d2c44]
mov eax, dword [0x1800d2c40]
mov edx, ecx
sub edx, 0x1deaa5a4
sub edx, 1
add edx, 0x1deaa5a4
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
and cl, 1
mov byte [rbp - 0x2a], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [rbp - 0x29], al
mov dword [rbp - 0x30], 0x8ad55648
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x34], eax
sub eax, 0x8ad55648
je 0x180005a6c
jmp 0x1800059cf
mov eax, dword [rbp - 0x34]
sub eax, 0x8f8ee511
je 0x180005b57
jmp 0x1800059e2
mov eax, dword [rbp - 0x34]
sub eax, 0x9188ae49
je 0x180005b63
jmp 0x1800059f5
mov eax, dword [rbp - 0x34]
sub eax, 0xa63cb287
je 0x180005cbc
jmp 0x180005a08
mov eax, dword [rbp - 0x34]
sub eax, 0xdd3768dd
je 0x180005bab
jmp 0x180005a1b
mov eax, dword [rbp - 0x34]
sub eax, 0x11276532
je 0x180005c69
jmp 0x180005a2e
mov eax, dword [rbp - 0x34]
sub eax, 0x2a78be60
je 0x180005bfa
jmp 0x180005a41
mov eax, dword [rbp - 0x34]
sub eax, 0x38da3606
je 0x180005c8c
jmp 0x180005a54
mov eax, dword [rbp - 0x34]
sub eax, 0x3c212fb8
je 0x180005a92
jmp 0x180005a67
jmp 0x180005cd4
mov al, byte [rbp - 0x2a]
mov cl, byte [rbp - 0x29]
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x38da3606
mov ecx, 0x3c212fb8
test dl, 1
cmovne eax, ecx
mov dword [rbp - 0x30], eax
jmp 0x180005cd4
mov eax, 0x40
call fcn.180095140
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x28], rax
mov eax, 0x10
call fcn.180095140
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x28]
mov dword [rax], 0x40
mov rcx, qword [rbp - 0x28]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
add rsp, 0x20
mov ecx, dword [0x1800d2c44]
mov eax, dword [0x1800d2c40]
mov edx, ecx
sub edx, 0x4aad11cb
sub edx, 1
add edx, 0x4aad11cb
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete r11b
cmp eax, 0xa
setl r10b
mov al, r11b
xor al, 0xff
mov r8b, r10b
xor r8b, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and r11b, cl
mov r9b, r8b
and r9b, 0xff
and r10b, cl
or dl, r11b
or r9b, r10b
xor dl, r9b
or al, r8b
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x38da3606
mov ecx, 0x8f8ee511
test dl, 1
cmovne eax, ecx
mov dword [rbp - 0x30], eax
jmp 0x180005cd4
mov dword [rbp - 0x30], 0x9188ae49
jmp 0x180005cd4
mov rax, qword [rbp - 0x28]
movq xmm0, qword [rax + 8]
movaps xmm1, xmmword [0x1800bb460]
punpckldq xmm0, xmm1
movapd xmm1, xmmword [0x1800bb470]
subpd xmm0, xmm1
movaps xmm1, xmm0
unpckhpd xmm0, xmm0
addsd xmm0, xmm1
movsd xmm1, qword [0x1800bb458]
divsd xmm0, xmm1
movsd qword [rbp - 0x18], xmm0
mov dword [rbp - 0x30], 0xdd3768dd
jmp 0x180005cd4
mov eax, dword [0x1800d2c44]
mov ecx, dword [0x1800d2c40]
mov edx, eax
sub edx, 0xfe2ec817
sub edx, 1
add edx, 0xfe2ec817
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xa63cb287
mov ecx, 0x2a78be60
test dl, 1
cmovne eax, ecx
mov dword [rbp - 0x30], eax
jmp 0x180005cd4
mov rax, qword [rbp - 0x20]
movsd xmm0, qword [rbp - 0x18]
movsd qword [rax], xmm0
mov rax, qword [rbp - 0x20]
movsd xmm0, qword [0x1800bb450]
ucomisd xmm0, qword [rax]
seta al
and al, 1
mov byte [rbp - 9], al
mov eax, dword [0x1800d2c44]
mov ecx, dword [0x1800d2c40]
xor r8d, r8d
sub r8d, 1
mov edx, eax
add edx, r8d
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xa63cb287
mov ecx, 0x11276532
test dl, 1
cmovne eax, ecx
mov dword [rbp - 0x30], eax
jmp 0x180005cd4
mov al, byte [rbp - 9]
and al, 1
movzx eax, al
mov dword [rbp - 0x38], eax
mov rcx, qword [rbp - 8]
xor rcx, rbp
sub rsp, 0x20
call fcn.1800951a0
mov eax, dword [rbp - 0x38]
mov rsp, rbp
pop rbp
ret
mov eax, 0x40
call fcn.180095140
sub rsp, rax
mov rcx, rsp
mov dword [rcx], 0x40
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
add rsp, 0x20
mov dword [rbp - 0x30], 0x3c212fb8
jmp 0x180005cd4
mov rax, qword [rbp - 0x20]
movsd xmm0, qword [rbp - 0x18]
movsd qword [rax], xmm0
mov rax, qword [rbp - 0x20]
mov dword [rbp - 0x30], 0x2a78be60
jmp 0x1800059b9