{"name": "write_kernel_memory", "code": "__int64 __fastcall write_kernel_memory ( unsigned __int16 @@a1@@ , int @@a2@@ ) { unsigned int @@v3@@ ; @@v3@@ = read_kernel_memory ( @@a1@@ ) ; if ( regutil_mem ) * ( ( _DWORD * ) regutil_mem + ( ( unsigned __int64 ) @@a1@@ >> Number ) ) = @@a2@@ ; return @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned __int16", "s": 2}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]}
{"name": "read_kernel_memory", "code": "__int64 __fastcall read_kernel_memory ( int @@a1@@ ) { if ( ( @@a1@@ & Number ) != regutil_prev_mem_range_9148 ) { regutil_prev_mem_range_9148 = @@a1@@ & Number ; if ( regutil_mem ) munmap ( regutil_mem , Number ) ; if ( regutil_fd_9149 ) close ( regutil_fd_9149 ) ; regutil_fd_9149 = open ( String , Number ) ; if ( regutil_fd_9149 < Number ) { perror ( String ) ; regutil_fd_9149 = Number ; exit ( Number ) ; } regutil_mem = mmap ( Number L , Number , Number , Number , regutil_fd_9149 , @@a1@@ & Number ) ; if ( ( _DWORD ) regutil_mem == Number ) { perror ( String ) ; if ( close ( regutil_fd_9149 ) == Number ) perror ( String ) ; regutil_fd_9149 = Number ; regutil_mem = Number L ; exit ( Number ) ; } } return * ( ( unsigned int * ) regutil_mem + ( ( unsigned __int64 ) ( unsigned __int16 ) @@a1@@ >> Number ) ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}]} {"name": "select_input", "code": "__int64 __fastcall select_input ( int @@a1@@ ) { if ( @@a1@@ ) { if ( @@a1@@ == Number ) { write_kernel_memory ( Number , Number ) ; write_kernel_memory ( Number , Number ) ; } else if ( @@a1@@ == Number ) { write_kernel_memory ( Number , Number ) ; write_kernel_memory ( Number , Number ) ; } else { write_kernel_memory ( Number , Number ) ; } } else { write_kernel_memory ( Number , Number ) ; } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}]} {"name": "crad_create", "code": "__int64 __fastcall crad_create ( __int64 @@a1@@ , void * * @@a2@@ ) { int @@fd@@ ; void * @@v4@@ ; if ( ! @@a2@@ ) return Number L ; @@v4@@ = malloc ( Number ) ; * @@a2@@ = @@v4@@ ; memset ( * @@a2@@ , Number , Number ) ; * ( ( _DWORD * ) @@v4@@ + Number ) = Number ; @@fd@@ = open ( String , Number ) ; if ( @@fd@@ > Number ) { chumby_XCLK = Number ; write_kernel_memory ( Number , Number ) ; write_kernel_memory ( Number , Number ) ; write_kernel_memory ( Number , Number ) ; close ( @@fd@@ ) ; } fwrite ( String , Number , Number , stderr ) ; QND_Init ( ) ; fwrite ( String , Number , Number , stderr ) ; QND_SetSysMode ( Number ) ; fwrite ( String , Number , Number , stderr ) ; QND_SetCountry ( Number L ) ; fwrite ( String , Number , Number , stderr ) ; crad_refresh_station_list ( @@v4@@ ) ; fwrite ( String , Number , Number , stderr ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "void *"}, "location": "r64"}, {"n": "fd", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 3, "t": "void"}, "location": "s8"}]}