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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x220], rbx
mov rax, qword [0x180106010]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r13, rdx
mov qword [rsp + 0x60], rcx
lea rcx, [rbp - 0x28]
call fcn.18000c300
xor esi, esi
mov qword [rbp - 0x18], rsi
mov r15d, 0xf
mov qword [rbp - 0x10], r15
mov byte [rbp - 0x28], sil
xor eax, eax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rax
mov dword [rbp + 0x50], 0x40
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1800316e4
mov rbx, qword [rbp + 0x58]
shr rbx, 0x14
lea rcx, [rsp + 0x70]
call fcn.180005bfc
nop
mov r8d, ebx
lea rdx, [0x1800d3190]
lea rcx, [rsp + 0x70]
call fcn.180055100
lea rcx, [rsp + 0x70]
call fcn.180006090
mov rbx, rax
lea rcx, [rsp + 0x70]
call fcn.180005be4
mov rcx, rax
lea r8, [rbp - 0x28]
mov rdx, rbx
call fcn.1800578d0
nop
lea rcx, [rsp + 0x70]
call fcn.180005bf4
cmp qword [rbp - 0x18], rsi
je 0x1800316e0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x38], 4
or dword [rsp + 0x38], 0x100
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.180006090
mov rdx, rax
mov rcx, r8
call fcn.1800838b0
mov qword [rsp + 0x30], rax
lea r8, [0x1800d3a2d]
lea rdx, str.A0201
mov rcx, r13
call fcn.180084a50
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1800842e0
mov r15, qword [rbp - 0x10]
lea rdx, str.User32.dll
lea rcx, [rsp + 0x30]
call fcn.180005ef8
nop
call fcn.18005e290
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.18005e330
mov r12, rax
lea rcx, [rsp + 0x30]
call fcn.180005bf4
mov rdi, rsi
test r12, r12
je 0x180031730
lea rdx, str.GetSystemMetrics
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rcx, [rbp - 0x48]
call fcn.18000c300
mov qword [rbp - 0x38], rsi
mov r14d, 0xf
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x48], 0
test rdi, rdi
je 0x18003182a
xor ecx, ecx
call rdi
mov ebx, eax
test eax, eax
jle 0x18003182a
lea rcx, [rsp + 0x70]
call fcn.180005bfc
nop
mov r8d, ebx
lea rdx, [0x1800d3a70]
lea rcx, [rsp + 0x70]
call fcn.180055100
lea rcx, [rsp + 0x70]
call fcn.180006090
mov rbx, rax
lea rcx, [rsp + 0x70]
call fcn.180005be4
mov rcx, rax
lea r8, [rbp - 0x48]
mov rdx, rbx
call fcn.1800578d0
nop
lea rcx, [rsp + 0x70]
call fcn.180005bf4
cmp qword [rbp - 0x38], 0
je 0x180031826
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x78], 4
or dword [rsp + 0x78], 0x100
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae r8, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.180006090
mov rdx, rax
mov rcx, r8
call fcn.1800838b0
mov qword [rsp + 0x70], rax
lea r8, [0x1800d3a6d]
lea rdx, str.A0202
mov rcx, r13
call fcn.180084a50
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.1800842e0
mov r14, qword [rbp - 0x30]
lea rcx, [rbp - 0x68]
call fcn.18000c300
mov qword [rbp - 0x58], rsi
mov esi, 0xf
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x68], 0
test rdi, rdi
je 0x180031928
lea ecx, [rsi - 0xe]
call rdi
mov ebx, eax
test eax, eax
jle 0x180031928
lea rcx, [rsp + 0x70]
call fcn.180005bfc
nop
mov r8d, ebx
lea rdx, [0x1800d3a70]
lea rcx, [rsp + 0x70]
call fcn.180055100
lea rcx, [rsp + 0x70]
call fcn.180006090
mov rbx, rax
lea rcx, [rsp + 0x70]
call fcn.180005be4
mov rcx, rax
lea r8, [rbp - 0x68]
mov rdx, rbx
call fcn.1800578d0
nop
lea rcx, [rsp + 0x70]
call fcn.180005bf4
cmp qword [rbp - 0x58], 0
je 0x180031924
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x78], 4
or dword [rsp + 0x78], 0x100
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 0
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae r8, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.180006090
mov rdx, rax
mov rcx, r8
call fcn.1800838b0
mov qword [rsp + 0x70], rax
lea r8, [0x1800d3a85]
lea rdx, str.A0203
mov rcx, r13
call fcn.180084a50
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.1800842e0
mov rsi, qword [rbp - 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov byte [rsp + 0x78], 2
and dword [rsp + 0x78], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 0
mov eax, dword [rbp + 0xb0]
mov qword [rsp + 0x70], rax
lea r8, [0x1800d3a7d]
lea rdx, str.A0204
mov rcx, r13
call fcn.180084a50
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.1800842e0
lea rdx, [0x1800d3a94]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, [0x1800d3a88]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
xor edi, edi
lea rcx, str.Gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
test rax, rax
je 0x180031a08
lea rdx, str.GetDeviceCaps
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
xor eax, eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x20], eax
test rdi, rdi
je 0x180031a54
test rbx, rbx
je 0x180031a54
cmp qword [rsp + 0x28], rax
je 0x180031a54
xor ecx, ecx
call rbx
mov rbx, rax
test rax, rax
je 0x180031a58
mov edx, 0x58
mov rcx, rax
call rdi
mov dword [rsp + 0x58], eax
mov edx, 0x5a
mov rcx, rbx
call rdi
mov edi, eax
mov rdx, rbx
xor ecx, ecx
call qword [rsp + 0x28]
jmp 0x180031a5c
mov edi, eax
jmp 0x180031a5c
mov edi, dword [rsp + 0x20]
test r12, r12
je 0x180031a6a
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x38], 2
and dword [rsp + 0x38], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea r8, [0x1800d3ad1]
lea rdx, str.A0205
mov rcx, r13
call fcn.180084a50
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1800842e0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x38], 2
and dword [rsp + 0x38], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov eax, edi
mov qword [rsp + 0x30], rax
lea r8, [0x1800d3ac9]
lea rdx, str.A0206
mov rcx, r13
call fcn.180084a50
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1800842e0
xor eax, eax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
lea rcx, [rbp - 8]
call fcn.180016400
nop
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.180005c20
lea rcx, [rbp + 8]
cmp rcx, rax
je 0x180031b69
mov rcx, rbx
call fcn.180005c20
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x180031b5c
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp + 8]
call fcn.180006098
movzx ecx, byte [rbx + 0x38]
mov rax, qword [rbp - 8]
mov byte [rax + 0x79], cl
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 8]
call fcn.180016560
nop
lea rcx, [rbp + 0x28]
call fcn.180005e24
test al, al
je 0x180031bae
lea rcx, str.000000000000
call fcn.180006330
mov r8, rax
lea rdx, str.000000000000
lea rcx, [rbp + 0x28]
call fcn.180006098
lea rcx, [rsp + 0x70]
call fcn.18000c300
movdqa xmm0, xmmword [0x1800d8b20]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
lea rcx, [rbp + 0x28]
call fcn.180006090
mov rbx, rax
lea rcx, [rbp + 0x28]
call fcn.180005be4
mov rcx, rax
lea r8, [rsp + 0x70]
mov rdx, rbx
call fcn.1800578d0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x38], 4
or dword [rsp + 0x38], 0x100
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.180006090
mov rdx, rax
mov rcx, r8
call fcn.1800838b0
mov qword [rsp + 0x30], rax
lea r8, [0x1800d3ae9]
lea rdx, str.A0207
mov rcx, r13
call fcn.180084a50
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1800842e0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x180031c9e
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031c99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180031e1f
call fcn.1800862a4
movdqa xmm0, xmmword [0x1800d8b20]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
lea rcx, [rbp + 0x28]
call fcn.180005bf4
nop
mov rdi, qword [rbp - 8]
test rdi, rdi
je 0x180031d11
mov qword [rsp + 0x60], rdi
lea rbx, [rdi + 0x18]
mov qword [rsp + 0x28], rbx
lea rcx, [rbx + 0x48]
call fcn.180005dfc
nop
lea rcx, [rbx + 0x30]
call fcn.18005f830
nop
lea rcx, [rbx + 0x18]
call fcn.18005f8a0
nop
mov rcx, rbx
call fcn.18005f970
nop
mov rcx, rdi
call fcn.18005fa00
mov edx, 0x80
mov rcx, rdi
call fcn.1800862a4
mov qword [rbp - 8], r12
lea rcx, [rbp + 8]
call fcn.180005bf4
nop
cmp rsi, 0x10
jb 0x180031d53
lea rdx, [rsi + 1]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031d4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180031e25
call fcn.1800862a4
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
cmp r14, 0x10
jb 0x180031d9b
lea rdx, [r14 + 1]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031d96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180031e2b
call fcn.1800862a4
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], 0
cmp r15, 0x10
jb 0x180031ddf
lea rdx, [r15 + 1]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031dda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180031e19
call fcn.1800862a4
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.180086280
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18008ccdc
nop
call fcn.18008ccdc
nop
call fcn.18008ccdc
nop
call fcn.18008ccdc
int3