{"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_set_vendor_ext", "code": "__int64 __fastcall hostapd_wps_set_vendor_ext ( __int64 @@a1@@ , __int64 @@a2@@ ) { int @@i@@ ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { if ( @@i@@ > Number ) return Number L ; wpabuf_free ( * ( _QWORD * ) ( @@a2@@ + Number * ( @@i@@ + Number L ) + Number ) ) ; * ( _QWORD * ) ( @@a2@@ + Number * ( @@i@@ + Number L ) + Number ) = Number L ; if ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number * ( @@i@@ + Number L ) + Number ) ) { * ( _QWORD * ) ( @@a2@@ + Number * ( @@i@@ + Number L ) + Number ) = wpabuf_dup ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number * ( @@i@@ + Number L ) + Number ) ) ; if ( ! * ( _QWORD * ) ( @@a2@@ + Number * ( @@i@@ + Number L ) + Number ) ) break ; } } while ( -- @@i@@ >= Number ) wpabuf_free ( * ( _QWORD * ) ( @@a2@@ + Number * ( @@i@@ + Number L ) + Number ) ) ; return Number ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"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"}]}