Function at 0x40af80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563c6d
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x5db100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x28c], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x290], ebx
mov dword [ebx + 0x10], 0
jb 0x40afec
mov eax, dword [ebx]
jmp 0x40afee
mov eax, ebx
mov byte [eax], 0
push 0x9c
lea eax, [ebp - 0x144]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x28c], 1
call fcn.0053a6d0
add esp, 0xc
mov dword [ebp - 0x144], 0x9c
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], 0
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x40b06f
mov eax, dword [ebp - 0x288]
push eax
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], edi
jmp 0x40b0e4
cmp dword [ebp - 0x140], 6
jne 0x40b0e4
cmp dword [ebp - 0x13c], 2
jne 0x40b0e4
push 1
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0x11c
mov edi, eax
mov esi, edx
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.0053a6d0
add esp, 0xc
mov dword [ebp - 0x284], 0x11c
lea eax, [ebp - 0x284]
mov dword [ebp - 0x27c], 3
push esi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [ebp - 0x13c]
test eax, eax
mov edx, 3
cmovne ecx, edx
mov dword [ebp - 0x13c], ecx
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
lea ecx, [ebp - 0x168]
push ecx
cmove eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
mov eax, dword [ebp - 0x140]
cmp eax, 0xa
jne 0x40b15b
cmp byte [ebp - 0xaa], 1
je 0x40b147
push 0x13
push str.Windows_Server_2016
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 0xa
jne 0x40b15b
cmp byte [ebp - 0xaa], 1
jne 0x40b3a5
push 0xa
push str.Windows_10
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40b2ee
mov eax, dword [ebp - 0x13c]
cmp eax, 3
jne 0x40b1d0
cmp byte [ebp - 0xaa], 1
je 0x40b1ad
push 0x16
push str.Windows_Server_2012_R2
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40b2ee
mov eax, dword [ebp - 0x13c]
cmp eax, 3
jne 0x40b1d0
cmp byte [ebp - 0xaa], 1
jne 0x40b3a5
push 0xb
push str.Windows_8.1
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40b2ee
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x40b236
cmp byte [ebp - 0xaa], 1
je 0x40b213
push 0x13
push str.Windows_Server_2012
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40b2ee
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x40b236
cmp byte [ebp - 0xaa], 1
jne 0x40b3a5
push 9
push str.Windows_8
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40b2ee
mov eax, dword [ebp - 0x13c]
cmp eax, 1
jne 0x40b296
cmp byte [ebp - 0xaa], al
je 0x40b277
push 0x16
push str.Windows_Server_2008_R2
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40b2ee
mov eax, dword [ebp - 0x13c]
cmp eax, 1
jne 0x40b296
cmp byte [ebp - 0xaa], al
jne 0x40b3a5
push 9
push str.Windows_7
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40b2ee
mov eax, dword [ebp - 0x13c]
test eax, eax
jne 0x40b3a5
cmp byte [ebp - 0xaa], 1
je 0x40b2da
push 0x13
push str.Windows_Server_2008
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x40b2ee
cmp dword [ebp - 0x13c], 0
jne 0x40b3a5
cmp byte [ebp - 0xaa], 1
jne 0x40b3a5
push 0xd
push str.Windows_Vista
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 5
jne 0x40b395
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x40b356
cmp byte [ebp - 0xaa], 1
jne 0x40b337
cmp word [ebp - 0x168], 9
jne 0x40b337
push str.Windows_XP_x64
mov ecx, ebx
call fcn.00412730
mov eax, dword [ebp - 0x140]
cmp eax, 5
jne 0x40b395
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x40b356
push 0x13
push str.Windows_Server_2003
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 5
jne 0x40b395
mov eax, dword [ebp - 0x13c]
cmp eax, 1
jne 0x40b37a
push 0xa
push str.Windows_XP
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 5
jne 0x40b395
mov eax, dword [ebp - 0x13c]
test eax, eax
jne 0x40b3a5
push 0xc
push str.Windows_2000
mov ecx, ebx
call fcn.004043a0
mov eax, dword [ebp - 0x140]
cmp eax, 5
jae 0x40b3a5
push 7
push str.unknown
mov ecx, ebx
call fcn.004043a0
cmp word [ebp - 0xb0], 0
je 0x40b480
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
push 0x80
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0053a6d0
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 0xe
push str._Service_Pack
call fcn.004043a0
movzx eax, word [ebp - 0xb0]
push eax
push 0x5cdd68
lea eax, [ebp - 0x90]
push 0x80
push eax
call fcn.00401490
add esp, 0x10
cmp byte [ebp - 0x90], 0
jne 0x40b42b
xor ecx, ecx
jmp 0x40b43d
lea ecx, [ebp - 0x90]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b434
sub ecx, edx
push ecx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xa8]
call fcn.004045d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa8]
mov ecx, ebx
push eax
call fcn.00404700
mov ecx, dword [ebp - 0x94]
cmp ecx, 0x10
jb 0x40b480
inc ecx
push ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
call fcn.00404a80
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448b50
mov esp, ebp
pop ebp
ret