{"name": "specified_fields", "code": "__int64 __fastcall specified_fields ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , int @@a4@@ ) { __int64 v4 ; __int64 v5 ; __int64 v6 ; __int64 v7 ; __int64 v8 ; __int64 v9 ; _DWORD * v10 ; int v11 ; int * @@v13@@ ; int @@v14@@ ; __int64 @@v17@@ ; int @@v18@@ ; __int64 @@v19@@ ; __int64 @@v20@@ ; __int64 @@v21@@ ; __int64 @@v22@@ ; unsigned int @@i@@ ; __int64 @@v24@@ ; v4 = pdf_trailer ( @@a1@@ , @@a2@@ ) ; @@v24@@ = pdf_dict_getl ( @@a1@@ , v4 , Number L , Number L , Number L , Number L ) ; @@v22@@ = pdf_new_array ( @@a1@@ , @@a2@@ , Number L ) ; @@v17@@ = Number L ; fz_var_imp ( & @@v17@@ ) ; if ( ( unsigned int ) fz_push_try ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) { @@v13@@ = * ( int * * ) ( @@a1@@ + Number ) ; @@v14@@ = * @@v13@@ ; @@v13@@ [ Number * @@v14@@ + Number ] = _sigsetjmp ( ( struct __jmp_buf_tag * ) & @@v13@@ [ Number * * @@v13@@ + Number ] , Number ) ; if ( ! @@v13@@ [ Number * @@v14@@ + Number ] ) { if ( ! @@a4@@ && @@a3@@ ) { @@v18@@ = pdf_array_len ( @@a1@@ , @@a3@@ ) ; for ( @@i@@ = Number ; ( int ) @@i@@ < @@v18@@ ; ++ @@i@@ ) { @@v19@@ = pdf_array_get ( @@a1@@ , @@a3@@ , @@i@@ ) ; if ( ( unsigned int ) pdf_is_string ( @@a1@@ , @@v19@@ ) ) { v8 = pdf_to_str_buf ( @@a1@@ , @@v19@@ ) ; @@v19@@ = pdf_lookup_field ( @@a1@@ , @@v24@@ , v8 ) ; } if ( @@v19@@ ) add_field_hierarchy_to_array ( @@a1@@ , @@v22@@ , @@v19@@ ) ; } } else { @@v17@@ = pdf_new_null ( @@a1@@ , @@a2@@ ) ; @@v18@@ = pdf_array_len ( @@a1@@ , @@a3@@ ) ; for ( @@i@@ = Number ; ( int ) @@i@@ < @@v18@@ ; ++ @@i@@ ) { @@v21@@ = pdf_array_get ( @@a1@@ , @@a3@@ , @@i@@ ) ; if ( ( unsigned int ) pdf_is_string ( @@a1@@ , @@v21@@ ) ) { v5 = pdf_to_str_buf ( @@a1@@ , @@v21@@ ) ; @@v21@@ = pdf_lookup_field ( @@a1@@ , @@v24@@ , v5 ) ; } if ( @@v21@@ ) pdf_dict_put ( @@a1@@ , @@v21@@ , Number L , @@v17@@ ) ; } @@v18@@ = pdf_array_len ( @@a1@@ , @@v24@@ ) ; for ( @@i@@ = Number ; ( int ) @@i@@ < @@v18@@ ; ++ @@i@@ ) { v6 = pdf_array_get ( @@a1@@ , @@v24@@ , @@i@@ ) ; add_field_hierarchy_to_array ( @@a1@@ , @@v22@@ , v6 ) ; } @@v18@@ = pdf_array_len ( @@a1@@ , @@a3@@ ) ; for ( @@i@@ = Number ; ( int ) @@i@@ < @@v18@@ ; ++ @@i@@ ) { @@v20@@ = pdf_array_get ( @@a1@@ , @@a3@@ , @@i@@ ) ; if ( ( unsigned int ) pdf_is_string ( @@a1@@ , @@v20@@ ) ) { v7 = pdf_to_str_buf ( @@a1@@ , @@v20@@ ) ; @@v20@@ = pdf_lookup_field ( @@a1@@ , @@v24@@ , v7 ) ; } if ( @@v20@@ ) pdf_dict_del ( @@a1@@ , @@v20@@ , Number L ) ; } } } } if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) + Number ) <= Number ) { v9 = * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) ; ++ * ( _DWORD * ) ( v9 + Number ) ; pdf_drop_obj ( @@a1@@ , @@v17@@ ) ; } v10 = * ( _DWORD * * ) ( @@a1@@ + Number ) ; v11 = ( * v10 ) -- ; if ( ( int ) v10 [ Number * v11 + Number ] > Number ) { pdf_drop_obj ( @@a1@@ , @@v22@@ ) ; fz_rethrow ( @@a1@@ ) ; } return @@v22@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v13", "t": {"T": 3, "t": "int"}, "location": "s104"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v22", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v21", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v20", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v19", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v18", "t": {"T": 1, "n": "int", "s": 4}, "location": "s52"}, {"n": "v17", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}, {"n": "v24", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s96"}]}
{"name": "pdf_lookup_field", "code": "__int64 __fastcall pdf_lookup_field ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { int @@v3@@ ; char * @@s@@ ; __int64 @@v7@@ ; char * @@v8@@ ; @@v7@@ = Number L ; @@v8@@ = ( char * ) ( @@a3@@ - Number ) ; while ( @@v8@@ && @@a2@@ ) { @@s@@ = @@v8@@ + Number ; @@v8@@ = strchr ( @@v8@@ + Number , Number ) ; if ( @@v8@@ ) @@v3@@ = ( _DWORD ) @@v8@@ - ( _DWORD ) @@s@@ ; else @@v3@@ = strlen ( @@s@@ ) ; @@v7@@ = find_field ( @@a1@@ , @@a2@@ , @@s@@ , @@v3@@ ) ; if ( @@v8@@ ) @@a2@@ = pdf_dict_get ( @@a1@@ , @@v7@@ , Number L ) ; } return @@v7@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"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": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "s", "t": {"T": 3, "t": "char"}, "location": "s24"}, {"n": "v8", "t": {"T": 3, "t": "char"}, "location": "s8"}]} {"name": "add_field_hierarchy_to_array", "code": "__int64 __fastcall add_field_hierarchy_to_array ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { __int64 result ; __int64 v4 ; int @@v6@@ ; __int64 @@v7@@ ; unsigned int @@i@@ ; @@v7@@ = pdf_dict_get ( @@a1@@ , @@a3@@ , Number L ) ; result = pdf_dict_get ( @@a1@@ , @@a3@@ , Number L ) ; if ( ! result ) { result = pdf_array_push ( @@a1@@ , @@a2@@ , @@a3@@ ) ; if ( @@v7@@ ) { @@v6@@ = pdf_array_len ( @@a1@@ , @@v7@@ ) ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { result = @@i@@ ; if ( ( int ) @@i@@ >= @@v6@@ ) break ; v4 = pdf_array_get ( @@a1@@ , @@v7@@ , @@i@@ ) ; add_field_hierarchy_to_array ( @@a1@@ , @@a2@@ , v4 ) ; } } } return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "reset_form", "code": "__int64 __fastcall reset_form ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , int @@a4@@ ) { __int64 v4 ; __int64 v5 ; _DWORD * v6 ; int v7 ; __int64 result ; int * @@v9@@ ; int @@v10@@ ; int @@v11@@ ; unsigned int @@i@@ ; __int64 @@v13@@ ; @@v13@@ = specified_fields ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; if ( ( unsigned int ) fz_push_try ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) { @@v9@@ = * ( int * * ) ( @@a1@@ + Number ) ; @@v10@@ = * @@v9@@ ; @@v9@@ [ Number * @@v10@@ + Number ] = _sigsetjmp ( ( struct __jmp_buf_tag * ) & @@v9@@ [ Number * * @@v9@@ + Number ] , Number ) ; if ( ! @@v9@@ [ Number * @@v10@@ + Number ] ) { @@v11@@ = pdf_array_len ( @@a1@@ , @@v13@@ ) ; for ( @@i@@ = Number ; ( int ) @@i@@ < @@v11@@ ; ++ @@i@@ ) { v4 = pdf_array_get ( @@a1@@ , @@v13@@ , @@i@@ ) ; reset_field ( @@a1@@ , @@a2@@ , v4 ) ; } } } if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) + Number ) <= Number ) { v5 = * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) ; ++ * ( _DWORD * ) ( v5 + Number ) ; pdf_drop_obj ( @@a1@@ , @@v13@@ ) ; } v6 = * ( _DWORD * * ) ( @@a1@@ + Number ) ; v7 = ( * v6 ) -- ; result = ( unsigned int ) v6 [ Number * v7 + Number ] ; if ( ( int ) result > Number ) result = fz_rethrow ( @@a1@@ ) ; return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v11", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s48"}, {"n": "v9", "t": {"T": 3, "t": "int"}, "location": "s56"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}