{"name": "config_parse", "code": "unsigned __int64 __fastcall config_parse ( __int64 @@a1@@ , int @@a2@@ , char * const * @@a3@@ ) { char * v3 ; __int64 v4 ; int @@longind@@ ; int @@v8@@ ; char * @@shortopts@@ ; struct option @@longopts@@ [ Number ] ; unsigned __int64 @@v11@@ ; @@v11@@ = __readfsqword ( Number ) ; @@shortopts@@ = String ; @@longind@@ = Number ; qmemcpy ( @@longopts@@ , & off_2E60 , sizeof ( @@longopts@@ ) ) ; while ( Number ) { @@v8@@ = getopt_long ( @@a2@@ , @@a3@@ , @@shortopts@@ , @@longopts@@ , & @@longind@@ ) ; if ( @@v8@@ == Number ) return __readfsqword ( Number ) ^ @@v11@@ ; switch ( @@v8@@ ) { case String : g_print ( String , * ( const char * * ) @@a3@@ ) ; exit ( Number ) ; case String : * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; break ; case String : g_free ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; v3 = optarg ; if ( ! optarg ) v3 = String ; * ( _QWORD * ) ( @@a1@@ + Number ) = g_strdup ( v3 ) ; break ; case String : printf ( String , String ) ; exit ( Number ) ; case String : if ( is_help_option ( optarg ) ) { qmp_for_each_command ( ga_print_cmd , Number L ) ; exit ( Number ) ; } v4 = split_list ( ( __int64 ) optarg , ( __int64 ) String ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = g_list_concat ( * ( _QWORD * ) ( @@a1@@ + Number ) , v4 ) ; break ; case String : * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; break ; case String : g_free ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = g_strdup ( optarg ) ; break ; case String : usage ( * ( const char * * ) @@a3@@ ) ; exit ( Number ) ; case String : g_free ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = g_strdup ( optarg ) ; break ; case String : g_free ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = g_strdup ( optarg ) ; break ; case String : g_free ( * ( _QWORD * ) @@a1@@ ) ; * ( _QWORD * ) @@a1@@ = g_strdup ( optarg ) ; break ; case String : g_free ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; * ( _QWORD * ) ( @@a1@@ + Number ) = g_strdup ( optarg ) ; break ; case String : * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; break ; default : continue ; } } }", "source": [{"n": "a3", "t": {"T": 3, "t": "char *const"}, "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": "longopts", "t": {"T": 2, "n": 13, "s": 32, "t": "struct option"}, "location": "s432"}, {"n": "shortopts", "t": {"T": 3, "t": "char"}, "location": "s440"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s444"}, {"n": "longind", "t": {"T": 1, "n": "int", "s": 4}, "location": "s448"}, {"n": "v11", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "is_help_option", "code": "_BOOL8 __fastcall is_help_option ( const char * @@a1@@ ) { return ! strcmp ( @@a1@@ , String ) || ! strcmp ( @@a1@@ , String ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}]} {"name": "usage", "code": "int __fastcall usage ( const char * @@a1@@ ) { return printf ( String String String String String \\ n String String String String String String String String String String String String String String String String String String String String String String String String String String String , @@a1@@ , String , String , String , ( const char * ) qword_3018 , String , ( const char * ) dfl_pathnames ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}]} {"name": "ga_print_cmd", "code": "int __fastcall ga_print_cmd ( __int64 @@a1@@ ) { const char * @@v1@@ ; @@v1@@ = ( const char * ) qmp_command_name ( @@a1@@ ) ; return puts ( @@v1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 3, "t": "const char"}, "location": "r8"}]} {"name": "split_list", "code": "__int64 __fastcall split_list ( __int64 @@a1@@ , __int64 @@a2@@ ) { int @@i@@ ; __int64 @@v4@@ ; __int64 @@v5@@ ; @@v4@@ = Number L ; @@v5@@ = g_strsplit ( @@a1@@ , @@a2@@ , Number ) ; for ( @@i@@ = Number ; * ( _QWORD * ) ( Number L * @@i@@ + @@v5@@ ) ; ++ @@i@@ ) @@v4@@ = g_list_prepend ( @@v4@@ , * ( _QWORD * ) ( Number L * @@i@@ + @@v5@@ ) ) ; g_free ( @@v5@@ ) ; return @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"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"}]}