Function at 0x40f7ad
Capabilities:
Check os version

Disassembly:
mov eax, 0x417670
call fcn.004024b0
sub esp, 0x54
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp ebx, 0x111
mov edi, ecx
jne 0x40f7e9
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
call dword [eax + pe_nt_image_headers32]
test eax, eax
je 0x40f92f
jmp 0x40fc01
cmp ebx, 0x4e
jne 0x40f811
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x40f92f
mov edx, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, edi
call dword [edx + 0x84]
jmp 0x40fc25
mov esi, dword [ebp + 0x10]
cmp ebx, 6
jne 0x40f829
push esi
call fcn.0040e8ca
push eax
push dword [ebp + 0xc]
push edi
call fcn.0040eaf8
cmp ebx, 0x20
jne 0x40f846
mov eax, esi
shr eax, 0x10
push eax
movsx eax, si
push eax
push edi
call fcn.0040eb59
test eax, eax
jne 0x40fc01
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
push 7
mov dword [ebp - 0x14], eax
call fcn.00416e27
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0x1ff
and eax, ecx
and edx, ecx
mov ecx, dword [ebp + 8]
xor eax, edx
lea eax, [eax + eax*2]
cmp ecx, dword [eax*4 + 0x420c68]
lea ebx, [eax*4 + 0x420c68]
mov eax, dword [ebp - 0x14]
jne 0x40f8ac
cmp eax, dword [ebx + 8]
jne 0x40f8ac
mov ebx, dword [ebx + 4]
push 7
mov dword [ebp + 0x10], ebx
call fcn.00416e97
test ebx, ebx
je 0x40f92f
cmp dword [ebp + 8], 0xc000
jb 0x40f94f
jmp 0x40fc3b
test eax, eax
mov dword [ebx], ecx
mov dword [ebx + 8], eax
je 0x40f924
jmp 0x40f8bd
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov edx, 0xc000
push 0
cmp ecx, edx
push 0
jae 0x40f8dc
push ecx
push dword [eax + 4]
call fcn.0040f72b
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x40f942
jmp 0x40f918
push edx
push dword [eax + 4]
call fcn.0040f72b
test eax, eax
mov dword [ebp + 0x10], eax
je 0x40f918
jmp 0x40f8f1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
cmp dword [ecx], edx
je 0x40fc2e
push 0
push 0
add eax, 0x18
push 0xc000
push eax
call fcn.0040f72b
test eax, eax
mov dword [ebp + 0x10], eax
jne 0x40f8ee
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x40f8b7
and dword [ebx + 4], 0
push 7
call fcn.00416e97
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
push 7
mov dword [ebx + 4], eax
call fcn.00416e97
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebx + 0x14]
cmp dword [ecx + 8], 0x1a
mov eax, dword [ecx + 0x10]
jne 0x40f970
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, dword [ebp + 0x10]
cmp al, 4
sbb eax, eax
and al, 0xf0
add eax, 0x2f
dec eax
cmp eax, 0x30
ja case.0x40f97a.38
jmp dword [eax*4 + 0x40fc5b]
push dword [ebp + 0xc]
call fcn.00412344
push eax
jmp 0x40fa85
push dword [ebp + 0xc]
jmp 0x40fa85
push esi
push esi
call fcn.0040e8ca
jmp 0x40fbb5
lea ecx, [ebp - 0x24]
call fcn.00412290
mov eax, dword [esi + 4]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x20], eax
call fcn.0040e57b
mov eax, dword [esi]
mov esi, dword [esi + 8]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], eax
call fcn.0040e8f2
test eax, eax
jne 0x40f9ef
mov eax, dword [edi + 0x34]
test eax, eax
je 0x40f9ec
push dword [ebp - 0x44]
lea ecx, [eax + 0x20]
call fcn.0040cae2
test eax, eax
je 0x40f9ec
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x60]
push esi
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call ebx
and dword [ebp - 0x20], 0
and dword [ebp - 0x44], 0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x10], eax
call fcn.0040efab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
jmp 0x40fa47
lea ecx, [ebp - 0x24]
call fcn.00412290
mov eax, dword [esi + 4]
push dword [esi + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
mov dword [ebp - 4], 2
call ebx
and dword [ebp - 0x20], 0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
call fcn.004123c2
jmp case.0x40f97a.38
mov eax, dword [ebp + 0xc]
shr eax, 0x10
push eax
push esi
call fcn.0040e8ca
jmp 0x40fa9b
mov eax, dword [ebp + 0xc]
shr eax, 0x10
push eax
movzx eax, word [ebp + 0xc]
jmp 0x40fbb5
mov eax, esi
shr eax, 0x10
push eax
movsx eax, si
push eax
push dword [ebp + 0xc]
call fcn.0040e8ca
jmp 0x40faa0
push esi
mov ecx, edi
call ebx
jmp 0x40fc44
push esi
call fcn.004117de
push eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
push eax
movzx eax, word [ebp + 0xc]
push eax
mov ecx, edi
call ebx
jmp 0x40fc44
mov ecx, edi
call ebx
jmp case.0x40f97a.38
push dword [ebp + 0xc]
jmp 0x40fbd0
mov eax, esi
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, si
jmp 0x40fb5f
mov eax, esi
shr eax, 0x10
push eax
movzx eax, si
jmp 0x40fbef
push dword [ebp + 0xc]
call fcn.0040e8ca
push eax
push esi
call fcn.0040e8ca
push eax
xor eax, eax
cmp dword [edi + 0x1c], esi
sete al
jmp 0x40fbe2
push dword [ebp + 0xc]
call fcn.00412344
jmp 0x40fb2d
push dword [ebp + 0xc]
call fcn.004117de
jmp 0x40fb2d
mov eax, esi
shr eax, 0x10
push eax
movzx eax, si
push eax
push dword [ebp + 0xc]
call fcn.004117de
jmp 0x40fbe2
push dword [ebp + 0xc]
jmp 0x40fb28
push esi
call fcn.0040e8ca
push eax
jmp 0x40fbd0
mov eax, esi
shr eax, 0x10
push eax
movzx eax, si
jmp 0x40fb48
movsx eax, si
shr esi, 0x10
movsx ecx, si
push ecx
push eax
push dword [ebp + 0xc]
call fcn.0040e8ca
jmp 0x40fbe2
push esi
push dword [ebp + 0xc]
call fcn.0040e8ca
push eax
jmp 0x40fbc9
push esi
call fcn.0040e8ca
push eax
jmp 0x40fbc6
mov eax, dword [ebp + 0xc]
shr eax, 0x10
push eax
push esi
call fcn.0040e8ca
jmp 0x40fbdd
mov eax, dword [ebp + 0xc]
movsx edx, ax
shr eax, 0x10
cmp dword [ecx + 0x10], 0x1d
mov dword [ebp + 8], edx
movsx eax, ax
mov dword [ebp + 0xc], eax
jne 0x40fba1
push esi
call fcn.0040e8ca
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x40fbf3
push eax
push edx
jmp 0x40fbc9
push esi
push dword [ebp + 0xc]
jmp 0x40fbb6
movsx eax, si
shr esi, 0x10
movsx ecx, si
push ecx
push eax
mov ecx, edi
call ebx
jmp 0x40fc44
mov ecx, edi
call ebx
jmp 0x40fc44
push esi
push dword [ebp + 0xc]
mov ecx, edi
call ebx
jmp case.0x40f97a.38
push esi
mov ecx, edi
call ebx
jmp case.0x40f97a.38
mov eax, dword [ebp + 0xc]
push esi
shr eax, 0x10
push eax
movzx eax, word [ebp + 0xc]
push eax
jmp 0x40fbf3
movsx eax, si
shr esi, 0x10
movsx ecx, si
push ecx
push eax
push dword [ebp + 0xc]
mov ecx, edi
call ebx
jmp case.0x40f97a.38
push esi
mov ecx, edi
push dword [ebp + 0xc]
call ebx
mov dword [ebp - 0x10], 1
jmp case.0x40f97a.38
movzx eax, si
shr esi, 0x10
push esi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
shr eax, 0x10
push eax
movzx eax, word [ebp + 0xc]
push eax
call ebx
mov dword [ebp - 0x10], eax
test eax, eax
jne case.0x40f97a.38
jmp 0x40f92f
push 7
mov dword [ebx + 4], eax
call fcn.00416e97
mov ebx, dword [ebp + 0x10]
push esi
mov ecx, edi
push dword [ebp + 0xc]
call dword [ebx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40fc53
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
push 1
pop eax
jmp 0x40f931