{"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": "hostapd_wps_pin_needed_cb", "code": "int __fastcall hostapd_wps_pin_needed_cb ( __int64 @@a1@@ , __int64 @@a2@@ , unsigned __int8 * @@a3@@ ) { FILE * v3 ; const char * v4 ; const char * v5 ; __int64 @@v8@@ ; char @@v9@@ [ Number ] ; char @@s@@ [ Number ] ; char @@v11@@ [ Number ] ; FILE * @@stream@@ ; int @@v13@@ ; __int64 @@v14@@ ; @@v14@@ = @@a1@@ ; LODWORD ( v3 ) = uuid_bin2str ( @@a2@@ , @@v11@@ , Number L ) ; if ( ! ( _DWORD ) v3 ) { wpa_printf ( Number L , String , @@v11@@ ) ; v4 = ( const char * ) wps_dev_type_bin2str ( @@a3@@ + Number , @@v9@@ , Number L ) ; @@v13@@ = snprintf ( @@s@@ , Number , String , @@v11@@ , * @@a3@@ , @@a3@@ [ Number ] , @@a3@@ [ Number ] , @@a3@@ [ Number ] , @@a3@@ [ Number ] , @@a3@@ [ Number ] , * ( ( const char * * ) @@a3@@ + Number ) , * ( ( const char * * ) @@a3@@ + Number ) , * ( ( const char * * ) @@a3@@ + Number ) , * ( ( const char * * ) @@a3@@ + Number ) , * ( ( const char * * ) @@a3@@ + Number ) , v4 ) ; if ( ! os_snprintf_error ( Number , @@v13@@ ) ) wpa_msg ( * ( _QWORD * ) ( @@v14@@ + Number ) , Number L , String , @@s@@ ) ; v3 = * ( FILE * * ) ( * ( _QWORD * ) ( @@v14@@ + Number ) + Number L ) ; if ( v3 ) { v3 = fopen ( * ( const char * * ) ( * ( _QWORD * ) ( @@v14@@ + Number ) + Number L ) , String ) ; @@stream@@ = v3 ; if ( v3 ) { os_get_time ( & @@v8@@ ) ; v5 = ( const char * ) wps_dev_type_bin2str ( @@a3@@ + Number , @@v9@@ , Number L ) ; fprintf ( @@stream@@ , String , @@v8@@ , @@v11@@ , * @@a3@@ , @@a3@@ [ Number ] , @@a3@@ [ Number ] , @@a3@@ [ Number ] , @@a3@@ [ Number ] , @@a3@@ [ Number ] , * ( ( const char * * ) @@a3@@ + Number ) , * ( ( const char * * ) @@a3@@ + Number ) , * ( ( const char * * ) @@a3@@ + Number ) , * ( ( const char * * ) @@a3@@ + Number ) , * ( ( const char * * ) @@a3@@ + Number ) , v5 ) ; LODWORD ( v3 ) = fclose ( @@stream@@ ) ; } } } return ( int ) v3 ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "unsigned __int8"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v11", "t": {"T": 2, "n": 40, "s": 1, "t": "char"}, "location": "s112"}, {"n": "s", "t": {"T": 2, "n": 400, "s": 1, "t": "char"}, "location": "s512"}, {"n": "v9", "t": {"T": 2, "n": 32, "s": 1, "t": "char"}, "location": "s544"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s560"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s60"}, {"n": "stream", "t": {"T": 3, "t": "FILE"}, "location": "s72"}]} {"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"}]}