Function at 0x40cea0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x51c4b2
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x344], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x569338]
xor eax, esp
push eax
lea eax, [esp + 0x35c]
mov dword fs:[0], eax
xor ebx, ebx
push pe_nt_image_headers32
mov dword [esp + 0x368], ebx
lea eax, [esp + 0x3c]
mov esi, ecx
push ebx
mov dword [esp + 0x34], ebx
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0x11c
call fcn.00433df0
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x55ed30
mov word [esi + 4], bx
call fcn.004021f0
mov dword [esp + 0x364], ebx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
movzx ebp, byte [esp + 0x14e]
push 0x560458
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x40cfa9
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40cfa2
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
call eax
and dword [esp + 0x18], 0xffff
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x28]
cmp eax, 5
jne 0x40cfe5
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x40d07e
cmp eax, 1
jne 0x40cfd4
push 9
push str.WindowsXP
call fcn.004021f0
jmp 0x40d07e
push 0x11
push str.WindowsServer2003
call fcn.004021f0
jmp 0x40d07e
cmp eax, 6
jne 0x40d07e
mov eax, dword [esp + 0x1c]
sub eax, ebx
je 0x40d069
sub eax, 1
je 0x40d05b
sub eax, 1
jne 0x40d07e
mov eax, dword [esp + 0x20]
cmp eax, 0x1ebb
jne 0x40d012
mov edx, str.Windows8
jmp 0x40d078
lea ecx, [eax - 0x1ee6]
cmp ecx, 0x25
ja 0x40d024
mov edx, str.Windows8
jmp 0x40d078
cmp eax, 0x1f13
jne 0x40d032
mov edx, str.Windows8
jmp 0x40d078
mov eax, dword [esp + 0x24]
cmp eax, 0xa
jne 0x40d048
cmp dword [esp + 0x14], ebx
jne 0x40d07e
mov edx, str.Windows10
jmp 0x40d078
cmp eax, 6
jne 0x40d07e
cmp dword [esp + 0x14], 3
jne 0x40d07e
mov edx, str.Windows8.1
jmp 0x40d078
push 8
push str.Windows7
call fcn.004021f0
jmp 0x40d07e
cmp ebp, 1
mov edx, str.WindowsVista
je 0x40d078
mov edx, str.WindowsServer2008
push esi
call fcn.00402290
mov eax, dword [esi + 0x14]
push 0x55ed30
xor edi, edi
mov ecx, esi
call fcn.00404930
test eax, eax
jne 0x40d0fd
push 0x206
lea edx, [esp + 0x156]
push ebx
push edx
mov word [esp + 0x15c], bx
call fcn.00433df0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push str.Windows_d._d._d
lea edx, [esp + 0x16c]
call fcn.0040f780
lea eax, [esp + 0x16c]
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x40d0e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d0e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x154]
push eax
call fcn.004021f0
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d104
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.00401d70
mov eax, esi
mov ecx, dword [esp + 0x35c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.0042d085
add esp, 0x354
ret