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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aaf6
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x432110]
xor eax, ebp
mov dword [ebp - 0x48], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x108]
call fcn.00406340
mov dword [ebp - 4], 1
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
push str.RtlGetNtVersionNumbers
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [ebp - 0x20]
cmp dword [ebp - 0x10], 6
jne 0x4044cb
cmp dword [ebp - 0x14], 3
jne 0x4044cb
push str.Microsoft_Windows_8.1
mov ecx, dword [ebp + 8]
call fcn.00403130
mov ecx, dword [ebp - 0x10c]
or ecx, 1
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x108]
call fcn.004031b0
mov eax, dword [ebp + 8]
jmp 0x404781
cmp dword [ebp - 0x10], 0xa
jne 0x40450a
cmp dword [ebp - 0x14], 0
jne 0x40450a
push str.Microsoft_Windows_10
mov ecx, dword [ebp + 8]
call fcn.00403130
mov edx, dword [ebp - 0x10c]
or edx, 1
mov dword [ebp - 0x10c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x108]
call fcn.004031b0
mov eax, dword [ebp + 8]
jmp 0x404781
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0xec], 0x9c
lea ecx, [ebp - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404751
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0x114], edx
cmp dword [ebp - 0x114], 4
je 0x404567
cmp dword [ebp - 0x114], 5
je 0x4045ed
cmp dword [ebp - 0x114], 6
je 0x4046a0
jmp 0x404751
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x404590
cmp dword [ebp - 0x118], 0xa
je 0x4045c6
cmp dword [ebp - 0x118], 0x5a
je 0x4045d8
jmp 0x4045e8
cmp dword [ebp - 0xdc], 2
jne 0x4045ab
push str.Microsoft_Windows_NT_4.0
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x4045c4
cmp dword [ebp - 0xdc], 1
jne 0x4045c4
push str.Microsoft_Windows_95
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x4045e8
push str.Microsoft_Windows_98
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x4045e8
push str.Microsoft_Windows_Me
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x404751
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 0
je 0x404619
cmp dword [ebp - 0x11c], 1
je 0x40462b
cmp dword [ebp - 0x11c], 2
je 0x40463d
jmp 0x40469b
push str.Microsoft_Windows_2000
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x40469b
push str.Microsoft_Windows_XP
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x40469b
movzx edx, byte [ebp - 0x52]
cmp edx, 1
jne 0x404661
movzx eax, word [ebp - 0x44]
cmp eax, 9
jne 0x404661
push str.Microsoft_Windows_XP_Professional_x64_Edition
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x40469b
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x40467f
push str.Microsoft_Windows_Server_2003
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x40469b
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40469b
push str.Microsoft_Windows_Server_2003_R2
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x404751
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x120], ecx
cmp dword [ebp - 0x120], 0
je 0x4046cc
cmp dword [ebp - 0x120], 1
je 0x4046f9
cmp dword [ebp - 0x120], 2
je 0x404726
jmp 0x404751
movzx edx, byte [ebp - 0x52]
cmp edx, 1
jne 0x4046e7
push str.Microsoft_Windows_Vista
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x4046f7
push str.Microsoft_Windows_Server_2008
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x404751
movzx eax, byte [ebp - 0x52]
cmp eax, 1
jne 0x404714
push str.Microsoft_Windows_7
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x404724
push str.Microsoft_Windows_Server_2008_R2
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x404751
movzx ecx, byte [ebp - 0x52]
cmp ecx, 1
jne 0x404741
push str.Microsoft_Windows_8
lea ecx, [ebp - 0x108]
call fcn.004031d0
jmp 0x404751
push str.Microsoft_Windows_Server_2012
lea ecx, [ebp - 0x108]
call fcn.004031d0
lea edx, [ebp - 0x108]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403170
mov eax, dword [ebp - 0x10c]
or eax, 1
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x108]
call fcn.004031b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.0040a92b
mov esp, ebp
pop ebp
ret 4