{"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": "os_snprintf_error", "code": "_BOOL8 __fastcall os_snprintf_error ( unsigned __int64 @@a1@@ , int @@a2@@ ) { return @@a2@@ < Number || @@a1@@ <= ( unsigned int ) @@a2@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}]} {"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": "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"}]}