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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x446654]
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 0x40dee6
cmp dword [ebp - 8], 3
jne 0x40dee6
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], 0x43f688
jmp case.0x40df68.3
cmp dword [ebp - 4], 0xa
jne 0x40df04
cmp dword [ebp - 8], 0
jne 0x40df04
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], 0x43f6a0
jmp case.0x40df68.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.0x40df68.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.0x40df68.3
mov edx, dword [ebp - 0x168]
jmp dword [edx*4 + 0x40e198]
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x40df98
cmp dword [ebp - 0x16c], 0xa
je 0x40dfc8
cmp dword [ebp - 0x16c], 0x5a
je 0x40dfd7
jmp 0x40dfe4
cmp dword [ebp - 0x150], 2
jne 0x40dfb0
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_NT_4.0
jmp 0x40dfc6
cmp dword [ebp - 0x150], 1
jne 0x40dfc6
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_95
jmp 0x40dfe4
mov eax, dword [ebp - 0x164]
mov dword [eax + 0xc], str.Microsoft_Windows_98
jmp 0x40dfe4
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_Me
jmp case.0x40df68.3
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x170], edx
cmp dword [ebp - 0x170], 0
je 0x40e012
cmp dword [ebp - 0x170], 1
je 0x40e021
cmp dword [ebp - 0x170], 2
je 0x40e030
jmp 0x40e085
mov eax, dword [ebp - 0x164]
mov dword [eax + 0xc], str.Microsoft_Windows_2000
jmp 0x40e085
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_XP
jmp 0x40e085
movzx edx, byte [ebp - 0x46]
cmp edx, 1
jne 0x40e051
movzx eax, word [ebp - 0x38]
cmp eax, 9
jne 0x40e051
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x40e085
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x40e06c
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2003
jmp 0x40e085
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40e085
mov eax, dword [ebp - 0x164]
mov dword [eax + 0xc], str.Microsoft_Windows_Server_2003_R2
jmp case.0x40df68.3
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x174], ecx
cmp dword [ebp - 0x174], 3
ja case.default.0x40e0a9
mov edx, dword [ebp - 0x174]
jmp dword [edx*4 + 0x40e1b4]
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x40e0c8
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_Vista
jmp 0x40e0d5
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2008
jmp case.default.0x40e0a9
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x40e0ef
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_7
jmp 0x40e0fc
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2008_R2
jmp case.default.0x40e0a9
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x40e116
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_8
jmp 0x40e123
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2012
jmp case.default.0x40e0a9
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x40e13d
mov ecx, dword [ebp - 0x164]
mov dword [ecx + 0xc], str.Microsoft_Windows_8.1
jmp case.default.0x40e0a9
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_Server_2012_R2
jmp case.0x40df68.3
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x178], eax
cmp dword [ebp - 0x178], 0
je 0x40e163
jmp case.0x40df68.3
movzx ecx, byte [ebp - 0x46]
cmp ecx, 1
jne 0x40e17b
mov edx, dword [ebp - 0x164]
mov dword [edx + 0xc], str.Microsoft_Windows_10
jmp case.0x40df68.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.00425d22
mov esp, ebp
pop ebp
ret