Function at 0x140144fa0
Capabilities:
Get memory capacity

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xa0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, rcx
mov ecx, dword [rcx + 0x14]
mov ebp, r8d
mov r12, rdx
call fcn.140119fd0
lea rcx, [rsp + 0x30]
mov ebx, eax
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edi, dword [rsi + 0x10]
cmp edi, 2
je 0x1401451e1
cmp edi, 3
je 0x1401451e1
mov r8d, dword [rsi + 8]
xor edx, edx
mov eax, 0x8000000
div ebx
xor edx, edx
mov r9d, eax
mov rax, qword [rsp + 0x40]
div rbx
lea edx, [r9 + r8]
cmp rax, rdx
jge 0x1401451e1
cmp r8d, r9d
jb 0x1401451e1
test edi, edi
jne 0x1401451ae
xor edx, edx
lea eax, [rbp*4]
mov ecx, 0x100000
div ebx
xor edx, edx
mov ebp, eax
mov edi, eax
mov eax, 0x400000
add rbp, qword [rsi]
div ebx
mov dword [r12 + 0x10], eax
mov eax, dword [rsi + 0xc]
add eax, 2
cmp eax, ecx
jae 0x140145070
mov ecx, eax
mov eax, dword [rsi + 8]
mov dword [r12 + 0x10], eax
mov edx, dword [r12 + 0x10]
mov dword [r12 + 4], ecx
xor ecx, ecx
imul edi, ebx
imul edx, ebx
lea r9d, [rcx + 4]
shr edi, 2
mov r8d, 0x1000
mov dword [r12], edi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rcx, rax
mov qword [r12 + 8], rax
jne 0x1401450e0
call fcn.140049470
lea rcx, str...cluslist.cpp
mov edx, Ordinal_376
mov rbx, qword [rax]
mov rdi, rax
call fcn.140144840
lea rdx, str._s:_No_sufficient_memory.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
mov dword [rsi + 0x58], 0x15
xor eax, eax
jmp 0x14014556a
mov r8d, dword [r12 + 0x10]
xor edx, edx
imul r8d, ebx
call sub.ntdll.dll_memset
mov ecx, dword [rsi + 0x14]
call fcn.140114fb0
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x14014513f
call fcn.140049470
lea rcx, str...cluslist.cpp
mov edx, 0x180
mov rbx, qword [rax]
mov rdi, rax
call fcn.140144840
mov r9d, dword [rsi + 0x14]
lea rdx, str._s:_Failed_to_open_DISK__d_.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
mov dword [rsi + 0x58], 0x16
xor eax, eax
jmp 0x14014556a
mov r9d, dword [r12 + 0x10]
mov rdx, qword [r12 + 8]
mov r8, rbp
mov rcx, rax
call fcn.140144ac0
test eax, eax
jne 0x14014519b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140049470
lea rcx, str...cluslist.cpp
mov rbx, qword [rax]
mov edx, 0x18a
mov rdi, rax
call fcn.140144840
lea rdx, str._s:_Failed_to_read_sector_
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
mov dword [rsi + 0x58], 0x21
xor eax, eax
jmp 0x14014556a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14014556a
call fcn.140049470
lea rcx, str...cluslist.cpp
mov edx, 0x195
mov rbx, qword [rax]
mov rdi, rax
call fcn.140144840
lea rdx, str._s:_The_file_system_type_invalid.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x14014556a
mov eax, dword [rsi + 0xc]
mov qword [rsp + 0xe8], r13
xor r13d, r13d
add eax, 2
mov dword [r12], r13d
lea r9d, [r13 + 4]
mov dword [r12 + 4], eax
mov eax, dword [rsi + 8]
xor ecx, ecx
mov dword [r12 + 0x10], eax
mov r8d, 0x1000
imul eax, ebx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rcx, rax
mov qword [r12 + 8], rax
jne 0x140145305
call fcn.140049470
lea rbx, [0x14043e230]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea edx, [r13 + 0x5c]
lea rcx, str...cluslist.cpp
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1401452e3
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x70]
mov r8d, 0x12c
mov byte [rsp + 0x70], r13b
mov qword [rsp + 0x71], rax
mov word [rsp + 0x79], ax
mov byte [rsp + 0x7b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1401452a0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x70]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1401452d0
mov r13, rbx
mov rax, qword [rbp]
lea rdx, str._s:_No_sufficient_memory.
mov r8, r13
mov rcx, rbp
call qword [rax + 0x10]
mov dword [rsi + 0x58], 0x15
xor eax, eax
jmp 0x140145562
mov r8d, dword [r12 + 0x10]
xor edx, edx
imul r8d, ebx
call sub.ntdll.dll_memset
mov ecx, dword [rsi + 0x14]
call fcn.140114fb0
cmp rax, 0xffffffffffffffff
mov rcx, rax
mov qword [rsp + 0x70], rax
jne 0x140145362
call fcn.140049470
lea rcx, str...cluslist.cpp
mov edx, 0x136
mov rbx, qword [rax]
mov rdi, rax
call fcn.140144840
mov r9d, dword [rsi + 0x14]
lea rdx, str._s:_Failed_to_open_DISK__d_.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x140145562
xor edx, edx
mov eax, 0x800000
mov qword [rsp + 0x98], r14
div ebx
xor edx, edx
mov qword [rsp + 0x90], r15
mov r15d, eax
mov eax, dword [r12 + 0x10]
mov edi, r13d
div r15d
test eax, eax
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x28], eax
je 0x1401453eb
mov r14d, r15d
mov r9, r15
mov ebx, r13d
mov ebp, r13d
imul r14d, dword [rsp + 0x20]
nop
nop
mov r8d, ebx
mov edx, ebp
add r8, qword [rsi]
add rdx, qword [r12 + 8]
call fcn.140144ac0
test eax, eax
je 0x14014545c
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
add edi, 1
add ebx, r15d
add ebp, r14d
cmp edi, eax
mov r9, r15
jb 0x1401453b0
mov ebx, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
test edx, edx
je 0x140145542
imul eax, r15d
mov r9d, edx
mov r8, rax
imul eax, ebx
add r8, qword [rsi]
mov edx, eax
add rdx, qword [r12 + 8]
call fcn.140144ac0
test eax, eax
jne 0x140145542
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140049470
lea rcx, str...cluslist.cpp
mov rbx, qword [rax]
mov edx, reloc.MFC80U.DLL_Ordinal_338
mov rdi, rax
call fcn.140144840
lea rdx, str._s:_Failed_to_read_sector_
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
mov dword [rsi + 0x58], 0x21
xor eax, eax
jmp 0x140145552
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140049470
lea rbx, [0x14043e230]
mov rcx, rbx
xor edx, edx
mov r8d, 0x80
mov rbp, rax
call sub.ntdll.dll_memset
lea rcx, str...cluslist.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x140145523
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x70]
mov r8d, 0x144
mov byte [rsp + 0x70], r13b
mov qword [rsp + 0x71], rax
mov word [rsp + 0x79], ax
mov byte [rsp + 0x7b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1401454e0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x70]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140145510
mov r13, rbx
mov rax, qword [rbp]
lea rdx, str._s:_Failed_to_read_sector_
mov r8, r13
mov rcx, rbp
call qword [rax + 0x10]
mov dword [rsi + 0x58], 0x21
xor eax, eax
jmp 0x140145552
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov r14, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov r13, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140161080
add rsp, 0xa0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret