home *** CD-ROM | disk | FTP | other *** search
- /* COBF by BB -- obfuscated at Sat Mar 21 22:20:59 1998
- */
- #include<stdio.h>
- #include<ctype.h>
- #include<string.h>
- #include"cobf.h"
- b l277(e*l32,l149 e*l103,l149 e*l105,l149 e*u,l149 e*l63);b l197(l149
- e*l32,e*l103,e*l105,e*u,e*l63);t l305(l48*l328);e*l304(e*l226,a l536,
- l48*l328);b l524(e*l127);b l530(e*l143);b l344(b);b l326(b);b*l175(
- l115 l62);b*l366(b*l205,l115 l62);b*l353(l115 l337,l115 l62);e*l73(e*
- l330);b l43(b*l205);
- l26 s j;l26 j d[3];l26 j l[4][4];b l221(d l36,j l365,j l363,j l362);b
- l150(d z,d x);a l294(d z,d x);b l274(d z,d x,d l78);b l280(d z,d x,d
- l78);b l276(d z,d x,j l240);j l252(d l36);b l283(d l36);j l287(d z,d x
- );b l301(d z,d x,d l78);b l361(d z,d x,d l78);b l368(d z,d x,d l78);c
- a l315(d k[3],j l364);j l306(d z,d x);j l358(d z,d x);b l336(d l36,a
- l158);b l194(l48*l181,d l36,e l410);b l378(d z,d x,a l72,j l87);b l388
- (d z,d x,d l72,j l87);b l259(d l322[3],d l346);b l372(d z,d x,l l45);
- b l392(d l87,d l76);s l391(d l176,d l76,c a l72);b l373(l l45);b l402
- (l l80,l l86,a l72,j l87);b l390(l l80,l l86,d l72,j l87);b l349(l l80
- ,l l86,l l220);b l375(l l80,l l86,l l220);j l384(l l80,l l86);b l381(
- l l45,d l137,d l122,d l124,d l216);b l285(l l71);b l386(l l71,d l146);
- b l374(l l71,d l146);b l369(l l71,d l146);b l389(l l45,d l137,d l122,
- d l124,d l216);b l314(l l210,l l219);b l316(l l210,l l357,l l219);b
- l387(l l80,l l86);c a l376(d l122);b l324(d l333,l l71,d l290);b l396
- (j l67,j l187,j l133,j*l202,j*l226,j*l200);b l383(j l202,j l329,j l200
- ,j*l67,j*l187,j*l133);l26 l94 l237{a l74;l94 l237*l31;}l50;c a l303(c
- a l352,c a l62,e*l265,c a l89);l50* *l348(c a l89);b l347(l50* *l102,
- c a l89);a l343(l50* *l102,a l74,c a l129);l26 a l40[3];l26 a l52[2];
- l26 l94 l247{a l74;l94 l247*l31;}l98;l53 l119{d*l177;l98* *l244;l98* *
- l257;a l69;c a l118;l50* *l107;c a l138;a l163(l50* *l102,c a l129,d k
- );c a l162(d k,c a l89);l37:l119(c t l114=16);~l119(b);a l113(d k);a
- l91(l48*i,a l74,a l320);a l91(l48*i);l98*l359(a h);l98*l435(a h);a
- l434(d k);a l217(a l77,a h);a l211(a l77,a h);a l109(d k,a g);b l180(
- a h){h=h;}a l182(b){m!(l177==q||l107==q);}a l42(b){m l69;}c t l171(b);
- b l153(a h,c a l158);b l137(a h,j l62);};l53 l123{l40*l168;l40*l271;a
- l69;c a l118;l50* *l107;c a l138;b l215(l40 k);c a l231(l40 l88,l40
- l157);l37:l123(c t l114=16);~l123(b);a l163(l50* *l102,c a l129,l40 k
- );c a l162(l40 k,c a l89);a l113(a l77,a l117,a l142);a l91(l48*i,a
- l74);a l91(l48*i);a l109(l40 k,a g);a l332(l40 l88,a g);a l394(c a g);
- b l180(a h){h=h;}a l211(a l77,a l117,a l142,a h);a l182(b){m!(l168==q
- );}a l42(b){m l69;}c t l171(b);};l53 l121{l52*l185;l52*l251;c a*l116;
- a l69;c a l118;l50* *l107;c a l138;b l215(l52 k);c a l231(l52 l88,l52
- l157);l37:l121(c t l114=16);~l121(b);a l163(l50* *l102,c a l129,l52 k
- );c a l162(l52 k,c a l89);a l113(a l77,a l117);a l217(a l77,a h);a l91
- (l48*i,a l74);a l91(l48*i);a l109(l52 l88,a g);a l340(l52 l88,a g);a
- l433(a g);b l180(a h){h=h;}a l182(b){m!(l185==q);}a l42(b){m l69;}c t
- l171(b);a l321(a h){m(l116[h]&(0x00000001));}b l419(a h){l116[h]|=(
- 0x00000001);}b l449(a h){l116[h]&=~(0x00000001);}};l53 l99{l48*i;c a
- l354;l37:l99(e*u=q);~l99();b l82(e*l207,...);};l26 l139{l173,l241,
- l242}l144;l53 l85{l253:e*l159;l144 l249;l37:l85(e*u="\x54\x45\x53\x54"
- ,l144 k=l173);l148~l85();l85(l149 l85&);l144 l246(b){m l249;}e*l136(b
- ){m l159;}b l450(e* );};l53 l35:l37 l85{l260:c a l451(d k[3]);b l124(
- l40 k);b l409(c a l371,c a l431,c a l423);b l418(d l67[3],d k);c a
- l417;b l382(d l67);l37:l119*l104;l123*l79;l121*l178;d l225;d l224;l
- l45;l35(c t v=16,e*u="\x54\x45\x53\x54");~l35();b l441(l l45);l35*
- l334(s l100);b l243(d l67[3],c a h);b l258(d l67[3]);b l427(d l67[4]);
- b l439(d l356[4],c a l77,c a l117,c a l142,c a l430);l35*l245(b);b
- l203(b);b l153(c a l158);b l62(s l62);b l292(l99*l46);};b l339(b*l49);
- l26 b( *l196)(b* );l26 l94 l264{b*l108;l94 l264*l31;}l28;l53 l70{l260
- :l28*l27;l28*l54;a v;l196 l68;b l262(l28*l154,a h){l28*l44;l28*l64;a
- l30;f(h==0){l44=l27;l27=l154;l27->l31=l44;}l29{l41(l44=l27,l30=0;l30<
- (h-1);l44=l44->l31,l30++){;}l64=l44->l31;l44->l31=l154;l154->l31=l64;
- }}b l152(a h){a l30;l28*l44;l28*l83;l28*l64;f(h==0){l83=l27;l27=l27->
- l31;f(l68)l68(l83->l108);l75 l83;}l29{l41(l44=l27,l30=0;l30<(h-1);l44
- =l44->l31,l30++){;}l83=l44->l31;l64=l83->l31;l44->l31=l64;f(l68)l68(
- l83->l108);l75 l83;}}l28*l155(l28*l64,l28*w){l64->l31=w;m w;}l28*l96(
- b*k){l28*w;w=l128 l28;f(w==q)m q;w->l31=0;w->l108=k;m w;}b l261(l28*
- l263){l28*w;l28*l64;w=l263;l201(w!=0){f(l68)l68(w->l108);l64=w->l31;
- l75 w;w=l64;}}l37:l70(l196 l181){v=0;l27=0;l54=0;l68=l181;}l70(b){v=0
- ;l27=0;l54=0;l68=0;}~l70(b){l261(l27);v=0;l27=0;l54=0;l68=0;}b l113(b
- *k){v++;f(l27==0){l27=l54=l96(k);}l29{l54=l155(l54,l96(k));}}b l463(
- b*k,a h){f(l27==0){v++;l27=l54=l96(k);}l29{f(h==(-1)){v++;l54=l155(
- l54,l96(k));}l29{f(h>=v){v++;l54=l155(l54,l96(k));}l29{f(h>=0||h<v){v
- ++;l262(l96(k),h);}}}}}b*l165(a g){l28*w;f(g<v&&v){a l30;w=l27;l41(
- l30=0;l30<g;l30++){f(w)w=w->l31;}f(w)m w->l108;l29 m q;}l29 m q;}b
- l470(a h){f(l27==0){}l29{f(h==(-1)){l152(v-1);v--;}l29{f(h>=v){l152(v
- -1);v--;}l29{f(h>=0||h<v){l152(h);v--;}}}}}a l42(b){m v;}};l26 b( *
- l190)(l48*i,e*l207,...);l26 b( *l189)(c t l399,c t l76);l53 l92{l37:
- l190 l101;l189 l120;l92(l190 l255=0,l189 l256=0){l101=l255;l120=l256;
- };};l26 l139{l444=0,l459,l458,l460}l233;l26 l139{l456=0,l440}l238;l26
- l139{l452=0,l235}l239;l53 l65{l253:e*l160;l37:l239 l212;l233 l126;
- l238 l188;s l174;e*l199;l65(e*l454="\x44\x65\x66\x61\x75\x6c\x74",e*
- l47="\x44\x65\x66\x61\x75\x6c\x74");l148~l65();b l232(c r l56,c r l55
- ,c r l57,s l58,e*l47);b l234(c r*l56,c r*l55,c r*l57,s*l58,e* *l47);
- l148 c a l111(b);l148 c a l110(b);};
- #ifdef _MSC_VER
- #endif
- l53 l295:l37 l65{l37:e*l32;e*y;e*l132;c r l471;l295(e*l32="");b l131(
- e*u);b l161(e*u);~l295();b l166(c r l56,c r l55,c r l57,s l58,e*l47,c
- r l492);b l167(c r*l56,c r*l55,c r*l57,s*l58,e* *l47,c r*l492);c a
- l111(b);c a l110(b);};b l815(l70*l222,l295*l33,l92*l39);
- #ifdef __BCPLUSPLUS__
- #undef l106
- #define l106 "BCC31"
- #endif
- #ifdef _MSC_VER
- #define l106 "VC++40"
- #endif
- #ifdef _WCC
- #define l106 "WCC10"
- #endif
- l295::l295(e*l164):l65("\x33\x64\x73\x5f\x69\x6e","\x33\x64\x73\x69"
- "\x6e\x2e\x6c\x6f\x67"){l164=l164;l32=q;y=q;l471=1;l132="\x33\x44\x20"
- "\x53\x74\x75\x64\x69\x6f\x20\x42\x69\x6e\x61\x72\x79\x20\x46\x69\x6c"
- "\x65\x20\x20\x20\x20\x20\x28\x2a\x2e\x33\x64\x73\x3b\x2a\x2e\x70\x72"
- "\x6a\x29\x7c\x2a\x2e\x33\x64\x73\x3b\x2a\x2e\x70\x72\x6a\x7c\x41\x6c"
- "\x6c\x20\x46\x69\x6c\x65\x73\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
- "\x20\x20\x20\x20\x20\x20\x20\x28\x2a\x2e\x2a\x29\x7c\x2a\x2e\x2a\x7c"
- "\x7c";l295::l111();}b l295::l131(e*u){f(y)l43(y);y=l73(u);}b l295::
- l161(e*u){f(l32)l43(l32);l32=l73(u);}l295::~l295(){l295::l110();f(y!=
- q)l43(y);f(l32!=q)l43(l32);l132=0;}b l295::l166(c r l56,c r l55,c r
- l57,s l58,e*l47,c r l492){l65::l232(l56,l55,l57,l58,l47);l471=l492;}b
- l295::l167(c r*l56,c r*l55,c r*l57,s*l58,e* *l47,c r*l492){l65::l234(
- l56,l55,l57,l58,l47); *l492=l471;}c a l295::l111(b){
- #ifdef _MSC_VER
- l228 l61(l160);e*l60="\x53\x70\x65\x63\x69\x66\x69\x63\x20\x53\x65"
- "\x74\x74\x69\x6e\x67\x73";e l81[l141];c t l49;f(l61.l193(l60,"\x70"
- "\x61\x74\x68",l32,l81,l141)){f(l32)l43(l32);l32=l73(l81);}f(l61.l193
- (l60,"\x66\x69\x6c\x65\x5f\x6e\x61\x6d\x65",y,l81,l141)){f(y)l43(y);y
- =l73(l81);}f(l61.l627(l60,"\x73\x75\x72\x66\x5f\x66\x6c\x61\x67",l471
- ,&l49)){l471=(c r)l49;}
- #endif
- m 1;}c a l295::l110(b){
- #ifdef _MSC_VER
- l228 l61(l160);e*l60="\x53\x70\x65\x63\x69\x66\x69\x63\x20\x53\x65"
- "\x74\x74\x69\x6e\x67\x73";l61.l192(l60,"\x70\x61\x74\x68",l32);l61.
- l192(l60,"\x66\x69\x6c\x65\x5f\x6e\x61\x6d\x65",y);l61.l614(l60,"\x73"
- "\x75\x72\x66\x5f\x66\x6c\x61\x67",l471);
- #endif
- m 1;}l26 c e l145;l26 c r l195;l26 c t l93;l26 l94{l93 l176;l93 l76;
- l93 l298;l195 l183;}l408;l38 b l327(l408*l51);l38 b l325(l408*l51);
- l38 l145 l281(b);l38 l195 l312(b);l38 l93 l422(b);l38 l335 l584(b);
- l38 b l912(d l36);l38 e*l495(b);l38 b l560(e*u);l38 b l917(l70*l222,
- l408*l140,l295*n);l38 b l895(l70*l222,l408*l140,l295*n);l38 b l634(
- l70*l222,l408*l140,l295*n);l38 b l665(l70*l222,l408*l140,l295*n);l38 b
- l865(l70*l222,l408*l140,e*u,l295*n);l38 l40*l852(l408*l278,l40*l204,c
- a*v,l70*l521,l195* *l499);l38 d*l582(d*l481,c a*v);l38 l35*l855(d*
- l248,c a l395,l40*l250,c a l351,l195*l499,e*l159,e*l428,c a l661);l38
- l35*l893(d*l248,c a l395,l40*l250,c a l351,e*u);l38 l48*i;l38 l99*l46
- ;l38 l92*l39;b l815(l70*l222,l295*n,l92*l319){l408 l51;e*l130;l39=
- l319;f(n->l212==l235)l130=n->l199;l29 l130=q;l46=l128 l99(l130);l46->
- l82("\x25\x73\x20\x25\x73\x20\x25\x73\x20\x25\x73\n","\x33\x44\x53"
- "\x20\x49\x6d\x70\x6f\x72\x74\x20\x50\x6c\x75\x67\x69\x6e\x20\x30\x2e"
- "\x31\x20\x42\x65\x74\x61","\x4d\x61\x72\x20\x32\x31\x20\x31\x39\x39"
- "\x38","\x32\x32\x3a\x32\x30\x3a\x35\x35","");l39->l101(l95,"\x50\x61"
- "\x72\x73\x69\x6e\x67\x20\x25\x73\x20\x73\x74\x61\x72\x74\x65\x64\x20"
- "\x2e\x2e\x2e\x20\x20\x20\x20\x20\x20\n",n->y);l46->l82("\x50\x61\x72"
- "\x73\x69\x6e\x67\x20\x25\x73\x20\x73\x74\x61\x72\x74\x65\x64\x20\x2e"
- "\x2e\x2e\x20\x20\x20\x20\x20\x20\n",n->y);f((i=l443(n->y,"\x72\x62"))==
- q){l46->l82("\x46\x69\x6c\x65\x20\x25\x73\x20\x6e\x6f\x74\x20\x66\x6f"
- "\x75\x6e\x64\n",n->y);l75 l46;}l327(&l51);l191(l51.l183){l59 0xC23D:
- {l895(l222,&l51,n);}l34;l59 0x4D4D:{l917(l222,&l51,n);}l34;l270:{l46
- ->l82("\x46\x69\x6c\x65\x20\x46\x6f\x72\x6d\x61\x74\x20\x6e\x6f\x74"
- "\x20\x73\x75\x70\x70\x6f\x72\x74\x65\x64\n");;}l34;}l325(&l51);f(i)l442
- (i);l39->l101(l95,"\x50\x61\x72\x73\x69\x6e\x67\x20\x66\x69\x6e\x69"
- "\x73\x68\x65\x64\x20\x20\x20\x20\x20\x20\x20\n");l46->l82("\x50\x61"
- "\x72\x73\x69\x6e\x67\x20\x66\x69\x6e\x69\x73\x68\x65\x64\x20\x20\x20"
- "\x20\x20\x20\x20\n");l75 l46;}b l917(l70*l222,l408*l140,l295*n){l408
- l51;l486{l327(&l51);f(l51.l76<=l140->l76){l191(l51.l183){l59 0x3D3D:{
- l634(l222,&l51,n);}l34;l270:{}l34;}}l325(&l51);}l201((l51.l76<=l140->
- l76)&&l51.l183!=0&&l51.l298!=0);}b l895(l70*l222,l408*l140,l295*n){
- l408 l51;l486{l327(&l51);f(l51.l76<=l140->l76){l191(l51.l183){l59
- 0x3D3D:{l634(l222,&l51,n);}l34;l270:{}l34;}}l325(&l51);}l201((l51.l76
- <=l140->l76)&&l51.l183!=0&&l51.l298!=0);}b l634(l70*l222,l408*l140,
- l295*n){l408 l51;l486{l327(&l51);f(l51.l76<=l140->l76){l191(l51.l183){
- l59 0x4000:{l665(l222,&l51,n);}l34;l270:{}l34;}}l325(&l51);}l201((l51
- .l76<=l140->l76)&&l51.l183!=0&&l51.l298!=0);}b l665(l70*l222,l408*
- l140,l295*n){l408 l51;e l159[(80)+1];l850(l159,l495(),(80));l560(l159
- );l39->l101(l95,"\x57\x6f\x72\x6b\x69\x6e\x67\x20\x6f\x6e\x3a\x20\x25"
- "\x73\n",l159);l46->l82("\x57\x6f\x72\x6b\x69\x6e\x67\x20\x6f\x6e\x3a"
- "\x20\x25\x73\n",l159);l486{l327(&l51);f(l51.l76<=l140->l76){l191(l51
- .l183){l59 0x4100:l865(l222,&l51,l159,n);l34;l59 0x4010:l34;l59 0x4600
- :l34;l59 0x4700:l34;l270:{}l34;}}l325(&l51);}l201((l51.l76<=l140->l76
- )&&l51.l183!=0&&l51.l298!=0);}b l960(b*l108){l43(l108);}b l865(l70*
- l222,l408*l140,e*u,l295*n){l408 l51;d*l608;c a l725;l40*l204;c a l709
- ;e l428[100];l35*p=q;l608=q;l204=q;l725=0;l709=0;l70*l521=q;l195*l499
- =q;l521=l128 l70(l960);l486{l327(&l51);f(l51.l76<=l140->l76){l191(l51
- .l183){l59 0x4110:{l608=l582(l608,&l725);}l34;l59 0x4120:{l204=l852(&
- l51,l204,&l709,l521,&l499);}l34;l270:{}l34;}}l325(&l51);}l201((l51.
- l76<=l140->l76)&&l51.l183!=0&&l51.l298!=0);f(l204){f(n->l471&&l521){a
- g;l41(g=0;g<l521->l42();g++){l273(l428,(e* )l521->l165(g));l560(l428);
- p=l855(l608,l725,l204,l709,l499,u,l428,(c a)g);f(p){f(p->l79->l42()>0
- ){p->l292(l46);p->l62(n->l174);f(n->l126)p->l153((a)n->l126);f(n->
- l188)p->l203();l222->l113(p);}l29{l75 p;p=q;}}}}l29{p=l893(l608,l725,
- l204,l709,u);f(p){f(p->l79->l42()>0){p->l292(l46);p->l62(n->l174);f(n
- ->l126)p->l153((a)n->l126);f(n->l188)p->l203();l222->l113(p);}l29{l75
- p;p=q;}}}}f(l608)l43(l608);f(l204)l43(l204);f(l499)l43(l499);f(l521)l75
- (l521);}l38 l35*l893(d*l248,c a l395,l40*l250,c a l351,e*u){l35*p=q;c
- a g;d k[3];l395=l395;p=l128 l35((t)l351,u);f(p==q)m q;l41(g=0;g<l351;
- g++){l150(k[0],l248[l250[g][0]]);l150(k[1],l248[l250[g][1]]);l150(k[2
- ],l248[l250[g][2]]);f(!l315(k,(1.0e-8))){p->l258(k);}l29 l46->l82(""
- "\x52\x65\x6d\x6f\x76\x69\x6e\x67\x20\x64\x65\x67\x65\x6e\x65\x72\x61"
- "\x74\x65\x20\x74\x72\x69\x20\x25\x64\n",g);}m p;}l38 l35*l855(d*l248
- ,c a l395,l40*l250,c a l351,l195*l499,e*l159,e*l428,c a l661){l35*p=q
- ;c a g;d k[3];e*u;l395=l395;u=(e* )l175(l151(e) * (l268(l159)+l268(
- l428)+4));l273(u,l159);l602(u,"\x5f");l602(u,l428);p=l128 l35(20L,u);
- f(p==q)m q;l41(g=0;g<l351;g++){f(l499[g]!=l661)l453;l150(k[0],l248[
- l250[g][0]]);l150(k[1],l248[l250[g][1]]);l150(k[2],l248[l250[g][2]]);
- f(!l315(k,(1.0e-8))){p->l258(k);}l29 l46->l82("\x52\x65\x6d\x6f\x76"
- "\x69\x6e\x67\x20\x64\x65\x67\x65\x6e\x65\x72\x61\x74\x65\x20\x74\x72"
- "\x69\x20\x25\x64\n",g);}l43(u);m p;}d*l582(d*l481,c a*v){c a g;d k;c
- a l170;l170=l312(); *v=l170;l481=(d* )l175(l151(d) *l170);l41(g=0;g<
- l170;g++){l912(k);l150(l481[g],k);}m l481;}b l993(l70*l521,l195*l499){
- c a l170;c a g;c a l833;e*l694;l694=l73(l495());l521->l113(l694);l170
- =l312();l41(g=0;g<l170;g++){l833=l312();l499[l833]=(c r)l521->l42()-1
- ;}}l38 l40*l852(l408*l140,l40*l204,c a*v,l70*l521,l195* *l1016){l408
- l51;c a g;c a l170;c a l116;e*l694;l195*l499;l170=l312(); *v=l170;
- l204=(l40* )l175(l151(l40) *l170);l499=(l195* )l175(l151(l195) *l170);
- l41(g=0;g<l170;g++){l499[g]=0;}l694=l73("\x64\x65\x66\x61\x75\x6c\x74"
- );l521->l113(l694);l41(g=0;g<l170;g++){l204[g][0]=(a)l312();l204[g][1
- ]=(a)l312();l204[g][2]=(a)l312();l116=l312();l116=l116;}l486{l327(&
- l51);f(l51.l76<=l140->l76){l191(l51.l183){l59 0x4130:l993(l521,l499);
- l34;l270:l34;}}l325(&l51);}l201((l51.l76<=l140->l76)&&l51.l183!=0&&
- l51.l298!=0); *l1016=l499;m l204;}b l327(l408*l51){l39->l120((c t)l284
- (i),(c t)l305(i));l51->l176=(l93)l284(i);l51->l183=l312();l51->l298=
- l422();l51->l76=l51->l176+l51->l298;}b l325(l408*l51){l480(i,(t)l51->
- l76,0);}l145 l281(){l145 l84;l84=(l145)l472(i);m l84;}l195 l312(b){
- l195 l84;l764(&l84,2,1,i);m l84;}l93 l422(){l93 l84;l764(&l84,4,1,i);
- m l84;}l335 l584(){l335 l84;l764(&l84,4,1,i);m l84;}b l912(d l36){l36
- [0]=(j)l584();l36[1]=(j)l584();l36[2]=(j)l584();}e*l495(){l38 e l545[
- 80];a g;l41(g=0;g<80;g++){l545[g]=(e)l281();f(l545[g]=='\0')l34;}m
- l545;}b l560(e*u){e*l49=(e* )l175(l268(u)+255);a g;g=0;l201((u[g]==
- ' '||u[g]=='"')&&u[g]!='\0')g++;l273(l49,&u[g]);l41(g=(a)(l268(l49)-1
- );g>=0;g--){f(l706(l49[g])&&!l856(l49[g])&&l49[g]!='"')l34;l29 l49[g]
- ='\0';}l273(u,l49);f(!l675(u[0]))l273(l49,u);l29{l49[0]='N';l273(&l49
- [1],u);}l41(g=0;l49[g]!='\0';g++){f(!l828(l49[g]))l49[g]='_';}l273(u,
- l49);f(l49[0]=='\0')l273(u,"\x74\x6d\x70\x5f\x6f\x62\x6a");l43(l49);}
-