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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ef87
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x5f3e24]
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.004301ed
mov ecx, eax
test ecx, ecx
je 0x409446
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.00564e00
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 0x40923b
cmp dword [ebp - 0x1b8], 0
jne 0x40923b
cmp dword [ebp - 0x1b4], 0x55f0
jb 0x40923b
push 0x14
push str.Microsoft_Windows_11
jmp 0x409422
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 0x409285
cmp dword [ebp - 0x1c4], 3
jne 0x40929f
push 0x15
push str.Microsoft_Windows_8.1
jmp 0x409422
cmp eax, 0xa
jne 0x40929f
cmp dword [ebp - 0x1c4], 0
jne 0x40929f
push 0x14
push str.Microsoft_Windows_10
jmp 0x409422
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 0x409429
mov eax, dword [ebp - 0xa8]
sub eax, 4
je 0x4093dc
sub eax, 1
je 0x40936d
sub eax, 1
je 0x4092f4
push 0xc
push 0x5d3e74
jmp 0x409422
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x40934d
sub eax, 1
je 0x40932d
sub eax, 1
jne 0x409429
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x409321
push 0x13
push str.Microsoft_Windows_8
jmp 0x409424
push 0x1d
push str.Microsoft_Windows_Server_2012
jmp 0x409424
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x409341
push 0x13
push str.Microsoft_Windows_7
jmp 0x409424
push 0x20
push str.Microsoft_Windows_Server_2008_R2
jmp 0x409424
cmp byte [ebp - 0x12], 1
mov ecx, esi
jne 0x409361
push 0x17
push str.Microsoft_Windows_Vista
jmp 0x409424
push 0x1d
push str.Microsoft_Windows_Server_2008
jmp 0x409424
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x4093d3
sub eax, 1
je 0x4093ca
sub eax, 1
jne 0x409429
cmp byte [ebp - 0x12], 1
jne 0x4093a2
cmp word [ebp - 0x1f8], 9
jne 0x4093a2
push 0x2d
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x409422
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x4093b9
push 0x1d
push str.Microsoft_Windows_Server_2003
jmp 0x409422
push 0x59
call edi
test eax, eax
je 0x409429
push 0x20
push str.Microsoft_Windows_Server_2003_R2
jmp 0x409422
push 0x14
push str.Microsoft_Windows_XP
jmp 0x409422
push 0x16
push str.Microsoft_Windows_2000
jmp 0x409422
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x409402
cmp eax, 0xa
je 0x4093f9
cmp eax, 0x5a
jne 0x409429
push 0x14
push str.Microsoft_Windows_Me
jmp 0x409422
push 0x14
push str.Microsoft_Windows_98
jmp 0x409422
mov eax, dword [ebp - 0x9c]
cmp eax, 2
jne 0x409416
push 0x18
push str.Microsoft_Windows_NT_4.0
jmp 0x409422
cmp eax, 1
jne 0x409429
push 0x14
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.004044f0
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.00562bba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402540
int3