{"name": "av_make_error_string", "code": "__int64 __fastcall av_make_error_string ( __int64 @@a1@@ , __int64 @@a2@@ , unsigned int @@a3@@ ) { av_strerror ( @@a3@@ , @@a1@@ , @@a2@@ ) ; return @@a1@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned 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"}]}
{"name": "write_option", "code": "__int64 __fastcall write_option ( __int64 @@a1@@ , __int64 @@a2@@ , const char * @@a3@@ , const char * @@a4@@ ) { __int64 * v4 ; void * v5 ; float @@v7@@ ; const char * v8 ; __int64 @@v11@@ [ Number ] ; __int64 @@v12@@ ; signed int @@v13@@ ; __int64 @@v14@@ ; int * @@v15@@ ; char * @@v16@@ ; __int64 * @@v17@@ ; __int64 * @@v18@@ ; if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) v4 = ( __int64 * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + @@a1@@ ) ; else v4 = * ( __int64 * * ) ( @@a2@@ + Number ) ; @@v18@@ = v4 ; if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) { @@v17@@ = @@v18@@ ; @@v16@@ = strchr ( @@a3@@ , Number ) ; @@v15@@ = ( int * ) ( @@v18@@ + Number ) ; * @@v18@@ = grow_array ( * @@v18@@ , Number L , @@v18@@ + Number , ( unsigned int ) ( * ( ( _DWORD * ) @@v18@@ + Number ) + Number ) ) ; if ( @@v16@@ ) v5 = @@v16@@ + Number ; else v5 = & unk_6A4B ; @@v14@@ = av_strdup ( v5 ) ; if ( ! @@v14@@ ) return Number L ; * ( _QWORD * ) ( Number L * * @@v15@@ - Number + * @@v17@@ ) = @@v14@@ ; @@v18@@ = ( __int64 * ) ( * @@v17@@ + Number L * * @@v15@@ - Number + Number ) ; } if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) { @@v12@@ = av_strdup ( @@a4@@ ) ; av_freep ( @@v18@@ ) ; if ( ! @@v12@@ ) return Number L ; * @@v18@@ = @@v12@@ ; } else if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number || ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) { * ( _DWORD * ) @@v18@@ = ( int ) parse_number_or_die ( ( __int64 ) @@a3@@ , ( __int64 ) @@a4@@ , Number , Number , Number ) ; } else if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) { * @@v18@@ = ( unsigned int ) ( int ) parse_number_or_die ( ( __int64 ) @@a3@@ , ( __int64 ) @@a4@@ , Number , Number , Number ) ; } else if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) { * @@v18@@ = parse_time_or_die ( @@a3@@ , @@a4@@ , Number ) ; } else if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) { @@v7@@ = parse_number_or_die ( ( __int64 ) @@a3@@ , ( __int64 ) @@a4@@ , Number , - INFINITY , INFINITY ) ; * ( float * ) @@v18@@ = @@v7@@ ; } else if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) { * ( double * ) @@v18@@ = parse_number_or_die ( ( __int64 ) @@a3@@ , ( __int64 ) @@a4@@ , Number , - INFINITY , INFINITY ) ; } else if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v13@@ = ( * ( __int64 ( __fastcall * * ) ( __int64 , const char * , const char * ) ) ( @@a2@@ + Number ) ) ( @@a1@@ , @@a3@@ , @@a4@@ ) ; if ( @@v13@@ < Number ) { @@v11@@ [ Number ] = Number L ; @@v11@@ [ Number ] = Number L ; @@v11@@ [ Number ] = Number L ; @@v11@@ [ Number ] = Number L ; @@v11@@ [ Number ] = Number L ; @@v11@@ [ Number ] = Number L ; @@v11@@ [ Number ] = Number L ; @@v11@@ [ Number ] = Number L ; v8 = ( const char * ) av_make_error_string ( ( __int64 ) @@v11@@ , Number L , @@v13@@ ) ; av_log ( Number L , Number L , String , @@a4@@ , @@a3@@ , v8 ) ; return ( unsigned int ) @@v13@@ ; } } if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) exit_program ( Number ) ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "const char"}, "location": "r24"}, {"n": "v7", "t": {"T": 1, "n": "float", "s": 4}, "location": "r496"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v11", "t": {"T": 2, "n": 9, "s": 8, "t": "__int64"}, "location": "s136"}, {"n": "v18", "t": {"T": 3, "t": "__int64"}, "location": "s16"}, {"n": "v17", "t": {"T": 3, "t": "__int64"}, "location": "s24"}, {"n": "v16", "t": {"T": 3, "t": "char"}, "location": "s32"}, {"n": "v15", "t": {"T": 3, "t": "int"}, "location": "s40"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v13", "t": {"T": 1, "n": "signed int", "s": 4}, "location": "s52"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}]} {"name": "init_report", "code": "__int64 __fastcall init_report ( _BYTE * @@a1@@ ) { __int64 result ; const char * v2 ; char * @@v3@@ ; int * v4 ; char * v5 ; _BYTE * @@v6@@ ; __int64 @@v7@@ [ Number ] ; char * @@endptr@@ ; char * @@filename@@ [ Number ] ; time_t @@timer@@ ; char * @@nptr@@ ; char * @@s1@@ ; unsigned int @@v13@@ ; signed int @@v14@@ ; struct tm * @@v15@@ ; int @@v16@@ ; char * @@v17@@ ; @@v6@@ = @@a1@@ ; @@v17@@ = Number L ; @@v16@@ = Number ; if ( report_file ) return Number L ; time ( & @@timer@@ ) ; @@v15@@ = localtime ( & @@timer@@ ) ; while ( @@v6@@ && * @@v6@@ ) { @@v14@@ = av_opt_get_key_value ( & @@v6@@ , String , String , Number L , & @@s1@@ , & @@nptr@@ ) ; if ( @@v14@@ < Number ) { if ( @@v16@@ ) { @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; @@v7@@ [ Number ] = Number L ; v2 = ( const char * ) av_make_error_string ( ( __int64 ) @@v7@@ , Number L , @@v14@@ ) ; av_log ( Number L , Number L , String , v2 ) ; } break ; } if ( * @@v6@@ ) ++ @@v6@@ ; ++ @@v16@@ ; if ( ! strcmp ( @@s1@@ , String ) ) { av_free ( @@v17@@ ) ; @@v17@@ = @@nptr@@ ; @@nptr@@ = Number L ; } else if ( ! strcmp ( @@s1@@ , String ) ) { report_file_level = strtol ( @@nptr@@ , & @@endptr@@ , Number ) ; if ( * @@endptr@@ ) { av_log ( Number L , Number L , String ) ; exit_program ( Number ) ; } } else { av_log ( Number L , Number L , String , @@s1@@ ) ; } av_free ( @@nptr@@ ) ; av_free ( @@s1@@ ) ; } av_bprint_init ( @@filename@@ , Number L , Number L ) ; @@v3@@ = ( char * ) av_x_if_null ( ( __int64 ) @@v17@@ , ( __int64 ) String ) ; expand_filename_template ( ( __int64 ) @@filename@@ , @@v3@@ , ( unsigned int * ) @@v15@@ ) ; av_free ( @@v17@@ ) ; if ( av_bprint_is_complete ( ( __int64 ) @@filename@@ ) ) { report_file = fopen64 ( @@filename@@ [ Number ] , String ) ; if ( report_file ) { av_log_set_callback ( log_callback_report ) ; av_log ( Number L , Number L , String , ( const char * ) & program_name , ( unsigned int ) ( @@v15@@ -> tm_year + Number ) , ( unsigned int ) ( @@v15@@ -> tm_mon + Number ) , ( unsigned int ) @@v15@@ -> tm_mday , ( unsigned int ) @@v15@@ -> tm_hour , ( unsigned int ) @@v15@@ -> tm_min , ( unsigned int ) @@v15@@ -> tm_sec , @@filename@@ [ Number ] ) ; av_bprint_finalize ( @@filename@@ , Number L ) ; result = Number L ; } else { @@v13@@ = - * _errno_location ( ) ; v4 = _errno_location ( ) ; v5 = strerror ( * v4 ) ; av_log ( Number L , Number L , String , @@filename@@ [ Number ] , v5 ) ; result = @@v13@@ ; } } else { av_log ( Number L , Number L , String ) ; result = Number L ; } return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_BYTE"}, "location": "r56"}, {"n": "v3", "t": {"T": 3, "t": "char"}, "location": "r64"}, {"n": "filename", "t": {"T": 2, "n": 129, "s": 8, "t": "char *"}, "location": "s1096"}, {"n": "endptr", "t": {"T": 3, "t": "char"}, "location": "s1104"}, {"n": "v7", "t": {"T": 2, "n": 9, "s": 8, "t": "__int64"}, "location": "s1176"}, {"n": "v6", "t": {"T": 3, "t": "_BYTE"}, "location": "s1184"}, {"n": "v17", "t": {"T": 3, "t": "char"}, "location": "s16"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v15", "t": {"T": 3, "t": "struct tm"}, "location": "s32"}, {"n": "v14", "t": {"T": 1, "n": "signed int", "s": 4}, "location": "s36"}, {"n": "v13", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s40"}, {"n": "s1", "t": {"T": 3, "t": "char"}, "location": "s48"}, {"n": "nptr", "t": {"T": 3, "t": "char"}, "location": "s56"}, {"n": "timer", "t": {"T": 1, "n": "time_t", "s": 8}, "location": "s64"}]} {"name": "cmdutils_read_file", "code": "__int64 __fastcall cmdutils_read_file ( const char * @@a1@@ , void * * @@a2@@ , size_t * @@a3@@ ) { int * v3 ; char * v4 ; __int64 result ; int * v6 ; char * v7 ; _BYTE * v8 ; size_t v9 ; const char * v10 ; __int64 @@v12@@ [ Number ] ; FILE * @@stream@@ ; __int64 @@v14@@ ; @@stream@@ = ( FILE * ) av_fopen_utf8 ( @@a1@@ , String ) ; if ( @@stream@@ ) { @@v14@@ = fseek ( @@stream@@ , Number L , Number ) ; if ( @@v14@@ == Number || ( @@v14@@ = ftell ( @@stream@@ ) , @@v14@@ < Number ) || ( * @@a3@@ = @@v14@@ , @@v14@@ = fseek ( @@stream@@ , Number L , Number ) , @@v14@@ == Number ) ) { @@v14@@ = - * _errno_location ( ) ; } else { * @@a2@@ = ( void * ) av_malloc ( * @@a3@@ + Number ) ; if ( * @@a2@@ ) { @@v14@@ = fread ( * @@a2@@ , Number , * @@a3@@ , @@stream@@ ) ; if ( * @@a3@@ <= @@v14@@ ) { @@v14@@ = Number L ; v8 = * @@a2@@ ; v9 = ( * @@a3@@ ) ++ ; v8 [ v9 ] = Number ; } else { av_free ( * @@a2@@ ) ; if ( ferror ( @@stream@@ ) ) { @@v14@@ = - * _errno_location ( ) ; v6 = _errno_location ( ) ; v7 = strerror ( * v6 ) ; av_log ( Number L , Number L , String , @@a1@@ , v7 ) ; } else { @@v14@@ = Number ; } } } else { av_log ( Number L , Number L , String ) ; @@v14@@ = Number ; } } if ( @@v14@@ < Number ) { @@v12@@ [ Number ] = Number L ; @@v12@@ [ Number ] = Number L ; @@v12@@ [ Number ] = Number L ; @@v12@@ [ Number ] = Number L ; @@v12@@ [ Number ] = Number L ; @@v12@@ [ Number ] = Number L ; @@v12@@ [ Number ] = Number L ; @@v12@@ [ Number ] = Number L ; v10 = ( const char * ) av_make_error_string ( ( __int64 ) @@v12@@ , Number L , @@v14@@ ) ; av_log ( Number L , Number L , String , v10 ) ; } fclose ( @@stream@@ ) ; result = @@v14@@ ; } else { @@v14@@ = - * _errno_location ( ) ; v3 = _errno_location ( ) ; v4 = strerror ( * v3 ) ; av_log ( Number L , Number L , String , @@a1@@ , v4 ) ; result = @@v14@@ ; } return result ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "size_t"}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "void *"}, "location": "r64"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "stream", "t": {"T": 3, "t": "FILE"}, "location": "s24"}, {"n": "v12", "t": {"T": 2, "n": 8, "s": 8, "t": "__int64"}, "location": "s88"}]}