{"name": "channel_init", "code": "__int64 __fastcall channel_init ( __int64 @@a1@@ , const char * @@a2@@ , __int64 @@a3@@ ) { unsigned int @@v5@@ ; if ( ! strcmp ( @@a2@@ , String ) ) { * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@v5@@ = Number ; } else if ( ! strcmp ( @@a2@@ , String ) ) { @@v5@@ = Number ; } else if ( ! strcmp ( @@a2@@ , String ) ) { @@v5@@ = Number ; } else { if ( strcmp ( @@a2@@ , String ) ) { g_log ( Number L , Number L , String , @@a2@@ ) ; return Number L ; } @@v5@@ = Number ; } * ( _QWORD * ) ( @@a1@@ + Number ) = ga_channel_new ( @@v5@@ , @@a3@@ , channel_event_cb , @@a1@@ ) ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) return Number L ; g_log ( Number L , Number L , String ) ; return Number L ; }", "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": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]}
{"name": "channel_event_cb", "code": "__int64 __fastcall channel_event_cb ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; unsigned int @@v3@@ ; __int64 @@v4@@ ; __int64 @@v5@@ ; char @@v6@@ [ Number ] ; unsigned __int64 @@v7@@ ; @@v7@@ = __readfsqword ( Number ) ; @@v5@@ = @@a2@@ ; @@v3@@ = ga_channel_read ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v6@@ , Number L , & @@v4@@ ) ; if ( @@v3@@ != Number ) { if ( @@v3@@ > Number ) { g_log ( Number L , Number L , String ) ; return Number L ; } if ( @@v3@@ != Number ) { if ( @@v3@@ ) { @@v6@@ [ @@v4@@ ] = Number ; g_log ( Number L , Number L , String , ( unsigned int ) @@v4@@ , @@v6@@ ) ; json_message_parser_feed ( @@v5@@ , @@v6@@ , ( int ) @@v4@@ ) ; @@result@@ = Number L ; } else { g_log ( Number L , Number L , String ) ; @@result@@ = Number L ; } return @@result@@ ; } g_log ( Number L , Number L , String ) ; if ( * ( _BYTE * ) ( @@v5@@ + Number ) != Number ) return Number L ; } if ( * ( _BYTE * ) ( @@v5@@ + Number ) ) usleep ( Number ) ; return Number L ; }", "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": 2, "n": 4104, "s": 1, "t": "char"}, "location": "s4112"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s4120"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s4128"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4132"}, {"n": "v7", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "run_agent", "code": "__int64 __fastcall run_agent ( __int64 @@a1@@ , __int64 @@a2@@ ) { int * v2 ; char * v3 ; __int64 result ; unsigned __int8 v5 ; const char * * v6 ; const char * * @@v7@@ ; FILE * @@v8@@ ; ga_state = @@a1@@ ; g_log_set_default_handler ( ga_log , @@a1@@ ) ; g_log_set_fatal_mask ( Number L , Number L ) ; ga_enable_logging ( @@a1@@ ) ; if ( ( unsigned __int8 ) ga_is_frozen ( @@a1@@ ) ) { if ( * ( _DWORD * ) ( @@a2@@ + Number ) ) { * ( _QWORD * ) ( @@a1@@ + Number ) = * ( _QWORD * ) ( @@a2@@ + Number ) ; become_daemon ( Number L ) ; } if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) * ( _QWORD * ) ( @@a1@@ + Number ) = * ( _QWORD * ) ( @@a2@@ + Number ) ; ga_disable_logging ( @@a1@@ ) ; qmp_for_each_command ( ga_disable_non_whitelisted , Number L ) ; } else { if ( * ( _DWORD * ) ( @@a2@@ + Number ) ) become_daemon ( * ( const char * * ) ( @@a2@@ + Number ) ) ; if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v8@@ = ga_open_logfile ( * ( const char * * ) ( @@a2@@ + Number ) ) ; if ( ! @@v8@@ ) { v2 = _errno_location ( ) ; v3 = strerror ( * v2 ) ; g_log ( Number L , Number L , String , v3 ) ; return Number L ; } * ( _QWORD * ) ( @@a1@@ + Number ) = @@v8@@ ; } } v5 = ga_is_frozen ( @@a1@@ ) ; if ( ( unsigned int ) read_persistent_state ( ( _QWORD * ) ( @@a1@@ + Number ) , * ( const char * * ) ( @@a1@@ + Number ) , v5 ) ) { * ( _QWORD * ) ( @@a2@@ + Number ) = ga_command_blacklist_init ( * ( _QWORD * ) ( @@a2@@ + Number ) ) ; if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) { @@v7@@ = * ( const char * * * ) ( @@a2@@ + Number ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = @@v7@@ ; do { g_log ( Number L , Number L , String , * @@v7@@ ) ; qmp_disable_command ( * @@v7@@ ) ; if ( @@v7@@ ) v6 = ( const char * * ) @@v7@@ [ Number ] ; else v6 = Number L ; @@v7@@ = v6 ; } while ( v6 ) ; } * ( _QWORD * ) ( @@a1@@ + Number ) = ga_command_state_new ( ) ; ga_command_state_init ( @@a1@@ , * ( _QWORD * ) ( @@a1@@ + Number ) ) ; ga_command_state_init_all ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; json_message_parser_init ( @@a1@@ , process_event ) ; ga_state = @@a1@@ ; if ( ( unsigned int ) register_signal_handlers ( ) ) { * ( _QWORD * ) ( @@a1@@ + Number ) = g_main_loop_new ( Number L , Number L ) ; if ( ( unsigned int ) channel_init ( ga_state , * ( const char * * ) ( @@a2@@ + Number ) , * ( _QWORD * ) @@a2@@ ) ) { g_main_loop_run ( * ( _QWORD * ) ( ga_state + Number ) ) ; result = Number L ; } else { g_log ( Number L , Number L , String ) ; result = Number L ; } } else { g_log ( Number L , Number L , String ) ; result = Number L ; } } else { g_log ( Number L , 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": "v7", "t": {"T": 3, "t": "const char *"}, "location": "s16"}, {"n": "v8", "t": {"T": 3, "t": "FILE"}, "location": "s8"}]}