Function at 0x40ad30
Capabilities:
Check os version
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
call fcn.00409a50
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xbc]
push str._System_Info__r_n
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0xbc], 0x94
call fcn.00409c00
add esp, 8
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40af87
mov cl, byte [0x439068]
xor eax, eax
mov byte [ebp - 0x1bc], cl
mov ecx, 0x3f
lea edi, [ebp - 0x1bb]
mov esi, 0x439068
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0xac]
xor ebx, ebx
cmp eax, 2
mov dword [ebp - 4], esi
jne 0x40ae5a
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb4]
cmp edx, 4
jne 0x40add7
test ecx, ecx
jne 0x40adf6
mov dword [ebp - 4], str.Windows_NT_4.0
jmp 0x40adf6
cmp edx, 5
jne 0x40adf6
mov eax, ecx
sub eax, 0
je 0x40adef
dec eax
jne 0x40adf6
mov dword [ebp - 4], str.Windows_XP
jmp 0x40adf6
mov dword [ebp - 4], str.Windows_2000
mov eax, dword [ebp - 0xb0]
push eax
push ecx
push edx
lea ecx, [ebp - 0x1bc]
push str._lu._lu._lu
push ecx
call dword [sym.imp.PNCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0xa8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40ae42
test cl, cl
je 0x40ae3e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40ae42
add eax, 2
add esi, 2
test cl, cl
jne 0x40ae1a
xor eax, eax
jmp 0x40ae47
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40af57
lea ebx, [ebp - 0xa8]
jmp 0x40af51
cmp eax, 1
jne 0x40af57
mov eax, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xb4]
cmp eax, 4
jne 0x40af20
test edi, edi
je 0x40aedc
cmp edi, 0xa
je 0x40ae96
cmp edi, 0x5a
jne 0x40af20
mov dword [ebp - 4], str.Windows_Me
jmp 0x40af20
mov dword [ebp - 4], str.Windows_98
mov esi, 0x411600
lea eax, [ebp - 0xa8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40aecc
test cl, cl
je 0x40aec8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40aecc
add eax, 2
add esi, 2
test cl, cl
jne 0x40aea8
xor eax, eax
jmp 0x40aed1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40af20
mov ebx, str.Second_Edition
jmp 0x40af20
mov dword [ebp - 4], str.Windows_95
mov esi, 0x4115e0
lea eax, [ebp - 0xa8]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40af12
test cl, cl
je 0x40af0e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40af12
add eax, 2
add esi, 2
test cl, cl
jne 0x40aeee
xor eax, eax
jmp 0x40af17
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40af20
mov ebx, str.OSR2
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xb8]
lea eax, [ebp - 0xa8]
and ecx, 0xffff
push eax
push ecx
push edi
push edx
lea eax, [ebp - 0x1bc]
push str._lu._lu._hu__s
push eax
call dword [sym.imp.PNCRT.dll_sprintf]
add esp, 0x18
test ebx, ebx
mov eax, ebx
jne 0x40af5c
mov eax, 0x439068
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 8]
push eax
push ecx
push str.Operating_System:__s__s_r_n
push esi
call fcn.00409c00
add esp, 0x10
lea edx, [ebp - 0x1bc]
push edx
push str.Version:__s_r_n
push esi
call fcn.00409c00
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x40afcf
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push esi
call edi
push 0xa
push esi
mov ebx, eax
call edi
push 0xc
push esi
mov dword [ebp - 4], eax
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
push str.Primary_Monitor_Resolution:__dx_d__d_Bit_Color_r_n
push ecx
call fcn.00409c00
add esp, 0x14
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x28]
lea edx, [ebp - 0x28]
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 8]
push eax
push str.Total_Physical_RAM:__lu_Bytes_r_n
push esi
call fcn.00409c00
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push ecx
push str.Free_Physical_RAM:__lu_Bytes_r_n
push esi
call fcn.00409c00
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
push str.Pagefile_Commit_Limit:__lu_Bytes_r_n
push esi
call fcn.00409c00
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
push str.Pagefile_Commit_Available:__lu_Bytes_r_n
push esi
call fcn.00409c00
add esp, 0xc
push str.Task_List:_r_n
push esi
call fcn.00409c00
add esp, 8
mov ecx, esi
push 0x40aac0
call fcn.0040a710
push 0x411350
push esi
call fcn.00409c00
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret