f i r s t r e t = 0 x 0 0 4 0 7 5 5 D ; 
 
 l i b = " k e r n e l 3 2 . d l l " ; 
 
 f u n c = " G e t M o d u l e H a n d l e A " ; 
 
 
 
 o e p b r e a k s = 1 ; 
 
 l e t h a l b r e a k s = 5 ; 
 
 u n h o o k a r r a y = { } ; 
 
 
 
 f u n c t i o n   U n h o o k A r r a y L i s t ( ) 
 
 	 C l e a r U n h o o k L i s t ( ) ; 
 
 	 l o c a l   z = 1 ; 
 
 	 w h i l e   t r u e   d o 
 
 	 	 i f   u n h o o k a r r a y [ z ] = = n i l   t h e n 
 
 	 	 	 b r e a k ; 
 
 	 	 e n d ; 
 
 	 	 A d d M o d u l e T o U n h o o k L i s t ( u n h o o k a r r a y [ z ] ) ; 
 
 	 	 z = z + 1 ; 
 
 	 e n d ; 
 
 e n d ; 
 
 
 
 f u n c t i o n   S t a r t P r o c e s s I n t e r n a l ( ) 
 
 	 U n h o o k A r r a y L i s t ( ) ; 
 
 	 S t a r t ( f a l s e ) ; 
 
 	 l o c a l   b r e a k s a t o e p = 0 ; 
 
 	 u n h o o k _ i n a c t i o n = t r u e ; 
 
 	 b b r e a k = G e t P r o c A d d r e s s ( l i b , f u n c ) ; 
 
 	 A d d B r e a k ( b b r e a k , 1 , 0 ) ;   E n a b l e B r e a k ( b b r e a k ) ; 
 
 	 w h i l e   t r u e   d o 
 
 	 	 C o n t i n u e ( t r u e ) ; 
 
 	 	 i f   b r e a k _ w h e r e = = b b r e a k   t h e n 
 
 	 	 	 i f   R e a d M e m ( E S P , 4 ) = = f i r s t r e t   t h e n 
 
 	 	 	 	 b r e a k s a t o e p = b r e a k s a t o e p + 1 ; 
 
 	 	 	 	 i f   b r e a k s a t o e p = = o e p b r e a k s   t h e n 
 
 	 	 	 	 	 b r e a k ; 
 
 	 	 	 	 e l s e 
 
 	 	 	 	 	 T r a c e A n d R e p l a c e ( E I P ) ; 
 
 	 	 	 	 e n d ; 
 
 	 	 	 e l s e 
 
 	 	 	 	 T r a c e A n d R e p l a c e ( b b r e a k ) ; 
 
 	 	 	 e n d ; 
 
 	 	 e l s e i f   b r e a k _ w h e r e = = 0 x f 0 0   t h e n 
 
 	 	 	 b r e a k ; 
 
 	 	 e n d ; 
 
 	 e n d ; 
 
 	 u n h o o k _ i n a c t i o n = f a l s e ; 
 
 e n d ; 
 
 
 
 f u n c t i o n   S t a r t P r o c e s s ( ) 
 
 	 l o c a l   o e p c o u n t e r = 0 ; 
 
 	 w h i l e   t r u e   d o 
 
 	 	 S t a r t P r o c e s s I n t e r n a l ( ) ; 
 
 	 	 i f   b r e a k _ w h e r e = = 0 x f 0 0   t h e n 
 
 	 	 	 o e p c o u n t e r = o e p c o u n t e r + 1 ; 
 
 	 	 	 W r i t e E x ( s t r i n g . f o r m a t ( " D i e d   w h i l e   s t a r t i n g   p r o c e s s   % u   o f   % u " , o e p c o u n t e r , l e t h a l b r e a k s ) , t r u e , t r u e , 0 x 0 0 0 0 f f ) ; 
 
 	 	 	 i f   o e p c o u n t e r = = l e t h a l b r e a k s   t h e n 
 
 	 	 	 	 W r i t e E x ( " L e t h a l l y   d i e d   w h i l e   s t a r t i n g   p r o c e s s " , t r u e , t r u e , 0 x 0 0 0 0 f f ) ; 
 
 	 	 	 	 r e t u r n   - 1 ; 
 
 	 	 	 e n d ; 
 
 	 	 e l s e 
 
 	 	 	 b r e a k ; 
 
 	 	 e n d ; 
 
 	 e n d ; 
 
 	 S u s p e n d A l l O t h e r ( ) ; 
 
 - - 	 W r i t e M e m ( 0 x 7 c 9 7 c 0 d c , 0 x f f f f f f f f , 4 ) ; 
 
 	 r e t u r n   0 ; 
 
 e n d ; 
 
 
 
 i f   i s _ d l l = = t r u e   a n d   p r o c e s s _ r e l o c s = = t r u e   t h e n 
 
 	 i f   S t a r t P r o c e s s ( ) = = - 1   t h e n 
 
 	 	 r e t u r n   - 1 ; 
 
 	 e n d ; 
 
 	 D u m p F o r R e l o c s ( ) ; 
 
 	 T e r m i n a t e ( ) ; 
 
 e n d ; 
 
 
 
 i f   S t a r t P r o c e s s ( ) = = - 1   t h e n 
 
 	 r e t u r n   - 1 ; 
 
 e n d ; 
 
 D u m p ( ) ; 
 
 i f   c u t _ s e c t i o n s = = t r u e   t h e n 
 
 	 P r o c e s s R e s o u r c e s ( ) ; 
 
 	 C u t S e c t i o n s ( ) ; 
 
 	 P r o c e s s E x p o r t ( ) ; 
 
 	 P r o c e s s T L S ( ) ; 
 
 e n d ; 
 
 P r o c e s s D e l p h i I n i t ( ) ; 
 
 R e s t o r e I m p o r t R e l o c s ( ) ; 
 
 i f   c u t _ s e c t i o n s = = t r u e   t h e n 
 
 	 S a v e R e s o u r c e s ( ) ; 
 
 e n d ; 
 
 P r o c e s s O v e r l a y ( ) ; 
 
 S a v e F i l e ( ) ; 
 
 T e r m i n a t e ( ) ; 