Function at 0x1802b5a30
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x400
mov qword [rsp + 0x138], 0xfffffffffffffffe
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
lea rcx, [rsp + 0x318]
call fcn.1800b0560
nop
lea rax, [rsp + 0x3b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov dword [rsp + 0x3b0], 0x40
lea rcx, [rsp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1802b5b25
xor edx, edx
mov rax, qword [rsp + 0x3b8]
mov ecx, 0x100000
div rcx
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x298]
call fcn.18007d670
nop
mov r8d, dword [rsp + 0x58]
lea rdx, [0x1805bb620]
lea rcx, [rsp + 0x298]
call fcn.1800dd390
lea rcx, [rsp + 0x298]
call fcn.18008c680
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x298]
call fcn.18007d520
lea r8, [rsp + 0x318]
mov rcx, qword [rsp + 0x70]
mov rdx, rcx
mov rcx, rax
call fcn.1800e0a10
nop
lea rcx, [rsp + 0x298]
call fcn.18007d580
lea rcx, [rsp + 0x318]
call fcn.18008bdb0
movzx eax, al
test eax, eax
jne 0x1802b5b95
lea rax, [rsp + 0x188]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x318]
mov rcx, qword [rsp + 0x78]
call fcn.1802e7320
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
lea rdx, str.A0201
mov rcx, qword [rsp + 0x418]
call fcn.1802e85e0
nop
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.1802e7600
lea rdx, str.User32.dll
lea rcx, [rsp + 0x140]
call fcn.18007d630
nop
call fcn.1800e3b00
lea rdx, [rsp + 0x140]
mov rcx, rax
call fcn.1800e3be0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x140]
call fcn.18007d580
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x40], 0
je 0x1802b5bf9
lea rdx, [0x1805a3690]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x2f8]
call fcn.1800b0560
nop
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x30], 0
je 0x1802b5c21
xor ecx, ecx
call qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x1802b5c9a
lea rcx, [rsp + 0x2b8]
call fcn.18007d670
nop
mov r8d, dword [rsp + 0x20]
lea rdx, [0x18059edc0]
lea rcx, [rsp + 0x2b8]
call fcn.1800dd390
lea rcx, [rsp + 0x2b8]
call fcn.18008c680
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x2b8]
call fcn.18007d520
lea r8, [rsp + 0x2f8]
mov rcx, qword [rsp + 0x90]
mov rdx, rcx
mov rcx, rax
call fcn.1800e0a10
nop
lea rcx, [rsp + 0x2b8]
call fcn.18007d580
lea rcx, [rsp + 0x2f8]
call fcn.18008bdb0
movzx eax, al
test eax, eax
jne 0x1802b5d10
lea rax, [rsp + 0x160]
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x2f8]
mov rcx, qword [rsp + 0x98]
call fcn.1802e7320
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rdx, str.A0202
mov rcx, qword [rsp + 0x418]
call fcn.1802e85e0
nop
mov rdx, qword [rsp + 0xa8]
mov rcx, rax
call fcn.1802e7600
lea rcx, [rsp + 0x2d8]
call fcn.1800b0560
nop
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x30], 0
je 0x1802b5d3b
mov ecx, 1
call qword [rsp + 0x30]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x1802b5db4
lea rcx, [rsp + 0x338]
call fcn.18007d670
nop
mov r8d, dword [rsp + 0x24]
lea rdx, [0x18059edc0]
lea rcx, [rsp + 0x338]
call fcn.1800dd390
lea rcx, [rsp + 0x338]
call fcn.18008c680
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x338]
call fcn.18007d520
lea r8, [rsp + 0x2d8]
mov rcx, qword [rsp + 0xb0]
mov rdx, rcx
mov rcx, rax
call fcn.1800e0a10
nop
lea rcx, [rsp + 0x338]
call fcn.18007d580
lea rcx, [rsp + 0x2d8]
call fcn.18008bdb0
movzx eax, al
test eax, eax
jne 0x1802b5e2a
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x2d8]
mov rcx, qword [rsp + 0xb8]
call fcn.1802e7320
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
lea rdx, str.A0203
mov rcx, qword [rsp + 0x418]
call fcn.1802e85e0
nop
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.1802e7600
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0xd0], rax
call fcn.1800e8e50
mov edx, eax
mov rcx, qword [rsp + 0xd0]
call fcn.1802e7230
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea rdx, str.A0204
mov rcx, qword [rsp + 0x418]
call fcn.1802e85e0
nop
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.1802e7600
lea rdx, [0x1805bc47c]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
lea rdx, [0x1805bc450]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], 0
lea rcx, str.Gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1802b5ef3
lea rdx, [0x1805bc498]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
cmp qword [rsp + 0x48], 0
je 0x1802b5f5d
cmp qword [rsp + 0x60], 0
je 0x1802b5f5d
cmp qword [rsp + 0x68], 0
je 0x1802b5f5d
xor ecx, ecx
call qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1802b5f5d
mov edx, 0x58
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov edx, 0x5a
mov rcx, qword [rsp + 0x50]
call qword [rsp + 0x48]
mov dword [rsp + 0x2c], eax
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [rsp + 0x68]
cmp qword [rsp + 0x38], 0
je 0x1802b5f79
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x200]
mov qword [rsp + 0xe8], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xe8]
call fcn.1802e7230
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
lea rdx, str.A0205
mov rcx, qword [rsp + 0x418]
call fcn.1802e85e0
nop
mov rdx, qword [rsp + 0xf8]
mov rcx, rax
call fcn.1802e7600
lea rax, [rsp + 0x228]
mov qword [rsp + 0x100], rax
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x100]
call fcn.1802e7230
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
lea rdx, str.A0206
mov rcx, qword [rsp + 0x418]
call fcn.1802e85e0
nop
mov rdx, qword [rsp + 0x110]
mov rcx, rax
call fcn.1802e7600
mov edx, 0x30
lea rcx, [rsp + 0x378]
call fcn.1800d9280
lea rcx, [rsp + 0x378]
call fcn.180291130
nop
mov rax, qword [rsp + 0x410]
mov rdx, rax
lea rcx, [rsp + 0x378]
call fcn.180291290
mov rax, qword [rsp + 0x410]
movzx edx, byte [rax + 0x38]
lea rcx, [rsp + 0x378]
call fcn.180294990
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x378]
call fcn.1802912d0
nop
lea rcx, [rsp + 0x278]
call fcn.18008bdb0
movzx eax, al
test eax, eax
je 0x1802b60c4
lea rdx, str.000000000000
lea rcx, [rsp + 0x278]
call fcn.18007d530
lea rcx, [rsp + 0x358]
call fcn.1800b0560
nop
lea rcx, [rsp + 0x278]
call fcn.18008c680
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x278]
call fcn.18007d520
lea r8, [rsp + 0x358]
mov rcx, qword [rsp + 0x118]
mov rdx, rcx
mov rcx, rax
call fcn.1800e0a10
lea rax, [rsp + 0x250]
mov qword [rsp + 0x120], rax
lea rdx, [rsp + 0x358]
mov rcx, qword [rsp + 0x120]
call fcn.1802e7320
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
lea rdx, str.A0207
mov rcx, qword [rsp + 0x418]
call fcn.1802e85e0
nop
mov rdx, qword [rsp + 0x130]
mov rcx, rax
call fcn.1802e7600
nop
lea rcx, [rsp + 0x358]
call fcn.18008bea0
nop
lea rcx, [rsp + 0x278]
call fcn.18007d580
nop
lea rcx, [rsp + 0x378]
call fcn.180291200
nop
lea rcx, [rsp + 0x2d8]
call fcn.18008bea0
nop
lea rcx, [rsp + 0x2f8]
call fcn.18008bea0
nop
lea rcx, [rsp + 0x318]
call fcn.18008bea0
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.18042cdf0
add rsp, 0x400
pop rdi
ret