{"name": "hostapd_deinit_wps", "code": "__int64 __fastcall hostapd_deinit_wps ( _QWORD * @@a1@@ ) { eloop_cancel_timeout ( hostapd_wps_reenable_ap_pin , @@a1@@ , Number L ) ; eloop_cancel_timeout ( hostapd_wps_ap_pin_timeout , @@a1@@ , Number L ) ; eloop_cancel_timeout ( wps_reload_config , * @@a1@@ , Number L ) ; if ( @@a1@@ [ Number ] ) { wps_registrar_deinit ( * ( _QWORD * ) ( @@a1@@ [ Number ] + Number L ) ) ; wps_free_pending_msgs ( * ( _QWORD * ) ( @@a1@@ [ Number ] + Number L ) ) ; hostapd_free_wps ( @@a1@@ [ Number ] ) ; @@a1@@ [ Number ] = Number L ; } return hostapd_wps_clear_ies ( @@a1@@ , Number ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}]}
{"name": "wps_reload_config", "code": "__int64 __fastcall wps_reload_config ( _QWORD * @@a1@@ ) { __int64 @@result@@ ; wpa_printf ( Number L , String ) ; if ( ! * @@a1@@ || ( @@result@@ = ( * ( __int64 ( __fastcall * * ) ( _QWORD * ) ) * @@a1@@ ) ( @@a1@@ ) , ( int ) @@result@@ < Number ) ) @@result@@ = wpa_printf ( Number L , String ) ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "hostapd_wps_reenable_ap_pin", "code": "__int64 __fastcall hostapd_wps_reenable_ap_pin ( __int64 @@a1@@ ) { __int64 @@result@@ ; @@result@@ = * ( unsigned int * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ; if ( ! ( _DWORD ) @@result@@ ) { @@result@@ = * ( unsigned int * ) ( @@a1@@ + Number ) ; if ( ( unsigned int ) @@result@@ <= Number ) { wpa_printf ( Number L , String ) ; wpa_msg ( * ( _QWORD * ) ( @@a1@@ + Number ) , Number L , String ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) = Number ; @@result@@ = wps_registrar_update_ie ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ; } } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "hostapd_wps_clear_ies", "code": "__int64 __fastcall hostapd_wps_clear_ies ( _QWORD * @@a1@@ , int @@a2@@ ) { __int64 @@result@@ ; wpabuf_free ( @@a1@@ [ Number ] ) ; @@a1@@ [ Number ] = Number L ; wpabuf_free ( @@a1@@ [ Number ] ) ; @@a1@@ [ Number ] = Number L ; if ( ! @@a2@@ ) return hostapd_set_ap_wps_ie ( @@a1@@ ) ; @@result@@ = @@a1@@ [ Number ] ; if ( @@result@@ ) @@result@@ = hostapd_reset_ap_wps_ie ( @@a1@@ ) ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "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_free_wps", "code": "void __fastcall hostapd_free_wps ( __int64 @@a1@@ ) { int @@i@@ ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) wpabuf_free ( * ( _QWORD * ) ( @@a1@@ + Number * ( @@i@@ + Number L ) + Number ) ) ; wps_device_data_free ( @@a1@@ + Number ) ; free ( * ( void * * ) ( @@a1@@ + Number ) ) ; hostapd_wps_nfc_clear ( @@a1@@ ) ; wpabuf_free ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; wpabuf_free ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; free ( ( void * ) @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "hostapd_update_wps", "code": "__int64 __fastcall hostapd_update_wps ( _QWORD * @@a1@@ ) { __int64 @@result@@ ; @@result@@ = @@a1@@ [ Number ] ; if ( @@result@@ ) { hostapd_wps_set_vendor_ext ( ( __int64 ) @@a1@@ , @@a1@@ [ Number ] ) ; if ( * ( _DWORD * ) ( @@a1@@ [ Number ] + Number L ) ) @@result@@ = wps_registrar_update_ie ( * ( _QWORD * ) ( @@a1@@ [ Number ] + Number L ) ) ; else @@result@@ = hostapd_deinit_wps ( @@a1@@ ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "hostapd_wps_ap_pin_timeout", "code": "__int64 __fastcall hostapd_wps_ap_pin_timeout ( __int64 @@a1@@ ) { wpa_printf ( Number L , String ) ; hostapd_wps_ap_pin_disable ( @@a1@@ ) ; return wpa_msg ( * ( _QWORD * ) ( @@a1@@ + Number ) , Number L , String ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}