{"name": "cgiMoveJobs", "code": "unsigned __int64 __fastcall cgiMoveJobs ( __int64 @@a1@@ , const char * @@a2@@ , unsigned int @@a3@@ ) { char * v3 ; __int64 v4 ; __int64 v5 ; __int64 v6 ; __int64 v7 ; const char * v8 ; const char * @@v9@@ ; unsigned int v10 ; __int64 v11 ; __int64 v12 ; char * @@v15@@ ; unsigned int @@v16@@ ; __int64 v17 ; __int64 i ; char * @@v19@@ ; char * @@v20@@ ; char * @@haystack@@ ; __int64 v22 ; __int64 v23 ; __int64 v24 ; char * @@v25@@ ; __int64 v26 ; __int64 v27 ; char * @@v28@@ ; char @@v29@@ [ Number ] ; char @@v30@@ [ Number ] ; char @@s@@ [ Number ] ; unsigned __int64 @@v32@@ ; @@v15@@ = ( char * ) @@a2@@ ; @@v32@@ = __readfsqword ( Number ) ; @@v20@@ = getenv ( String ) ; if ( ! @@v20@@ ) { puts ( String ) ; exit ( Number ) ; } @@haystack@@ = ( char * ) cgiGetVariable ( String ) ; if ( @@haystack@@ ) { v24 = ippNewRequest ( Number L ) ; if ( @@a3@@ ) { snprintf ( @@v30@@ , Number , String , @@a3@@ ) ; snprintf ( @@v29@@ , Number , String , @@a3@@ ) ; ippAddString ( v24 , Number L , Number L , String , Number L , @@v29@@ ) ; } else { v8 = ( const char * ) cgiGetVariable ( String ) ; snprintf ( @@v30@@ , Number , String , v8 , @@a2@@ ) ; @@v9@@ = ( const char * ) cgiGetVariable ( String ) ; v10 = ippPort ( ) ; httpAssembleURIf ( Number L , @@v29@@ , Number L , String , Number L , String , v10 , String , @@v9@@ , @@a2@@ ) ; ippAddString ( v24 , Number L , Number L , String , Number L , @@v29@@ ) ; } ippAddString ( v24 , Number L , Number L , String , Number L , @@haystack@@ ) ; ippAddString ( v24 , Number L , Number L , String , Number L , @@v20@@ ) ; v11 = cupsDoRequest ( @@a1@@ , v24 , @@v30@@ ) ; ippDelete ( v11 ) ; @@v25@@ = strrchr ( @@haystack@@ , Number ) + Number ; if ( ( int ) cupsLastError ( ) <= Number ) { @@v19@@ = strstr ( @@haystack@@ , String ) ; if ( ! @@v19@@ ) { @@v19@@ = strstr ( @@haystack@@ , String ) ; cgiSetVariable ( String , String ) ; } if ( @@v19@@ ) { cgiFormEncode ( @@v29@@ , @@v19@@ , Number L ) ; snprintf ( @@s@@ , Number , String , @@v29@@ ) ; cgiSetVariable ( String , @@s@@ ) ; } } if ( @@a3@@ ) v12 = cgiText ( String ) ; else v12 = cgiText ( String ) ; cgiStartHTML ( v12 ) ; if ( ( int ) cupsLastError ( ) <= Number ) { cgiSetVariable ( String , @@v25@@ ) ; cgiCopyTemplateLang ( String ) ; } else if ( @@a3@@ ) { cgiShowIPPError ( String ) ; } else { cgiShowIPPError ( String ) ; } goto LABEL_49 ; } if ( @@a3@@ ) { sprintf ( @@s@@ , String , @@a3@@ ) ; cgiSetVariable ( String , @@s@@ ) ; } if ( @@a2@@ ) cgiSetVariable ( String , @@a2@@ ) ; if ( @@a2@@ ) goto LABEL_15 ; v22 = ippNewRequest ( Number L ) ; snprintf ( @@s@@ , Number , String , @@a3@@ ) ; ippAddString ( v22 , Number L , Number L , String , Number L , @@s@@ ) ; ippAddString ( v22 , Number L , Number L , String , Number L , String ) ; v26 = cupsDoRequest ( @@a1@@ , v22 , String ) ; if ( v26 ) { v17 = ippFindAttribute ( v26 , String , Number L ) ; if ( v17 ) { v3 = strrchr ( * ( const char * * ) ( v17 + Number ) , Number ) + Number ; cups_strlcpy ( @@v30@@ , v3 , Number L ) ; @@v15@@ = @@v30@@ ; } ippDelete ( v26 ) ; } if ( @@v15@@ ) { LABEL_15 : v23 = ippNewRequest ( Number L ) ; ippAddString ( v23 , Number L , Number L , String , Number L , String ) ; ippAddString ( v23 , Number L , Number L , String , Number L , @@v20@@ ) ; ippAddInteger ( v23 , Number L , Number L , String , Number L ) ; ippAddInteger ( v23 , Number L , Number L , String , Number ) ; v27 = cupsDoRequest ( @@a1@@ , v23 , String ) ; if ( v27 ) { @@v16@@ = Number ; for ( i = ippFindAttribute ( v27 , String , Number L ) ; i ; i = ippFindNextAttribute ( v27 , String , Number L ) ) { @@v28@@ = strrchr ( * ( const char * * ) ( i + Number ) , Number ) + Number ; if ( ( unsigned int ) cups_strcasecmp ( @@v28@@ , @@v15@@ ) ) { cgiSetArray ( String , @@v16@@ , * ( _QWORD * ) ( i + Number ) ) ; cgiSetArray ( String , @@v16@@ ++ , @@v28@@ ) ; } } ippDelete ( v27 ) ; } if ( @@a3@@ ) v5 = cgiText ( String ) ; else v5 = cgiText ( String ) ; cgiStartHTML ( v5 ) ; if ( ( int ) cgiGetSize ( String ) <= Number ) { if ( @@a3@@ ) v6 = cgiText ( String ) ; else v6 = cgiText ( String ) ; cgiSetVariable ( String , v6 ) ; v7 = cgiText ( String ) ; cgiSetVariable ( String , v7 ) ; cgiCopyTemplateLang ( String ) ; } else { cgiCopyTemplateLang ( String ) ; } LABEL_49 : cgiEndHTML ( ) ; return __readfsqword ( Number ) ^ @@v32@@ ; } v4 = cgiText ( String ) ; cgiStartHTML ( v4 ) ; cgiShowIPPError ( String ) ; cgiEndHTML ( ) ; return __readfsqword ( Number ) ^ @@v32@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r16"}, {"n": "v9", "t": {"T": 3, "t": "const char"}, "location": "r32"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "s", "t": {"T": 2, "n": 1032, "s": 1, "t": "char"}, "location": "s1056"}, {"n": "v30", "t": {"T": 2, "n": 1024, "s": 1, "t": "char"}, "location": "s2080"}, {"n": "v32", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s24"}, {"n": "v29", "t": {"T": 2, "n": 1024, "s": 1, "t": "char"}, "location": "s3104"}, {"n": "v28", "t": {"T": 3, "t": "char"}, "location": "s3112"}, {"n": "v25", "t": {"T": 3, "t": "char"}, "location": "s3128"}, {"n": "haystack", "t": {"T": 3, "t": "char"}, "location": "s3144"}, {"n": "v20", "t": {"T": 3, "t": "char"}, "location": "s3152"}, {"n": "v19", "t": {"T": 3, "t": "char"}, "location": "s3160"}, {"n": "v16", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s3172"}, {"n": "v15", "t": {"T": 3, "t": "char"}, "location": "s3200"}]}
{"name": "cgiShowIPPError", "code": "__int64 __fastcall cgiShowIPPError ( __int64 @@a1@@ ) { __int64 @@v1@@ ; __int64 @@v2@@ ; @@v1@@ = cgiText ( @@a1@@ ) ; cgiSetVariable ( String , @@v1@@ ) ; @@v2@@ = cupsLastErrorString ( ) ; cgiSetVariable ( String , @@v2@@ ) ; return cgiCopyTemplateLang ( String ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "cgiText", "code": "__int64 __fastcall cgiText ( __int64 @@a1@@ ) { if ( ! language_8196 ) language_8196 = cupsLangDefault ( ) ; return cupsLangString ( language_8196 , @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}