{"name": "rpl_find_of", "code": "__int64 ( __fastcall * * __fastcall rpl_find_of ( __int16 @@a1@@ ) ) ( ) { int @@i@@ ; for ( @@i@@ = Number ; ! @@i@@ ; @@i@@ = Number ) { if ( @@a1@@ == LOWORD ( rpl_of_etx [ Number ] ) ) return rpl_of_etx ; } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "r56"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]}
{"name": "rpl_join_instance", "code": "__int64 __fastcall rpl_join_instance ( _QWORD * @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; __int64 @@v3@@ ; __int64 ( __fastcall * * @@v4@@ ) ( ) ; __int64 @@v5@@ ; __int64 @@v6@@ ; __int64 @@v7@@ ; @@result@@ = ( __int64 ) rpl_alloc_dag ( * ( _BYTE * ) ( @@a2@@ + Number ) ) ; @@v7@@ = @@result@@ ; if ( @@result@@ ) { @@v6@@ = * ( _QWORD * ) ( @@result@@ + Number ) ; @@v5@@ = rpl_add_parent ( @@result@@ , @@a2@@ , @@a1@@ ) ; if ( @@v5@@ ) { * ( _BYTE * ) ( @@v5@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; @@v4@@ = rpl_find_of ( * ( _WORD * ) ( @@a2@@ + Number ) ) ; if ( @@v4@@ ) { if ( ( * ( _BYTE * ) ( @@a2@@ + Number ) & Number ) != Number ) check_prefix ( Number L , ( unsigned __int8 * ) ( @@a2@@ + Number ) ) ; * ( _BYTE * ) ( @@v7@@ + Number ) = Number ; * ( _BYTE * ) ( @@v7@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _BYTE * ) ( @@v7@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _BYTE * ) ( @@v7@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = @@v4@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = @@v7@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; * ( _WORD * ) ( @@v6@@ + Number ) = * ( _WORD * ) ( @@a2@@ + Number ) ; * ( _WORD * ) ( @@v6@@ + Number ) = * ( _WORD * ) ( @@a2@@ + Number ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = * ( _BYTE * ) ( @@v6@@ + Number ) + * ( _BYTE * ) ( @@v6@@ + Number ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _WORD * ) ( @@v6@@ + Number ) = * ( _WORD * ) ( @@a2@@ + Number ) ; @@v3@@ = * ( _QWORD * ) ( @@a2@@ + Number ) ; * ( _QWORD * ) @@v7@@ = * ( _QWORD * ) @@a2@@ ; * ( _QWORD * ) ( @@v7@@ + Number ) = @@v3@@ ; memcpy ( ( void * ) ( @@v7@@ + Number ) , ( const void * ) ( @@a2@@ + Number ) , Number ) ; * ( _QWORD * ) ( @@v7@@ + Number ) = @@v5@@ ; ( * ( void ( __fastcall * * ) ( __int64 ) ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) ) ( @@v6@@ ) ; * ( _WORD * ) ( @@v7@@ + Number ) = ( * ( __int64 ( __fastcall * * ) ( __int64 , _QWORD ) ) ( * ( _QWORD * ) ( @@v6@@ + Number ) + Number L ) ) ( @@v5@@ , Number L ) ; * ( _WORD * ) ( @@v7@@ + Number ) = * ( _WORD * ) ( @@v7@@ + Number ) ; if ( ! default_instance ) default_instance = @@v6@@ ; rpl_reset_dio_timer ( @@v6@@ ) ; rpl_set_default_route ( @@v6@@ , @@a1@@ ) ; @@result@@ = * ( unsigned __int8 * ) ( @@v6@@ + Number ) ; if ( ( _BYTE ) @@result@@ ) @@result@@ = rpl_schedule_dao ( @@v6@@ ) ; } else { rpl_remove_parent ( @@v7@@ , @@v5@@ ) ; @@result@@ = @@v6@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; } } else { @@result@@ = @@v6@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; } } return @@result@@ ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "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": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v4", "t": {"T": 9, "n": "__int64 (__fastcall **)()"}, "location": "s32"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "rpl_add_dag", "code": "char * __fastcall rpl_add_dag ( _QWORD * @@a1@@ , __int64 @@a2@@ ) { char * @@result@@ ; __int64 @@v3@@ ; __int64 @@v4@@ ; __int64 @@v5@@ ; __int64 @@v6@@ ; __int64 @@v7@@ ; @@result@@ = rpl_alloc_dag ( * ( _BYTE * ) ( @@a2@@ + Number ) ) ; @@v6@@ = ( __int64 ) @@result@@ ; if ( @@result@@ ) { @@v5@@ = * ( ( _QWORD * ) @@result@@ + Number ) ; @@v4@@ = find_parent_dag ( @@v5@@ , @@a1@@ ) ; if ( @@v4@@ ) { @@v7@@ = ( __int64 ) rpl_find_parent ( @@v4@@ , @@a1@@ ) ; if ( @@v7@@ ) rpl_move_parent ( @@v4@@ , @@v6@@ , @@v7@@ ) ; } else { @@v7@@ = rpl_add_parent ( @@v6@@ , @@a2@@ , @@a1@@ ) ; if ( ! @@v7@@ ) { @@result@@ = ( char * ) @@v6@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; return @@result@@ ; } } if ( rpl_find_of ( * ( _WORD * ) ( @@a2@@ + Number ) ) == * ( __int64 ( __fastcall * * * ) ( ) ) ( @@v5@@ + Number ) && * ( _BYTE * ) ( @@v5@@ + Number ) == * ( _BYTE * ) ( @@a2@@ + Number ) && * ( _WORD * ) ( @@v5@@ + Number ) == * ( _WORD * ) ( @@a2@@ + Number ) && * ( _WORD * ) ( @@v5@@ + Number ) == * ( _WORD * ) ( @@a2@@ + Number ) && * ( _BYTE * ) ( @@v5@@ + Number ) == * ( _BYTE * ) ( @@a2@@ + Number ) && * ( _BYTE * ) ( @@v5@@ + Number ) == * ( _BYTE * ) ( @@a2@@ + Number ) && * ( _BYTE * ) ( @@v5@@ + Number ) == * ( _BYTE * ) ( @@a2@@ + Number ) && * ( _BYTE * ) ( @@v5@@ + Number ) == * ( _BYTE * ) ( @@a2@@ + Number ) && * ( _WORD * ) ( @@v5@@ + Number ) == * ( _WORD * ) ( @@a2@@ + Number ) ) { * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; * ( _BYTE * ) ( @@v6@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; @@v3@@ = * ( _QWORD * ) ( @@a2@@ + Number ) ; * ( _QWORD * ) @@v6@@ = * ( _QWORD * ) @@a2@@ ; * ( _QWORD * ) ( @@v6@@ + Number ) = @@v3@@ ; memcpy ( ( void * ) ( @@v6@@ + Number ) , ( const void * ) ( @@a2@@ + Number ) , Number ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = @@v7@@ ; * ( _WORD * ) ( @@v6@@ + Number ) = ( * ( __int64 ( __fastcall * * ) ( __int64 , _QWORD ) ) ( * ( _QWORD * ) ( @@v5@@ + Number ) + Number L ) ) ( @@v7@@ , Number L ) ; * ( _WORD * ) ( @@v6@@ + Number ) = * ( _WORD * ) ( @@v6@@ + Number ) ; rpl_process_parent_event ( @@v5@@ , @@v7@@ ) ; @@result@@ = ( char * ) @@v7@@ ; * ( _BYTE * ) ( @@v7@@ + Number ) = * ( _BYTE * ) ( @@a2@@ + Number ) ; } else { rpl_remove_parent ( @@v6@@ , @@v7@@ ) ; @@result@@ = ( char * ) @@v6@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; } } return @@result@@ ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 3, "t": "char"}, "location": "r8"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}