{"name": "parse_perf_probe_point", "code": "__int64 __fastcall parse_perf_probe_point ( char * @@a1@@ , char * * @@a2@@ ) { __int64 result ; const char * v3 ; char * v4 ; const char * v5 ; int v6 ; unsigned __int64 v7 ; char * v8 ; const char * s ; char * sa ; char @@v11@@ ; char @@v12@@ ; char * @@endptr@@ ; char * @@v14@@ ; char * * @@v15@@ ; unsigned __int64 @@v16@@ ; s = @@a1@@ ; @@v16@@ = __readfsqword ( Number ) ; @@v15@@ = @@a2@@ + Number ; @@v11@@ = Number ; @@v14@@ = strpbrk ( @@a1@@ , String ) ; if ( @@v14@@ && * @@v14@@ == Number ) { * @@v14@@ = Number ; @@endptr@@ = @@v14@@ + Number ; if ( strchr ( @@a1@@ , Number ) ) { eprintf ( Number L , String ) ; return Number L ; } if ( ( unsigned __int8 ) check_event_name ( @@a1@@ ) != Number ) { eprintf ( Number L , String , @@a1@@ ) ; return Number L ; } * @@a2@@ = strdup ( @@a1@@ ) ; if ( ! * @@a2@@ ) return Number L ; @@a2@@ [ Number ] = Number L ; s = @@endptr@@ ; } @@v14@@ = strpbrk ( s , String ) ; if ( @@v14@@ ) { @@v11@@ = * @@v14@@ ; v3 = @@v14@@ ++ ; * v3 = Number ; } @@endptr@@ = strdup ( s ) ; if ( ! @@endptr@@ ) return Number L ; if ( strchr ( @@endptr@@ , Number ) ) * @@v15@@ = @@endptr@@ ; else @@v15@@ [ Number ] = @@endptr@@ ; while ( @@v14@@ ) { sa = @@v14@@ ; @@v12@@ = @@v11@@ ; if ( @@v11@@ == Number ) { v4 = strdup ( @@v14@@ ) ; @@v15@@ [ Number ] = v4 ; if ( ! @@v15@@ [ Number ] ) return Number L ; break ; } @@v14@@ = strpbrk ( @@v14@@ , String ) ; if ( @@v14@@ ) { @@v11@@ = * @@v14@@ ; v5 = @@v14@@ ++ ; * v5 = Number ; } if ( @@v12@@ == Number ) { if ( * @@v15@@ ) { eprintf ( Number L , String ) ; return Number L ; } v8 = strdup ( sa ) ; * @@v15@@ = v8 ; if ( ! * @@v15@@ ) return Number L ; } else { if ( @@v12@@ > Number ) goto LABEL_40 ; if ( @@v12@@ == Number ) { v6 = strtoul ( sa , & @@endptr@@ , Number ) ; * ( ( _DWORD * ) @@v15@@ + Number ) = v6 ; if ( * @@endptr@@ ) { eprintf ( Number L , String ) ; return Number L ; } } else { if ( @@v12@@ > Number ) goto LABEL_40 ; if ( @@v12@@ == Number ) { if ( strcmp ( sa , String ) ) { eprintf ( Number L , String , sa ) ; return Number L ; } * ( ( _BYTE * ) @@v15@@ + Number ) = Number ; } else { if ( @@v12@@ != Number ) { LABEL_40 : eprintf ( Number L , String , String , Number L ) ; return Number L ; } v7 = strtoul ( sa , & @@endptr@@ , Number ) ; @@v15@@ [ Number ] = ( char * ) v7 ; if ( * @@endptr@@ ) { eprintf ( Number L , String ) ; return Number L ; } } } } } if ( @@v15@@ [ Number ] && * ( ( _DWORD * ) @@v15@@ + Number ) ) { eprintf ( Number L , String ) ; result = Number L ; } else if ( @@v15@@ [ Number ] && @@v15@@ [ Number ] ) { eprintf ( Number L , String ) ; result = Number L ; } else if ( * ( ( _DWORD * ) @@v15@@ + Number ) && @@v15@@ [ Number ] ) { eprintf ( Number L , String ) ; result = Number L ; } else if ( * ( ( _DWORD * ) @@v15@@ + Number ) || @@v15@@ [ Number ] || ! * @@v15@@ || @@v15@@ [ Number ] ) { if ( ! @@v15@@ [ Number ] || @@v15@@ [ Number ] ) { if ( ! * ( ( _BYTE * ) @@v15@@ + Number ) || @@v15@@ [ Number ] ) { if ( ( @@v15@@ [ Number ] || * ( ( _DWORD * ) @@v15@@ + Number ) || @@v15@@ [ Number ] ) && * ( ( _BYTE * ) @@v15@@ + Number ) ) { eprintf ( Number L , String ) ; result = Number L ; } else { eprintf ( Number L , String , @@v15@@ [ Number ] , * @@v15@@ , * ( ( unsigned int * ) @@v15@@ + Number ) , @@v15@@ [ Number ] , * ( ( unsigned __int8 * ) @@v15@@ + Number ) , @@v15@@ [ Number ] ) ; result = Number L ; } } else { eprintf ( Number L , String ) ; result = Number L ; } } else { eprintf ( Number L , String ) ; result = Number L ; } } else { eprintf ( Number L , String ) ; result = Number L ; } return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "char"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "char *"}, "location": "r64"}, {"n": "v15", "t": {"T": 3, "t": "char *"}, "location": "s16"}, {"n": "v14", "t": {"T": 3, "t": "char"}, "location": "s24"}, {"n": "endptr", "t": {"T": 3, "t": "char"}, "location": "s32"}, {"n": "v12", "t": {"T": 1, "n": "char", "s": 1}, "location": "s33"}, {"n": "v11", "t": {"T": 1, "n": "char", "s": 1}, "location": "s34"}, {"n": "v16", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "check_event_name", "code": "__int64 __fastcall check_event_name ( _BYTE * @@a1@@ ) { _BYTE * @@v2@@ ; @@v2@@ = @@a1@@ ; if ( ( * ( ( _BYTE * ) & sane_ctype + ( unsigned __int8 ) * @@a1@@ ) & Number ) == Number && * @@a1@@ != Number ) return Number L ; while ( * ++ @@v2@@ ) { if ( ( * ( ( _BYTE * ) & sane_ctype + ( unsigned __int8 ) * @@v2@@ ) & Number ) == Number && ( * ( ( _BYTE * ) & sane_ctype + ( unsigned __int8 ) * @@v2@@ ) & Number ) == Number && * @@v2@@ != Number ) { return Number L ; } } return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_BYTE"}, "location": "r56"}, {"n": "v2", "t": {"T": 3, "t": "_BYTE"}, "location": "s24"}]} {"name": "parse_perf_probe_command", "code": "__int64 __fastcall parse_perf_probe_command ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; int @@v3@@ ; int @@i@@ ; int @@v5@@ ; char * * @@v6@@ ; unsigned __int64 @@v7@@ ; @@v7@@ = __readfsqword ( Number ) ; @@v5@@ = Number ; @@v6@@ = ( char * * ) argv_split ( @@a1@@ , & @@v3@@ ) ; if ( @@v6@@ ) { if ( @@v3@@ <= Number ) { @@v5@@ = parse_perf_probe_point ( * @@v6@@ , ( char * * ) @@a2@@ ) ; if ( @@v5@@ >= Number ) { * ( _DWORD * ) ( @@a2@@ + Number ) = @@v3@@ - Number ; * ( _QWORD * ) ( @@a2@@ + Number ) = zalloc ( Number L * * ( int * ) ( @@a2@@ + Number ) ) ; if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { for ( @@i@@ = Number ; @@i@@ < * ( _DWORD * ) ( @@a2@@ + Number ) && @@v5@@ >= Number ; ++ @@i@@ ) { @@v5@@ = parse_perf_probe_arg ( @@v6@@ [ @@i@@ + Number ] , * ( _QWORD * ) ( @@a2@@ + Number ) + Number L * @@i@@ ) ; if ( @@v5@@ >= Number && is_c_varname ( * ( _BYTE * * ) ( Number L * @@i@@ + * ( _QWORD * ) ( @@a2@@ + Number ) + Number ) ) ) { if ( * ( _BYTE * ) ( @@a2@@ + Number ) ) { eprintf ( Number L , String ) ; @@v5@@ = Number ; } } } } else { @@v5@@ = Number ; } } } else { eprintf ( Number L , String , ( unsigned int ) ( @@v3@@ - Number ) ) ; @@v5@@ = Number ; } argv_free ( @@v6@@ ) ; @@result@@ = ( unsigned int ) @@v5@@ ; } else { eprintf ( Number L , String ) ; @@result@@ = Number L ; } return @@result@@ ; }", "source": [{"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": "v6", "t": {"T": 3, "t": "char *"}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v7", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}