{"name": "wps_for_each", "code": "__int64 __fastcall wps_for_each ( __int64 @@a1@@ , __int64 @@a2@@ ) { unsigned int @@v3@@ ; __int64 @@v4@@ ; unsigned __int64 @@i@@ ; if ( ! @@a1@@ ) return Number L ; for ( @@i@@ = Number L ; @@i@@ < * ( _QWORD * ) ( @@a1@@ + Number ) ; ++ @@i@@ ) { @@v4@@ = * ( _QWORD * ) ( Number * @@i@@ + * ( _QWORD * ) ( @@a1@@ + Number ) ) ; if ( @@v4@@ == * ( _QWORD * ) ( @@a2@@ + Number ) || ! * ( _DWORD * ) ( * ( _QWORD * ) ( @@v4@@ + Number ) + Number L ) && ! * ( _DWORD * ) ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number ) + Number L ) + Number L ) ) { @@v3@@ = ( * ( __int64 ( __fastcall * * ) ( __int64 , _QWORD ) ) @@a2@@ ) ( @@v4@@ , * ( _QWORD * ) ( @@a2@@ + Number ) ) ; if ( @@v3@@ ) return @@v3@@ ; } } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s28"}, {"n": "i", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "hostapd_wps_for_each", "code": "__int64 __fastcall hostapd_wps_for_each ( _QWORD * * @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { __int64 @@result@@ ; __int64 @@v4@@ [ Number ] ; _QWORD * @@v5@@ ; @@v5@@ = * @@a1@@ ; @@v4@@ [ Number ] = @@a2@@ ; @@v4@@ [ Number ] = @@a3@@ ; @@v4@@ [ Number ] = ( __int64 ) @@a1@@ ; if ( * @@v5@@ && * ( _QWORD * ) ( * @@v5@@ + Number L ) ) @@result@@ = ( * ( __int64 ( __fastcall * * ) ( _QWORD , __int64 ( __fastcall * ) ( __int64 , __int64 ) , __int64 * ) ) ( * @@v5@@ + Number L ) ) ( * @@v5@@ , wps_for_each , @@v4@@ ) ; else @@result@@ = wps_for_each ( ( __int64 ) @@v5@@ , ( __int64 ) @@v4@@ ) ; return @@result@@ ; }", "source": [{"n": "a3", "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": "v4", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s32"}, {"n": "v5", "t": {"T": 3, "t": "_QWORD"}, "location": "s8"}]} {"name": "hostapd_wps_reg_success_cb", "code": "__int64 __fastcall hostapd_wps_reg_success_cb ( _QWORD * * @@a1@@ , unsigned __int8 * @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ , __int64 @@a5@@ ) { __int64 @@result@@ ; __int64 @@v9@@ [ Number ] ; char @@v10@@ [ Number ] ; _QWORD * * @@v11@@ ; @@v11@@ = @@a1@@ ; @@result@@ = uuid_bin2str ( @@a3@@ , @@v10@@ , Number L ) ; if ( ! ( _DWORD ) @@result@@ ) { wpa_msg ( @@v11@@ [ Number ] , Number L , String , * @@a2@@ , @@a2@@ [ Number ] , @@a2@@ [ Number ] , @@a2@@ [ Number ] , @@a2@@ [ Number ] , @@a2@@ [ Number ] , @@v10@@ ) ; if ( @@v11@@ [ Number ] ) ( ( void ( __fastcall * ) ( _QWORD * , unsigned __int8 * , __int64 ) ) @@v11@@ [ Number ] ) ( @@v11@@ [ Number ] , @@a2@@ , @@a3@@ ) ; @@v9@@ [ Number ] = ( __int64 ) @@v11@@ ; @@v9@@ [ Number ] = @@a3@@ ; @@v9@@ [ Number ] = @@a4@@ ; @@v9@@ [ Number ] = @@a5@@ ; @@result@@ = hostapd_wps_for_each ( @@v11@@ , ( __int64 ) wps_stop_registrar , ( __int64 ) @@v9@@ ) ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD *"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "unsigned __int8"}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v10", "t": {"T": 2, "n": 40, "s": 1, "t": "char"}, "location": "s48"}, {"n": "v11", "t": {"T": 3, "t": "_QWORD *"}, "location": "s8"}, {"n": "v9", "t": {"T": 2, "n": 4, "s": 8, "t": "__int64"}, "location": "s80"}]} {"name": "hostapd_wps_cred_cb", "code": "__int64 __fastcall hostapd_wps_cred_cb ( _QWORD * * @@a1@@ , __int64 @@a2@@ ) { return hostapd_wps_for_each ( @@a1@@ , ( __int64 ) hapd_wps_cred_cb , @@a2@@ ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD *"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "hostapd_pwd_auth_fail", "code": "__int64 __fastcall hostapd_pwd_auth_fail ( __int64 @@a1@@ , __int64 @@a2@@ ) { wpa_printf ( Number L , String ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; memcpy ( ( void * ) ( @@a1@@ + Number ) , ( const void * ) ( @@a2@@ + Number ) , Number ) ; return hostapd_wps_for_each ( ( _QWORD * * ) @@a1@@ , ( __int64 ) wps_pwd_auth_fail , @@a2@@ ) ; }", "source": [{"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_success", "code": "__int64 __fastcall hostapd_wps_ap_pin_success ( _QWORD * * @@a1@@ ) { return hostapd_wps_for_each ( @@a1@@ , ( __int64 ) wps_ap_pin_success , Number L ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD *"}, "location": "r56"}]} {"name": "hostapd_wps_add_pin", "code": "__int64 __fastcall hostapd_wps_add_pin ( _QWORD * * @@a1@@ , __int64 @@a2@@ , const char * @@a3@@ , const char * @@a4@@ , int @@a5@@ ) { __int64 @@v8@@ ; char * @@v9@@ ; const char * @@v10@@ ; size_t @@v11@@ ; int @@v12@@ ; int @@v13@@ ; char @@v14@@ [ Number ] ; @@v8@@ = @@a2@@ ; @@v9@@ = @@v14@@ ; @@v10@@ = @@a4@@ ; @@v11@@ = strlen ( @@a4@@ ) ; @@v12@@ = @@a5@@ ; @@v13@@ = Number ; if ( ! strcmp ( @@a3@@ , String ) ) { @@v9@@ = Number L ; } else { if ( ( unsigned int ) uuid_str2bin ( @@a3@@ , @@v14@@ ) ) return Number ; @@v9@@ = @@v14@@ ; } if ( ( int ) hostapd_wps_for_each ( @@a1@@ , ( __int64 ) wps_add_pin , ( __int64 ) & @@v8@@ ) < Number ) return Number ; if ( @@v13@@ ) return Number L ; return Number ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "const char"}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD *"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "int", "s": 4}, "location": "r72"}, {"n": "v14", "t": {"T": 2, "n": 16, "s": 1, "t": "char"}, "location": "s16"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v12", "t": {"T": 1, "n": "int", "s": 4}, "location": "s32"}, {"n": "v11", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "s40"}, {"n": "v10", "t": {"T": 3, "t": "const char"}, "location": "s48"}, {"n": "v9", "t": {"T": 3, "t": "char"}, "location": "s56"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}]} {"name": "hostapd_wps_button_pushed", "code": "__int64 __fastcall hostapd_wps_button_pushed ( _QWORD * * @@a1@@ , __int64 @@a2@@ ) { __int64 @@s@@ [ Number ] ; unsigned int @@v4@@ ; memset ( @@s@@ , Number , Number ) ; @@s@@ [ Number ] = @@a2@@ ; @@v4@@ = hostapd_wps_for_each ( @@a1@@ , ( __int64 ) wps_button_pushed , ( __int64 ) @@s@@ ) ; if ( ! @@v4@@ && ! LODWORD ( @@s@@ [ Number ] ) ) @@v4@@ = Number ; return @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD *"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "s", "t": {"T": 2, "n": 3, "s": 8, "t": "__int64"}, "location": "s32"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "hostapd_wps_cancel", "code": "__int64 __fastcall hostapd_wps_cancel ( _QWORD * * @@a1@@ ) { int @@s@@ ; unsigned int @@v3@@ ; memset ( & @@s@@ , Number , sizeof ( @@s@@ ) ) ; @@v3@@ = hostapd_wps_for_each ( @@a1@@ , ( __int64 ) wps_cancel , ( __int64 ) & @@s@@ ) ; if ( ! @@v3@@ && ! @@s@@ ) @@v3@@ = Number ; return @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD *"}, "location": "r56"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "s", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]} {"name": "hostapd_wps_ap_pin_disable", "code": "__int64 __fastcall hostapd_wps_ap_pin_disable ( _QWORD * * @@a1@@ ) { wpa_printf ( Number L , String ) ; return hostapd_wps_for_each ( @@a1@@ , ( __int64 ) wps_ap_pin_disable , Number L ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD *"}, "location": "r56"}]} {"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"}]} {"name": "hostapd_wps_update_ie", "code": "__int64 __fastcall hostapd_wps_update_ie ( _QWORD * * @@a1@@ ) { return hostapd_wps_for_each ( @@a1@@ , ( __int64 ) wps_update_ie , Number L ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD *"}, "location": "r56"}]}