Function at 0x40d8a0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x51ea22
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x56b338]
xor eax, esp
mov dword [esp + 0x344], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b338]
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.00436020
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 0x560d38
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 0x5624ec
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 0x40d9a9
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40d9a2
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 0x40d9e5
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x40da7e
cmp eax, 1
jne 0x40d9d4
push 9
push str.WindowsXP
call fcn.004021f0
jmp 0x40da7e
push 0x11
push str.WindowsServer2003
call fcn.004021f0
jmp 0x40da7e
cmp eax, 6
jne 0x40da7e
mov eax, dword [esp + 0x1c]
sub eax, ebx
je 0x40da69
sub eax, 1
je 0x40da5b
sub eax, 1
jne 0x40da7e
mov eax, dword [esp + 0x20]
cmp eax, 0x1ebb
jne 0x40da12
mov edx, str.Windows8
jmp 0x40da78
lea ecx, [eax - 0x1ee6]
cmp ecx, 0x25
ja 0x40da24
mov edx, str.Windows8
jmp 0x40da78
cmp eax, 0x1f13
jne 0x40da32
mov edx, str.Windows8
jmp 0x40da78
mov eax, dword [esp + 0x24]
cmp eax, 0xa
jne 0x40da48
cmp dword [esp + 0x14], ebx
jne 0x40da7e
mov edx, str.Windows10
jmp 0x40da78
cmp eax, 6
jne 0x40da7e
cmp dword [esp + 0x14], 3
jne 0x40da7e
mov edx, str.Windows8.1
jmp 0x40da78
push 8
push str.Windows7
call fcn.004021f0
jmp 0x40da7e
cmp ebp, 1
mov edx, str.WindowsVista
je 0x40da78
mov edx, str.WindowsServer2008
push esi
call fcn.00402290
mov eax, dword [esi + 0x14]
push 0x560d38
xor edi, edi
mov ecx, esi
call fcn.00404b90
test eax, eax
jne 0x40dafd
push 0x206
lea edx, [esp + 0x156]
push ebx
push edx
mov word [esp + 0x15c], bx
call fcn.00436020
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.004105e0
lea eax, [esp + 0x16c]
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x40dae0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dae0
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 0x40db04
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.0042f3aa
add esp, 0x354
ret