Function at 0x40d7d0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x51e172
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x344], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x35c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x118
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.00435740
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 0x55fd30
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 0x5614d4
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 0x40d8d9
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40d8d2
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 0x40d915
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x40d9ae
cmp eax, 1
jne 0x40d904
push 9
push str.WindowsXP
call fcn.004021f0
jmp 0x40d9ae
push 0x11
push str.WindowsServer2003
call fcn.004021f0
jmp 0x40d9ae
cmp eax, 6
jne 0x40d9ae
mov eax, dword [esp + 0x1c]
sub eax, ebx
je 0x40d999
sub eax, 1
je 0x40d98b
sub eax, 1
jne 0x40d9ae
mov eax, dword [esp + 0x20]
cmp eax, 0x1ebb
jne 0x40d942
mov edx, str.Windows8
jmp 0x40d9a8
lea ecx, [eax - 0x1ee6]
cmp ecx, 0x25
ja 0x40d954
mov edx, str.Windows8
jmp 0x40d9a8
cmp eax, 0x1f13
jne 0x40d962
mov edx, str.Windows8
jmp 0x40d9a8
mov eax, dword [esp + 0x24]
cmp eax, 0xa
jne 0x40d978
cmp dword [esp + 0x14], ebx
jne 0x40d9ae
mov edx, str.Windows10
jmp 0x40d9a8
cmp eax, 6
jne 0x40d9ae
cmp dword [esp + 0x14], 3
jne 0x40d9ae
mov edx, str.Windows8.1
jmp 0x40d9a8
push 8
push str.Windows7
call fcn.004021f0
jmp 0x40d9ae
cmp ebp, 1
mov edx, str.WindowsVista
je 0x40d9a8
mov edx, str.WindowsServer2008
push esi
call fcn.00402290
mov eax, dword [esi + 0x14]
push 0x55fd30
xor edi, edi
mov ecx, esi
call fcn.00404b00
test eax, eax
jne 0x40da2d
push 0x206
lea edx, [esp + 0x156]
push ebx
push edx
mov word [esp + 0x15c], bx
call fcn.00435740
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.00410570
lea eax, [esp + 0x16c]
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x40da10
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40da10
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 0x40da34
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.0042eb95
add esp, 0x354
ret