Function at 0x180174430
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x180], 0
je 0x180174486
cmp qword [rsp + 0x188], 0
je 0x180174486
cmp qword [rsp + 0x190], 0
jne 0x18017448d
xor al, al
jmp 0x1801747ef
lea rcx, [rsp + 0x100]
call fcn.180037a00
nop
mov rax, qword [rsp + 0x180]
lea rcx, str.ExcpErr
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x1801744c3
add rax, 2
test dx, dx
jne 0x1801744ad
xor eax, eax
jmp 0x1801744c8
sbb eax, eax
or eax, 1
test eax, eax
je 0x180174538
mov rax, qword [rsp + 0x180]
lea rcx, str.FeatErr
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x1801744f4
add rax, 2
test dx, dx
jne 0x1801744de
xor eax, eax
jmp 0x1801744f9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x18017452e
mov rax, qword [rsp + 0x188]
lea rcx, [0x18037f3a8]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x180174525
add rax, 2
test dx, dx
jne 0x18017450f
xor eax, eax
jmp 0x18017452a
sbb eax, eax
or eax, 1
test eax, eax
je 0x180174538
mov dword [rsp + 0x64], 0
jmp 0x180174540
mov dword [rsp + 0x64], 1
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x60], al
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x180174757
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov dword [rsp + 0x120], 0x40
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0xf0], 0
call fcn.1801826f0
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0xf8]
mov rcx, rax
call fcn.180182b20
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x68], 1
xor edx, edx
mov rax, qword [rsp + 0xf0]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov qword [rsp + 0x70], rax
xor edx, edx
mov rax, qword [rsp + 0xf8]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov qword [rsp + 0x78], rax
xor edx, edx
mov rax, qword [rsp + 0x150]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov qword [rsp + 0x80], rax
xor edx, edx
mov rax, qword [rsp + 0x148]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov qword [rsp + 0x88], rax
xor edx, edx
mov rax, qword [rsp + 0x140]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov qword [rsp + 0x90], rax
xor edx, edx
mov rax, qword [rsp + 0x138]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov qword [rsp + 0x98], rax
xor edx, edx
mov rax, qword [rsp + 0x130]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov qword [rsp + 0xa0], rax
xor edx, edx
mov rax, qword [rsp + 0x128]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x190]
lea rdx, [0x180386df0]
lea rcx, [rsp + 0x100]
call fcn.1801dba60
jmp 0x18017476c
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0x100]
call fcn.180033910
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0xd0]
call fcn.180033860
nop
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0xb0]
call fcn.180033860
nop
call fcn.1801730a0
lea r9, [rsp + 0x100]
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.180173480
mov byte [rsp + 0x61], al
lea rcx, [rsp + 0xb0]
call fcn.180033840
nop
lea rcx, [rsp + 0xd0]
call fcn.180033840
nop
lea rcx, [rsp + 0x100]
call fcn.180033840
movzx eax, byte [rsp + 0x61]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1802994c0
add rsp, 0x170
pop rdi
ret