{"name": "cgiGetAttributes", "code": "unsigned __int64 __fastcall cgiGetAttributes ( __int64 @@a1@@ , const char * @@a2@@ ) { char * @@v2@@ ; int @@v4@@ ; int i ; int j ; int k ; int c ; int ca ; char * @@v10@@ ; char * @@v11@@ ; const char * @@v12@@ ; FILE * @@stream@@ ; char * @@v14@@ [ Number ] ; char @@v15@@ [ Number ] ; char @@s1@@ [ Number ] ; __int16 @@v17@@ ; char @@s@@ [ Number ] ; unsigned __int64 @@v19@@ ; @@v19@@ = __readfsqword ( Number ) ; @@v11@@ = getenv ( String ) ; if ( @@v11@@ ) { for ( i = Number ; @@v11@@ [ i ] && i <= Number ; ++ i ) { if ( ( ( * _ctype_b_loc ( ) ) [ ( unsigned __int8 ) @@v11@@ [ i ] ] & Number ) != Number ) @@v15@@ [ i ] = tolower ( @@v11@@ [ i ] ) ; else @@v15@@ [ i ] = Number ; } @@v15@@ [ i ] = Number ; } else { @@v15@@ [ Number ] = Number ; } @@v12@@ = ( const char * ) cgiGetTemplateDir ( ) ; snprintf ( @@s@@ , Number , String , @@v12@@ , @@v15@@ , @@a2@@ ) ; if ( access ( @@s@@ , Number ) ) { @@v15@@ [ Number ] = Number ; snprintf ( @@s@@ , Number , String , @@v12@@ , @@v15@@ , @@a2@@ ) ; if ( access ( @@s@@ , Number ) ) snprintf ( @@s@@ , Number , String , @@v12@@ , @@a2@@ ) ; } @@stream@@ = fopen ( @@s@@ , String ) ; if ( @@stream@@ ) { @@v4@@ = Number ; @@v14@@ [ Number ] = Number L ; while ( Number ) { ca = getc ( @@stream@@ ) ; if ( ca == Number ) break ; if ( ca == Number ) { getc ( @@stream@@ ) ; } else if ( ca == Number && @@v4@@ <= Number ) { @@v10@@ = @@s1@@ ; while ( Number ) { c = getc ( @@stream@@ ) ; if ( c == Number || strchr ( String , c ) || @@v10@@ > @@s1@@ && c == Number ) break ; if ( @@v10@@ < ( char * ) & @@v17@@ ) { @@v2@@ = @@v10@@ ++ ; if ( c == Number ) * @@v2@@ = Number ; else * @@v2@@ = c ; } } * @@v10@@ = Number ; if ( ! strncmp ( @@s1@@ , String , Number ) ) cups_strlcpy ( @@s1@@ , String , Number L ) ; for ( j = Number ; j < @@v4@@ && strcmp ( @@v14@@ [ j ] , @@s1@@ ) ; ++ j ) ; if ( j >= @@v4@@ ) @@v14@@ [ @@v4@@ ++ ] = strdup ( @@s1@@ ) ; } } if ( @@v4@@ > Number ) { ippAddStrings ( @@a1@@ , Number L , Number L , String , ( unsigned int ) @@v4@@ , Number L , @@v14@@ ) ; for ( k = Number ; k < @@v4@@ ; ++ k ) free ( @@v14@@ [ k ] ) ; } fclose ( @@stream@@ ) ; } return __readfsqword ( Number ) ^ @@v19@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "v2", "t": {"T": 3, "t": "char"}, "location": "r8"}, {"n": "s", "t": {"T": 2, "n": 1032, "s": 1, "t": "char"}, "location": "s1040"}, {"n": "v17", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s1042"}, {"n": "s1", "t": {"T": 2, "n": 254, "s": 1, "t": "char"}, "location": "s1296"}, {"n": "v15", "t": {"T": 2, "n": 16, "s": 1, "t": "char"}, "location": "s1312"}, {"n": "v19", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "v14", "t": {"T": 2, "n": 1000, "s": 8, "t": "char *"}, "location": "s9312"}, {"n": "stream", "t": {"T": 3, "t": "FILE"}, "location": "s9320"}, {"n": "v12", "t": {"T": 3, "t": "const char"}, "location": "s9328"}, {"n": "v11", "t": {"T": 3, "t": "char"}, "location": "s9336"}, {"n": "v10", "t": {"T": 3, "t": "char"}, "location": "s9344"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s9356"}]}
{"name": "cgiShowJobs", "code": "unsigned __int64 __fastcall cgiShowJobs ( __int64 @@a1@@ , const char * @@a2@@ ) { unsigned int @@v2@@ ; signed int @@v4@@ ; int @@v5@@ ; int @@v6@@ ; char * @@i@@ ; __int64 @@v8@@ ; __int64 @@v9@@ ; __int64 @@v10@@ ; _BYTE * @@v11@@ ; char * @@nptr@@ ; __int64 @@v13@@ ; __int64 @@v14@@ ; const char * @@v15@@ ; char @@v16@@ [ Number ] ; char @@s@@ [ Number ] ; unsigned __int64 @@v18@@ ; @@v18@@ = __readfsqword ( Number ) ; @@v10@@ = ippNewRequest ( Number L ) ; if ( @@a2@@ ) { @@v2@@ = ippPort ( ) ; httpAssembleURIf ( Number L , @@v16@@ , Number L , String , Number L , String , @@v2@@ , String , @@a2@@ ) ; ippAddString ( @@v10@@ , Number L , Number L , String , Number L , @@v16@@ ) ; } else { ippAddString ( @@v10@@ , Number L , Number L , String , Number L , String ) ; } @@v11@@ = ( _BYTE * ) cgiGetVariable ( String ) ; if ( @@v11@@ && * @@v11@@ ) ippAddString ( @@v10@@ , Number L , Number L , String , Number L , @@v11@@ ) ; @@nptr@@ = ( char * ) cgiGetVariable ( String ) ; if ( @@nptr@@ ) { @@v5@@ = atoi ( @@nptr@@ ) ; if ( @@v5@@ < Number ) @@v5@@ = Number ; } else { @@v5@@ = Number ; } if ( @@v5@@ > Number ) ippAddInteger ( @@v10@@ , Number L , Number L , String , ( unsigned int ) ( @@v5@@ + Number ) ) ; cgiGetAttributes ( @@v10@@ , String ) ; @@v13@@ = cupsDoRequest ( @@a1@@ , @@v10@@ , String ) ; if ( @@v13@@ ) { @@v8@@ = cgiGetVariable ( String ) ; if ( ! @@v8@@ || cgiGetVariable ( String ) ) { @@v8@@ = Number L ; @@v9@@ = Number L ; } else { @@v9@@ = cgiCompileSearch ( @@v8@@ ) ; } @@v14@@ = cgiGetIPPObjects ( @@v13@@ , @@v9@@ ) ; @@v6@@ = @@v5@@ + cupsArrayCount ( @@v14@@ ) ; if ( @@v9@@ ) cgiFreeSearch ( @@v9@@ ) ; @@v15@@ = ( const char * ) cgiGetVariable ( String ) ; cgiClearVariables ( ) ; if ( @@v8@@ ) cgiSetVariable ( String , @@v8@@ ) ; cgiSetVariable ( String , @@v15@@ ) ; sprintf ( @@s@@ , String , ( unsigned int ) @@v6@@ ) ; cgiSetVariable ( String , @@s@@ ) ; if ( @@v11@@ ) cgiSetVariable ( String , @@v11@@ ) ; @@v4@@ = Number ; for ( @@i@@ = ( char * ) cupsArrayFirst ( @@v14@@ ) ; @@v4@@ <= Number && @@i@@ ; @@i@@ = ( char * ) cupsArrayNext ( @@v14@@ ) ) cgiSetIPPObjectVars ( @@i@@ , Number L , @@v4@@ ++ ) ; if ( @@a2@@ ) { snprintf ( @@s@@ , Number , String , @@v15@@ , @@a2@@ ) ; cgiSetVariable ( String , @@a2@@ ) ; cgiSetVariable ( String , @@s@@ ) ; } else { cups_strlcpy ( @@s@@ , String , Number L ) ; } cgiSetVariable ( String , @@s@@ ) ; if ( @@v5@@ > Number ) { sprintf ( @@s@@ , String , ( unsigned int ) ( @@v5@@ - Number ) ) ; cgiSetVariable ( String , @@s@@ ) ; } if ( @@v6@@ > @@v5@@ + Number ) { sprintf ( @@s@@ , String , ( unsigned int ) ( @@v5@@ + Number ) ) ; cgiSetVariable ( String , @@s@@ ) ; } if ( @@v6@@ > Number ) { snprintf ( @@s@@ , Number , String , ( unsigned int ) ( Number * ( @@v6@@ / Number ) ) ) ; cgiSetVariable ( String , @@s@@ ) ; } if ( @@a2@@ ) cgiSetVariable ( String , @@a2@@ ) ; cgiCopyTemplateLang ( String ) ; cgiCopyTemplateLang ( String ) ; if ( @@v6@@ > Number ) cgiCopyTemplateLang ( String ) ; cgiCopyTemplateLang ( String ) ; if ( @@v6@@ > Number ) cgiCopyTemplateLang ( String ) ; cupsArrayDelete ( @@v14@@ ) ; ippDelete ( @@v13@@ ) ; } return __readfsqword ( Number ) ^ @@v18@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r8"}, {"n": "s", "t": {"T": 2, "n": 1032, "s": 1, "t": "char"}, "location": "s1040"}, {"n": "v16", "t": {"T": 2, "n": 1024, "s": 1, "t": "char"}, "location": "s2064"}, {"n": "v15", "t": {"T": 3, "t": "const char"}, "location": "s2072"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s2080"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s2088"}, {"n": "nptr", "t": {"T": 3, "t": "char"}, "location": "s2096"}, {"n": "v11", "t": {"T": 3, "t": "_BYTE"}, "location": "s2104"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s2112"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s2120"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s2128"}, {"n": "i", "t": {"T": 3, "t": "char"}, "location": "s2136"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s2140"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s2144"}, {"n": "v4", "t": {"T": 1, "n": "signed int", "s": 4}, "location": "s2148"}, {"n": "v18", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}