input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
void logprint3(FILE *stdf, FILE *f1, FILE *f2, char *format, ...) { long v4; long v5; time_t now; tm *t; va_list arglist; char szTimeBuffer[2064]; char szMessageBuffer[2056]; unsigned long v13; long v14; long v15; va_start(arglist, format); v4 = va_arg(arglist, _QWORD); v5 = va_arg(arglist, _...
void logprint3(FILE *stdf, FILE *f1, FILE *f2, char *format, ...) { time_t now; struct tm *t; va_list arglist; char szTimeBuffer[2048 + 1]; char szMessageBuffer[2048 + 1]; if (!continueline) { now = time(NULL); t = localtime(&now); sprintf(szTimeBuffer, "[%04d/%02d/%02d - %02d:%02d:%02d] ", ...
logprint3
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int main(int argc, const char **argv, const char **envp) { int v3; int result; int iCount; int iCounta; int iOptionsFound; int rc; WORKSPACE *ws; char szStartPath[1025]; char szErrorLogFileName[1032]; unsigned long v12; v12 = __readfsqword(0x28u); iOptionsFound = 0; rc = 0; for (iCount = 1;...
int main(int argc, char **argv) { WORKSPACE *ws; int iCount = 0; int iOptionsFound = 0; int rc = 0; char *ptr = NULL; char szStartPath[MAX_PATH + 1]; char szErrorLogFileName[MAX_PATH + 1]; for (iCount = 1; iCount < argc; iCount++) { if (argv[iCount][0] == '-') { iOptionsFound++; strlwr(...
main
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int strcmpcasenosensitive_internal(const char *fileName1, const char *fileName2) { const char *v2; const char *v3; char c1; char c2; while (1) { v2 = fileName1++; c1 = *v2; v3 = fileName2++; c2 = *v3; if (c1 > 96 && c1 <= 122) c1 -= 32; if (c2 ...
local int strcmpcasenosensitive_internal(const char *fileName1, const char *fileName2) { for (;;) { char c1 = *(fileName1++); char c2 = *(fileName2++); if ((c1 >= 'a') && (c1 <= 'z')) c1 -= 0x20; if ((c2 >= 'a') && (c2 <= 'z')) c2 -= 0x20; if (c...
strcmpcasenosensitive_internal
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
char *strlwr(char *s) { while (*s) { *s = tolower(*s); ++s; } return s; }
char *strlwr(char *s) { while (*s) { *s = (char)tolower(*s); ++s; } return s; }
strlwr
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unz64local_CheckCurrentFileCoherencyHeader( unz64_s *s, uInt *piSizeVar, ZPOS64_T *poffset_local_extrafield, uInt *psize_local_extrafield) { int err; uLong uMagic; uLong uData; uLong uFlags; uLong size_filename; uLong size_extra_field[2]; size_extra_field[1] = __readfsqword(0x28u); err = 0;...
local int unz64local_CheckCurrentFileCoherencyHeader(unz64_s *s, uInt *piSizeVar, ZPOS64_T *poffset_local_extrafield, uInt *psize_local_extrafield) { uLong uMagic, uData, uFlags; uLong size_filename; uLong size_extra_field; in...
unz64local_CheckCurrentFileCoherencyHeader
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
void unz64local_DosDateToTmuDate(ZPOS64_T ulDosDate, tm_unz *ptm) { ptm->tm_mday = BYTE2(ulDosDate) & 0x1F; ptm->tm_mon = ((unsigned long)(WORD1(ulDosDate) & 0x1E0) >> 5) - 1; ptm->tm_year = ((unsigned long)(WORD1(ulDosDate) & 0xFE00) >> 9) + 1980; ptm->tm_hour = (unsigned long)((unsigned short)ulDosDate & 0xF8...
local void unz64local_DosDateToTmuDate(ZPOS64_T ulDosDate, tm_unz *ptm) { ZPOS64_T uDate; uDate = (ZPOS64_T)(ulDosDate >> 16); ptm->tm_mday = (uInt)(uDate & 0x1f); ptm->tm_mon = (uInt)((((uDate) & 0x1E0) / 0x20) - 1); ptm->tm_year = (uInt)(((uDate & 0x0FE00) / 0x0200) + 1980); ptm->tm_hour = (uInt)((ulDosD...
unz64local_DosDateToTmuDate
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unz64local_GetCurrentFileInfoInternal( unzFile file, unz_file_info64 *pfile_info, unz_file_info64_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) { uLong v10; uLong v11; uLong v12...
local int unz64local_GetCurrentFileInfoInternal( unzFile file, unz_file_info64 *pfile_info, unz_file_info64_internal *pfile_info_internal, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) { unz64_s *s; unz_file_info64...
unz64local_GetCurrentFileInfoInternal
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
ZPOS64_T unz64local_SearchCentralDir(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) { long v3; int v4; int i; ZPOS64_T uBackRead; ZPOS64_T uMaxBack; ZPOS64_T uPosFound; ZPOS64_T uSizeFile; unsigned char *buf; ZPOS64_T uReadPos; uLong uReadSize; uM...
local ZPOS64_T unz64local_SearchCentralDir( const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) { unsigned char *buf; ZPOS64_T uSizeFile; ZPOS64_T uBackRead; ZPOS64_T uMaxBack = 0xffff; ZPOS64_T uPosFound = 0; if (ZSEEK64(*pzlib_filefunc_def, filestream, 0, ZLIB_FILEFUNC_SEEK_END) != 0...
unz64local_SearchCentralDir
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
ZPOS64_T unz64local_SearchCentralDir64(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) { ZPOS64_T v3; int v4; int i; uLong uL; ZPOS64_T relativeOffset; ZPOS64_T uBackRead; ZPOS64_T uMaxBack; ZPOS64_T uPosFound; ZPOS64_T uSizeFile; unsigned char *buf...
local ZPOS64_T unz64local_SearchCentralDir64( const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) { unsigned char *buf; ZPOS64_T uSizeFile; ZPOS64_T uBackRead; ZPOS64_T uMaxBack = 0xffff; ZPOS64_T uPosFound = 0; uLong uL; ZPOS64_T relativeOffset; if (ZSEEK64(*pzlib_filefunc_def, fi...
unz64local_SearchCentralDir64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unz64local_getByte(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi) { unsigned char c; int err; unsigned long v7; v7 = __readfsqword(0x28u); err = pzlib_filefunc_def->zfile_func64.zread_file( pzlib_filefunc_def->zfile_func64.opaque, filestream, &c...
local int unz64local_getByte(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi) { unsigned char c; int err = (int)ZREAD64(*pzlib_filefunc_def, filestream, &c, 1); if (err == 1) { *pi = (int)c; return UNZ_OK; } else { if (ZERROR64(*pzlib_filefun...
unz64local_getByte
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unz64local_getLong(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) { int i; int err; uLong x; unsigned long v8; v8 = __readfsqword(0x28u); i = 0; err = unz64local_getByte(pzlib_filefunc_def, filestream, &i); x = i; if (!err) err = unz64lo...
local int unz64local_getLong(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) { uLong x; int i = 0; int err; err = unz64local_getByte(pzlib_filefunc_def, filestream, &i); x = (uLong)i; if (err == UNZ_OK) err = unz64local_getByte(pzlib_filefun...
unz64local_getLong
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unz64local_getLong64(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX) { int i; int err; ZPOS64_T x; unsigned long v8; v8 = __readfsqword(0x28u); i = 0; err = unz64local_getByte(pzlib_filefunc_def, filestream, &i); x = i; if (!err) err...
local int unz64local_getLong64(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX) { ZPOS64_T x; int i = 0; int err; err = unz64local_getByte(pzlib_filefunc_def, filestream, &i); x = (ZPOS64_T)i; if (err == UNZ_OK) err = unz64local_getByte(...
unz64local_getLong64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unz64local_getShort(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) { int i; int err; uLong x; unsigned long v8; v8 = __readfsqword(0x28u); i = 0; err = unz64local_getByte(pzlib_filefunc_def, filestream, &i); x = i; if (!err) err = unz64...
local int unz64local_getShort(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) { uLong x; int i = 0; int err; err = unz64local_getByte(pzlib_filefunc_def, filestream, &i); x = (uLong)i; if (err == UNZ_OK) err = unz64local_getByte(pzlib_filef...
unz64local_getShort
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzClose(unzFile file) { if (!file) return -102; if (*((_QWORD *)file + 40)) unzCloseCurrentFile(file); (*((void (**)(_QWORD, _QWORD))file + 5))(*((_QWORD *)file + 7), *((_QWORD *)file + 12)); free(file); return 0; }
extern int ZEXPORT unzClose(unzFile file) { unz64_s *s; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; if (s->pfile_in_zip_read != NULL) unzCloseCurrentFile(file); ZCLOSE64(s->z_filefunc, s->filestream); TRYFREE(s); return UNZ_OK; }
unzClose
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzCloseCurrentFile(unzFile file) { int err; file_in_zip64_read_info_s *pfile_in_zip_read_info; err = 0; if (!file) return -102; pfile_in_zip_read_info = (file_in_zip64_read_info_s *)*((_QWORD *)file + 40); if (!pfile_in_zip_read_info) return -102; if (!pfile_in_zip_read_info->rest_read_uncom...
extern int ZEXPORT unzCloseCurrentFile(unzFile file) { int err = UNZ_OK; unz64_s *s; file_in_zip64_read_info_s *pfile_in_zip_read_info; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; pfile_in_zip_read_info = s->pfile_in_zip_read; if (pfile_in_zip_read_info == NULL) return UNZ_PARA...
unzCloseCurrentFile
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGetCurrentFileInfo(unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) { long v8; int err; unz_file_info64 f...
extern int ZEXPORT unzGetCurrentFileInfo( unzFile file, unz_file_info *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) { int err; unz_file_info64 file_info64; err = unz64local_GetCurrentFileInfoInternal( ...
unzGetCurrentFileInfo
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGetCurrentFileInfo64(unzFile file, unz_file_info64 *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) { return unz64local_GetCurrentF...
extern int ZEXPORT unzGetCurrentFileInfo64( unzFile file, unz_file_info64 *pfile_info, char *szFileName, uLong fileNameBufferSize, void *extraField, uLong extraFieldBufferSize, char *szComment, uLong commentBufferSize) { return unz64local_GetCurrentFileInfoInternal( file, pfile_info, NULL, szFileNam...
unzGetCurrentFileInfo64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
ZPOS64_T unzGetCurrentFileZStreamPos64(unzFile file) { file_in_zip64_read_info_s *pfile_in_zip_read_info; if (!file) return 0; pfile_in_zip_read_info = (file_in_zip64_read_info_s *)*((_QWORD *)file + 40); if (pfile_in_zip_read_info) return pfile_in_zip_read_info->pos_in_zipfile + pfile_in_zi...
extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64(unzFile file) { unz64_s *s; file_in_zip64_read_info_s *pfile_in_zip_read_info; s = (unz64_s *)file; if (file == NULL) return 0; pfile_in_zip_read_info = s->pfile_in_zip_read; if (pfile_in_zip_read_info == NULL) return 0; return pfile_in_zip_rea...
unzGetCurrentFileZStreamPos64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGetFilePos(unzFile file, unz_file_pos *file_pos) { int err; unz64_file_pos file_pos64; unsigned long v5; v5 = __readfsqword(0x28u); err = unzGetFilePos64(file, &file_pos64); if (!err) *file_pos = (unz_file_pos)file_pos64; return err; }
extern int ZEXPORT unzGetFilePos(unzFile file, unz_file_pos *file_pos) { unz64_file_pos file_pos64; int err = unzGetFilePos64(file, &file_pos64); if (err == UNZ_OK) { file_pos->pos_in_zip_directory = (uLong)file_pos64.pos_in_zip_directory; file_pos->num_of_file = (uLong)file_pos64.num_of_file; } retur...
unzGetFilePos
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGetFilePos64(unzFile file, unz64_file_pos *file_pos) { if (!file || !file_pos) return -102; if (!*((_QWORD *)file + 18)) return -100; file_pos->pos_in_zip_directory = *((_QWORD *)file + 17); file_pos->num_of_file = *((_QWORD *)file + 16); return 0; }
extern int ZEXPORT unzGetFilePos64(unzFile file, unz64_file_pos *file_pos) { unz64_s *s; if (file == NULL || file_pos == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; if (!s->current_file_ok) return UNZ_END_OF_LIST_OF_FILE; file_pos->pos_in_zip_directory = s->pos_in_central_dir; file_pos->num_...
unzGetFilePos64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGetGlobalComment(unzFile file, char *szComment, uLong uSizeBuf) { uLong uReadThis; if (!file) return -102; uReadThis = uSizeBuf; if (uSizeBuf > *((_QWORD *)file + 14)) uReadThis = *((_QWORD *)file + 14); if (call_zseek64((const zlib_filefunc64_32_def *)file, *((voidpf *)file + 12), ...
extern int ZEXPORT unzGetGlobalComment(unzFile file, char *szComment, uLong uSizeBuf) { unz64_s *s; uLong uReadThis; if (file == NULL) return (int)UNZ_PARAMERROR; s = (unz64_s *)file; uReadThis = uSizeBuf; if (uReadThis > s->gi.size_comment) uReadThis = s->gi....
unzGetGlobalComment
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGetGlobalInfo(unzFile file, unz_global_info *pglobal_info32) { if (!file) return -102; *pglobal_info32 = *(unz_global_info *)((char *)file + 104); return 0; }
extern int ZEXPORT unzGetGlobalInfo(unzFile file, unz_global_info *pglobal_info32) { unz64_s *s; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; pglobal_info32->number_entry = (uLong)s->gi.number_entry; pglobal_info32->size_comment = s->gi.size_comment; ...
unzGetGlobalInfo
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_info) { uLong v3; if (!file) return -102; v3 = *((_QWORD *)file + 14); pglobal_info->number_entry = *((_QWORD *)file + 13); pglobal_info->size_comment = v3; return 0; }
extern int ZEXPORT unzGetGlobalInfo64(unzFile file, unz_global_info64 *pglobal_info) { unz64_s *s; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; *pglobal_info = s->gi; return UNZ_OK; }
unzGetGlobalInfo64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGetLocalExtrafield(unzFile file, voidp buf, unsigned int len) { uInt read_now; file_in_zip64_read_info_s *pfile_in_zip_read_info; if (!file) return -102; pfile_in_zip_read_info = (file_in_zip64_read_info_s *)*((_QWORD *)file + 40); if (!pfile_in_zip_read_info) return -102; if (!buf) retu...
extern int ZEXPORT unzGetLocalExtrafield(unzFile file, voidp buf, unsigned len) { unz64_s *s; file_in_zip64_read_info_s *pfile_in_zip_read_info; uInt read_now; ZPOS64_T size_to_read; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; pfile_in_zip_re...
unzGetLocalExtrafield
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
uLong unzGetOffset(unzFile file) { if (file) return unzGetOffset64(file); else return 0; }
extern uLong ZEXPORT unzGetOffset(unzFile file) { ZPOS64_T offset64; if (file == NULL) return 0; offset64 = unzGetOffset64(file); return (uLong)offset64; }
unzGetOffset
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
ZPOS64_T unzGetOffset64(unzFile file) { if (!file) return 0; if (!*((_QWORD *)file + 18)) return 0; if (*((_QWORD *)file + 13) && *((_QWORD *)file + 13) != 0xFFFF && *((_QWORD *)file + 16) == *((_QWORD *)file + 13)) return 0; return *((_QWORD *)file + 17); }
extern ZPOS64_T ZEXPORT unzGetOffset64(unzFile file) { unz64_s *s; if (file == NULL) return 0; s = (unz64_s *)file; if (!s->current_file_ok) return 0; if (s->gi.number_entry != 0 && s->gi.number_entry != 0xffff) if (s->num_file == s->gi.number_entry) return 0; return s->pos_in_central_dir...
unzGetOffset64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGoToFilePos(unzFile file, unz_file_pos *file_pos) { unz64_file_pos file_pos64; unsigned long v4; v4 = __readfsqword(0x28u); if (!file_pos) return -102; file_pos64 = (unz64_file_pos)*file_pos; return unzGoToFilePos64(file, &file_pos64); }
extern int ZEXPORT unzGoToFilePos(unzFile file, unz_file_pos *file_pos) { unz64_file_pos file_pos64; if (file_pos == NULL) return UNZ_PARAMERROR; file_pos64.pos_in_zip_directory = file_pos->pos_in_zip_directory; file_pos64.num_of_file = file_pos->num_of_file; return unzGoToFilePos64(file, &file_pos64); }
unzGoToFilePos
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGoToFilePos64(unzFile file, const unz64_file_pos *file_pos) { int result; if (!file || !file_pos) return -102; *((_QWORD *)file + 17) = file_pos->pos_in_zip_directory; *((_QWORD *)file + 16) = file_pos->num_of_file; result = unz64local_GetCurrentFileInfoInternal( file, (unz_file_info64 *)((c...
extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos *file_pos) { unz64_s *s; int err; if (file == NULL || file_pos == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; s->pos_in_central_dir = file_pos->pos_in_zip_directory; s->num_file = file_pos-...
unzGoToFilePos64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGoToFirstFile(unzFile file) { int result; if (!file) return -102; *((_QWORD *)file + 17) = *((_QWORD *)file + 21); *((_QWORD *)file + 16) = 0; result = unz64local_GetCurrentFileInfoInternal( file, (unz_file_info64 *)((char *)file + 176), (unz_file_info64_internal *)file + 39, 0, 0, 0, ...
extern int ZEXPORT unzGoToFirstFile(unzFile file) { int err = UNZ_OK; unz64_s *s; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; s->pos_in_central_dir = s->offset_central_dir; s->num_file = 0; err = unz64local_GetCurrentFileInfoInternal(file, &s->cur_file_info, ...
unzGoToFirstFile
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzGoToNextFile(unzFile file) { int result; if (!file) return -102; if (!*((_QWORD *)file + 18)) return -100; if (*((_QWORD *)file + 13) != 0xFFFF && *((_QWORD *)file + 16) + 1LL == *((_QWORD *)file + 13)) return -100; *((_QWORD *)file + 17) += *((_QWORD *)file + 31) + *((_QWORD *)file ...
extern int ZEXPORT unzGoToNextFile(unzFile file) { unz64_s *s; int err; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; if (!s->current_file_ok) return UNZ_END_OF_LIST_OF_FILE; if (s->gi.number_entry != 0xffff) if (s->num_file + 1 == s->gi.number_entry) return UNZ_END_OF_LIS...
unzGoToNextFile
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzLocateFile(unzFile file, const char *szFileName, int iCaseSensitivity) { int err; unz_file_info64_internal cur_file_info_internalSaved; ZPOS64_T num_fileSaved; ZPOS64_T pos_in_central_dirSaved; long cur_file_infoSaved; long cur_file_infoSaved_8; long cur_file_infoSaved_16; long cur_file_infoSaved...
extern int ZEXPORT unzLocateFile(unzFile file, const char *szFileName, int iCaseSensitivity) { unz64_s *s; int err; unz_file_info64 cur_file_infoSaved; unz_file_info64_internal cur_file_info_internalSaved; ZPOS64_T num_fileSaved; ZPOS64_T pos_in_central_dirSaved; if (fil...
unzLocateFile
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
unzFile unzOpen(const char *path) { return unzOpenInternal(path, 0, 0); }
extern unzFile ZEXPORT unzOpen(const char *path) { return unzOpenInternal(path, NULL, 0); }
unzOpen
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
unzFile unzOpen64(const void *path) { return unzOpenInternal(path, 0, 1); }
extern unzFile ZEXPORT unzOpen64(const void *path) { return unzOpenInternal(path, NULL, 1); }
unzOpen64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzOpenCurrentFile(unzFile file) { return unzOpenCurrentFile3(file, 0, 0, 0, 0); }
extern int ZEXPORT unzOpenCurrentFile(unzFile file) { return unzOpenCurrentFile3(file, NULL, NULL, 0, NULL); }
unzOpenCurrentFile
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzOpenCurrentFile2(unzFile file, int *method, int *level, int raw) { return unzOpenCurrentFile3(file, method, level, raw, 0); }
extern int ZEXPORT unzOpenCurrentFile2(unzFile file, int *method, int *level, int raw) { return unzOpenCurrentFile3(file, method, level, raw, NULL); }
unzOpenCurrentFile2
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzOpenCurrentFile3(unzFile file, int *method, int *level, int raw, const char *password) { char *v6; uLong v7; file_in_zip64_read_info_s *v8; unz64_s *v9; read_file_func zread_file; ZPOS64_T (*ztell64_file)(voidpf, voidpf); int (*zclose_file)(voidpf, voidpf); voidpf opaque; ...
extern int ZEXPORT unzOpenCurrentFile3(unzFile file, int *method, int *level, int raw, const char *password) { int err = UNZ_OK; uInt iSizeVar; unz64_s *s; file_in_zip64_read_info_s *pfile_in_zip_read_info; ZPOS64_T offset_local_extrafield; uInt size_local_extrafield; ...
unzOpenCurrentFile3
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzOpenCurrentFilePassword(unzFile file, const char *password) { return unzOpenCurrentFile3(file, 0, 0, 0, password); }
extern int ZEXPORT unzOpenCurrentFilePassword(unzFile file, const char *password) { return unzOpenCurrentFile3(file, NULL, NULL, 0, password); }
unzOpenCurrentFilePassword
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
unzFile unzOpenInternal(const void *path, zlib_filefunc64_32_def *pzlib_filefunc64_32_def, int is64bitOpenFunction) { uLong (*zread_file)(voidpf, voidpf, void *, uLong); ZPOS64_T (*ztell64_file)(voidpf, voidpf); int (*zclose_file)(voidpf, voidpf); voidpf opaque; ...
local unzFile unzOpenInternal(const void *path, zlib_filefunc64_32_def *pzlib_filefunc64_32_def, int is64bitOpenFunction) { unz64_s us; unz64_s *s; ZPOS64_T central_pos; uLong uL; uLong number_disk; uLong number_disk_with_CD; ZPOS64_T number_e...
unzOpenInternal
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzReadCurrentFile(unzFile file, voidp buf, unsigned int len) { int err; uInt iRead; uInt uReadThis; uInt uDoCopy; uInt i; file_in_zip64_read_info_s *pfile_in_zip_read_info; ZPOS64_T uTotalOutBefore; const Bytef *bufBefore; ZPOS64_T uTotalOutAfter; err = 0; iRead = 0; if (!file) return ...
extern int ZEXPORT unzReadCurrentFile(unzFile file, voidp buf, unsigned len) { int err = UNZ_OK; uInt iRead = 0; unz64_s *s; file_in_zip64_read_info_s *pfile_in_zip_read_info; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; pfile_in_zip_read_info = s->pfile_in_zip_read; if (pfile_in_z...
unzReadCurrentFile
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzSetOffset(unzFile file, uLong pos) { return unzSetOffset64(file, pos); }
extern int ZEXPORT unzSetOffset(unzFile file, uLong pos) { return unzSetOffset64(file, pos); }
unzSetOffset
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzSetOffset64(unzFile file, ZPOS64_T pos) { int result; if (!file) return -102; *((_QWORD *)file + 17) = pos; *((_QWORD *)file + 16) = *((_QWORD *)file + 13); result = unz64local_GetCurrentFileInfoInternal( file, (unz_file_info64 *)((char *)file + 176), (unz_file_info64_internal *)file +...
extern int ZEXPORT unzSetOffset64(unzFile file, ZPOS64_T pos) { unz64_s *s; int err; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; s->pos_in_central_dir = pos; s->num_file = s->gi.number_entry; err = unz64local_GetCurrentFileInfoInternal(file, &s->cur_file_info, ...
unzSetOffset64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzStringFileNameCompare(const char *fileName1, const char *fileName2, int iCaseSensitivity) { int iCaseSensitivitya; iCaseSensitivitya = iCaseSensitivity; if (!iCaseSensitivity) iCaseSensitivitya = 1; if (iCaseSensitivitya == 1) return strcmp(fileName1, fileName2); e...
extern int ZEXPORT unzStringFileNameCompare(const char *fileName1, const char *fileName2, int iCaseSensitivity) { if (iCaseSensitivity == 0) iCaseSensitivity = CASESENSITIVITYDEFAULTVALUE; if (iCaseSensitivity == 1) re...
unzStringFileNameCompare
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int unzeof(unzFile file) { file_in_zip64_read_info_s *pfile_in_zip_read_info; if (!file) return -102; pfile_in_zip_read_info = (file_in_zip64_read_info_s *)*((_QWORD *)file + 40); if (pfile_in_zip_read_info) return pfile_in_zip_read_info->rest_read_uncompressed == 0; else return -102; }
extern int ZEXPORT unzeof(unzFile file) { unz64_s *s; file_in_zip64_read_info_s *pfile_in_zip_read_info; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; pfile_in_zip_read_info = s->pfile_in_zip_read; if (pfile_in_zip_read_info == NULL) return UNZ_PARAMERROR; if (pfile_in_zip_read_i...
unzeof
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
off_t unztell(unzFile file) { file_in_zip64_read_info_s *pfile_in_zip_read_info; if (!file) return -102; pfile_in_zip_read_info = (file_in_zip64_read_info_s *)*((_QWORD *)file + 40); if (pfile_in_zip_read_info) return pfile_in_zip_read_info->stream.total_out; else return -102; }
extern z_off_t ZEXPORT unztell(unzFile file) { unz64_s *s; file_in_zip64_read_info_s *pfile_in_zip_read_info; if (file == NULL) return UNZ_PARAMERROR; s = (unz64_s *)file; pfile_in_zip_read_info = s->pfile_in_zip_read; if (pfile_in_zip_read_info == NULL) return UNZ_PARAMERROR; return (z_off_t)pf...
unztell
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
ZPOS64_T unztell64(unzFile file) { file_in_zip64_read_info_s *pfile_in_zip_read_info; if (!file) return -1; pfile_in_zip_read_info = (file_in_zip64_read_info_s *)*((_QWORD *)file + 40); if (pfile_in_zip_read_info) return pfile_in_zip_read_info->total_out_64; else return -1; }
extern ZPOS64_T ZEXPORT unztell64(unzFile file) { unz64_s *s; file_in_zip64_read_info_s *pfile_in_zip_read_info; if (file == NULL) return (ZPOS64_T)-1; s = (unz64_s *)file; pfile_in_zip_read_info = s->pfile_in_zip_read; if (pfile_in_zip_read_info == NULL) return (ZPOS64_T)-1; return pfile_in_zi...
unztell64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zip64FlushWriteBuffer(zip64_internal *zi) { int err; uInt i; char t; err = 0; if (*(int *)((char *)&dword_10138 + (_QWORD)zi)) { for (i = 0; i < zi->ci.pos_in_buffered_data; ++i) { t = decrypt_byte( zi->ci.keys, *(const unsigned long **)((char *)&qword_10170 + (_QWORD)zi)); ...
local int zip64FlushWriteBuffer(zip64_internal *zi) { int err = ZIP_OK; if (zi->ci.encrypt != 0) { #ifndef NOCRYPT uInt i; int t; for (i = 0; i < zi->ci.pos_in_buffered_data; i++) zi->ci.buffered_data[i] = zencode(zi->ci.keys, zi->ci.pcrc_32_tab, zi->ci.buffered_data[i], t); #endif } ...
zip64FlushWriteBuffer
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
ZPOS64_T zip64local_SearchCentralDir(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) { long v3; int v4; int i; ZPOS64_T uBackRead; ZPOS64_T uMaxBack; ZPOS64_T uPosFound; ZPOS64_T uSizeFile; unsigned char *buf; ZPOS64_T uReadPos; uLong uReadSize; uM...
local ZPOS64_T zip64local_SearchCentralDir( const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) { unsigned char *buf; ZPOS64_T uSizeFile; ZPOS64_T uBackRead; ZPOS64_T uMaxBack = 0xffff; ZPOS64_T uPosFound = 0; if (ZSEEK64(*pzlib_filefunc_def, filestream, 0, ZLIB_FILEFUNC_SEEK_END) != 0...
zip64local_SearchCentralDir
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
ZPOS64_T zip64local_SearchCentralDir64(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) { ZPOS64_T v3; int v4; int i; uLong uL; ZPOS64_T relativeOffset; ZPOS64_T uBackRead; ZPOS64_T uMaxBack; ZPOS64_T uPosFound; ZPOS64_T uSizeFile; unsigned char *buf...
local ZPOS64_T zip64local_SearchCentralDir64( const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream) { unsigned char *buf; ZPOS64_T uSizeFile; ZPOS64_T uBackRead; ZPOS64_T uMaxBack = 0xffff; ZPOS64_T uPosFound = 0; uLong uL; ZPOS64_T relativeOffset; if (ZSEEK64(*pzlib_filefunc_def, fi...
zip64local_SearchCentralDir64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
uLong zip64local_TmzDateToDosDate(const tm_zip *ptm) { uLong year; year = ptm->tm_year; if (year <= 0x7BB) { if (year > 0x4F) year -= 80LL; } else { year -= 1980LL; } return ((ptm->tm_mday + 32 * (ptm->tm_mon + 1) + (year << 9)) << 16) | ((ptm->tm_sec >> 1) + 32 * ptm->tm_min + ...
local uLong zip64local_TmzDateToDosDate(const tm_zip *ptm) { uLong year = (uLong)ptm->tm_year; if (year >= 1980) year -= 1980; else if (year >= 80) year -= 80; return (uLong)(((ptm->tm_mday) + (32 * (ptm->tm_mon + 1)) + (512 * year)) << 16) | ((ptm->tm_sec / 2) + (32 * ptm->tm_...
zip64local_TmzDateToDosDate
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zip64local_getByte(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi) { unsigned char c; int err; unsigned long v7; v7 = __readfsqword(0x28u); err = pzlib_filefunc_def->zfile_func64.zread_file( pzlib_filefunc_def->zfile_func64.opaque, filestream, &c...
local int zip64local_getByte(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, int *pi) { unsigned char c; int err = (int)ZREAD64(*pzlib_filefunc_def, filestream, &c, 1); if (err == 1) { *pi = (int)c; return ZIP_OK; } else { if (ZERROR64(*pzlib_filefun...
zip64local_getByte
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zip64local_getLong(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) { int i; int err; uLong x; unsigned long v8; v8 = __readfsqword(0x28u); i = 0; err = zip64local_getByte(pzlib_filefunc_def, filestream, &i); x = i; if (!err) err = zip64lo...
local int zip64local_getLong(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) { uLong x; int i = 0; int err; err = zip64local_getByte(pzlib_filefunc_def, filestream, &i); x = (uLong)i; if (err == ZIP_OK) err = zip64local_getByte(pzlib_filefun...
zip64local_getLong
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zip64local_getLong64(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX) { int i; int err; ZPOS64_T x; unsigned long v8; v8 = __readfsqword(0x28u); i = 0; err = zip64local_getByte(pzlib_filefunc_def, filestream, &i); x = i; if (!err) err...
local int zip64local_getLong64(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T *pX) { ZPOS64_T x; int i = 0; int err; err = zip64local_getByte(pzlib_filefunc_def, filestream, &i); x = (ZPOS64_T)i; if (err == ZIP_OK) err = zip64local_getByte(...
zip64local_getLong64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zip64local_getShort(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) { int i; int err; uLong x; unsigned long v8; v8 = __readfsqword(0x28u); i = 0; err = zip64local_getByte(pzlib_filefunc_def, filestream, &i); x = i; if (!err) err = zip64...
local int zip64local_getShort(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, uLong *pX) { uLong x; int i = 0; int err; err = zip64local_getByte(pzlib_filefunc_def, filestream, &i); x = (uLong)i; if (err == ZIP_OK) err = zip64local_getByte(pzlib_filef...
zip64local_getShort
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zip64local_putValue(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T x, int nbByte) { int n; int na; unsigned char buf[8]; unsigned long v9; v9 = __readfsqword(0x28u); for (n = 0; n < nbByte; ++n) { buf[n] = x; x >>= 8; } if (x) { for...
local int zip64local_putValue(const zlib_filefunc64_32_def *pzlib_filefunc_def, voidpf filestream, ZPOS64_T x, int nbByte) { unsigned char buf[8]; int n; for (n = 0; n < nbByte; n++) { buf[n] = (unsigned char)(x & 0xff); x >>= 8; } if (x != 0) { for (n = 0; n < nbByte...
zip64local_putValue
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
void zip64local_putValue_inmemory(void *dest, ZPOS64_T x, int nbByte) { int n; int na; for (n = 0; n < nbByte; ++n) { *((_BYTE *)dest + n) = x; x >>= 8; } if (x) { for (na = 0; na < nbByte; ++na) *((_BYTE *)dest + na) = -1; } }
local void zip64local_putValue_inmemory(void *dest, ZPOS64_T x, int nbByte) { unsigned char *buf = (unsigned char *)dest; int n; for (n = 0; n < nbByte; n++) { buf[n] = (unsigned char)(x & 0xff); x >>= 8; } if (x != 0) { for (n = 0; n < nbByte; n++) { buf[n] = 0xff; } } }
zip64local_putValue_inmemory
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zipClose(zipFile file, const char *global_comment) { const char *global_commenta; int err; uLong size_centraldir; linkedlist_datablock_internal *ldi; ZPOS64_T centraldir_pos_inzip; ZPOS64_T Zip64EOCDpos; global_commenta = global_comment; err = 0; size_centraldir = 0; if (!file) return -102;...
extern int ZEXPORT zipClose(zipFile file, const char *global_comment) { zip64_internal *zi; int err = 0; uLong size_centraldir = 0; ZPOS64_T centraldir_pos_inzip; ZPOS64_T pos; if (file == NULL) return ZIP_PARAMERROR; zi = (zip64_internal *)file; if (zi->in_opened_file_inzip == 1) { err = zip...
zipClose
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zipCloseFileInZip(zipFile file) { return zipCloseFileInZipRaw(file, 0, 0); }
extern int ZEXPORT zipCloseFileInZip(zipFile file) { return zipCloseFileInZipRaw(file, 0, 0); }
zipCloseFileInZip
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zipCloseFileInZipRaw(zipFile file, uLong uncompressed_size, uLong crc32) { return zipCloseFileInZipRaw64(file, uncompressed_size, crc32); }
extern int ZEXPORT zipCloseFileInZipRaw(zipFile file, uLong uncompressed_size, uLong crc32) { return zipCloseFileInZipRaw64(file, uncompressed_size, crc32); }
zipCloseFileInZipRaw
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zipCloseFileInZipRaw64(zipFile file, ZPOS64_T uncompressed_size, uLong crc32) { short datasize; int err; int tmp_err; char *pa; char *p; uLong uTotalOutBefore; unsigned long compressed_size; ZPOS64_T cur_pos_inzip; datasize = 0; err = 0; if (!file) return -102; ...
extern int ZEXPORT zipCloseFileInZipRaw64(zipFile file, ZPOS64_T uncompressed_size, uLong crc32) { zip64_internal *zi; ZPOS64_T compressed_size; uLong invalidValue = 0xffffffff; short datasize = 0; int err = ZIP_OK; if (fil...
zipCloseFileInZipRaw64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
zipFile zipOpen(const char *pathname, int append) { return zipOpen3(pathname, append, 0, 0); }
extern zipFile ZEXPORT zipOpen(const char *pathname, int append) { return zipOpen3((const void *)pathname, append, NULL, NULL); }
zipOpen
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
zipFile zipOpen3(const void *pathname, int append, zipcharpc *globalcomment, zlib_filefunc64_32_def *pzlib_filefunc64_32_def) { uLong (*zread_file)(voidpf, voidpf, void *, uLong); ZPOS64_T (*ztell64_file)(voidpf, voidpf); int (*zclose_file)(voidpf, voidpf); voidpf opaque; long (*ztell32_file)...
extern zipFile ZEXPORT zipOpen3(const void *pathname, int append, zipcharpc *globalcomment, zlib_filefunc64_32_def *pzlib_filefunc64_32_def) { zip64_internal ziinit; zip64_internal *zi; int err = ZIP_OK; ziinit.z_filefunc.zseek32_file = NULL; ziinit.z_filefunc.ztell32_file = NULL; if (pzlib_filefu...
zipOpen3
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
zipFile zipOpen64(const void *pathname, int append) { return zipOpen3(pathname, append, 0, 0); }
extern zipFile ZEXPORT zipOpen64(const void *pathname, int append) { return zipOpen3(pathname, append, NULL, NULL); }
zipOpen64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zipOpenNewFileInZip(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment...
extern int ZEXPORT zipOpenNewFileInZip( zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level) { return zipOpenNewFileInZip4_64( ...
zipOpenNewFileInZip
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zipOpenNewFileInZip64(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_ex...
extern int ZEXPORT zipOpenNewFileInZip64( zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int zip64) { return zipOpenNewFileI...
zipOpenNewFileInZip64
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zipRemoveExtraInfoBlock(char *pData, int *dataLen, short sHeader) { short dataSize; int size; int retVal; char *p; char *pNewHeader; p = pData; size = 0; if (!pData || *dataLen <= 3) return -102; pNewHeader = (char *)malloc(*dataLen); while (p < &pData[*dataLen]) { dataSize = *((_WORD *...
extern int ZEXPORT zipRemoveExtraInfoBlock(char *pData, int *dataLen, short sHeader) { char *p = pData; int size = 0; char *pNewHeader; char *pTmp; short header; short dataSize; int retVal = ZIP_OK; if (pData == NULL || *dataLen < 4) return ZIP_PARAMERROR...
zipRemoveExtraInfoBlock
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int zipWriteInFileInZip(zipFile file, const void *buf, unsigned int len) { int err; uInt copy_this; uInt i; uLong uTotalOutBefore; err = 0; if (!file) return -102; if (!*((_DWORD *)file + 28)) return -102; *(long *)((char *)&qword_10130 + (_QWORD)file) = crc32(*(long *)((char *)&qword_101...
extern int ZEXPORT zipWriteInFileInZip(zipFile file, const void *buf, unsigned int len) { zip64_internal *zi; int err = ZIP_OK; if (file == NULL) return ZIP_PARAMERROR; zi = (zip64_internal *)file; if (zi->in_opened_file_inzip == 0) return ZIP_PARAMERROR; zi...
zipWriteInFileInZip
torrentzip-0.9-r1
app-arch
O0/app-arch/torrentzip-0.9-r1/trrntzip
ida
O0
int find_handle(child_struct *child, int handle) { int i; for (i = 0;; ++i) { if (i > 199) { printf("(%d) ERROR: handle %d was not found\n", child->line, handle); exit(1); } if (handle == *((_DWORD *)child->private + 4 * i + 3)) break; } return i; }
static int find_handle(struct child_struct *child, int handle) { struct ftable *ftable = child->private; int i; for (i = 0; i < MAX_FILES; i++) { if (ftable[i].handle == handle) return i; } printf("(%d) ERROR: handle %d was not found\n", child->line, handle); exit(1); }
find_handle
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/dbench
ida
O0
int process_opts(int argc, const char **argv) { const char *v2; const char *v3; int extra_argc; unsigned int opt; const char **extra_argv; poptContext pc; poptOption popt_options[18]; unsigned long v10; v10 = __readfsqword(0x28u); extra_argc = 0; qmemcpy(popt_options, &unk_D300, sizeof(popt_optio...
static int process_opts(int argc, const char **argv) { const char **extra_argv; int extra_argc = 0; struct poptOption popt_options[] = { POPT_AUTOHELP{"timelimit", 't', POPT_ARG_INT, &options.timelimit, 0, "timelimit", "integer"}, {"loadfile", 'c', POPT_ARG_STRING, &options.loadfil...
process_opts
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/dbench
ida
O0
ssize_t sys_fgetxattr(int filedes, const char *name, void *value, size_t size) { return fgetxattr(filedes, name, value, size); }
ssize_t sys_fgetxattr(int filedes, const char *name, void *value, size_t size) { #if defined(HAVE_FGETXATTR) return fgetxattr(filedes, name, value, size); #elif defined(HAVE_EXTATTR_GET_FD) char *s; int attrnamespace = (strncmp(name, "system", 6) == 0) ? EXTATTR_NAMESPACE_SYSTEM ...
sys_fgetxattr
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/dbench
ida
O0
int sys_fsetxattr(int filedes, const char *name, const void *value, size_t size, int flags) { return fsetxattr(filedes, name, value, size, flags); }
int sys_fsetxattr(int filedes, const char *name, const void *value, size_t size, int flags) { #if defined(HAVE_FSETXATTR) return fsetxattr(filedes, name, value, size, flags); #elif defined(HAVE_EXTATTR_SET_FD) char *s; int retval = 0; int attrnamespace = (strncmp(name, "system", 6) == 0) ...
sys_fsetxattr
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/dbench
ida
O0
ssize_t sys_getxattr(const char *path, const char *name, void *value, size_t size) { return getxattr(path, name, value, size); }
ssize_t sys_getxattr(const char *path, const char *name, void *value, size_t size) { #if defined(HAVE_GETXATTR) return getxattr(path, name, value, size); #elif defined(HAVE_EXTATTR_GET_FILE) char *s; int attrnamespace = (strncmp(name, "system", 6) == 0) ? EXTATTR_NAM...
sys_getxattr
dbench-4.0
app-benchmarks
O0/app-benchmarks/dbench-4.0/dbench
ida
O0
int main(int argc, const char **argv, const char **envp) { int cols; int bits; int bitsa; int bitsb; int char_count; int c; char_count = 0; bits = 0; cols = 0; while (1) { c = getchar(); if (c == -1) break; if (c > 255) { fprintf(_TMC_END__, "encountered char > 255 (decimal ...
int main() { int cols, bits, c, char_count; #ifdef WIN32 _setmode(_fileno(stdin), _O_BINARY); #endif char_count = 0; bits = 0; cols = 0; while ((c = getchar()) != EOF) { if (c > 255) { fprintf(stderr, "encountered char > 255 (decimal %d)", c); exit(1); } bits += c; char_count++...
main
vm-8.2.0_beta-r1
app-emacs
O0/app-emacs/vm-8.2.0_beta-r1/base64-encode
ida
O0
void advance(detached_bitstream bs) { long v1; int v2; in_blk *blk; retr_blk *rb; parser_bs = bs; while (*((_DWORD *)&input_q + 2)) { v1 = *((_DWORD *)&input_q + 4) + 1 >= (unsigned int)(*((_DWORD *)&input_q + 4) - *((_DWORD *)&input_q + 3) + 1) ...
static void advance(struct detached_bitstream bs) { parser_bs = bs; while (!empty(input_q)) { struct in_blk *blk = dq_get(input_q, 0u); if (blk->offset + blk->size > bs.offset) break; head_offs += blk->size; (void)shift(input_q); if (--blk->ref_count == 0) { source_release_buffer(...
advance
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
uint32_t assign_codes(uint32_t *code, uint8_t *length, const uint32_t *frequency, uint32_t as) { int v4; uint32_t v5; uint32_t leaf; uint32_t leafa; uint32_t leafb; uint32_t avail; uint32_t availa; uint32_t height; uint32_t next_code; uint32_t symbol; uint32_t symbola; uint...
static uint32_t assign_codes(uint32_t *code, uint8_t *length, const uint32_t *frequency, uint32_t as) { uint32_t leaf; uint32_t avail; uint32_t height; uint32_t next_code; uint32_t symbol; uint64_t leaf_weight[MAX_ALPHA_SIZE + 1]; uint32_t count[MAX_HUFF_CODE_LENGTH + 2]; ui...
assign_codes
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bitstream *attach(bitstream *__return_ptr retstr, detached_bitstream dbs) { long v2; size_t id; uintmax_t limit; in_blk *blk; const uint32_t *base; long bs; in_blk *bs_16; const uint32_t *bs_24; const uint32_t *bs_32; long bs_40; if (dbs.offset < head_offs) __assert_fail("dbs.offset >= head_o...
static struct bitstream attach(struct detached_bitstream dbs) { struct in_blk *blk; size_t id; uintmax_t limit; const uint32_t *base; struct bitstream bs; assert(dbs.offset >= head_offs); assert(dbs.offset <= tail_offs); bs.live = dbs.live; bs.buff = dbs.buff; bs.eof = dbs.eof; if (dbs.offset =...
attach
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void bailout() { pthread_t v0; pthread_t v1; v0 = main_thread; v1 = pthread_self(); if (pthread_equal(v1, v0)) { cleanup(); xmask(1, &blocked, 0); _exit(1); } promote(); xraise(10); pthread_exit(0); }
void bailout(void) { if (pthread_equal(pthread_self(), main_thread)) { cleanup(); gcov_flush(); xmask(SIG_UNBLOCK, &blocked, NULL); _exit(EX_FAIL); } promote(); xraise(SIGUSR1); pthread_exit(NULL); }
bailout
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
detached_bitstream *bits_init(detached_bitstream *__return_ptr retstr, uintmax_t offset) { uint64_t bs_8; long bs_24; long bs_40; LODWORD(bs_24) = 0; LOBYTE(bs_40) = 0; bs_8 = (offset % (in_granul >> 2)) << 32; retstr->pos.major = offset / (in_granul >> 2); retstr->pos.min...
static struct detached_bitstream bits_init(uintmax_t offset) { struct detached_bitstream bs; bs.live = 0u; bs.buff = 0u; bs.eof = false; bs.offset = offset; bs.pos.major = offset / (in_granul / 4); bs.pos.minor = (offset % (in_granul / 4)) << 32; return bs; }
bits_init
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void build_tree(uint32_t *tree, uint64_t *weight, int32_t as) { unsigned long v3; unsigned int r; unsigned int s; unsigned int t; uint64_t w1; uint64_t w2; r = as; s = as; for (t = as - 1; t; --t) { if (s && (r <= t + 2 || weight[r - 2] >= weight[s - 1])) { if (r >= t + 2 && (s <= 1 || weig...
static void build_tree(uint32_t *restrict tree, uint64_t *restrict weight, int32_t as) { unsigned r; unsigned s; unsigned t; uint64_t w1, w2; r = as; s = as; for (t = as - 1; t > 0; t--) { if (s < 1 || (r > t + 2 && weight[r - 2] < weight[s - 1])) { tree[r - 1] = t; ...
build_tree
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bool can_attach(detached_bitstream bs) { if (bs.offset < head_offs) __assert_fail("bs.offset >= head_offs", "expand.c", 0xF9u, "can_attach"); return bs.offset < tail_offs || eof && bs.offset == tail_offs; }
static bool can_attach(struct detached_bitstream bs) { assert(bs.offset >= head_offs); return bs.offset < tail_offs || (eof && bs.offset == tail_offs); }
can_attach
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bool can_collect() { return !ultra && *((_DWORD *)&coll_q + 2) && work_units; }
static bool can_collect(void) { return !ultra && !empty(coll_q) && work_units > 0; }
can_collect
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bool can_collect_seq() { return ultra && collect_token && (*((_DWORD *)&coll_q + 2) || eof && unfinished_work) && (work_units || unfinished_work); }
static bool can_collect_seq(void) { return ultra && collect_token && (!empty(coll_q) || (eof && unfinished_work != NULL)) && (work_units > 0 || unfinished_work != NULL); }
can_collect_seq
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bool can_emit() { long v0; long v1; if (!*((_DWORD *)&emit_q + 2)) return 0; if (out_slots > 2) return 1; if (!out_slots || !*((_DWORD *)&order_q + 2)) return 0; v0 = *((_DWORD *)&order_q + 4) + 1 >= (unsigned int)(*((_DWORD *)&order_q + 4) - *((_DWO...
static bool can_emit(void) { return (!empty(emit_q) && (out_slots > EMIT_THRESH || (out_slots > 0 && !empty(order_q) && pos_eq(peek(emit_q)->base, dq_get(order_q, 0).base)))); }
can_emit
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bool can_parse() { return !parsing_done && parse_token && work_units && can_attach(parser_bs); }
static bool can_parse(void) { return (!parsing_done && parse_token && work_units > 0u && can_attach(parser_bs)); }
can_parse
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bool can_retrieve() { return *((_DWORD *)&retr_q + 2) && can_attach(*(detached_bitstream *)*(_QWORD *)retr_q); }
static bool can_retrieve(void) { return !empty(retr_q) && can_attach(peek(retr_q)->curr_pos); }
can_retrieve
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bool can_scan() { return (work_units > 1 || work_units && !parse_token) && !ultra && *((_DWORD *)&scan_q + 2) && can_attach(*(detached_bitstream *)*(_QWORD *)scan_q); }
static bool can_scan(void) { return ((work_units > SCAN_THRESH || (work_units > 0u && !parse_token)) && !ultra && !empty(scan_q) && can_attach(*peek(scan_q))); }
can_scan
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bool can_transmit() { return *((_DWORD *)&trans_q + 2) && (out_slots > 2 || out_slots && **(_QWORD **)trans_q == order.major && *(_QWORD *)(*(_QWORD *)trans_q + 8LL) == order.minor); }
static bool can_transmit(void) { return !empty(trans_q) && (out_slots > TRANSM_THRESH || (out_slots > 0 && pos_eq(peek(trans_q)->pos, order))); }
can_transmit
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void cleanup() { if (opathn) { unlink(opathn); opathn = 0; } }
void cleanup(void) { if (opathn != NULL) { (void)unlink(opathn); opathn = NULL; } }
cleanup
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void cli() { int *sig; xmask(0, &handled, &saved); for (sig = (int *)handled_signals; sig < (int *)"signals.c"; ++sig) xaction(*sig, (void (*)(int))signal_handler); }
void cli(void) { const int *sig; xmask(SIG_BLOCK, &handled, &saved); foreach (sig, handled_signals) xaction(*sig, signal_handler); }
cli
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
int collect(encoder_state *s, const uint8_t *inbuf, size_t *buf_sz) { const uint8_t *v3; uint8_t *v4; const uint8_t *v5; uint8_t *v6; const uint8_t *v7; uint8_t *v8; const uint8_t *v9; uint8_t *v10; const uint8_t *v11; uint8_t *v12; const uint8_t *v13; uint8_t *v14; int v15; const uint8_t *v...
int collect(struct encoder_state *s, const uint8_t *inbuf, size_t *buf_sz) { size_t avail = *buf_sz; const uint8_t *p = inbuf; const uint8_t *pLim = p + avail; uint8_t *block = (void *)(s->SA + s->max_block_size + GROUP_SIZE); uint8_t *q = block + s->nblock; uint8_t *qMax = block + s->max_block_size - 1; ...
collect
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void compute_depths(uint32_t *count, uint32_t *tree, uint32_t as) { uint32_t v3; uint32_t avail; uint32_t used; uint32_t node; uint32_t depth; tree[1] = 0; *count = 0; node = 2; depth = 1; avail = 2; while (depth <= 0x1E) { used = 0; while (node < as && depth == tree[tree[node]] + 1) { ...
static void compute_depths(uint32_t *restrict count, uint32_t *restrict tree, uint32_t as) { uint32_t avail; uint32_t used; uint32_t node; uint32_t depth; tree[1] = 0; count[0] = 0; node = 2; depth = 1; avail = 2; while (depth <= MAX_HUFF_CODE_LENGTH) { used = 0; ...
compute_depths
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
saidx_t construct_BWT(const sauchar_t *T, saidx_t *SA, saidx_t *bucket, saidx_t n) { long v4; long v5; int v6; int *v7; int v8; int *v9; saidx_t t; saidx_t ta; int orig; int s; saidx_t sa; saidx_t *i; saidx_t *ia; saidx_t *j; saidx_t *k; saidx_t *ka; saint_t c1; ...
static saidx_t construct_BWT(const sauchar_t *T, saidx_t *SA, saidx_t *bucket, saidx_t n) { saidx_t *i, *j, *k; saidx_t s, t, orig = -10; saint_t c0, c1, c2; for (c1 = ALPHABET_SIZE - 2; 0 <= c1; --c1) { for (i = SA + BUCKET_BSTAR(c1, c1 + 1), j = SA + BUCKET_A(c1 + 1) - 1, ...
construct_BWT
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void copy() { eof = 0; in_slots = 2; out_slots = 2; total_out_slots = 2; in_granul = 0x10000; process_0 = &pseudo_process_1; init_io(); halt(); uninit_io(); }
static void copy(void) { static const struct task null_task = {NULL, NULL, NULL}; static const struct process pseudo_process = { &null_task, NULL, NULL, copy_terminate, copy_on_input_avail, copy_on_write_complete, }; eof = false; in_slots = 2; out_slots = 2; total_out...
copy
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void copy_on_input_avail(void *buffer, size_t size) { sched_lock(); --out_slots; sched_unlock(); sink_write_buffer(buffer, size, size); }
static void copy_on_input_avail(void *buffer, size_t size) { sched_lock(); out_slots--; sched_unlock(); sink_write_buffer(buffer, size, size); }
copy_on_input_avail
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void copy_on_write_complete(void *buffer) { source_release_buffer(buffer); sched_lock(); ++out_slots; sched_unlock(); }
static void copy_on_write_complete(void *buffer) { source_release_buffer(buffer); sched_lock(); out_slots++; sched_unlock(); }
copy_on_write_complete
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
bool copy_terminate() { if (eof && out_slots == total_out_slots) xraise(12); return 0; }
static bool copy_terminate(void) { if (eof && out_slots == total_out_slots) xraise(SIGUSR2); return false; }
copy_terminate
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
timespec current_timespec() { timespec ts; unsigned long v2; v2 = __readfsqword(0x28u); gettime(&ts); return ts; }
struct timespec current_timespec(void) { struct timespec ts; gettime(&ts); return ts; }
current_timespec
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void decode(decoder_state *ds_0) { uint32_t v1; uint32_t v2; uint8_t uc; uint32_t i; uint32_t ia; uint32_t ib; uint32_t ic; uint32_t id; uint32_t j; uint32_t ja; uint32_t k; uint32_t cum; uint32_t *tt; tt = ds_0->tt; cum = 0; for (i = 0; i <= 0xFF; ++i) { cum += ds_0->ftab[i]; d...
void decode(struct decoder_state *ds) { uint32_t i, j, k; uint32_t cum; uint8_t uc; uint32_t *tt = ds->tt; cum = 0; for (i = 0; i < 256; i++) ds->ftab[i] = (cum += ds->ftab[i]) - ds->ftab[i]; assert(cum == ds->block_size); for (i = 0u; i < ds->block_size; i++) { uc = tt[i]; tt[ds->ftab[uc...
decode
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
size_t decoder_alloc_size() { return 3659440; }
size_t decoder_alloc_size(void) { return (sizeof(struct decoder_state) + MAX_BLOCK_SIZE * sizeof(uint32_t) + sizeof(struct retriever_internal_state)); }
decoder_alloc_size
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
void decoder_init(decoder_state *ds_0) { ds_0->internal_state = (retriever_internal_state *)&ds_0->tt[900000]; ds_0->internal_state->state = 0; ds_0->block_size = 0; }
void decoder_init(struct decoder_state *ds) { ds->internal_state = (void *)(ds->tt + MAX_BLOCK_SIZE); ds->internal_state->state = S_INIT; ds->block_size = 0; }
decoder_init
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0
detached_bitstream *detach(detached_bitstream *__return_ptr retstr, bitstream bs) { uintmax_t v2; uintmax_t v3; ptrdiff_t remains; uintmax_t offset; uintmax_t offseta; uint64_t dbs; uint64_t dbs_8; uintmax_t dbs_16; long dbs_24; long dbs_40; sched_lock(); remains = bs...
static struct detached_bitstream detach(struct bitstream bs) { struct detached_bitstream dbs; struct in_blk *blk; unsigned bit_offset; uintmax_t offset; ptrdiff_t remains; sched_lock(); remains = bs.limit - bs.data; assert(remains >= 0); blk = bs.block; offset = blk != NULL ? blk->offset + blk->s...
detach
lbzip2-2.5_p20181227-r1
app-arch
O0/app-arch/lbzip2-2.5_p20181227-r1/lbzip2
ida
O0