{"name": "ga_disable_logging", "code": "__int64 __fastcall ga_disable_logging ( __int64 @@a1@@ ) { __int64 @@result@@ ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}
{"name": "ga_set_frozen", "code": "__int64 __fastcall ga_set_frozen ( __int64 @@a1@@ ) { __int64 @@result@@ ; @@result@@ = ga_is_frozen ( @@a1@@ ) ; if ( ! ( _BYTE ) @@result@@ ) { qmp_for_each_command ( ga_disable_non_whitelisted , Number L ) ; g_log ( Number L , Number L , String ) ; ga_disable_logging ( @@a1@@ ) ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; @@result@@ = ( unsigned int ) ga_create_file ( * ( const char * * ) ( @@a1@@ + Number ) ) ^ Number ; if ( ( _BYTE ) @@result@@ ) @@result@@ = g_log ( Number L , Number L , String , * ( const char * * ) ( @@a1@@ + Number ) ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"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"}]}