Function at 0x40cbd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449700
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], 0
xor eax, eax
mov bl, 1
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], bl
call fcn.0040e9c0
test al, al
jne 0x40cd8a
call fcn.0040c700
mov edx, dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x104], 7
mov dword [ebp - 0x108], 0
mov word [ebp - 0x118], ax
cmp word [edx], ax
jne 0x40cc6c
xor ecx, ecx
jmp 0x40cc80
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cc71
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x118]
call fcn.004015d0
cmp dword [ebp - 0x2c], 8
jb 0x40cc9e
push dword [ebp - 0x40]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call fcn.00402530
cmp dword [ebp - 0x104], 8
jb 0x40ccd8
push dword [ebp - 0x118]
call fcn.0042f2d8
add esp, 4
call fcn.0040c790
mov edx, dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x104], 7
mov dword [ebp - 0x108], 0
mov word [ebp - 0x118], ax
cmp word [edx], ax
jne 0x40cd06
xor ecx, ecx
jmp 0x40cd1f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x40cd10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cd10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x118]
call fcn.004015d0
cmp dword [ebp - 0x14], 8
jb 0x40cd3d
push dword [ebp - 0x28]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00402530
cmp dword [ebp - 0x104], 8
jb 0x40cd77
push dword [ebp - 0x118]
call fcn.0042f2d8
add esp, 4
xor bl, bl
call fcn.0040c8b0
mov esi, eax
call fcn.0040c820
jmp 0x40ce5f
call fcn.004170d0
test al, al
jne 0x40cf55
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
movzx ecx, al
shr eax, 8
movzx eax, al
cmp ecx, 6
ja 0x40cf55
jne 0x40cdbc
cmp eax, 1
jae 0x40cf55
call fcn.0040c700
push dword [eax + 4]
lea ecx, [ebp - 0x58]
call fcn.00401360
push eax
lea ecx, [ebp - 0x40]
call fcn.00405080
cmp dword [ebp - 0x44], 8
jb 0x40cde6
push dword [ebp - 0x58]
call fcn.0042f2d8
add esp, 4
call esi
movzx eax, al
cmp eax, 6
ja 0x40ce0c
je 0x40ce0c
call fcn.0040c940
push dword [eax + 4]
lea ecx, [ebp - 0x118]
call fcn.00401360
mov ebx, 1
jmp 0x40ce21
call fcn.0040c9d0
push dword [eax + 4]
lea ecx, [ebp - 0x58]
call fcn.00401360
mov ebx, 2
push eax
lea ecx, [ebp - 0x28]
call fcn.00405080
test bl, 2
je 0x40ce3a
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffd
call fcn.004013c0
mov dword [ebp - 4], 1
test bl, 1
je 0x40ce51
lea ecx, [ebp - 0x118]
call fcn.004013c0
xor bl, bl
call fcn.0040c8b0
mov esi, eax
call fcn.0040ca60
push 0x30
push dword [esi + 4]
push dword [eax + 4]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [eax + str.izAUa0TlR41wBa82PCBQ], 0
lea edx, [eax + str.izAUa0TlR41wBa82PCBQ]
mov dword [ebp - 0x104], 0xf
mov dword [ebp - 0x108], 0
mov byte [ebp - 0x118], 0
jne 0x40ceab
xor ecx, ecx
jmp 0x40ceb9
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ceb0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x118]
call fcn.00401490
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040eab0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x104], 0x10
jb 0x40cef3
push dword [ebp - 0x118]
call fcn.0042f2d8
add esp, 4
lea eax, [ebp - 0x58]
push eax
sub esp, 0x14
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x104], 0xf
mov dword [ebp - 0x108], 0
mov byte [ebp - 0x118], 0
call fcn.00414300
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 6
call fcn.00414630
lea ecx, [ebp - 0x100]
call fcn.00414510
cmp dword [ebp - 0x44], 8
jb 0x40cf55
push dword [ebp - 0x58]
call fcn.0042f2d8
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x40cf66
push dword [ebp - 0x28]
call fcn.0042f2d8
add esp, 4
xor eax, eax
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x40cf8b
push dword [ebp - 0x40]
call fcn.0042f2d8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret