{"name": "cgiPrintCommand", "code": "unsigned __int64 __fastcall cgiPrintCommand ( __int64 @@a1@@ , const char * @@a2@@ , const char * @@a3@@ , __int64 @@a4@@ ) { __int64 v4 ; __int64 v5 ; size_t v6 ; __int64 v7 ; __int64 v8 ; int @@v12@@ ; unsigned int @@v13@@ ; char * @@v14@@ ; __int64 @@v15@@ ; __int64 @@v16@@ ; __int64 @@v17@@ ; __int64 @@v18@@ [ Number ] ; char @@v19@@ [ Number ] ; char @@v20@@ [ Number ] ; char @@v21@@ [ Number ] ; char @@s@@ [ Number ] ; unsigned __int64 @@v23@@ ; @@v23@@ = __readfsqword ( Number ) ; snprintf ( @@s@@ , Number , String , @@a3@@ ) ; if ( ( unsigned int ) cgiSupportsMultipart ( ) ) { cgiStartMultipart ( ) ; cgiStartHTML ( @@a4@@ ) ; cgiCopyTemplateLang ( String ) ; cgiEndHTML ( ) ; fflush ( stdout ) ; } @@v18@@ [ Number ] = ( __int64 ) String ; @@v18@@ [ Number ] = ( __int64 ) String ; @@v14@@ = getenv ( String ) ; if ( @@v14@@ ) cupsSetUser ( @@v14@@ ) ; else cupsSetUser ( String ) ; @@v13@@ = cupsCreateJob ( @@a1@@ , @@a2@@ , @@a4@@ , Number L , @@v18@@ ) ; if ( ( int ) @@v13@@ > Number ) { @@v12@@ = cupsStartDocument ( @@a1@@ , @@a2@@ , @@v13@@ , Number L , String , Number L ) ; if ( @@v12@@ == Number ) { v6 = strlen ( @@s@@ ) ; @@v12@@ = cupsWriteRequestData ( @@a1@@ , @@s@@ , v6 ) ; } if ( @@v12@@ == Number ) cupsFinishDocument ( @@a1@@ , @@a2@@ ) ; if ( ( int ) cupsLastError ( ) <= Number ) { if ( ( unsigned int ) cgiSupportsMultipart ( ) ) { while ( Number ) { snprintf ( @@v19@@ , Number , String , @@v13@@ ) ; @@v15@@ = ippNewRequest ( Number L ) ; ippAddString ( @@v15@@ , Number L , Number L , String , Number L , @@v19@@ ) ; if ( @@v14@@ ) ippAddString ( @@v15@@ , Number L , Number L , String , Number L , @@v14@@ ) ; ippAddStrings ( @@v15@@ , Number L , Number L , String , Number L , Number L , job_attrs_8061 ) ; @@v16@@ = cupsDoRequest ( @@a1@@ , @@v15@@ , String ) ; if ( @@v16@@ ) cgiSetIPPVars ( @@v16@@ , Number L , Number L , Number L , Number L ) ; @@v17@@ = ippFindAttribute ( @@v16@@ , String , Number L ) ; if ( ! @@v17@@ || * ( int * ) ( @@v17@@ + Number ) > Number || * ( _DWORD * ) ( @@v17@@ + Number ) == Number ) break ; ippDelete ( @@v16@@ ) ; cgiStartHTML ( @@a4@@ ) ; cgiCopyTemplateLang ( String ) ; cgiEndHTML ( ) ; fflush ( stdout ) ; sleep ( Number ) ; } ippDelete ( @@v16@@ ) ; } snprintf ( @@v20@@ , Number , String , @@a2@@ ) ; cgiFormEncode ( @@v19@@ , @@v20@@ , Number L ) ; snprintf ( @@v21@@ , Number , String , @@v19@@ ) ; cgiSetVariable ( String , @@v21@@ ) ; cgiStartHTML ( @@a4@@ ) ; cgiCopyTemplateLang ( String ) ; cgiEndHTML ( ) ; if ( ( unsigned int ) cgiSupportsMultipart ( ) ) goto LABEL_28 ; } else { v7 = cgiText ( String ) ; cgiSetVariable ( String , v7 ) ; v8 = cupsLastErrorString ( ) ; cgiSetVariable ( String , v8 ) ; cgiStartHTML ( @@a4@@ ) ; cgiCopyTemplateLang ( String ) ; cgiEndHTML ( ) ; if ( ( unsigned int ) cgiSupportsMultipart ( ) ) cgiEndMultipart ( ) ; cupsCancelJob ( @@a2@@ , @@v13@@ ) ; } } else { v4 = cgiText ( String ) ; cgiSetVariable ( String , v4 ) ; v5 = cupsLastErrorString ( ) ; cgiSetVariable ( String , v5 ) ; cgiStartHTML ( @@a4@@ ) ; cgiCopyTemplateLang ( String ) ; cgiEndHTML ( ) ; if ( ( unsigned int ) cgiSupportsMultipart ( ) ) { LABEL_28 : cgiEndMultipart ( ) ; return __readfsqword ( Number ) ^ @@v23@@ ; } } return __readfsqword ( Number ) ^ @@v23@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"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": "s1040"}, {"n": "v21", "t": {"T": 2, "n": 1024, "s": 1, "t": "char"}, "location": "s2064"}, {"n": "v20", "t": {"T": 2, "n": 1024, "s": 1, "t": "char"}, "location": "s3088"}, {"n": "v19", "t": {"T": 2, "n": 1024, "s": 1, "t": "char"}, "location": "s4112"}, {"n": "v18", "t": {"T": 2, "n": 2, "s": 8, "t": "__int64"}, "location": "s4128"}, {"n": "v17", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s4136"}, {"n": "v16", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s4144"}, {"n": "v15", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s4152"}, {"n": "v14", "t": {"T": 3, "t": "char"}, "location": "s4160"}, {"n": "v13", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4164"}, {"n": "v12", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4168"}, {"n": "v23", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "cgiSetIPPVars", "code": "__int64 __fastcall cgiSetIPPVars ( _QWORD * @@a1@@ , const char * @@a2@@ , const char * @@a3@@ , const char * @@a4@@ , unsigned int @@a5@@ ) { const char * @@v5@@ ; const char * @@v8@@ ; const char * @@v9@@ ; unsigned int @@i@@ ; __int64 @@v11@@ ; __int64 @@j@@ ; @@v9@@ = @@a3@@ ; @@v8@@ = @@a4@@ ; if ( ! @@a4@@ ) @@a4@@ = String ; if ( ! @@a3@@ ) @@a3@@ = String ; if ( @@a2@@ ) @@v5@@ = @@a2@@ ; else @@v5@@ = String ; fprintf ( stderr , String , @@a1@@ , @@v5@@ , @@a3@@ , @@a4@@ , @@a5@@ ) ; if ( ! @@v8@@ ) cgiSetServerVersion ( ) ; @@v11@@ = @@a1@@ [ Number ] ; if ( ! @@v8@@ ) { while ( @@v11@@ && * ( _DWORD * ) ( @@v11@@ + Number ) == Number ) @@v11@@ = * ( _QWORD * ) @@v11@@ ; } for ( @@i@@ = @@a5@@ ; @@v11@@ ; ++ @@i@@ ) { while ( @@v11@@ && ! * ( _DWORD * ) ( @@v11@@ + Number ) ) @@v11@@ = * ( _QWORD * ) @@v11@@ ; if ( ! @@v11@@ ) break ; if ( ! @@a2@@ ) goto LABEL_36 ; for ( @@j@@ = @@v11@@ ; @@j@@ && * ( _DWORD * ) ( @@j@@ + Number ) && ( ! * ( _QWORD * ) ( @@j@@ + Number ) || strcmp ( * ( const char * * ) ( @@j@@ + Number ) , @@a2@@ ) || * ( _DWORD * ) ( @@j@@ + Number ) != Number && ( * ( int * ) ( @@j@@ + Number ) <= Number || * ( int * ) ( @@j@@ + Number ) > Number ) || ! * ( _QWORD * ) ( @@j@@ + Number ) || ( unsigned int ) cups_strcasecmp ( * ( _QWORD * ) ( @@j@@ + Number ) , @@v9@@ ) ) ; @@j@@ = * ( _QWORD * ) @@j@@ ) { ; } if ( ! @@j@@ ) return @@i@@ + Number ; if ( * ( _DWORD * ) ( @@j@@ + Number ) ) { LABEL_36 : @@v11@@ = cgiSetIPPObjectVars ( ( char * ) @@v11@@ , @@v8@@ , @@i@@ ) ; } else { @@v11@@ = @@j@@ ; -- @@i@@ ; } } fprintf ( stderr , String , @@i@@ ) ; return @@i@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "const char"}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r72"}, {"n": "v5", "t": {"T": 3, "t": "const char"}, "location": "r8"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v9", "t": {"T": 3, "t": "const char"}, "location": "s56"}, {"n": "v8", "t": {"T": 3, "t": "const char"}, "location": "s64"}, {"n": "j", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"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"}]}