{"name": "Login_init", "code": "int Login_init ( ) { char v0 ; int result ; __int64 v2 ; const char * v3 ; int v4 ; int v5 ; int v6 ; struct stat @@v7@@ ; int @@fd@@ ; int @@i@@ ; totalbyte = Number ; totalnum = Number ; v0 = mytoupper ( ( unsigned __int8 ) LowUserid ) ; sprintf ( & genbuf , String , ( unsigned int ) v0 , & LowUserid ) ; result = stat ( & genbuf , & @@v7@@ ) ; if ( result != Number ) { result = @@v7@@ . st_size ; if ( @@v7@@ . st_size ) { totalnum = @@v7@@ . st_size / Number ; fcache = malloc ( @@v7@@ . st_size ) ; fowner = malloc ( Number * totalnum ) ; postlen = malloc ( Number * totalnum ) ; @@fd@@ = open ( & genbuf , Number ) ; read ( @@fd@@ , fcache , @@v7@@ . st_size ) ; close ( @@fd@@ ) ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { result = totalnum ; if ( @@i@@ >= totalnum ) break ; v2 = fh2fname ( ( char * ) fcache + Number * ( __int64 ) @@i@@ ) ; setmailfile ( & genbuf , & LowUserid , v2 ) ; v3 = ( const char * ) fh2owner ( ( char * ) fcache + Number * ( __int64 ) @@i@@ ) ; strcpy ( ( char * ) fowner + Number * @@i@@ , v3 ) ; if ( strchr ( ( const char * ) fowner + Number * @@i@@ , Number ) ) getdocauthor ( & genbuf , ( char * ) fowner + Number * @@i@@ , Number L ) ; else strcat ( ( char * ) fowner + Number * @@i@@ , String ) ; if ( stat ( & genbuf , & @@v7@@ ) == Number ) @@v7@@ . st_size = Number L ; v4 = @@v7@@ . st_size ; v5 = strlen ( ( const char * ) fowner + Number * @@i@@ ) + v4 ; v6 = strlen ( ( const char * ) fcache + Number * ( __int64 ) @@i@@ + Number ) ; * ( ( _DWORD * ) postlen + @@i@@ ) = v5 + v6 + Number ; totalbyte += * ( ( _DWORD * ) postlen + @@i@@ ) ; } } } return result ; }", "source": [{"n": "v7", "t": {"T": 6, "n": "struct stat", "l": [{"T": 4, "n": "st_dev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_ino", "t": "__ino_t", "s": 8}, {"T": 4, "n": "st_nlink", "t": "__nlink_t", "s": 8}, {"T": 4, "n": "st_mode", "t": "__mode_t", "s": 4}, {"T": 4, "n": "st_uid", "t": "__uid_t", "s": 4}, {"T": 4, "n": "st_gid", "t": "__gid_t", "s": 4}, {"T": 4, "n": "__pad0", "t": "int", "s": 4}, {"T": 4, "n": "st_rdev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_size", "t": "__off_t", "s": 8}, {"T": 4, "n": "st_blksize", "t": "__blksize_t", "s": 8}, {"T": 4, "n": "st_blocks", "t": "__blkcnt_t", "s": 8}, {"T": 4, "n": "st_atim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_mtim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_ctim", "t": "timespec", "s": 16}, {"T": 4, "n": "__unused", "t": "__syscall_slong_t[3]", "s": 24}]}, "location": "s176"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "fd", "t": {"T": 1, "n": "int", "s": 4}, "location": "s24"}]}
{"name": "User", "code": "__int64 User ( ) { __int64 @@result@@ ; if ( State == Number ) { outs ( String ) ; @@result@@ = Number ; } else { LowUserid = Number ; cmd = nextwordlower ( ( char * * ) & msg ) ; if ( * cmd ) { if ( strstr ( cmd , String ) ) * strchr ( cmd , Number ) = Number ; if ( ( unsigned int ) get_userdata ( cmd ) == Number ) { if ( ( unsigned int ) userbansite ( cmd , & fromhost ) ) { sprintf ( & genbuf , String , & fromhost , cmd ) ; outs ( & genbuf ) ; @@result@@ = Number ; } else { strcpy ( & LowUserid , cmd ) ; sprintf ( & genbuf , String , cmd ) ; outs ( & genbuf ) ; @@result@@ = Number L ; } } else { sprintf ( & genbuf , String , cmd ) ; outs ( & genbuf ) ; @@result@@ = Number ; } } else { outs ( String ) ; @@result@@ = Number ; } } return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "Pass", "code": "__int64 Pass ( ) { __int64 @@result@@ ; time_t @@v1@@ ; if ( State == Number ) { outs ( String ) ; @@result@@ = Number ; } else { cmd = nextword ( ( char * * ) & msg ) ; if ( * cmd ) { if ( LowUserid ) { if ( ( unsigned int ) checkpasswd ( ( unsigned int ) ( ( _DWORD ) & currentuser + Number ) , cmd ) ) { if ( State == Number ) { log_usies ( String ) ; State = Number ; } Login_init ( ) ; sprintf ( & genbuf , String , & LowUserid , ( unsigned int ) totalnum , ( unsigned int ) totalbyte ) ; outs ( & genbuf ) ; @@result@@ = Number L ; } else { @@v1@@ = time ( Number L ) ; logattempt ( & currentuser , & fromhost , String , @@v1@@ ) ; sprintf ( & genbuf , String , & LowUserid ) ; outs ( & genbuf ) ; LowUserid = Number ; log_usies ( String ) ; @@result@@ = Number ; } } else { outs ( String ) ; @@result@@ = Number ; } } else { outs ( String ) ; @@result@@ = Number ; } } return @@result@@ ; }", "source": [{"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v1", "t": {"T": 1, "n": "time_t", "s": 8}, "location": "s8"}]}