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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590317
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x5f4e24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x1d0], esi
mov dword [ebp - 0x1cc], 1
call fcn.0043096b
mov ecx, eax
test ecx, ecx
je 0x408d46
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x110
lea eax, [ebp - 0x1bc]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x1cc], 1
call fcn.00565b20
add esp, 0xc
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlGetVersion
push eax
call edi
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1c0], 0x114
push ecx
call eax
cmp dword [ebp - 0x1bc], 0xa
jne 0x408b3b
cmp dword [ebp - 0x1b8], 0
jne 0x408b3b
cmp dword [ebp - 0x1b4], 0x55f0
jb 0x408b3b
push 0x14
push str.Microsoft_Windows_11
jmp 0x408d22
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RtlGetNtVersionNumbers
push eax
call edi
lea ecx, [ebp - 0x1d4]
push ecx
lea ecx, [ebp - 0x1c4]
push ecx
lea ecx, [ebp - 0x1c8]
push ecx
call eax
mov eax, dword [ebp - 0x1c8]
cmp eax, 6
jne 0x408b85
cmp dword [ebp - 0x1c4], 3
jne 0x408b9f
push 0x15
push str.Microsoft_Windows_8.1
jmp 0x408d22
cmp eax, 0xa
jne 0x408b9f
cmp dword [ebp - 0x1c4], 0
jne 0x408b9f
push 0x14
push str.Microsoft_Windows_10
jmp 0x408d22
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x408d29
mov eax, dword [ebp - 0xa8]
sub eax, 4
je 0x408cdc
sub eax, 1
je 0x408c6d
sub eax, 1
je 0x408bf4
push 0xc
push 0x5d4c40
jmp 0x408d22
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x408c4d
sub eax, 1
je 0x408c2d
sub eax, 1
jne 0x408d29
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x408c21
push 0x13
push str.Microsoft_Windows_8
jmp 0x408d24
push 0x1d
push str.Microsoft_Windows_Server_2012
jmp 0x408d24
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x408c41
push 0x13
push str.Microsoft_Windows_7
jmp 0x408d24
push 0x20
push str.Microsoft_Windows_Server_2008_R2
jmp 0x408d24
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x408c61
push 0x17
push str.Microsoft_Windows_Vista
jmp 0x408d24
push 0x1d
push str.Microsoft_Windows_Server_2008
jmp 0x408d24
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x408cd3
sub eax, 1
je 0x408cca
sub eax, 1
jne 0x408d29
cmp byte [ebp - 0x12], 1
jne 0x408ca2
cmp word [ebp - 0x1f8], 9
jne 0x408ca2
push 0x2d
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x408d22
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x408cb9
push 0x1d
push str.Microsoft_Windows_Server_2003
jmp 0x408d22
push 0x59
call edi
test eax, eax
je 0x408d29
push 0x20
push str.Microsoft_Windows_Server_2003_R2
jmp 0x408d22
push 0x14
push str.Microsoft_Windows_XP
jmp 0x408d22
push 0x16
push str.Microsoft_Windows_2000
jmp 0x408d22
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x408d02
cmp eax, 0xa
je 0x408cf9
cmp eax, 0x5a
jne 0x408d29
push 0x14
push str.Microsoft_Windows_Me
jmp 0x408d22
push 0x14
push str.Microsoft_Windows_98
jmp 0x408d22
mov eax, dword [ebp - 0x9c]
cmp eax, 2
jne 0x408d16
push 0x18
push str.Microsoft_Windows_NT_4.0
jmp 0x408d22
cmp eax, 1
jne 0x408d29
push 0x14
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.004041d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005638db
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402210
int3