Function at 0x40f1d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494d9d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4b80c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
mov edx, dword [0x4bab8c]
or esi, 0xffffffff
cmp edx, 1
je 0x40f293
test edx, edx
jne 0x40f238
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xa4]
mov eax, dword [eax + 0xa8]
cmp ecx, 0xa
jne 0x40f271
mov edx, 4
mov dword [0x4bab8c], edx
test ebx, ebx
je 0x40f553
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x40f245
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x44], edi
je 0x40f553
xor eax, eax
test edi, edi
je 0x40f2a4
cmp word [ebx + eax*2], 0x2d
je 0x40f29b
inc eax
cmp eax, edi
jb 0x40f263
jmp 0x40f29c
cmp ecx, 6
jne 0x40f289
cmp eax, 3
jne 0x40f27f
mov edx, eax
jmp 0x40f232
add eax, 0xffffffff
jne 0x40f289
lea edx, [eax + 2]
jmp 0x40f232
mov dword [0x4bab8c], 1
or eax, 0xffffffff
jmp 0x40f555
inc eax
cmp edi, eax
je 0x40f553
cmp edx, 4
je 0x40f2b1
lea ebx, [ebx + eax*2]
sub edi, eax
mov dword [ebp - 0x34], ebx
xor bl, bl
xor eax, eax
test edi, edi
je 0x40f2dd
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + edi*2]
nop
movzx edx, word [ecx]
test bl, bl
jne 0x40f2d0
cmp edx, 0x2e
jne 0x40f2d5
mov bl, 1
jmp 0x40f2d5
cmp edx, 0x2d
je 0x40f2dd
inc eax
sub ecx, 2
cmp eax, edi
jb 0x40f2c0
mov ebx, dword [ebp - 0x34]
sub edi, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], ebx
je 0x40f553
cmp edi, eax
je 0x40f553
mov ecx, dword fs:[0x30]
mov eax, dword [0x4bab8c]
sub eax, 2
je 0x40f828
sub eax, 1
je 0x40f659
sub eax, 1
jne 0x40f553
mov edi, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edi
test ebx, ebx
je 0x40f550
cmp word [ebx], ax
je 0x40f550
test edi, edi
je 0x40f550
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x44], edx
jbe 0x40f367
mov esi, dword [edi + 0x18]
mov edi, dword [ebp - 0x44]
nop
mov eax, dword [ebp - 0x34]
imul ebx, esi
movzx ecx, word [eax + edx*2]
inc edx
add ebx, ecx
cmp edx, edi
jb 0x40f350
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ebx
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
add ecx, edi
add eax, edi
mov dword [ebp - 0x48], ecx
test ecx, ecx
je 0x40f550
test eax, eax
je 0x40f550
mov ecx, dword [edi + 0xc]
xor esi, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x5c], ecx
test ecx, ecx
je 0x40f550
add eax, 4
mov edx, 0x80
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], eax
mov eax, dword [eax - 4]
cmp eax, ebx
jb 0x40f5bd
ja 0x40f550
mov eax, dword [ebp - 0x58]
cmp dword [eax], ecx
ja 0x40f550
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
lea eax, [eax + eax*2]
mov ebx, dword [ebx + eax*8 + 4]
mov eax, dword [ebp - 0x44]
add ebx, edi
mov edi, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x2c], eax
nop
movzx esi, word [ebx]
test si, si
je 0x40f440
test eax, eax
je 0x40f440
movzx eax, word [edi]
cmp ax, si
je 0x40f42d
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x40f409
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
mov ecx, 0x80
mov eax, esi
cmp ax, cx
mov ecx, esi
jae 0x40f423
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp dx, cx
jne 0x40f440
mov edx, 0x80
mov eax, dword [ebp - 0x2c]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x2c], eax
cmp word [edi], 0
jne 0x40f3e0
movzx eax, word [edi]
mov edi, 0x80
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x40f45d
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
movzx eax, word [ebx]
mov esi, eax
mov ecx, eax
cmp ax, di
jae 0x40f475
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp edx, ecx
je 0x40f57b
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
add eax, 4
mov dword [ebp - 0x3c], eax
nop dword [eax + eax]
mov ebx, dword [eax]
mov eax, dword [ebp - 0x44]
add ebx, dword [ebp - 0x4c]
dec eax
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
nop
movzx esi, word [ebx]
test si, si
je 0x40f4fe
test eax, eax
je 0x40f4fe
movzx eax, word [edi]
cmp ax, si
je 0x40f4eb
mov edx, 0x80
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x40f4ce
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
mov eax, esi
mov ecx, 0x80
cmp ax, cx
jae 0x40f4e6
lea ecx, [esi - 0x41]
or eax, 0x20
cmp ecx, 0x19
cmova eax, esi
cmp dx, ax
jne 0x40f4fe
mov eax, dword [ebp - 0x38]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x38], eax
cmp word [edi], 0
jne 0x40f4a0
movzx eax, word [edi]
mov edi, 0x80
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x40f51b
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
movzx eax, word [ebx]
mov esi, eax
mov ecx, eax
cmp ax, di
jae 0x40f533
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp edx, ecx
je 0x40f571
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
inc ecx
add eax, 0x18
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x3c], eax
cmp ecx, dword [ebp - 0x5c]
jb 0x40f490
or esi, 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b428
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], ecx
je 0x40f550
jmp 0x40f57e
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x4c]
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + eax*8 + 0x10]
mov ecx, dword [ecx + eax*8 + 0x14]
add edx, edi
test ecx, ecx
je 0x40f5af
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
nop dword [eax + eax]
mov edx, dword [eax - 4]
test edx, edx
jne 0x40f5d7
sub eax, 0x14
sub ecx, 1
jne 0x40f5a0
mov esi, dword [ebp - 0x54]
mov edx, 0x80
mov ebx, dword [ebp - 0x50]
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp - 0x30]
inc esi
add eax, 8
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x30], eax
cmp esi, ecx
jb 0x40f3a5
jmp 0x40f550
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
mov eax, dword [eax - 8]
shr edx, 1
add eax, edi
push edx
push eax
call fcn.00403a20
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp ebx, 8
jb 0x40f9ea
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00411b00
lea ecx, [ebx*2 + 2]
mov esi, eax
mov eax, edi
cmp ecx, 0x1000
jb 0x40f64a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9f6
push ecx
push edi
call fcn.0046b46b
add esp, 8
jmp 0x40f553
mov esi, dword [ecx + 0x38]
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40f550
lea eax, [esi + 0x10]
test eax, eax
je 0x40f550
cmp dword [esi + 0xc], 0
lea edx, [edi + edi]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 0
jbe 0x40f550
lea ecx, [eax + 8]
mov dword [ebp - 0x2c], ecx
nop
mov eax, dword [ecx]
test eax, eax
je 0x40f78c
cmp edx, eax
ja 0x40f78c
mov ebx, dword [ecx - 4]
mov ecx, dword [ebp - 0x34]
add ebx, esi
mov eax, dword [ebp - 0x44]
mov edi, ecx
dec eax
mov dword [ebp - 0x40], eax
cmp word [ecx], 0
je 0x40f720
nop dword [eax]
movzx esi, word [ebx]
test si, si
je 0x40f720
test eax, eax
je 0x40f720
movzx eax, word [edi]
cmp ax, si
je 0x40f70d
mov edx, 0x80
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x40f6ee
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
mov ecx, 0x80
mov eax, esi
cmp ax, cx
mov ecx, esi
jae 0x40f708
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp dx, cx
jne 0x40f720
mov eax, dword [ebp - 0x40]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x40], eax
cmp word [edi], 0
jne 0x40f6c0
movzx eax, word [edi]
mov edi, 0x80
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x40f73d
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
movzx eax, word [ebx]
mov esi, eax
mov ecx, eax
cmp ax, di
jae 0x40f755
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
mov esi, dword [ebp - 0x3c]
cmp edx, ecx
jne 0x40f786
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0xc]
add edx, esi
je 0x40f550
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x40f786
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [eax + 4]
test edx, edx
jne 0x40f7a7
sub eax, 0x14
sub ecx, 1
jne 0x40f777
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
add ecx, 0x18
inc eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], eax
cmp eax, dword [esi + 0xc]
jb 0x40f690
jmp 0x40f550
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
shr edx, 1
add eax, esi
push edx
push eax
call fcn.00403a20
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp ebx, 8
jb 0x40f9ea
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00411b00
lea ecx, [ebx*2 + 2]
mov esi, eax
mov eax, edi
cmp ecx, 0x1000
jb 0x40f819
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9f6
push ecx
push edi
call fcn.0046b46b
add esp, 8
jmp 0x40f553
mov esi, dword [ecx + 0x38]
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40f550
lea eax, [esi + 8]
test eax, eax
je 0x40f550
cmp dword [esi + 4], 0
lea edx, [edi + edi]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 0
jbe 0x40f550
lea ecx, [eax + 4]
mov dword [ebp - 0x2c], ecx
nop
mov eax, dword [ecx]
test eax, eax
je 0x40f95b
cmp edx, eax
ja 0x40f95b
mov ebx, dword [ecx - 4]
mov ecx, dword [ebp - 0x34]
add ebx, esi
mov eax, dword [ebp - 0x44]
mov edi, ecx
dec eax
mov dword [ebp - 0x40], eax
cmp word [ecx], 0
je 0x40f8f0
nop dword [eax]
movzx esi, word [ebx]
test si, si
je 0x40f8f0
test eax, eax
je 0x40f8f0
movzx eax, word [edi]
cmp ax, si
je 0x40f8dd
mov edx, 0x80
mov ecx, eax
cmp ax, dx
mov edx, ecx
jae 0x40f8be
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
mov ecx, 0x80
mov eax, esi
cmp ax, cx
mov ecx, esi
jae 0x40f8d8
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
cmp dx, cx
jne 0x40f8f0
mov eax, dword [ebp - 0x40]
add edi, 2
dec eax
add ebx, 2
mov dword [ebp - 0x40], eax
cmp word [edi], 0
jne 0x40f890
movzx eax, word [edi]
mov edi, 0x80
mov ecx, eax
mov edx, eax
cmp ax, di
jae 0x40f90d
lea eax, [ecx - 0x41]
or edx, 0x20
cmp eax, 0x19
cmova edx, ecx
movzx eax, word [ebx]
mov esi, eax
mov ecx, eax
cmp ax, di
jae 0x40f925
lea eax, [esi - 0x41]
or ecx, 0x20
cmp eax, 0x19
cmova ecx, esi
mov esi, dword [ebp - 0x3c]
cmp edx, ecx
jne 0x40f955
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 4]
add edx, esi
je 0x40f550
mov ecx, dword [edx]
test ecx, ecx
je 0x40f955
mov eax, ecx
shl eax, 4
add eax, edx
mov edx, dword [eax]
test edx, edx
jne 0x40f976
sub eax, 0x10
sub ecx, 1
jne 0x40f947
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
add ecx, 0xc
inc eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], eax
cmp eax, dword [esi + 4]
jb 0x40f860
jmp 0x40f550
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov eax, dword [eax - 4]
shr edx, 1
add eax, esi
push edx
push eax
call fcn.00403a20
mov ebx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp ebx, 8
jb 0x40f9ea
mov edi, dword [ebp - 0x28]
mov ecx, edi
call fcn.00411b00
lea ecx, [ebx*2 + 2]
mov esi, eax
mov eax, edi
cmp ecx, 0x1000
jb 0x40f64a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9f6
jmp 0x40f64a
call fcn.00411b00
mov esi, eax
jmp 0x40f553
call fcn.00470244
int3