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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c8f7
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x5f0e24]
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.0042f49d
mov ecx, eax
test ecx, ecx
je 0x408e26
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.005640c0
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 0x408c1b
cmp dword [ebp - 0x1b8], 0
jne 0x408c1b
cmp dword [ebp - 0x1b4], 0x55f0
jb 0x408c1b
push 0x14
push str.Microsoft_Windows_11
jmp 0x408e02
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 0x408c65
cmp dword [ebp - 0x1c4], 3
jne 0x408c7f
push 0x15
push str.Microsoft_Windows_8.1
jmp 0x408e02
cmp eax, 0xa
jne 0x408c7f
cmp dword [ebp - 0x1c4], 0
jne 0x408c7f
push 0x14
push str.Microsoft_Windows_10
jmp 0x408e02
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 0x408e09
mov eax, dword [ebp - 0xa8]
sub eax, 4
je 0x408dbc
sub eax, 1
je 0x408d4d
sub eax, 1
je 0x408cd4
push 0xc
push 0x5d0b84
jmp 0x408e02
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x408d2d
sub eax, 1
je 0x408d0d
sub eax, 1
jne 0x408e09
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x408d01
push 0x13
push str.Microsoft_Windows_8
jmp 0x408e04
push 0x1d
push str.Microsoft_Windows_Server_2012
jmp 0x408e04
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x408d21
push 0x13
push str.Microsoft_Windows_7
jmp 0x408e04
push 0x20
push str.Microsoft_Windows_Server_2008_R2
jmp 0x408e04
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x408d41
push 0x17
push str.Microsoft_Windows_Vista
jmp 0x408e04
push 0x1d
push str.Microsoft_Windows_Server_2008
jmp 0x408e04
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x408db3
sub eax, 1
je 0x408daa
sub eax, 1
jne 0x408e09
cmp byte [ebp - 0x12], 1
jne 0x408d82
cmp word [ebp - 0x1f8], 9
jne 0x408d82
push 0x2d
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x408e02
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x408d99
push 0x1d
push str.Microsoft_Windows_Server_2003
jmp 0x408e02
push 0x59
call edi
test eax, eax
je 0x408e09
push 0x20
push str.Microsoft_Windows_Server_2003_R2
jmp 0x408e02
push 0x14
push str.Microsoft_Windows_XP
jmp 0x408e02
push 0x16
push str.Microsoft_Windows_2000
jmp 0x408e02
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x408de2
cmp eax, 0xa
je 0x408dd9
cmp eax, 0x5a
jne 0x408e09
push 0x14
push str.Microsoft_Windows_Me
jmp 0x408e02
push 0x14
push str.Microsoft_Windows_98
jmp 0x408e02
mov eax, dword [ebp - 0x9c]
cmp eax, 2
jne 0x408df6
push 0x18
push str.Microsoft_Windows_NT_4.0
jmp 0x408e02
cmp eax, 1
jne 0x408e09
push 0x14
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.00404280
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.00561e7d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402320
int3