Function at 0x1800a6420
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1802247b8]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, rdx
xor r12d, r12d
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], r12
mov byte [rbp - 0x80], r12b
xor eax, eax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x10], 0x40
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1800a652d
mov r8, qword [rbp + 0x18]
shr r8, 0x14
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
lea rdx, [0x1801aaa60]
lea rcx, [rsp + 0x58]
call fcn.180022b70
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
lea r8, [rbp - 0x80]
mov rdx, qword [rsp + 0x68]
call fcn.18004de80
nop
cmp qword [rsp + 0x70], 8
jb 0x1800a6519
mov rcx, qword [rsp + 0x58]
call fcn.180139b7c
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
cmp qword [rbp - 0x70], 0
je 0x1800a6597
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x28], 4
or dword [rsp + 0x28], 0x100
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
mov edx, dword [rbp - 0x70]
call fcn.1800ea1d0
mov qword [rsp + 0x20], rax
lea r8, [0x1801ae66d]
lea rdx, str.A0201
mov rcx, r14
call fcn.1800edae0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800eb9b0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
mov r8d, 0xa
lea rdx, [0x1801aaf68]
lea rcx, [rsp + 0x20]
call fcn.180005920
nop
mov eax, dword [0x18034db90]
test al, 1
jne 0x1800a65fb
or eax, 1
mov dword [0x18034db90], eax
xor eax, eax
mov qword [0x18034db88], rax
call fcn.180064890
lea rcx, [0x180197b50]
call fcn.180139aec
nop
lea rdx, [rsp + 0x20]
lea rcx, [0x18034db88]
call fcn.180064a80
mov rdi, rax
cmp qword [rsp + 0x38], 8
jb 0x1800a6621
mov rcx, qword [rsp + 0x20]
call fcn.180139b7c
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r12
mov word [rsp + 0x20], r12w
mov rbx, r12
test rdi, rdi
je 0x1800a6650
lea rdx, str.GetSystemMetrics
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], r12
mov byte [rbp - 0x40], 0
test rbx, rbx
je 0x1800a66f1
xor ecx, ecx
call rbx
test eax, eax
jle 0x1800a66f1
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8d, eax
lea rdx, [0x1801aca30]
lea rcx, [rsp + 0x58]
call fcn.180022b70
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
lea r8, [rbp - 0x40]
mov rdx, qword [rsp + 0x68]
call fcn.18004de80
nop
cmp qword [rsp + 0x70], 8
jb 0x1800a66dd
mov rcx, qword [rsp + 0x58]
call fcn.180139b7c
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
cmp qword [rbp - 0x30], 0
je 0x1800a675b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x60], 4
or dword [rsp + 0x60], 0x100
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
mov edx, dword [rbp - 0x30]
call fcn.1800ea1d0
mov qword [rsp + 0x58], rax
lea r8, [0x1801ae675]
lea rdx, str.A0202
mov rcx, r14
call fcn.1800edae0
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.1800eb9b0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x48], 0xf
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x60], 0
test rbx, rbx
je 0x1800a67ff
mov ecx, 1
call rbx
test eax, eax
jle 0x1800a67ff
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8d, eax
lea rdx, [0x1801aca30]
lea rcx, [rsp + 0x58]
call fcn.180022b70
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
lea r8, [rbp - 0x60]
mov rdx, qword [rsp + 0x68]
call fcn.18004de80
nop
cmp qword [rsp + 0x70], 8
jb 0x1800a67eb
mov rcx, qword [rsp + 0x58]
call fcn.180139b7c
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
cmp qword [rbp - 0x50], 0
je 0x1800a6869
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x60], 4
or dword [rsp + 0x60], 0x100
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
mov edx, dword [rbp - 0x50]
call fcn.1800ea1d0
mov qword [rsp + 0x58], rax
lea r8, [0x1801ae65d]
lea rdx, str.A0203
mov rcx, r14
call fcn.1800edae0
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.1800eb9b0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov dword [rbp - 0x20], r12d
xor eax, eax
mov qword [rbp - 0x1c], rax
mov qword [rbp - 0x14], rax
mov qword [rbp - 0xc], rax
mov qword [rbp - 4], rax
mov qword [rbp + 4], rax
mov dword [rbp + 0xc], eax
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov byte [rsp + 0x60], 2
and dword [rsp + 0x60], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov eax, dword [rbp]
mov qword [rsp + 0x58], rax
lea r8, [0x1801ae665]
lea rdx, str.A0204
mov rcx, r14
call fcn.1800edae0
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.1800eb9b0
lea rdx, str.GetDC
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.ReleaseDC
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
mov rdi, r12
lea rcx, str.Gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800a6931
lea rdx, str.GetDeviceCaps
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov r15d, r12d
test rdi, rdi
je 0x1800a6971
test rbx, rbx
je 0x1800a6971
test r13, r13
je 0x1800a6971
xor ecx, ecx
call rbx
mov rbx, rax
test rax, rax
je 0x1800a6971
mov edx, 0x58
mov rcx, rax
call rdi
mov r15d, eax
mov edx, 0x5a
mov rcx, rbx
call rdi
mov r12d, eax
mov rdx, rbx
xor ecx, ecx
call r13
test rsi, rsi
je 0x1800a697f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x28], 2
and dword [rsp + 0x28], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov eax, r15d
mov qword [rsp + 0x20], rax
lea r8, [0x1801ae6c9]
lea rdx, str.A0205
mov rcx, r14
call fcn.1800edae0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800eb9b0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x28], 2
and dword [rsp + 0x28], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov eax, r12d
mov qword [rsp + 0x20], rax
lea r8, [0x1801ae6d1]
lea rdx, str.A0206
mov rcx, r14
call fcn.1800edae0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.1800eb9b0
nop
cmp qword [rbp - 0x48], 0x10
jb 0x1800a6a32
mov rcx, qword [rbp - 0x60]
call fcn.180139b7c
mov qword [rbp - 0x48], 0xf
mov qword [rbp - 0x50], rbx
mov byte [rbp - 0x60], 0
cmp qword [rbp - 0x28], 0x10
jb 0x1800a6a52
mov rcx, qword [rbp - 0x40]
call fcn.180139b7c
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rbx
mov byte [rbp - 0x40], 0
cmp qword [rbp - 0x68], 0x10
jb 0x1800a6a72
mov rcx, qword [rbp - 0x80]
call fcn.180139b7c
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], rbx
mov byte [rbp - 0x80], 0
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180139310
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret