{"name": "cgiPrintTestPage", "code": "unsigned __int64 __fastcall cgiPrintTestPage ( __int64 @@a1@@ , const char * @@a2@@ ) { const char * v2 ; const char * @@v3@@ ; unsigned int v4 ; __int64 v5 ; char * @@v7@@ ; char * @@v8@@ ; __int64 @@v9@@ ; __int64 @@v10@@ ; char @@v11@@ [ Number ] ; char @@v12@@ [ Number ] ; char @@v13@@ [ Number ] ; char @@s@@ [ Number ] ; unsigned __int64 @@v15@@ ; @@v15@@ = __readfsqword ( Number ) ; @@v8@@ = getenv ( String ) ; @@v7@@ = getenv ( String ) ; if ( ! @@v7@@ ) @@v7@@ = String ; snprintf ( @@s@@ , Number , String , @@v7@@ ) ; v2 = ( const char * ) cgiGetVariable ( String ) ; snprintf ( @@v12@@ , Number , String , v2 , @@a2@@ ) ; @@v3@@ = ( const char * ) cgiGetVariable ( String ) ; v4 = ippPort ( ) ; httpAssembleURIf ( Number L , @@v11@@ , Number L , String , Number L , String , v4 , String , @@v3@@ , @@a2@@ ) ; @@v9@@ = ippNewRequest ( Number L ) ; ippAddString ( @@v9@@ , Number L , Number L , String , Number L , @@v11@@ ) ; if ( @@v8@@ ) ippAddString ( @@v9@@ , Number L , Number L , String , Number L , @@v8@@ ) ; ippAddString ( @@v9@@ , Number L , Number L , String , Number L , String ) ; @@v10@@ = cupsDoFileRequest ( @@a1@@ , @@v9@@ , @@v12@@ , @@s@@ ) ; if ( @@v10@@ ) { cgiSetIPPVars ( @@v10@@ , Number L , Number L , Number L , Number L ) ; ippDelete ( @@v10@@ ) ; } if ( ( int ) cupsLastError ( ) > Number ) { if ( ( unsigned int ) cupsLastError ( ) == Number ) { puts ( String ) ; exit ( Number ) ; } } else { cgiFormEncode ( @@v11@@ , @@v12@@ , Number L ) ; snprintf ( @@v13@@ , Number , String , @@v11@@ ) ; cgiSetVariable ( String , @@v13@@ ) ; } v5 = cgiText ( String ) ; cgiStartHTML ( v5 ) ; if ( ( int ) cupsLastError ( ) <= Number ) { cgiSetVariable ( String , @@a2@@ ) ; cgiCopyTemplateLang ( String ) ; } else { cgiShowIPPError ( String ) ; } cgiEndHTML ( ) ; return __readfsqword ( Number ) ^ @@v15@@ ; }", "source": [{"n": "v3", "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": "v13", "t": {"T": 2, "n": 1024, "s": 1, "t": "char"}, "location": "s2080"}, {"n": "v15", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s24"}, {"n": "v12", "t": {"T": 2, "n": 1024, "s": 1, "t": "char"}, "location": "s3104"}, {"n": "v11", "t": {"T": 2, "n": 1024, "s": 1, "t": "char"}, "location": "s4128"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s4136"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s4144"}, {"n": "v8", "t": {"T": 3, "t": "char"}, "location": "s4152"}, {"n": "v7", "t": {"T": 3, "t": "char"}, "location": "s4160"}]}
{"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": "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"}]}