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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x4116b8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a0], esi
call fcn.0040a530
xor eax, eax
mov ecx, 0x25
lea edi, [ebp - 0x98]
push str._System_Info__r_n
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x98], 0x94
call fcn.004093d0
add esp, 8
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40ab0c
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x198], bl
mov ecx, 0x3f
lea edi, [ebp - 0x197]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x88]
cmp eax, 2
mov dword [ebp - 0x19c], 0x40e79f
jne 0x40aa2b
mov edx, dword [ebp - 0x94]
cmp edx, 4
mov ecx, dword [ebp - 0x90]
jne 0x40a9c1
test ecx, ecx
jne 0x40a9e6
mov dword [ebp - 0x19c], str.Windows_NT_4.0
jmp 0x40a9e6
cmp edx, 5
jne 0x40a9e6
mov eax, ecx
sub eax, 0
je 0x40a9dc
dec eax
jne 0x40a9e6
mov dword [ebp - 0x19c], str.Windows_XP
jmp 0x40a9e6
mov dword [ebp - 0x19c], str.Windows_2000
mov eax, dword [ebp - 0x8c]
push eax
push ecx
push edx
lea ecx, [ebp - 0x198]
push str._lu._lu._lu
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x14
mov edi, 0x40e79f
lea esi, [ebp - 0x84]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40aad9
lea ebx, [ebp - 0x84]
mov eax, ebx
jmp 0x40aade
cmp eax, 1
jne 0x40aad9
mov eax, dword [ebp - 0x94]
mov ecx, 4
cmp eax, ecx
mov eax, dword [ebp - 0x90]
jne 0x40aaa5
test eax, eax
je 0x40aa85
cmp eax, 0xa
je 0x40aa63
cmp eax, 0x5a
jne 0x40aaa5
mov dword [ebp - 0x19c], str.Windows_Me
jmp 0x40aaa5
mov edi, 0x40fadc
lea esi, [ebp - 0x84]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [ebp - 0x19c], str.Windows_98
jne 0x40aaa5
mov ebx, str.Second_Edition
jmp 0x40aaa5
mov edi, 0x40fabc
lea esi, [ebp - 0x84]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [ebp - 0x19c], str.Windows_95
jne 0x40aaa5
mov ebx, str.OSR2
movzx edx, word [ebp - 0x8c]
lea ecx, [ebp - 0x84]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x198]
push str._lu._lu._hu__s
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x18
test ebx, ebx
je 0x40aad9
mov eax, ebx
jmp 0x40aade
mov eax, 0x40e79f
mov edx, dword [ebp - 0x19c]
mov esi, dword [ebp - 0x1a0]
push eax
push edx
push str.Operating_System:__s__s_r_n
push esi
call fcn.004093d0
lea eax, [ebp - 0x198]
push eax
push str.Version:__s_r_n
push esi
call fcn.004093d0
add esp, 0x1c
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x40ab5d
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 - 0x19c], eax
call edi
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ebp - 0x1a0]
push eax
push ecx
push ebx
push str.Primary_Monitor_Resolution:__dx_d__d_Bit_Color_r_n
push edx
call fcn.004093d0
add esp, 0x14
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], eax
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1a8], eax
push ecx
mov dword [ebp - 0x1a4], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 0x1b8]
mov esi, dword [ebp - 0x1a0]
push edx
push str.Total_Physical_RAM:__lu_Bytes_r_n
push esi
call fcn.004093d0
mov eax, dword [ebp - 0x1b4]
push eax
push str.Free_Physical_RAM:__lu_Bytes_r_n
push esi
call fcn.004093d0
mov ecx, dword [ebp - 0x1b0]
push ecx
push str.Pagefile_Commit_Limit:__lu_Bytes_r_n
push esi
call fcn.004093d0
mov edx, dword [ebp - 0x1ac]
push edx
push str.Pagefile_Commit_Available:__lu_Bytes_r_n
push esi
call fcn.004093d0
push str.Task_List:_r_n
push esi
call fcn.004093d0
add esp, 0x38
push 0x40a420
mov ecx, esi
call fcn.0040a020
push 0x40f820
push esi
call fcn.004093d0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.0040cbe2
mov esp, ebp
pop ebp
ret