Function at 0x140245d94
Capabilities:
Get memory capacity

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp], rax
mov rbx, rdx
mov qword [rsp + 0x48], rdx
and dword [rsp + 0x20], 0
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetPhysicallyInstalledSystemMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140245e3d
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call rax
test eax, eax
je 0x140245e3d
mov rax, qword [rsp + 0x28]
pxor xmm6, xmm6
cvtsi2sd xmm6, rax
test rax, rax
jns 0x140245e21
addsd xmm6, qword [0x14038c590]
mulsd xmm6, qword [0x140397ba0]
ucomisd xmm6, qword [0x14038a410]
jp 0x140245ec4
jne 0x140245ec4
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GlobalMemoryStatusEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
xor edx, edx
test rax, rax
je 0x140245e84
lea r8d, [rdx + 0x40]
lea rcx, [rbp - 0x40]
call fcn.1400c7360
mov dword [rbp - 0x40], 0x40
lea rcx, [rbp - 0x40]
call rdi
mov r11, qword [rbp - 0x38]
jmp 0x140245ea6
mov edi, 0x38
mov r8d, edi
lea rcx, [rbp - 0x78]
call fcn.1400c7360
mov dword [rbp - 0x78], edi
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov r11, qword [rbp - 0x70]
pxor xmm6, xmm6
test r11, r11
cvtsi2sd xmm6, r11
jns 0x140245ebc
addsd xmm6, qword [0x14038c590]
mulsd xmm6, qword [0x140397b98]
lea rcx, [rsp + 0x50]
call fcn.1402c97f0
nop
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov eax, 1
mov dword [rsp + 0x20], eax
comisd xmm6, xmmword [0x14038a578]
jbe 0x140245f56
mov dword [rsp + 0x60], eax
mulsd xmm6, qword [0x140397ba0]
movapd xmm2, xmm6
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1402c9990
nop
mov r8, qword [rax]
lea rdx, str._sGB_RAM
mov rcx, rbx
call fcn.14000d9c8
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140245fee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140245fee
comisd xmm6, xmmword [0x1403991c0]
jb 0x140245f77
movsd xmm0, qword [0x1403991b8]
comisd xmm0, xmm6
jb 0x140245f77
lea rdx, str.256MB_RAM
jmp 0x140245f96
comisd xmm6, xmmword [0x1403991b0]
jb 0x140245fa0
movsd xmm0, qword [0x1403991a8]
comisd xmm0, xmm6
jb 0x140245fa0
lea rdx, str.512MB_RAM
mov rcx, rbx
call fcn.14001c5ec
jmp 0x140245fee
and dword [rsp + 0x60], 0
movapd xmm2, xmm6
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1402c9990
nop
mov r8, qword [rax]
lea rdx, str._sMB_RAM
mov rcx, rbx
call fcn.14000d9c8
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140245fee
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x50]
call fcn.1402c9530
mov rax, rbx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret