{"name": "wps_ap_pin_set", "code": "__int64 __fastcall wps_ap_pin_set ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@v3@@ ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) { free ( * ( void * * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ; @@v3@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; * ( _QWORD * ) ( @@v3@@ + Number ) = strdup ( ( const char * ) @@a2@@ ) ; hostapd_wps_ap_pin_enable ( @@a1@@ , * ( _DWORD * ) ( @@a2@@ + Number ) ) ; } return Number L ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r32"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]}
{"name": "hostapd_wps_ap_pin_enable", "code": "__int64 __fastcall hostapd_wps_ap_pin_enable ( __int64 @@a1@@ , int @@a2@@ ) { __int64 @@result@@ ; wpa_printf ( Number L , String , ( unsigned int ) @@a2@@ ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number ; if ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) { wpa_msg ( * ( _QWORD * ) ( @@a1@@ + Number ) , Number L , String ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number ; wps_registrar_update_ie ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ; } @@result@@ = eloop_cancel_timeout ( hostapd_wps_ap_pin_timeout , @@a1@@ , Number L ) ; if ( @@a2@@ > Number ) @@result@@ = eloop_register_timeout ( ( unsigned int ) @@a2@@ , Number L , hostapd_wps_ap_pin_timeout , @@a1@@ , Number L ) ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "hostapd_wps_ap_pin_random", "code": "__int64 __fastcall hostapd_wps_ap_pin_random ( __int64 @@a1@@ , int @@a2@@ ) { char @@s@@ [ Number ] ; int @@v4@@ ; unsigned int @@v5@@ ; if ( ( int ) wps_generate_pin ( & @@v5@@ ) < Number ) return Number L ; snprintf ( @@s@@ , Number , String , @@v5@@ ) ; @@v4@@ = @@a2@@ ; hostapd_wps_for_each ( ( _QWORD * * ) @@a1@@ , ( __int64 ) wps_ap_pin_set , ( __int64 ) @@s@@ ) ; return * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "s", "t": {"T": 2, "n": 12, "s": 1, "t": "char"}, "location": "s32"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "hostapd_wps_ap_pin_set", "code": "__int64 __fastcall hostapd_wps_ap_pin_set ( _QWORD * * @@a1@@ , const char * @@a2@@ , int @@a3@@ ) { char @@s@@ [ Number ] ; int @@v6@@ ; int @@v7@@ ; @@v7@@ = snprintf ( @@s@@ , Number , String , @@a2@@ ) ; if ( os_snprintf_error ( Number , @@v7@@ ) ) return Number ; @@v6@@ = @@a3@@ ; return hostapd_wps_for_each ( @@a1@@ , ( __int64 ) wps_ap_pin_set , ( __int64 ) @@s@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD *"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "s", "t": {"T": 2, "n": 12, "s": 1, "t": "char"}, "location": "s32"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]}