{"name": "cgiGetIPPObjects", "code": "__int64 __fastcall cgiGetIPPObjects ( __int64 @@a1@@ , __int64 @@a2@@ ) { const char * @@v3@@ ; int k ; int j ; int @@v6@@ ; int @@v7@@ ; __int64 * @@i@@ ; __int64 * @@v9@@ ; __int64 @@v10@@ ; char @@s@@ [ Number ] ; unsigned __int64 @@v12@@ ; @@v12@@ = __readfsqword ( Number ) ; if ( ! @@a1@@ ) return Number L ; @@v7@@ = Number ; @@v9@@ = Number L ; @@v10@@ = cupsArrayNew ( Number L , Number L ) ; @@v6@@ = Number ; for ( @@i@@ = * ( __int64 * * ) ( @@a1@@ + Number ) ; @@i@@ ; @@i@@ = ( __int64 * ) * @@i@@ ) { if ( @@v6@@ != * ( ( _DWORD * ) @@i@@ + Number ) ) { @@v6@@ = * ( ( _DWORD * ) @@i@@ + Number ) ; if ( ! @@v6@@ || @@v6@@ == Number ) { if ( @@v7@@ && @@v9@@ ) { cupsArrayAdd ( @@v10@@ , @@v9@@ ) ; @@v7@@ = Number ; @@v9@@ = Number L ; } } else { @@v9@@ = @@i@@ ; @@v7@@ = Number ; } } if ( @@i@@ [ Number ] && * ( ( _DWORD * ) @@i@@ + Number ) != Number && ! @@v7@@ ) { if ( @@a2@@ ) { switch ( * ( ( _DWORD * ) @@i@@ + Number ) ) { case String : @@v3@@ = ( const char * ) ippGetName ( @@i@@ ) ; if ( strncmp ( @@v3@@ , String , Number ) ) { for ( j = Number ; ! @@v7@@ && j < * ( ( _DWORD * ) @@i@@ + Number ) ; ++ j ) { sprintf ( @@s@@ , String , LODWORD ( @@i@@ [ Number * j + Number ] ) ) ; if ( ( unsigned int ) cgiDoSearch ( @@a2@@ , @@s@@ ) ) @@v7@@ = Number ; } } break ; case String : case String : case String : case String : case String : case String : case String : for ( k = Number ; ! @@v7@@ && k < * ( ( _DWORD * ) @@i@@ + Number ) ; ++ k ) { if ( ( unsigned int ) cgiDoSearch ( @@a2@@ , @@i@@ [ Number * k + Number ] ) ) @@v7@@ = Number ; } break ; default : continue ; } } else { @@v7@@ = Number ; } } } if ( @@v7@@ ) { if ( @@v9@@ ) cupsArrayAdd ( @@v10@@ , @@v9@@ ) ; } return @@v10@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v3", "t": {"T": 3, "t": "const char"}, "location": "r8"}, {"n": "s", "t": {"T": 2, "n": 264, "s": 1, "t": "char"}, "location": "s272"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s280"}, {"n": "v9", "t": {"T": 3, "t": "__int64"}, "location": "s288"}, {"n": "i", "t": {"T": 3, "t": "__int64"}, "location": "s296"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s300"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s304"}, {"n": "v12", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"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"}]}