{"name": "execute_action", "code": "void __fastcall execute_action ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { __int64 v4 ; _DWORD * v5 ; int v6 ; __int64 v7 ; int @@v8@@ ; __int64 v9 ; int @@v10@@ ; int * @@v11@@ ; __int64 @@v14@@ ; unsigned __int64 @@v15@@ ; unsigned __int64 @@v16@@ ; __int64 @@v17@@ ; if ( ! @@a4@@ ) return ; @@v16@@ = pdf_dict_get ( @@a1@@ , @@a4@@ , Number L ) ; if ( ! pdf_name_eq ( @@a1@@ , @@v16@@ , Number ) ) goto LABEL_11 ; @@v14@@ = pdf_dict_get ( @@a1@@ , @@a4@@ , Number L ) ; if ( @@v14@@ ) { @@v17@@ = pdf_to_utf8 ( @@a1@@ , @@a2@@ , @@v14@@ ) ; if ( ( unsigned int ) fz_push_try ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) { @@v11@@ = * ( int * * ) ( @@a1@@ + Number ) ; @@v10@@ = * @@v11@@ ; @@v11@@ [ Number * @@v10@@ + Number ] = _sigsetjmp ( ( struct __jmp_buf_tag * ) & @@v11@@ [ Number * * @@v11@@ + Number ] , Number ) ; if ( ! @@v11@@ [ Number * @@v10@@ + Number ] ) pdf_js_execute ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v17@@ ) ; } if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) + Number ) <= Number ) { v4 = * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) ; ++ * ( _DWORD * ) ( v4 + Number ) ; fz_free ( @@a1@@ , @@v17@@ ) ; } v5 = * ( _DWORD * * ) ( @@a1@@ + Number ) ; v6 = ( * v5 ) -- ; if ( ( int ) v5 [ Number * v6 + Number ] > Number ) { fz_rethrow ( @@a1@@ ) ; LABEL_11 : if ( pdf_name_eq ( @@a1@@ , @@v16@@ , Number ) ) { v7 = pdf_dict_get ( @@a1@@ , @@a4@@ , Number L ) ; @@v8@@ = pdf_to_int ( @@a1@@ , v7 ) & Number ; v9 = pdf_dict_get ( @@a1@@ , @@a4@@ , Number L ) ; reset_form ( @@a1@@ , @@a2@@ , v9 , @@v8@@ ) ; } else if ( pdf_name_eq ( @@a1@@ , @@v16@@ , Number ) ) { @@v15@@ = pdf_dict_get ( @@a1@@ , @@a4@@ , Number L ) ; if ( pdf_name_eq ( @@a1@@ , @@v15@@ , Number ) ) pdf_event_issue_print ( @@a1@@ , @@a2@@ ) ; } return ; } } }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "r32"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v17", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v16", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s32"}, {"n": "v15", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s40"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v11", "t": {"T": 3, "t": "int"}, "location": "s88"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s92"}]}
{"name": "pdf_name_eq", "code": "_BOOL8 __fastcall pdf_name_eq ( __int64 @@a1@@ , unsigned __int64 @@a2@@ , unsigned __int64 @@a3@@ ) { if ( @@a2@@ == @@a3@@ ) return Number L ; if ( @@a2@@ > Number || @@a3@@ > Number ) return ( unsigned int ) pdf_objcmp_resolve ( @@a1@@ , @@a2@@ , @@a3@@ ) == Number ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "r64"}]} {"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"}]} {"name": "execute_action_chain", "code": "__int64 __fastcall execute_action_chain ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { __int64 @@result@@ ; __int64 @@v5@@ [ Number ] ; __int64 @@v6@@ ; @@v6@@ = pdf_dict_get ( @@a1@@ , @@a3@@ , Number L ) ; @@v5@@ [ Number ] = @@a3@@ ; @@v5@@ [ Number ] = ( __int64 ) & unk_4FF0 ; @@result@@ = pdf_js_setup_event ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v5@@ ) ; while ( @@v6@@ ) { execute_action ( @@a1@@ , @@a2@@ , @@a3@@ , @@v6@@ ) ; @@result@@ = pdf_dict_get ( @@a1@@ , @@v6@@ , Number L ) ; @@v6@@ = @@result@@ ; } 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": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v5", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s32"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "execute_additional_action", "code": "void __fastcall execute_additional_action ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { __int64 @@v5@@ [ Number ] ; __int64 @@v6@@ ; @@v6@@ = pdf_dict_getp ( @@a1@@ , @@a3@@ , @@a4@@ ) ; if ( @@v6@@ ) { @@v5@@ [ Number ] = @@a3@@ ; @@v5@@ [ Number ] = ( __int64 ) & unk_4FF0 ; pdf_js_setup_event ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v5@@ ) ; execute_action ( @@a1@@ , @@a2@@ , @@a3@@ , @@v6@@ ) ; } }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "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": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v5", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s32"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "recalculate", "code": "__int64 __fastcall recalculate ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 result ; __int64 v3 ; __int64 v4 ; __int64 v5 ; _DWORD * v6 ; int @@v7@@ ; int @@v8@@ ; int * @@v9@@ ; __int64 @@v10@@ [ Number ] ; __int64 @@v11@@ ; __int64 @@v12@@ ; int @@v13@@ ; __int64 @@v14@@ ; unsigned int @@i@@ ; result = * ( unsigned int * ) ( @@a2@@ + Number ) ; if ( ! ( _DWORD ) result ) { * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; if ( ( unsigned int ) fz_push_try ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ) { @@v9@@ = * ( int * * ) ( @@a1@@ + Number ) ; @@v8@@ = * @@v9@@ ; @@v9@@ [ Number * @@v8@@ + Number ] = _sigsetjmp ( ( struct __jmp_buf_tag * ) & @@v9@@ [ Number * * @@v9@@ + Number ] , Number ) ; if ( ! @@v9@@ [ Number * @@v8@@ + Number ] ) { v3 = pdf_trailer ( @@a1@@ , @@a2@@ ) ; @@v14@@ = pdf_dict_getp ( @@a1@@ , v3 , String ) ; if ( @@v14@@ ) { if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v13@@ = pdf_array_len ( @@a1@@ , @@v14@@ ) ; for ( @@i@@ = Number ; ( int ) @@i@@ < @@v13@@ ; ++ @@i@@ ) { @@v12@@ = pdf_array_get ( @@a1@@ , @@v14@@ , @@i@@ ) ; @@v11@@ = pdf_dict_getp ( @@a1@@ , @@v12@@ , String ) ; if ( @@v11@@ ) { @@v10@@ [ Number ] = @@v12@@ ; @@v10@@ [ Number ] = pdf_field_value ( @@a1@@ , @@a2@@ , @@v12@@ ) ; pdf_js_setup_event ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v10@@ ) ; execute_action ( @@a1@@ , @@a2@@ , @@v12@@ , @@v11@@ ) ; v4 = pdf_js_get_event ( * ( _QWORD * ) ( @@a2@@ + Number ) ) ; update_field_value ( @@a1@@ , @@a2@@ , @@v12@@ , * ( char * * ) ( v4 + Number ) ) ; } } } } } } if ( * ( int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) + Number ) <= Number ) { v5 = * ( _QWORD * ) ( @@a1@@ + Number ) + Number L * * * ( int * * ) ( @@a1@@ + Number ) ; ++ * ( _DWORD * ) ( v5 + Number ) ; * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; } 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": "v7", "t": {"T": 1, "n": "int", "s": 4}, "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": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v10", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s64"}, {"n": "v9", "t": {"T": 3, "t": "int"}, "location": "s88"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s92"}]} {"name": "pdf_pass_event", "code": "__int64 __fastcall pdf_pass_event ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { __int64 v5 ; int v6 ; float * @@v8@@ ; _DWORD * @@v9@@ ; unsigned int @@v10@@ ; __int64 @@i@@ ; @@v9@@ = ( _DWORD * ) ( @@a2@@ + Number ) ; @@v8@@ = ( float * ) ( @@a4@@ + Number ) ; @@v10@@ = Number ; if ( ! @@a3@@ ) return Number L ; for ( @@i@@ = * ( _QWORD * ) ( @@a3@@ + Number ) ; @@i@@ && ( * @@v8@@ < * ( float * ) ( @@i@@ + Number ) || * ( float * ) ( @@i@@ + Number ) < * @@v8@@ || * ( float * ) ( @@a4@@ + Number ) < * ( float * ) ( @@i@@ + Number ) || * ( float * ) ( @@i@@ + Number ) < * ( float * ) ( @@a4@@ + Number ) ) ; @@i@@ = * ( _QWORD * ) ( @@i@@ + Number ) ) { ; } if ( @@i@@ ) { v5 = pdf_dict_get ( @@a1@@ , * ( _QWORD * ) ( @@i@@ + Number ) , Number L ) ; if ( ( pdf_to_int ( @@a1@@ , v5 ) & Number ) != Number ) @@i@@ = Number L ; } if ( ! * ( _DWORD * ) @@a4@@ ) { v6 = * ( _DWORD * ) ( @@a4@@ + Number ) ; if ( v6 ) { if ( v6 == Number ) { if ( * ( _DWORD * ) ( @@a2@@ + Number ) ) @@v10@@ = Number ; * @@v9@@ = Number ; * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; if ( @@i@@ ) { if ( ( unsigned int ) ( * ( _DWORD * ) ( @@i@@ + Number ) - Number ) <= Number ) { toggle_check_box ( @@a1@@ , @@a2@@ , * ( _QWORD * ) ( @@i@@ + Number ) ) ; @@v10@@ = Number ; } execute_additional_action ( @@a1@@ , @@a2@@ , * ( _QWORD * ) ( @@i@@ + Number ) , ( __int64 ) String ) ; execute_action_chain ( @@a1@@ , @@a2@@ , * ( _QWORD * ) ( @@i@@ + Number ) ) ; } } } else { if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { execute_additional_action ( @@a1@@ , @@a2@@ , * ( _QWORD * ) ( @@a2@@ + Number ) , ( __int64 ) String ) ; * ( _QWORD * ) ( @@a2@@ + Number ) = Number L ; pdf_drop_obj ( @@a1@@ , * ( _QWORD * ) ( @@a2@@ + Number ) ) ; * ( _QWORD * ) ( @@a2@@ + Number ) = Number L ; } if ( @@i@@ ) { * ( _QWORD * ) ( @@a2@@ + Number ) = @@i@@ ; * ( _QWORD * ) ( @@a2@@ + Number ) = pdf_keep_obj ( @@a1@@ , * ( _QWORD * ) ( @@i@@ + Number ) ) ; * @@v9@@ = pdf_to_num ( @@a1@@ , * ( _QWORD * ) ( @@i@@ + Number ) ) ; * ( _DWORD * ) ( @@a2@@ + Number ) = pdf_to_gen ( @@a1@@ , * ( _QWORD * ) ( @@i@@ + Number ) ) ; * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; @@v10@@ = Number ; execute_additional_action ( @@a1@@ , @@a2@@ , * ( _QWORD * ) ( @@i@@ + Number ) , ( __int64 ) String ) ; execute_additional_action ( @@a1@@ , @@a2@@ , * ( _QWORD * ) ( @@i@@ + Number ) , ( __int64 ) String ) ; } } } return @@v10@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "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": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v10", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v9", "t": {"T": 3, "t": "_DWORD"}, "location": "s24"}, {"n": "v8", "t": {"T": 3, "t": "float"}, "location": "s32"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "set_text_field_value", "code": "__int64 __fastcall set_text_field_value ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , char * @@a4@@ ) { __int64 @@v7@@ [ Number ] ; __int64 @@v8@@ ; @@v8@@ = pdf_dict_getp ( @@a1@@ , @@a3@@ , String ) ; if ( @@v8@@ && * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v7@@ [ Number ] = @@a3@@ ; @@v7@@ [ Number ] = ( __int64 ) @@a4@@ ; pdf_js_setup_event ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v7@@ ) ; execute_action ( @@a1@@ , @@a2@@ , @@a3@@ , @@v8@@ ) ; if ( ! * ( _DWORD * ) ( pdf_js_get_event ( * ( _QWORD * ) ( @@a2@@ + Number ) ) + Number ) ) return Number L ; @@a4@@ = * ( char * * ) ( pdf_js_get_event ( * ( _QWORD * ) ( @@a2@@ + Number ) ) + Number ) ; } if ( pdf_field_dirties_document ( @@a1@@ , @@a2@@ , @@a3@@ ) ) * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; update_field_value ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "char"}, "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": "v7", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s32"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "run_keystroke", "code": "__int64 __fastcall run_keystroke ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 * @@a4@@ , __int64 @@a5@@ , __int64 @@a6@@ ) { __int64 @@v9@@ [ Number ] ; __int64 @@v10@@ ; @@v10@@ = pdf_dict_getl ( @@a1@@ , @@a3@@ , Number L , Number L , Number L , @@a6@@ ) ; if ( @@v10@@ && * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v9@@ [ Number ] = @@a3@@ ; @@v9@@ [ Number ] = * @@a4@@ ; pdf_js_setup_event ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v9@@ ) ; execute_action ( @@a1@@ , @@a2@@ , @@a3@@ , @@v10@@ ) ; if ( ! * ( _DWORD * ) ( pdf_js_get_event ( * ( _QWORD * ) ( @@a2@@ + Number ) ) + Number ) ) return Number L ; * @@a4@@ = * ( _QWORD * ) ( pdf_js_get_event ( * ( _QWORD * ) ( @@a2@@ + Number ) ) + Number ) ; } return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "__int64"}, "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": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v9", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s32"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}