{"name": "servreg_hack_item_id", "code": "__int64 __fastcall servreg_hack_item_id ( __int64 @@a1@@ ) { return * ( unsigned __int8 * ) ( @@a1@@ + Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}
{"name": "process_thread_example_servreg_client_process", "code": "__int64 __fastcall process_thread_example_servreg_client_process ( _WORD * @@a1@@ ) { unsigned __int8 v1 ; __int64 v2 ; __int64 result ; __int64 @@v4@@ ; char @@v5@@ ; @@v5@@ = Number ; if ( ! * @@a1@@ ) { servreg_hack_init ( ) ; set_global_address ( ) ; goto LABEL_5 ; } if ( * @@a1@@ == Number ) { while ( Number ) { if ( ! @@v5@@ || ! ( unsigned int ) etimer_expired ( & et_3297 ) ) return Number L ; @@v4@@ = servreg_hack_list_head ( ) ; if ( @@v4@@ ) break ; LABEL_5 : etimer_set ( & et_3297 , Number L ) ; @@v5@@ = Number ; * @@a1@@ = Number ; } v1 = servreg_hack_item_id ( @@v4@@ ) ; printf ( String , v1 ) ; v2 = servreg_hack_item_address ( @@v4@@ ) ; uip_debug_ipaddr_print ( v2 ) ; putchar ( Number ) ; * @@a1@@ = Number ; result = Number L ; } else { * @@a1@@ = Number ; result = Number L ; } return result ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_WORD"}, "location": "r56"}, {"n": "v5", "t": {"T": 1, "n": "char", "s": 1}, "location": "s1"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}]} {"name": "servreg_hack_register", "code": "int __fastcall servreg_hack_register ( char @@a1@@ , _QWORD * @@a2@@ ) { int result ; __int64 @@v3@@ ; unsigned __int16 v4 ; __int64 @@v5@@ ; __int64 @@v6@@ ; __int64 @@i@@ ; servreg_hack_init ( ) ; for ( @@i@@ = list_head ( own_services ) ; @@i@@ ; @@i@@ = list_item_next ( @@i@@ ) ) { result = servreg_hack_item_id ( @@i@@ ) ; if ( @@a1@@ == ( _BYTE ) result ) return result ; } @@v6@@ = memb_alloc ( & registrations ) ; if ( ! @@v6@@ ) return puts ( String String ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = @@a1@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; @@v3@@ = @@a2@@ [ Number ] ; * ( _QWORD * ) ( @@v6@@ + Number ) = * @@a2@@ ; * ( _QWORD * ) ( @@v6@@ + Number ) = @@v3@@ ; timer_set ( @@v6@@ + Number , Number L ) ; list_push ( own_services , @@v6@@ ) ; @@v5@@ = process_current ; process_current = ( __int64 ) & servreg_hack_process ; v4 = random_rand ( ) ; etimer_set ( ( __int64 ) & sendtimer , v4 % Number ) ; result = @@v5@@ ; process_current = @@v5@@ ; return result ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "char", "s": 1}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_QWORD"}, "location": "r64"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "servreg_hack_lookup", "code": "__int64 __fastcall servreg_hack_lookup ( char @@a1@@ ) { __int64 @@i@@ ; servreg_hack_init ( ) ; purge_registrations ( ) ; for ( @@i@@ = servreg_hack_list_head ( ) ; @@i@@ ; @@i@@ = list_item_next ( @@i@@ ) ) { if ( @@a1@@ == ( unsigned __int8 ) servreg_hack_item_id ( @@i@@ ) ) return servreg_hack_item_address ( @@i@@ ) ; } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "char", "s": 1}, "location": "r56"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "handle_incoming_reg", "code": "char __fastcall handle_incoming_reg ( _QWORD * @@a1@@ , char @@a2@@ , char @@a3@@ ) { char @@result@@ ; __int64 v4 ; __int64 @@v6@@ ; __int64 @@i@@ ; for ( @@i@@ = servreg_hack_list_head ( ) ; ; @@i@@ = list_item_next ( @@i@@ ) ) { if ( ! @@i@@ ) { @@v6@@ = memb_alloc ( & registrations ) ; if ( ! @@v6@@ ) return puts ( String String ) ; * ( _BYTE * ) ( @@v6@@ + Number ) = @@a2@@ ; * ( _BYTE * ) ( @@v6@@ + Number ) = Number ; v4 = @@a1@@ [ Number ] ; * ( _QWORD * ) ( @@v6@@ + Number ) = * @@a1@@ ; * ( _QWORD * ) ( @@v6@@ + Number ) = v4 ; timer_set ( @@v6@@ + Number , Number L ) ; return list_add ( others_services , @@v6@@ ) ; } if ( @@a2@@ == ( unsigned __int8 ) servreg_hack_item_id ( @@i@@ ) ) break ; } @@result@@ = * ( _BYTE * ) ( @@i@@ + Number ) - @@a3@@ ; if ( @@result@@ < Number ) { * ( _BYTE * ) ( @@i@@ + Number ) = @@a3@@ ; timer_set ( @@i@@ + Number , Number L ) ; list_remove ( others_services , @@i@@ ) ; @@result@@ = list_push ( others_services , @@i@@ ) ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "char", "s": 1}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "char", "s": 1}, "location": "r8"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]} {"name": "send_udp_packet", "code": "__int64 __fastcall send_udp_packet ( __int64 @@a1@@ ) { _QWORD * v1 ; char * v2 ; __int64 v3 ; int v4 ; int v5 ; _QWORD * v6 ; char * v7 ; __int64 v8 ; int v9 ; int v10 ; __int64 result ; char @@v12@@ [ Number ] ; __int64 @@i@@ ; int @@v14@@ ; unsigned int @@v15@@ ; @@v12@@ [ Number ] = Number ; @@v15@@ = Number ; @@v14@@ = Number ; for ( @@i@@ = list_head ( own_services ) ; @@v14@@ <= Number && @@i@@ ; @@i@@ = list_item_next ( @@i@@ ) ) { v1 = ( _QWORD * ) servreg_hack_item_address ( @@i@@ ) ; v2 = & @@v12@@ [ @@v14@@ ] ; v3 = v1 [ Number ] ; * ( _QWORD * ) v2 = * v1 ; * ( ( _QWORD * ) v2 + Number ) = v3 ; v4 = @@v14@@ + Number ; @@v12@@ [ v4 ] = servreg_hack_item_id ( @@i@@ ) ; v5 = @@v14@@ + Number ; @@v12@@ [ @@v14@@ + Number ] = Number ; @@v12@@ [ @@v14@@ + Number ] = @@v12@@ [ v5 ] ; @@v12@@ [ @@v14@@ + Number ] = * ( _BYTE * ) ( @@i@@ + Number ) ; @@v14@@ += Number ; ++ @@v15@@ ; } for ( @@i@@ = servreg_hack_list_head ( ) ; @@v14@@ <= Number && @@i@@ ; @@i@@ = list_item_next ( @@i@@ ) ) { v6 = ( _QWORD * ) servreg_hack_item_address ( @@i@@ ) ; v7 = & @@v12@@ [ @@v14@@ ] ; v8 = v6 [ Number ] ; * ( _QWORD * ) v7 = * v6 ; * ( ( _QWORD * ) v7 + Number ) = v8 ; v9 = @@v14@@ + Number ; @@v12@@ [ v9 ] = servreg_hack_item_id ( @@i@@ ) ; v10 = @@v14@@ + Number ; @@v12@@ [ @@v14@@ + Number ] = Number ; @@v12@@ [ @@v14@@ + Number ] = @@v12@@ [ v10 ] ; @@v12@@ [ @@v14@@ + Number ] = * ( _BYTE * ) ( @@i@@ + Number ) ; @@v14@@ += Number ; ++ @@v15@@ ; } result = @@v15@@ ; @@v12@@ [ Number ] = @@v15@@ ; if ( ( int ) @@v15@@ > Number ) result = uip_udp_packet_send ( @@a1@@ , @@v12@@ , ( unsigned int ) @@v14@@ ) ; return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v12", "t": {"T": 2, "n": 96, "s": 1, "t": "char"}, "location": "s128"}, {"n": "v15", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}]}