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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x44f6c0]
xor eax, ebp
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x164], ecx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
push str.RtlGetNtVersionNumbers
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
call dword [ebp - 0x14]
cmp dword [ebp - 4], 6
jne 0x40fd16
cmp dword [ebp - 8], 3
jne 0x40fd16
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], 0x447eac
jmp case.0x40fd98.3
cmp dword [ebp - 4], 0xa
jne 0x40fd34
cmp dword [ebp - 8], 0
jne 0x40fd34
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], 0x447ec4
jmp case.0x40fd98.3
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x160], 0x11c
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.unknown_OperatingSystem.
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x40fd98.3
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
sub ecx, 4
mov dword [ebp - 0x168], ecx
cmp dword [ebp - 0x168], 6
ja case.0x40fd98.3
mov edx, dword [ebp - 0x168]
jmp dword [edx*4 + 0x40ffc8]
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x40fdc8
cmp dword [ebp - 0x16c], 0xa
je 0x40fdf8
cmp dword [ebp - 0x16c], 0x5a
je 0x40fe07
jmp 0x40fe14
cmp dword [ebp - 0x150], 2
jne 0x40fde0
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_NT_4.0
jmp 0x40fdf6
cmp dword [ebp - 0x150], 1
jne 0x40fdf6
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_95
jmp 0x40fe14
mov eax, dword [ebp - 0x164]
mov dword [eax + 0xc], str.Microsoft_Windows_98
jmp 0x40fe14
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_Me
jmp case.0x40fd98.3
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x170], edx
cmp dword [ebp - 0x170], 0
je 0x40fe42
cmp dword [ebp - 0x170], 1
je 0x40fe51
cmp dword [ebp - 0x170], 2
je 0x40fe60
jmp 0x40feb5
mov eax, dword [ebp - 0x164]
mov dword [eax + 0xc], str.Microsoft_Windows_2000
jmp 0x40feb5
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_XP
jmp 0x40feb5
movzx edx, byte [ebp - 0x46]
cmp edx, 1
jne 0x40fe81
movzx eax, word [ebp - 0x38]
cmp eax, 9
jne 0x40fe81
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x40feb5
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x40fe9c
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2003
jmp 0x40feb5
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40feb5
mov eax, dword [ebp - 0x164]
mov dword [eax + 0xc], str.Microsoft_Windows_Server_2003_R2
jmp case.0x40fd98.3
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x174], ecx
cmp dword [ebp - 0x174], 3
ja case.default.0x40fed9
mov edx, dword [ebp - 0x174]
jmp dword [edx*4 + 0x40ffe4]
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x40fef8
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_Vista
jmp 0x40ff05
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2008
jmp case.default.0x40fed9
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x40ff1f
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_7
jmp 0x40ff2c
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2008_R2
jmp case.default.0x40fed9
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x40ff46
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_8
jmp 0x40ff53
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2012
jmp case.default.0x40fed9
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x40ff6d
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_8.1
jmp case.default.0x40fed9
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2012_R2
jmp case.0x40fd98.3
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x40ff93
jmp case.0x40fd98.3
movzx ecx, byte [ebp - 0x46]
cmp ecx, 1
jne 0x40ffab
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_10
jmp case.0x40fd98.3
mov eax, dword [ebp - 0x164]
mov dword [eax + 0xc], str.Microsoft_Windows_Server_2016_Technical_Preview
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.004286dd
mov esp, ebp
pop ebp
ret