{"name": "quit_handler", "code": "__int64 __fastcall quit_handler ( unsigned int @@a1@@ ) { __int64 @@result@@ ; @@result@@ = ga_is_frozen ( ga_state ) ; if ( ! ( _BYTE ) @@result@@ ) { g_log ( Number L , Number L , String , @@a1@@ ) ; @@result@@ = g_main_loop_is_running ( * ( _QWORD * ) ( ga_state + Number ) ) ; if ( ( _DWORD ) @@result@@ ) @@result@@ = g_main_loop_quit ( * ( _QWORD * ) ( ga_state + Number ) ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}
{"name": "register_signal_handlers", "code": "__int64 register_signal_handlers ( ) { int * v0 ; char * v1 ; int * v2 ; char * v3 ; int * v4 ; char * v5 ; struct sigaction @@s@@ ; unsigned __int64 @@v8@@ ; @@v8@@ = __readfsqword ( Number ) ; memset ( & @@s@@ , Number , sizeof ( @@s@@ ) ) ; @@s@@ . sa_handler = ( __sighandler_t ) quit_handler ; if ( sigaction ( Number , & @@s@@ , Number L ) == Number ) { v0 = _errno_location ( ) ; v1 = strerror ( * v0 ) ; g_log ( Number L , Number L , String , v1 ) ; while ( Number ) ; } if ( sigaction ( Number , & @@s@@ , Number L ) == Number ) { v2 = _errno_location ( ) ; v3 = strerror ( * v2 ) ; g_log ( Number L , Number L , String , v3 ) ; while ( Number ) ; } @@s@@ . sa_handler = ( __sighandler_t ) & loc_1 ; if ( sigaction ( Number , & @@s@@ , Number L ) ) { v4 = _errno_location ( ) ; v5 = strerror ( * v4 ) ; g_log ( Number L , Number L , String , v5 ) ; while ( Number ) ; } return Number L ; }", "source": [{"n": "s", "t": {"T": 6, "n": "struct sigaction", "l": [{"T": 4, "n": "__sigaction_handler", "t": "union sigaction::$CF138106520E5A28DAF2A67779B92EE8", "s": 8}, {"T": 4, "n": "sa_mask", "t": "__sigset_t", "s": 128}, {"T": 4, "n": "sa_flags", "t": "int", "s": 4}, {"T": 5, "s": 4}, {"T": 4, "n": "sa_restorer", "t": "void (*)(void)", "s": 8}]}, "location": "s160"}, {"n": "v8", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ga_is_frozen", "code": "__int64 __fastcall ga_is_frozen ( __int64 @@a1@@ ) { return * ( unsigned __int8 * ) ( @@a1@@ + Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "main", "code": "int __cdecl main ( int @@argc@@ , const char * * @@argv@@ , const char * * @@envp@@ ) { __int64 v3 ; int @@v5@@ ; __int64 @@v6@@ ; __int64 @@v7@@ ; @@v5@@ = Number ; @@v6@@ = g_malloc0_n ( Number L , Number L , @@envp@@ ) ; @@v7@@ = g_malloc0_n ( Number L , Number L , v3 ) ; * ( _DWORD * ) ( @@v7@@ + Number ) = Number ; module_call_init ( Number L ) ; init_dfl_pathnames ( ) ; config_load ( @@v7@@ ) ; config_parse ( @@v7@@ , @@argc@@ , ( char * const * ) @@argv@@ ) ; if ( ! * ( _QWORD * ) ( @@v7@@ + Number ) ) * ( _QWORD * ) ( @@v7@@ + Number ) = g_strdup ( qword_3018 ) ; if ( ! * ( _QWORD * ) ( @@v7@@ + Number ) ) * ( _QWORD * ) ( @@v7@@ + Number ) = g_strdup ( dfl_pathnames ) ; if ( ! * ( _QWORD * ) ( @@v7@@ + Number ) ) * ( _QWORD * ) ( @@v7@@ + Number ) = g_strdup ( String ) ; if ( ! * ( _QWORD * ) @@v7@@ ) { if ( ! strcmp ( * ( const char * * ) ( @@v7@@ + Number ) , String ) ) { * ( _QWORD * ) @@v7@@ = g_strdup ( String ) ; } else { if ( strcmp ( * ( const char * * ) ( @@v7@@ + Number ) , String ) ) { g_log ( Number L , Number L , String ) ; @@v5@@ = Number ; goto LABEL_16 ; } * ( _QWORD * ) @@v7@@ = g_strdup ( String ) ; } } * ( _DWORD * ) ( @@v6@@ + Number ) = * ( _DWORD * ) ( @@v7@@ + Number ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = stderr ; * ( _QWORD * ) ( @@v6@@ + Number ) = * ( _QWORD * ) ( @@v7@@ + Number ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = g_strdup_printf ( String , * ( const char * * ) ( @@v7@@ + Number ) ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = g_strdup_printf ( String , * ( const char * * ) ( @@v7@@ + Number ) ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = check_is_frozen ( @@v6@@ ) ; if ( * ( _DWORD * ) ( @@v7@@ + Number ) ) config_dump ( @@v7@@ ) ; else @@v5@@ = run_agent ( @@v6@@ , @@v7@@ ) ; LABEL_16 : if ( * ( _QWORD * ) ( @@v6@@ + Number ) ) { ga_command_state_cleanup_all ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; ga_command_state_free ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; json_message_parser_destroy ( @@v6@@ ) ; } if ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ga_channel_free ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; g_free ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; g_free ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; if ( * ( _DWORD * ) ( @@v7@@ + Number ) ) unlink ( * ( const char * * ) ( @@v7@@ + Number ) ) ; config_free ( ( _QWORD * ) @@v7@@ ) ; if ( * ( _QWORD * ) ( @@v6@@ + Number ) ) g_main_loop_unref ( * ( _QWORD * ) ( @@v6@@ + Number ) ) ; g_free ( @@v6@@ ) ; return @@v5@@ ; }", "source": [{"n": "envp", "t": {"T": 3, "t": "const char *"}, "location": "r16"}, {"n": "argc", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "argv", "t": {"T": 3, "t": "const char *"}, "location": "r64"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}