MeteO
October 25th, 2001, 11:39
Winice95: Time-limit checking procedure:
Calling from here... :
loc_111D8:                              ; CODE XREF: start+1Dj
       call    sub_113EE		; THIS ONE!!!
       jb      loc_111EC		; JMP if bad date
       mov     si, offset aWin_com ; "win.com"
       call    sub_164E6
loc_111E5:                              ; CODE XREF: start+27j
       call    sub_174A9
       jnb     loc_111F0
loc_111EC:                              ; CODE XREF: start+2Dj
       mov     ah, 4Ch
       int     21h             ; DOS - 2+ - QUIT WITH EXIT CODE (EXIT)
                               ; AL = exit code
Calling this checking procedure...
sub_113EE       proc near               ; CODE XREF: start+2Ap
       mov     ah, 2Ah
       int     21h             ; DOS - GET CURRENT DATE
                               ; Return: DL = day, DH = month, CX = year
                               ; AL = day of the week (0=Sunday, 1=Monday, etc.)
       cmp     cx, 2001		; YEAR	
       jnz     loc_1140F
       cmp     dh, 9            ; MONTH
       jbe     loc_11418
       cmp     dh, 10           ; MONTH
       ja      loc_1140F
       cmp     dl, 15           ; DAY
       jb      loc_11418
loc_1140F:                              ; CODE XREF: sub_113EE+8j
                                       ; sub_113EE+16j
       mov     ah, 9
       mov     dx, offset aThisVersionOfW ; "This version of WINICE.EXE is no longer"...
       int     21h 		           ; DOS - PRINT STRING
                               	   ; DS

X -> string terminated by "$"
       stc
       retn
; ---------------------------------------------------------------------------
loc_11418:                              ; CODE XREF: sub_113EE+Fj
                                        ; sub_113EE+1Dj
       clc
       retn
sub_113EE       endp