Function at 0x14001a040
Capabilities:
Get memory capacity

Disassembly:
push rdi
sub rsp, 0x100
mov rax, qword [0x140036b80]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0xb0], 0x40
mov al, byte [0x140036b6c]
movsx eax, al
mov dword [rsp + 0x34], eax
call fcn.140022ec4
movsx eax, al
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
call fcn.140022eb8
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0x38], eax
call fcn.140022eb4
movsx eax, al
mov ecx, dword [rsp + 0x38]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov cl, byte [0x140036b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140036b68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x14001a382
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cdqe
cvtsi2sd xmm0, rax
call fcn.140025e38
mov dword [rsp + 0x4c], eax
mov cl, byte [0x140036b6c]
movsx ecx, cl
mov dword [rsp + 0x40], ecx
call fcn.140022ec4
movsx eax, al
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
call fcn.140022eb8
movsx eax, al
imul eax, eax, 6
mov dword [rsp + 0x44], eax
call fcn.140022eb4
movsx eax, al
mov ecx, dword [rsp + 0x44]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov cl, byte [0x140036b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140036b68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x4c]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x14001a382
xor eax, eax
cmp eax, 1
je 0x14001a382
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x20]
call fcn.140017388
mov rcx, rax
call fcn.14001662c
mov qword [rsp + 0x90], rax
mov al, byte [0x140036b6c]
movsx eax, al
mov dword [rsp + 0x50], eax
call fcn.140022ec4
movsx eax, al
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
call fcn.140022eb8
movsx eax, al
imul eax, eax, 3
mov dword [rsp + 0x54], eax
call fcn.140022eb4
movsx eax, al
mov ecx, dword [rsp + 0x54]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov cl, byte [0x140036b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140036b68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x14001a382
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x98], rax
jae 0x14001a236
mov qword [rsp + 0x88], 1
jmp 0x14001a242
mov qword [rsp + 0x88], 0
cvtsi2sd xmm0, qword [rsp + 0x88]
call fcn.140025e38
mov dword [rsp + 0x68], eax
mov cl, byte [0x140036b6c]
movsx ecx, cl
mov dword [rsp + 0x5c], ecx
call fcn.140022ec4
movsx eax, al
mov ecx, dword [rsp + 0x5c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x64], eax
call fcn.140022eb8
movsx eax, al
shl eax, 3
mov dword [rsp + 0x60], eax
call fcn.140022eb4
movsx eax, al
mov ecx, dword [rsp + 0x60]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov cl, byte [0x140036b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140036b68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x68]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x14001a382
xor eax, eax
cmp eax, 9
je 0x14001a382
mov dword [rsp + 0x24], 0
jmp 0x14001a2e6
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov al, byte [0x140036b6c]
movsx eax, al
mov dword [rsp + 0x6c], eax
call fcn.140022ec4
movsx eax, al
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
call fcn.140022eb8
movsx eax, al
imul eax, eax, 9
mov dword [rsp + 0x70], eax
call fcn.140022eb4
movsx eax, al
mov ecx, dword [rsp + 0x70]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov cl, byte [0x140036b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140036b68]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.140025e38
cmp dword [rsp + 0x24], eax
jge 0x14001a382
mov dword [rsp + 0x28], 0
jmp 0x14001a36d
cmp dword [rsp + 0x28], 0x40
jae 0x14001a37d
mov al, 1
jmp 0x14001a435
jmp 0x14001a2dc
mov dword [rsp + 0x2c], 0
jmp 0x14001a396
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov al, byte [0x140036b6c]
movsx eax, al
mov dword [rsp + 0x78], eax
call fcn.140022ec4
movsx eax, al
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x80], eax
call fcn.140022eb8
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0x7c], eax
call fcn.140022eb4
movsx eax, al
mov ecx, dword [rsp + 0x7c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x80]
add ecx, eax
mov eax, ecx
mov cl, byte [0x140036b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140036b68]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.140025e38
cmp dword [rsp + 0x2c], eax
jge 0x14001a435
mov dword [rsp + 0x30], 0
jmp 0x14001a423
cmp dword [rsp + 0x30], 0x5a
jae 0x14001a430
xor al, al
jmp 0x14001a435
jmp 0x14001a38c
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14002a9b0
add rsp, 0x100
pop rdi
ret