Function at 0x408a50
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4d2b
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x50e5d4]
xor eax, ebp
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0xdc], 0x9c
lea ecx, [ebp - 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x408ced
lea ecx, [ebp - 0xe0]
call fcn.00403be0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xec], edx
cmp dword [ebp - 0xec], 4
je 0x408af7
cmp dword [ebp - 0xec], 5
je 0x408b7d
cmp dword [ebp - 0xec], 6
je 0x408c37
jmp 0x408cb8
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
je 0x408b20
cmp dword [ebp - 0xf0], 0xa
je 0x408b56
cmp dword [ebp - 0xf0], 0x5a
je 0x408b68
jmp 0x408b78
cmp dword [ebp - 0xcc], 2
jne 0x408b3b
push str.Microsoft_Windows_NT_4.0
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408b54
cmp dword [ebp - 0xcc], 1
jne 0x408b54
push str.Microsoft_Windows_95
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408b78
push str.Microsoft_Windows_98
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408b78
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408cc8
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xf4], ecx
cmp dword [ebp - 0xf4], 0
je 0x408ba9
cmp dword [ebp - 0xf4], 1
je 0x408bbb
cmp dword [ebp - 0xf4], 2
je 0x408bd4
jmp 0x408c32
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408c32
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0xe0]
call fcn.00401e60
mov dword [ebp - 0x10], 1
jmp 0x408c32
movzx edx, byte [ebp - 0x42]
cmp edx, 1
jne 0x408bf8
movzx eax, word [ebp - 0x34]
cmp eax, 9
jne 0x408bf8
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408c32
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x408c16
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408c32
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x408c32
push str.Microsoft_Windows_Server_2003_R2
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408cc8
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xf8], ecx
cmp dword [ebp - 0xf8], 0
je 0x408c57
cmp dword [ebp - 0xf8], 1
je 0x408c84
jmp 0x408cb6
movzx edx, byte [ebp - 0x42]
cmp edx, 1
jne 0x408c72
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408c82
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408cb6
movzx eax, byte [ebp - 0x42]
cmp eax, 1
jne 0x408ca6
mov dword [ebp - 0x10], 2
push str.Microsoft_Windows_7
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408cb6
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0xe0]
call fcn.00401e60
jmp 0x408cc8
push 0x4f8ad0
lea ecx, [ebp - 0xe0]
call fcn.00401e60
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.00426070
mov eax, dword [ebp - 0xe4]
jmp 0x408cf0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.004bee8a
mov esp, ebp
pop ebp
ret