Function at 0x18004dfe0
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4c0
mov qword [rsp + 0x1b0], 0xfffffffffffffffe
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
lea rax, [rsp + 0x3f8]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rcx, rax
call fcn.180005120
nop
lea rcx, [rsp + 0x3f8]
call fcn.18000ad50
nop
lea rax, [rsp + 0x470]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov dword [rsp + 0x470], 0x40
lea rcx, [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x18004e126
xor edx, edx
mov rax, qword [rsp + 0x478]
mov ecx, 0x100000
div rcx
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x338]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rcx, rax
call fcn.180005120
nop
lea rcx, [rsp + 0x338]
call fcn.180004020
nop
mov r8d, dword [rsp + 0x70]
lea rdx, [0x18019df30]
lea rcx, [rsp + 0x338]
call fcn.18008ded0
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x338]
call fcn.180003a80
lea r8, [rsp + 0x3f8]
mov rdx, qword [rsp + 0x98]
mov rcx, rax
call fcn.180095b80
nop
lea rcx, [rsp + 0x338]
call fcn.180003f40
nop
lea rax, [rsp + 0x338]
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x408]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x18004e14b
mov dword [rsp + 0x28], 1
jmp 0x18004e153
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
test eax, eax
jne 0x18004e1be
lea rax, [rsp + 0x220]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x3f8]
mov rcx, qword [rsp + 0xa8]
call fcn.1800c7090
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
lea rdx, str.A0201
mov rcx, qword [rsp + 0x4d8]
call fcn.1800c8480
nop
mov rdx, qword [rsp + 0xb8]
mov rcx, rax
call fcn.1800c7380
lea rdx, str.User32.dll
lea rcx, [rsp + 0x200]
call fcn.180003bb0
nop
call fcn.1800a6010
lea rdx, [rsp + 0x200]
mov rcx, rax
call fcn.1800a60e0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x200]
call fcn.180003f40
nop
lea rax, [rsp + 0x200]
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x50], 0
je 0x18004e233
lea rdx, str.GetSystemMetrics
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x3d8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rcx, rax
call fcn.180005120
nop
lea rcx, [rsp + 0x3d8]
call fcn.18000ad50
nop
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x18004e27c
xor ecx, ecx
call qword [rsp + 0x40]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x18004e323
lea rax, [rsp + 0x358]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov rcx, rax
call fcn.180005120
nop
lea rcx, [rsp + 0x358]
call fcn.180004020
nop
mov r8d, dword [rsp + 0x20]
lea rdx, [0x18019c774]
lea rcx, [rsp + 0x358]
call fcn.18008ded0
mov rax, qword [rsp + 0x368]
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x358]
call fcn.180003a80
lea r8, [rsp + 0x3d8]
mov rdx, qword [rsp + 0xd0]
mov rcx, rax
call fcn.180095b80
nop
lea rcx, [rsp + 0x358]
call fcn.180003f40
nop
lea rax, [rsp + 0x358]
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x3e8]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
jne 0x18004e348
mov dword [rsp + 0x2c], 1
jmp 0x18004e350
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
test eax, eax
jne 0x18004e3bb
lea rax, [rsp + 0x248]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x3d8]
mov rcx, qword [rsp + 0xe0]
call fcn.1800c7090
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
lea rdx, str.A0202
mov rcx, qword [rsp + 0x4d8]
call fcn.1800c8480
nop
mov rdx, qword [rsp + 0xf0]
mov rcx, rax
call fcn.1800c7380
lea rax, [rsp + 0x3b8]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov rcx, rax
call fcn.180005120
nop
lea rcx, [rsp + 0x3b8]
call fcn.18000ad50
nop
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x40], 0
je 0x18004e407
mov ecx, 1
call qword [rsp + 0x40]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x18004e4ae
lea rax, [rsp + 0x378]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov rcx, rax
call fcn.180005120
nop
lea rcx, [rsp + 0x378]
call fcn.180004020
nop
mov r8d, dword [rsp + 0x24]
lea rdx, [0x18019c774]
lea rcx, [rsp + 0x378]
call fcn.18008ded0
mov rax, qword [rsp + 0x388]
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x378]
call fcn.180003a80
lea r8, [rsp + 0x3b8]
mov rdx, qword [rsp + 0x108]
mov rcx, rax
call fcn.180095b80
nop
lea rcx, [rsp + 0x378]
call fcn.180003f40
nop
lea rax, [rsp + 0x378]
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x3c8]
mov qword [rsp + 0x110], rax
cmp qword [rsp + 0x110], 0
jne 0x18004e4d3
mov dword [rsp + 0x30], 1
jmp 0x18004e4db
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x18004e546
lea rax, [rsp + 0x270]
mov qword [rsp + 0x118], rax
lea rdx, [rsp + 0x3b8]
mov rcx, qword [rsp + 0x118]
call fcn.1800c7090
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
lea rdx, str.A0203
mov rcx, qword [rsp + 0x4d8]
call fcn.1800c8480
nop
mov rdx, qword [rsp + 0x128]
mov rcx, rax
call fcn.1800c7380
lea rax, [rsp + 0x298]
mov qword [rsp + 0x130], rax
call fcn.18009a9d0
mov edx, eax
mov rcx, qword [rsp + 0x130]
call fcn.1800c6f90
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
lea rdx, str.A0204
mov rcx, qword [rsp + 0x4d8]
call fcn.1800c8480
nop
mov rdx, qword [rsp + 0x140]
mov rcx, rax
call fcn.1800c7380
lea rdx, str.GetDC
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
lea rdx, str.ReleaseDC
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x58], 0
lea rcx, str.Gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18004e612
lea rdx, str.GetDeviceCaps
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x58], 0
je 0x18004e682
cmp qword [rsp + 0x78], 0
je 0x18004e682
cmp qword [rsp + 0x80], 0
je 0x18004e682
xor ecx, ecx
call qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x18004e682
mov edx, 0x58
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x58]
mov dword [rsp + 0x34], eax
mov edx, 0x5a
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x58]
mov dword [rsp + 0x38], eax
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [rsp + 0x80]
cmp qword [rsp + 0x48], 0
je 0x18004e69e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x148], rax
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x148]
call fcn.1800c6f90
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
lea rdx, str.A0205
mov rcx, qword [rsp + 0x4d8]
call fcn.1800c8480
nop
mov rdx, qword [rsp + 0x158]
mov rcx, rax
call fcn.1800c7380
lea rax, [rsp + 0x2e8]
mov qword [rsp + 0x160], rax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x160]
call fcn.1800c6f90
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x170], rax
lea rdx, str.A0206
mov rcx, qword [rsp + 0x4d8]
call fcn.1800c8480
nop
mov rdx, qword [rsp + 0x170]
mov rcx, rax
call fcn.1800c7380
mov edx, 0x30
lea rcx, [rsp + 0x438]
call fcn.18001c7d0
lea rcx, [rsp + 0x438]
call fcn.180036720
nop
mov rax, qword [rsp + 0x4d0]
mov rdx, rax
lea rcx, [rsp + 0x438]
call fcn.180036860
mov rax, qword [rsp + 0x4d0]
movzx edx, byte [rax + 0x38]
lea rcx, [rsp + 0x438]
call fcn.180038650
lea rdx, [rsp + 0x398]
lea rcx, [rsp + 0x438]
call fcn.180036880
nop
mov rax, qword [rsp + 0x3a8]
mov qword [rsp + 0x178], rax
cmp qword [rsp + 0x178], 0
jne 0x18004e7e6
mov dword [rsp + 0x3c], 1
jmp 0x18004e7ee
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
test eax, eax
je 0x18004e851
lea rax, str.000000000000
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x68]
cmp word [rax + rcx*2], 0
jne 0x18004e80f
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x188], rax
mov r8, qword [rsp + 0x188]
lea rdx, str.000000000000
lea rcx, [rsp + 0x398]
call fcn.1800040d0
lea rcx, [rsp + 0x418]
call fcn.18000a650
nop
mov rax, qword [rsp + 0x3a8]
mov qword [rsp + 0x190], rax
lea rcx, [rsp + 0x398]
call fcn.180003a80
lea r8, [rsp + 0x418]
mov rdx, qword [rsp + 0x190]
mov rcx, rax
call fcn.180095b80
lea rax, [rsp + 0x310]
mov qword [rsp + 0x198], rax
lea rdx, [rsp + 0x418]
mov rcx, qword [rsp + 0x198]
call fcn.1800c7090
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x1a8], rax
lea rdx, str.A0207
mov rcx, qword [rsp + 0x4d8]
call fcn.1800c8480
nop
mov rdx, qword [rsp + 0x1a8]
mov rcx, rax
call fcn.1800c7380
nop
lea rcx, [rsp + 0x418]
call fcn.18000ac70
nop
lea rax, [rsp + 0x418]
mov qword [rsp + 0x1d8], rax
lea rcx, [rsp + 0x398]
call fcn.180003f40
nop
lea rax, [rsp + 0x398]
mov qword [rsp + 0x1e0], rax
lea rcx, [rsp + 0x438]
call fcn.1800367f0
nop
lea rcx, [rsp + 0x3b8]
call fcn.18000ac70
nop
lea rax, [rsp + 0x3b8]
mov qword [rsp + 0x1e8], rax
lea rcx, [rsp + 0x3d8]
call fcn.18000ac70
nop
lea rax, [rsp + 0x3d8]
mov qword [rsp + 0x1f0], rax
lea rcx, [rsp + 0x3f8]
call fcn.18000ac70
nop
lea rax, [rsp + 0x3f8]
mov qword [rsp + 0x1f8], rax
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.1800d8050
add rsp, 0x4c0
pop rdi
ret