{"name": "split_commandline", "code": "__int64 __fastcall split_commandline ( __int64 @@a1@@ , int @@a2@@ , __int64 @@a3@@ , const char * * @@a4@@ , const char * * @@a5@@ , int @@a6@@ ) { int v6 ; int v7 ; int v9 ; int v10 ; const char * * v15 ; const char * * v16 ; int v17 ; int v18 ; __int64 v19 ; __int64 v20 ; const char * v21 ; const char * v22 ; int @@v23@@ ; int @@v24@@ ; @@v24@@ = Number ; @@v23@@ = Number ; prepare_app_arguments ( ) ; init_parse_context ( ( _QWORD * ) @@a1@@ , ( __int64 ) @@a5@@ , @@a6@@ ) ; av_log ( Number L , Number L , String ) ; while ( @@v24@@ < @@a2@@ ) { v6 = @@v24@@ ++ ; v19 = * ( _QWORD * ) ( @@a3@@ + Number L * v6 ) ; av_log ( Number L , Number L , String , ( const char * ) v19 ) ; if ( * ( _BYTE * ) v19 == Number && * ( _BYTE * ) ( v19 + Number ) == Number && ! * ( _BYTE * ) ( v19 + Number ) ) { @@v23@@ = @@v24@@ ; } else if ( * ( _BYTE * ) v19 == Number && * ( _BYTE * ) ( v19 + Number ) && @@v24@@ != @@v23@@ + Number ) { v20 = v19 + Number ; v17 = match_group_separator ( ( __int64 ) @@a5@@ , @@a6@@ , ( const char * ) v20 ) ; if ( v17 < Number ) { v15 = find_option ( @@a4@@ , ( const char * ) v20 ) ; if ( * v15 ) { if ( ( ( _DWORD ) v15 [ Number ] & Number ) != Number ) { v9 = @@v24@@ ++ ; v22 = * ( const char * * ) ( @@a3@@ + Number L * v9 ) ; add_opt ( @@a1@@ , ( __int64 ) v15 , v20 , ( __int64 ) v22 ) ; } else { if ( ( ( _DWORD ) v15 [ Number ] & Number ) != Number ) { v10 = @@v24@@ ++ ; v22 = * ( const char * * ) ( @@a3@@ + Number L * v10 ) ; if ( ! v22 ) { LABEL_12 : av_log ( Number L , Number L , String , ( const char * ) v20 ) ; return Number L ; } } else { v22 = String ; } add_opt ( @@a1@@ , ( __int64 ) v15 , v20 , ( __int64 ) v22 ) ; } av_log ( Number L , Number L , String , * v15 , v15 [ Number ] , v22 ) ; } else { if ( ! * ( _QWORD * ) ( Number L * @@v24@@ + @@a3@@ ) ) goto LABEL_28 ; v18 = opt_default ( Number L , ( const char * ) v20 , * ( _QWORD * ) ( Number L * @@v24@@ + @@a3@@ ) ) ; if ( v18 < Number ) { if ( v18 != Number ) { av_log ( Number L , Number L , String , ( const char * ) v20 , * ( const char * * ) ( Number L * @@v24@@ + @@a3@@ ) ) ; return ( unsigned int ) v18 ; } LABEL_28 : if ( * ( _BYTE * ) v20 != Number || * ( _BYTE * ) ( v20 + Number ) != Number || ( v16 = find_option ( @@a4@@ , ( const char * ) ( v20 + Number ) ) ) == Number L || ! * v16 || ( ( _DWORD ) v16 [ Number ] & Number ) == Number ) { av_log ( Number L , Number L , String , ( const char * ) v20 ) ; return Number L ; } add_opt ( @@a1@@ , ( __int64 ) v16 , v20 , ( __int64 ) String ) ; av_log ( Number L , Number L , String , * v16 , v16 [ Number ] ) ; } else { av_log ( Number L , Number L , String , ( const char * ) v20 , * ( const char * * ) ( Number L * @@v24@@ ++ + @@a3@@ ) ) ; } } } else { v7 = @@v24@@ ++ ; v21 = * ( const char * * ) ( @@a3@@ + Number L * v7 ) ; if ( ! v21 ) goto LABEL_12 ; finish_group ( ( _QWORD * ) @@a1@@ , v17 , ( __int64 ) v21 ) ; av_log ( Number L , Number L , String , @@a5@@ [ Number * v17 ] , v21 ) ; } } else { finish_group ( ( _QWORD * ) @@a1@@ , Number , v19 ) ; av_log ( Number L , Number L , String , * @@a5@@ ) ; } } if ( * ( _DWORD * ) ( @@a1@@ + Number ) || codec_opts || format_opts || resample_opts ) av_log ( Number L , Number L , String ) ; av_log ( Number L , Number L , String ) ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "const char *"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "a5", "t": {"T": 3, "t": "const char *"}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "int", "s": 4}, "location": "r80"}, {"n": "v24", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v23", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}]}
{"name": "find_option", "code": "const char * * __fastcall find_option ( const char * * @@a1@@ , const char * @@a2@@ ) { int @@v2@@ ; int @@v5@@ ; char * @@v6@@ ; @@v6@@ = strchr ( @@a2@@ , Number ) ; if ( @@v6@@ ) @@v2@@ = ( _DWORD ) @@v6@@ - ( _DWORD ) @@a2@@ ; else @@v2@@ = strlen ( @@a2@@ ) ; @@v5@@ = @@v2@@ ; while ( * @@a1@@ && ( strncmp ( @@a2@@ , * @@a1@@ , @@v5@@ ) || strlen ( * @@a1@@ ) != @@v5@@ ) ) @@a1@@ += Number ; return @@a1@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char *"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v6", "t": {"T": 3, "t": "char"}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}]} {"name": "opt_default", "code": "__int64 __fastcall opt_default ( __int64 @@a1@@ , const char * @@a2@@ , __int64 @@a3@@ ) { __int64 v3 ; __int64 v4 ; __int64 v5 ; __int64 @@result@@ ; __int64 v7 ; __int64 @@v9@@ ; __int64 @@v10@@ ; __int64 @@v11@@ ; __int64 @@v12@@ ; __int64 @@v13@@ ; char @@v14@@ [ Number ] ; unsigned int @@v15@@ ; unsigned int @@v16@@ ; char * @@v17@@ ; int @@v18@@ ; __int64 @@v19@@ ; @@v18@@ = Number ; @@v13@@ = avcodec_get_class ( ) ; @@v12@@ = avformat_get_class ( ) ; if ( ! strcmp ( @@a2@@ , String ) || ! strcmp ( @@a2@@ , String ) ) av_log_set_level ( Number L ) ; @@v17@@ = strchr ( @@a2@@ , Number ) ; if ( ! @@v17@@ ) @@v17@@ = ( char * ) & @@a2@@ [ strlen ( @@a2@@ ) ] ; v3 = Number L ; if ( ( unsigned __int64 ) ( @@v17@@ - @@a2@@ + Number ) <= Number ) v3 = @@v17@@ - @@a2@@ + Number ; av_strlcpy ( @@v14@@ , @@a2@@ , v3 ) ; @@v19@@ = opt_find ( ( __int64 ) & @@v13@@ , ( __int64 ) @@v14@@ , Number L , Number , Number ) ; if ( @@v19@@ || ( * @@a2@@ == Number || * @@a2@@ == Number || * @@a2@@ == Number ) && ( @@v19@@ = opt_find ( ( __int64 ) & @@v13@@ , ( __int64 ) ( @@a2@@ + Number ) , Number L , Number , Number ) ) != Number ) { if ( * ( _DWORD * ) ( @@v19@@ + Number ) ) v4 = Number L ; else v4 = Number L ; av_dict_set ( & codec_opts , @@a2@@ , @@a3@@ , v4 ) ; @@v18@@ = Number ; } @@v19@@ = opt_find ( ( __int64 ) & @@v12@@ , ( __int64 ) @@a2@@ , Number L , Number , Number ) ; if ( @@v19@@ ) { if ( * ( _DWORD * ) ( @@v19@@ + Number ) ) v5 = Number L ; else v5 = Number L ; av_dict_set ( & format_opts , @@a2@@ , @@a3@@ , v5 ) ; if ( @@v18@@ ) av_log ( Number L , Number L , String , @@a2@@ ) ; @@v18@@ = Number ; } @@v11@@ = sws_get_class ( ) ; if ( ! @@v18@@ && opt_find ( ( __int64 ) & @@v11@@ , ( __int64 ) @@a2@@ , Number L , Number , Number ) ) { @@v16@@ = av_opt_set ( sws_opts , @@a2@@ , @@a3@@ , Number L ) ; if ( ( @@v16@@ & Number ) != Number ) { av_log ( Number L , Number L , String , @@a2@@ ) ; return @@v16@@ ; } @@v18@@ = Number ; } @@v10@@ = swr_get_class ( ) ; if ( ! @@v18@@ ) { @@v19@@ = opt_find ( ( __int64 ) & @@v10@@ , ( __int64 ) @@a2@@ , Number L , Number , Number ) ; if ( @@v19@@ ) { @@v9@@ = swr_alloc ( ) ; @@v15@@ = av_opt_set ( @@v9@@ , @@a2@@ , @@a3@@ , Number L ) ; swr_free ( & @@v9@@ ) ; if ( ( @@v15@@ & Number ) != Number ) { av_log ( Number L , Number L , String , @@a2@@ ) ; return @@v15@@ ; } if ( * ( _DWORD * ) ( @@v19@@ + Number ) ) v7 = Number L ; else v7 = Number L ; av_dict_set ( & swr_opts , @@a2@@ , @@a3@@ , v7 ) ; @@v18@@ = Number ; } } if ( @@v18@@ ) @@result@@ = Number L ; else @@result@@ = Number L ; 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": 3, "t": "const char"}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v19", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v14", "t": {"T": 2, "n": 128, "s": 1, "t": "char"}, "location": "s168"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s176"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s184"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s192"}, {"n": "v18", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s200"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s208"}, {"n": "v17", "t": {"T": 3, "t": "char"}, "location": "s32"}, {"n": "v16", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s36"}, {"n": "v15", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s40"}]} {"name": "match_group_separator", "code": "__int64 __fastcall match_group_separator ( __int64 @@a1@@ , int @@a2@@ , const char * @@a3@@ ) { __int64 @@v5@@ ; unsigned int @@i@@ ; for ( @@i@@ = Number ; ( int ) @@i@@ < @@a2@@ ; ++ @@i@@ ) { @@v5@@ = Number L * ( int ) @@i@@ + @@a1@@ ; if ( * ( _QWORD * ) ( @@v5@@ + Number ) && ! strcmp ( * ( const char * * ) ( @@v5@@ + Number ) , @@a3@@ ) ) return @@i@@ ; } return Number ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}]} {"name": "finish_group", "code": "void * __fastcall finish_group ( _QWORD * @@a1@@ , int @@a2@@ , __int64 @@a3@@ ) { __int64 v3 ; __int64 v4 ; __int64 v5 ; __int64 v6 ; _QWORD * @@v9@@ ; __int64 @@v10@@ ; @@v10@@ = @@a1@@ [ Number ] + Number L * @@a2@@ ; * ( _QWORD * ) ( @@v10@@ + Number ) = grow_array ( * ( _QWORD * ) ( @@v10@@ + Number ) , Number L , @@v10@@ + Number , ( unsigned int ) ( * ( _DWORD * ) ( @@v10@@ + Number ) + Number ) ) ; @@v9@@ = ( _QWORD * ) ( * ( _QWORD * ) ( @@v10@@ + Number ) + Number L * * ( int * ) ( @@v10@@ + Number ) - Number ) ; v3 = @@a1@@ [ Number ] ; * @@v9@@ = @@a1@@ [ Number ] ; @@v9@@ [ Number ] = v3 ; v4 = @@a1@@ [ Number ] ; @@v9@@ [ Number ] = @@a1@@ [ Number ] ; @@v9@@ [ Number ] = v4 ; v5 = @@a1@@ [ Number ] ; @@v9@@ [ Number ] = @@a1@@ [ Number ] ; @@v9@@ [ Number ] = v5 ; v6 = @@a1@@ [ Number ] ; @@v9@@ [ Number ] = @@a1@@ [ Number ] ; @@v9@@ [ Number ] = v6 ; @@v9@@ [ Number ] = @@a1@@ [ Number ] ; @@v9@@ [ Number ] = @@a3@@ ; * @@v9@@ = * ( _QWORD * ) @@v10@@ ; @@v9@@ [ Number ] = sws_opts ; @@v9@@ [ Number ] = swr_opts ; @@v9@@ [ Number ] = codec_opts ; @@v9@@ [ Number ] = format_opts ; @@v9@@ [ Number ] = resample_opts ; codec_opts = Number L ; format_opts = Number L ; resample_opts = Number L ; sws_opts = Number L ; swr_opts = Number L ; init_opts ( ) ; return memset ( @@a1@@ + Number , Number , Number ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v9", "t": {"T": 3, "t": "_QWORD"}, "location": "s24"}]} {"name": "add_opt", "code": "__int64 __fastcall add_opt ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { __int64 v4 ; __int64 result ; __int64 @@v8@@ ; if ( ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) v4 = @@a1@@ + Number ; else v4 = @@a1@@ ; @@v8@@ = v4 ; * ( _QWORD * ) ( v4 + Number ) = grow_array ( * ( _QWORD * ) ( v4 + Number ) , Number L , v4 + Number , ( unsigned int ) ( * ( _DWORD * ) ( v4 + Number ) + Number ) ) ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@v8@@ + Number ) + Number L * * ( int * ) ( @@v8@@ + Number ) - Number ) = @@a2@@ ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@v8@@ + Number ) + Number L * * ( int * ) ( @@v8@@ + Number ) - Number + Number ) = @@a3@@ ; result = @@a4@@ ; * ( _QWORD * ) ( * ( _QWORD * ) ( @@v8@@ + Number ) + Number L * * ( int * ) ( @@v8@@ + Number ) - Number + Number ) = @@a4@@ ; return result ; }", "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": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}]} {"name": "init_parse_context", "code": "__int64 __fastcall init_parse_context ( _QWORD * @@a1@@ , __int64 @@a2@@ , int @@a3@@ ) { int @@i@@ ; memset ( @@a1@@ , Number , Number ) ; * ( ( _DWORD * ) @@a1@@ + Number ) = @@a3@@ ; @@a1@@ [ Number ] = av_mallocz_array ( * ( ( int * ) @@a1@@ + Number ) , Number ) ; if ( ! @@a1@@ [ Number ] ) exit_program ( Number ) ; for ( @@i@@ = Number ; @@i@@ < * ( ( _DWORD * ) @@a1@@ + Number ) ; ++ @@i@@ ) * ( _QWORD * ) ( @@a1@@ [ Number ] + Number L * @@i@@ ) = Number L * @@i@@ + @@a2@@ ; * @@a1@@ = & global_group_14707 ; @@a1@@ [ Number ] = & unk_6A4B ; return init_opts ( ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}]}