{"name": "control_readed", "code": "_DWORD * __fastcall control_readed ( int * @@a1@@ , int * @@a2@@ , __int64 @@a3@@ , int @@a4@@ ) { void * v4 ; _DWORD * result ; __int64 v6 ; __int64 v7 ; __int64 v8 ; __int64 v9 ; int v10 ; __int64 @@v14@@ ; __int64 @@v15@@ ; __int64 @@v16@@ ; __int64 * @@v17@@ ; __int64 @@v18@@ ; int @@v19@@ ; __int64 @@v20@@ ; __int64 @@v21@@ ; int @@v22@@ ; int @@v23@@ ; int @@v24@@ ; int @@v25@@ ; int @@i@@ ; @@v23@@ = * @@a2@@ ; if ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ) v4 = realloc ( * ( void * * ) ( @@a3@@ + Number L * @@a4@@ + Number ) , Number L * ( * ( _DWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) ) ; else v4 = calloc ( Number , Number ) ; * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) = v4 ; result = * ( _DWORD * * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ; if ( result ) { memcpy ( ( void * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ) , @@a2@@ , Number ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = @@v24@@ ; if ( @@a2@@ [ Number ] == Number ) { v6 = * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ; * ( _QWORD * ) ( v6 + Number ) = malloc ( Number L * ( @@a2@@ [ Number ] + Number ) ) ; for ( @@i@@ = @@a2@@ [ Number ] ; @@i@@ <= @@a2@@ [ Number ] ; ++ @@i@@ ) { LODWORD ( @@v14@@ ) = * @@a2@@ ; HIDWORD ( @@v14@@ ) = @@i@@ ; if ( ! ( unsigned int ) xioctl ( * @@a1@@ , Number , ( __int64 ) & @@v14@@ ) ) { v7 = * ( _QWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) + Number L * @@i@@ ; v8 = @@v15@@ ; * ( _QWORD * ) v7 = @@v14@@ ; * ( _QWORD * ) ( v7 + Number ) = v8 ; v9 = ( __int64 ) @@v17@@ ; * ( _QWORD * ) ( v7 + Number ) = @@v16@@ ; * ( _QWORD * ) ( v7 + Number ) = v9 ; * ( _QWORD * ) ( v7 + Number ) = @@v18@@ ; * ( _DWORD * ) ( v7 + Number ) = @@v19@@ ; } } } else { * ( _QWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = Number L ; } * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = Number ; v10 = * @@a2@@ ; LOWORD ( v10 ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = v10 ; @@v25@@ = Number ; if ( * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) == Number ) { @@v25@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) & @@v23@@ ) ; if ( ! @@v25@@ ) * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = @@v24@@ ; } else { @@v14@@ = Number L ; @@v15@@ = Number L ; @@v16@@ = Number L ; @@v17@@ = Number L ; @@v20@@ = Number L ; @@v21@@ = Number L ; @@v22@@ = Number ; @@v20@@ = ( unsigned int ) * @@a2@@ ; HIDWORD ( @@v14@@ ) = Number ; @@v17@@ = & @@v20@@ ; @@v25@@ = xioctl ( * @@a1@@ , Number , ( __int64 ) & @@v14@@ ) ; if ( ! @@v25@@ ) * ( _DWORD * ) ( * ( _QWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number L * * ( int * ) ( @@a3@@ + Number L * @@a4@@ + Number ) + Number ) = HIDWORD ( @@v21@@ ) ; } result = ( _DWORD * ) ( @@a3@@ + Number L * @@a4@@ + Number ) ; ++ * result ; } return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "int"}, "location": "r64"}, {"n": "v15", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s104"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s112"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v25", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}, {"n": "v24", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "v23", "t": {"T": 1, "n": "int", "s": 4}, "location": "s32"}, {"n": "v22", "t": {"T": 1, "n": "int", "s": 4}, "location": "s48"}, {"n": "v21", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v20", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}, {"n": "v19", "t": {"T": 1, "n": "int", "s": 4}, "location": "s72"}, {"n": "v18", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s80"}, {"n": "v17", "t": {"T": 3, "t": "__int64"}, "location": "s88"}, {"n": "v16", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s96"}]}
{"name": "xioctl", "code": "__int64 __fastcall xioctl ( int @@a1@@ , unsigned int @@a2@@ , __int64 @@a3@@ ) { int * v4 ; char * v5 ; unsigned int @@v8@@ ; int @@v9@@ ; @@v9@@ = Number ; do { @@v8@@ = ioctl ( @@a1@@ , ( int ) @@a2@@ , @@a3@@ ) ; if ( ! @@v8@@ ) break ; if ( ! @@v9@@ -- ) break ; } while ( * _errno_location ( ) == Number || * _errno_location ( ) == Number || * _errno_location ( ) == Number ) ; if ( @@v8@@ && @@v9@@ <= Number ) { v4 = _errno_location ( ) ; v5 = strerror ( * v4 ) ; fprintf ( stderr , String , @@a2@@ , Number L , v5 ) ; } return @@v8@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v8", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]} {"name": "enumerateControls", "code": "_DWORD * __fastcall enumerateControls ( int * @@a1@@ , __int64 @@a2@@ , int @@a3@@ ) { void * v3 ; _DWORD * result ; int @@src@@ [ Number ] ; int @@v7@@ [ Number ] ; int @@i@@ ; * ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) = Number ; * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) = Number L ; @@v7@@ [ Number ] = Number ; if ( ioctl ( * @@a1@@ , Number , @@v7@@ ) ) { for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { @@v7@@ [ Number ] = @@i@@ ; if ( ! ioctl ( * @@a1@@ , Number , @@v7@@ ) ) control_readed ( @@a1@@ , @@v7@@ , @@a2@@ , @@a3@@ ) ; } for ( @@i@@ = Number ; ; ++ @@i@@ ) { @@v7@@ [ Number ] = @@i@@ ; if ( ioctl ( * @@a1@@ , Number , @@v7@@ ) ) break ; control_readed ( @@a1@@ , @@v7@@ , @@a2@@ , @@a3@@ ) ; } } else { do { control_readed ( @@a1@@ , @@v7@@ , @@a2@@ , @@a3@@ ) ; @@v7@@ [ Number ] |= Number ; } while ( ! ioctl ( * @@a1@@ , Number , @@v7@@ ) ) ; } memset ( ( void * ) ( Number L * @@a3@@ + Number + @@a2@@ + Number ) , Number , Number ) ; if ( ( unsigned int ) xioctl ( * @@a1@@ , Number , Number L * @@a3@@ + Number + @@a2@@ + Number ) == Number ) { result = ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ; * result = Number ; } else { @@src@@ [ Number ] = Number ; sprintf ( ( char * ) & @@src@@ [ Number ] , String ) ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; @@src@@ [ Number ] = Number ; if ( * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ) v3 = realloc ( * ( void * * ) ( @@a2@@ + Number L * @@a3@@ + Number ) , Number L * ( * ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number ) ) ; else v3 = calloc ( Number , Number ) ; * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) = v3 ; result = * ( _DWORD * * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ; if ( result ) { memcpy ( ( void * ) ( * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number L * * ( int * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ) , @@src@@ , Number ) ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number L * * ( int * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number ) = Number ; * ( _DWORD * ) ( * ( _QWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number L * * ( int * ) ( @@a2@@ + Number L * @@a3@@ + Number ) + Number ) = * ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ; result = ( _DWORD * ) ( @@a2@@ + Number L * @@a3@@ + Number ) ; ++ * result ; } } return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "int"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "src", "t": {"T": 2, "n": 20, "s": 4, "t": "int"}, "location": "s160"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v7", "t": {"T": 2, "n": 19, "s": 4, "t": "int"}, "location": "s80"}]}