Function at 0x40f2f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f083
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], ecx
cmp dword [ecx + 0x30], 2
jne 0x40f399
cmp dword [ecx + 0x98], 7
lea esi, [ecx + 0x84]
jbe 0x40f344
mov esi, dword [ecx + 0x84]
mov ecx, dword [ecx + 0x94]
mov edx, dword [edi]
push dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
mov dword [ebp - 0x20], esi
lea eax, [edx + 9]
test eax, eax
lea eax, [ebp - 0x20]
cmove edx, ecx
mov esi, dword [edx + 4]
mov edx, esi
mov ecx, dword [esi + 0xe8]
and ecx, 0xfffffffe
push ecx
push eax
push ecx
lea eax, [ecx - 0xe8]
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.00410f70
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x18], ecx
cmp ecx, esi
je 0x40f6bf
mov dword [ebp + 8], ecx
jmp 0x40f3ba
cmp dword [ecx + 0xc8], 7
lea edx, [ecx + 0xb4]
jbe 0x40f3ae
mov edx, dword [ecx + 0xb4]
mov eax, dword [ecx + 0xc4]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
sub esp, 8
lea eax, [ebp - 0x4c]
push eax
call fcn.0040f010
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], eax
setne byte [ebp - 0xd]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xd]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0x80
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov word [ebp - 0x54], ax
mov byte [ebp - 4], 2
mov esi, 0x45aeb0
mov edx, dword [esi + 8]
test dl, dl
jns 0x40f48a
lea ecx, [ebp - 0x74]
add ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x74]
mov edi, eax
cmp edi, ecx
je 0x40f44a
nop dword [eax]
cmp byte [eax], 0
je 0x40f4b2
inc eax
cmp eax, ecx
jne 0x40f440
mov edi, dword [esi]
mov ecx, dword [esi + 4]
shr edx, 0x11
and dl, 1
mov byte [ebp - 4], 3
mov eax, dword [0x45aeac]
cmp eax, edi
jb 0x40f6f7
sub eax, edi
sub ecx, edi
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [0x45aea8]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
lea eax, [eax + edi*2]
push eax
call fcn.0040f8a0
add esp, 8
jmp 0x40f4b2
lea eax, [ebp - 0x174]
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], 0
push eax
lea eax, [ebp - 0x24]
mov ecx, 0x45aea8
push eax
push esi
call fcn.0040e9f0
add esi, 0x1c
cmp esi, 0x45af74
jne 0x40f423
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40f4d1
push eax
call fcn.0042be3e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x40f512
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f508
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f6f2
push ecx
push edx
call fcn.0042be04
add esp, 8
mov edi, dword [ebp - 0x18]
mov esi, dword [edi + 0x30]
cmp esi, 2
jne 0x40f521
xor ecx, ecx
jmp 0x40f556
mov edx, dword [edi + 0x10]
mov ecx, edx
neg ecx
sbb ecx, ecx
lea eax, [edx + 1]
and ecx, eax
cmp dword [edi + 0x28], 0
je 0x40f545
lea eax, [ecx + 2]
test edx, edx
cmove eax, ecx
mov ecx, dword [edi + 0x28]
add ecx, 2
add ecx, eax
test esi, esi
je 0x40f556
mov eax, dword [edi + 0x94]
test eax, eax
je 0x40f556
inc ecx
add ecx, eax
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi + 8]
mov edx, dword [eax]
cmp edx, ecx
jbe 0x40f5bd
mov esi, dword [esi + 4]
sub edx, ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp edx, eax
ja 0x40f5af
cmp dword [esi + 0x14], 7
lea eax, [ecx + edx]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x10], eax
jbe 0x40f584
mov esi, dword [esi]
lea ecx, [esi + ecx*2]
mov dword [ebp - 0x28], ecx
test edx, edx
je 0x40f5a7
mov edi, dword [ebp - 0x28]
mov ecx, edx
shr ecx, 1
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x40f5bd
push 0x20
push edx
push dword [ebp + 8]
mov ecx, esi
push edx
call fcn.00410780
cmp dword [edi + 0xb0], 7
lea esi, [edi + 0x9c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 8]
mov eax, dword [eax]
jbe 0x40f5e2
mov esi, dword [edi + 0x9c]
mov ecx, dword [edi + 0xac]
mov dl, 1
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x38], eax
lea eax, [esi + ecx*2]
mov dword [ebp - 0x18], esi
mov byte [ebp - 0xd], dl
cmp esi, eax
je 0x40f67b
movzx eax, word [esi]
cmp eax, 0x20
je 0x40f63b
cmp eax, 0xa
je 0x40f63b
xor dl, dl
mov byte [ebp - 0xd], dl
jmp 0x40f66b
test dl, dl
jne 0x40f65a
mov eax, esi
sub eax, dword [ebp - 0x18]
sar eax, 1
cmp eax, edi
jb 0x40f652
lea ecx, [ebp - 0x48]
call fcn.0040f1c0
mov dl, 1
mov dword [ebp - 0x14], esi
mov byte [ebp - 0xd], dl
cmp word [esi], 0xa
jne 0x40f66b
lea ecx, [ebp - 0x48]
call fcn.0040f1c0
mov dl, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x20]
add esi, 2
mov eax, dword [ebp - 0x1c]
lea eax, [ecx + eax*2]
cmp esi, eax
jne 0x40f627
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
lea eax, [ecx + eax*2]
test dl, dl
jne 0x40f699
sub eax, dword [ebp - 0x18]
sar eax, 1
cmp eax, edi
jb 0x40f699
lea ecx, [ebp - 0x48]
call fcn.0040f1c0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], eax
call fcn.0040f1c0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x27
mov edx, str.Invalid_command_line_argument_specified
lea ecx, [ebp - 0x18c]
call fcn.0040e6c0
add esp, 4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0040e640
push 0x46081c
lea eax, [ebp - 0x40]
push eax
call fcn.0042d0e9
call fcn.004307ea
call fcn.00411140
int3