2011-06-25 03:52:11 +02:00
|
|
|
|
struct f70{
|
|
|
|
|
dword func;
|
|
|
|
|
dword param1;
|
|
|
|
|
dword param2;
|
|
|
|
|
dword param3;
|
|
|
|
|
dword param4;
|
|
|
|
|
char rezerv;
|
|
|
|
|
dword name;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct BDVK{
|
|
|
|
|
dword attr;
|
|
|
|
|
byte type_name;
|
|
|
|
|
byte rez1, rez2, rez3;
|
|
|
|
|
dword timecreate;
|
|
|
|
|
dword datecreate;
|
|
|
|
|
dword timelastaccess;
|
|
|
|
|
dword datelastaccess;
|
|
|
|
|
dword timelastedit;
|
|
|
|
|
dword datelastedit;
|
|
|
|
|
dword sizelo;
|
|
|
|
|
dword sizehi;
|
|
|
|
|
char name[518];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> //
|
|
|
|
|
///////////////////////////
|
|
|
|
|
f70 run_file_70;
|
2012-07-16 13:52:03 +02:00
|
|
|
|
:int RunProgram(dword run_path, run_param)
|
|
|
|
|
{
|
2011-06-25 03:52:11 +02:00
|
|
|
|
run_file_70.func = 7;
|
|
|
|
|
run_file_70.param1 =
|
|
|
|
|
run_file_70.param3 =
|
|
|
|
|
run_file_70.param4 =
|
|
|
|
|
run_file_70.rezerv = 0;
|
|
|
|
|
run_file_70.param2 = run_param;
|
|
|
|
|
run_file_70.name = run_path;
|
|
|
|
|
$mov eax,70
|
|
|
|
|
$mov ebx,#run_file_70.func
|
2011-09-05 11:18:16 +02:00
|
|
|
|
$int 0x40
|
2011-06-25 03:52:11 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> //
|
|
|
|
|
///////////////////////////
|
|
|
|
|
f70 create_dir_70;
|
2012-07-16 13:52:03 +02:00
|
|
|
|
:int CreateFolder(dword new_folder_path)
|
2011-06-25 03:52:11 +02:00
|
|
|
|
{
|
|
|
|
|
create_dir_70.func = 9;
|
|
|
|
|
create_dir_70.param1 =
|
|
|
|
|
create_dir_70.param2 =
|
|
|
|
|
create_dir_70.param3 =
|
|
|
|
|
create_dir_70.param4 =
|
|
|
|
|
create_dir_70.rezerv = 0;
|
|
|
|
|
create_dir_70.name = new_folder_path;
|
|
|
|
|
$mov eax,70
|
|
|
|
|
$mov ebx,#create_dir_70.func
|
|
|
|
|
$int 0x40
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD> //
|
|
|
|
|
////////////////////////////
|
|
|
|
|
f70 del_file_70;
|
2012-07-16 13:52:03 +02:00
|
|
|
|
:int DeleteFile(dword del_file_path)
|
2011-06-25 03:52:11 +02:00
|
|
|
|
{
|
|
|
|
|
del_file_70.func = 8;
|
|
|
|
|
del_file_70.param1 =
|
|
|
|
|
del_file_70.param2 =
|
|
|
|
|
del_file_70.param3 =
|
|
|
|
|
del_file_70.param4 =
|
|
|
|
|
del_file_70.rezerv = 0;
|
|
|
|
|
del_file_70.name = del_file_path;
|
|
|
|
|
$mov eax,70
|
|
|
|
|
$mov ebx,#del_file_70.func
|
|
|
|
|
$int 0x40
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> //
|
|
|
|
|
////////////////////////////
|
|
|
|
|
f70 read_file_70;
|
2012-07-16 13:52:03 +02:00
|
|
|
|
:int ReadFile(dword read_pos, read_file_size, read_buffer, read_file_path)
|
2011-06-25 03:52:11 +02:00
|
|
|
|
{
|
|
|
|
|
read_file_70.func = 0;
|
2012-07-16 13:52:03 +02:00
|
|
|
|
read_file_70.param1 = read_pos;
|
2011-06-25 03:52:11 +02:00
|
|
|
|
read_file_70.param2 = 0;
|
2012-07-16 13:52:03 +02:00
|
|
|
|
read_file_70.param3 = read_file_size;
|
2011-06-25 03:52:11 +02:00
|
|
|
|
read_file_70.param4 = read_buffer;
|
|
|
|
|
read_file_70.rezerv = 0;
|
2012-07-16 13:52:03 +02:00
|
|
|
|
read_file_70.name = read_file_path;
|
2011-06-25 03:52:11 +02:00
|
|
|
|
$mov eax,70
|
|
|
|
|
$mov ebx,#read_file_70.func
|
|
|
|
|
$int 0x40
|
2012-07-16 13:52:03 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> //
|
|
|
|
|
////////////////////////////
|
|
|
|
|
f70 write_file_70;
|
|
|
|
|
:int WriteFile(dword write_file_size, write_buffer, write_file_path)
|
|
|
|
|
{
|
|
|
|
|
write_file_70.func = 2;
|
|
|
|
|
write_file_70.param1 = 0;
|
|
|
|
|
write_file_70.param2 = 0;
|
|
|
|
|
write_file_70.param3 = write_file_size;
|
|
|
|
|
write_file_70.param4 = write_buffer;
|
|
|
|
|
write_file_70.rezerv = 0;
|
|
|
|
|
write_file_70.name = write_file_path;
|
|
|
|
|
$mov eax,70
|
|
|
|
|
$mov ebx,#write_file_70.func
|
|
|
|
|
$int 0x40
|
|
|
|
|
}
|
2011-06-25 03:52:11 +02:00
|
|
|
|
|
|
|
|
|
///////////////////////////
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> //
|
|
|
|
|
///////////////////////////
|
|
|
|
|
f70 read_dir_70;
|
2012-07-16 13:52:03 +02:00
|
|
|
|
:int ReadDir(dword file_count, read_buffer, dir_path)
|
2011-06-25 03:52:11 +02:00
|
|
|
|
{
|
|
|
|
|
read_dir_70.func = 1;
|
|
|
|
|
read_dir_70.param1 =
|
|
|
|
|
read_dir_70.param2 =
|
|
|
|
|
read_dir_70.rezerv = 0;
|
|
|
|
|
read_dir_70.param3 = file_count;
|
|
|
|
|
read_dir_70.param4 = read_buffer;
|
|
|
|
|
read_dir_70.name = dir_path;
|
|
|
|
|
$mov eax,70
|
|
|
|
|
$mov ebx,#read_dir_70.func
|
|
|
|
|
$int 0x40
|
2012-07-16 13:52:03 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> //
|
|
|
|
|
///////////////////////////
|
|
|
|
|
f70 getinfo_file_70;
|
|
|
|
|
BDVK getinfo_file_info;
|
|
|
|
|
:dword GetFileInfo(dword file_path)
|
|
|
|
|
{
|
|
|
|
|
getinfo_file_70.func = 5;
|
|
|
|
|
getinfo_file_70.param1 =
|
|
|
|
|
getinfo_file_70.param2 =
|
|
|
|
|
getinfo_file_70.param3 = 0;
|
|
|
|
|
getinfo_file_70.param4 = #getinfo_file_info;
|
|
|
|
|
getinfo_file_70.rezerv = 0;
|
|
|
|
|
getinfo_file_70.name = file_path;
|
|
|
|
|
$mov eax,70
|
|
|
|
|
$mov ebx,#getinfo_file_70.func
|
|
|
|
|
$int 0x40
|
|
|
|
|
}
|
|
|
|
|
|
2011-06-25 03:52:11 +02:00
|
|
|
|
|
|
|
|
|
///////////////////////////
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> //
|
|
|
|
|
///////////////////////////
|
2012-07-16 13:52:03 +02:00
|
|
|
|
:int CopyFile(dword copy_from, copy_in)
|
2011-06-25 03:52:11 +02:00
|
|
|
|
{
|
|
|
|
|
BDVK CopyFile_atr;
|
2012-07-16 13:52:03 +02:00
|
|
|
|
dword cBufer=0;
|
2011-06-25 03:52:11 +02:00
|
|
|
|
|
2012-07-16 13:52:03 +02:00
|
|
|
|
if (! GetFileInfo(copy_from))
|
|
|
|
|
{
|
|
|
|
|
mem_Init();
|
|
|
|
|
cBufer = mem_Alloc(CopyFile_atr.sizelo);
|
|
|
|
|
if (! ReadFile(dword 0, CopyFile_atr.sizelo, cBufer, copy_from))
|
|
|
|
|
if (! WriteFile(CopyFile_atr.sizelo, cBufer, copy_in)) return 1;
|
2011-06-25 03:52:11 +02:00
|
|
|
|
}
|
2012-07-16 13:52:03 +02:00
|
|
|
|
|
|
|
|
|
return 0;
|
2011-06-25 03:52:11 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Asper
|
|
|
|
|
void ReadAttributes(dword read_buffer, file_path)
|
|
|
|
|
{
|
|
|
|
|
read_file_70.func = 5;
|
|
|
|
|
read_file_70.param1 = 0;
|
|
|
|
|
read_file_70.param2 = 0;
|
|
|
|
|
read_file_70.param3 = 0;
|
|
|
|
|
read_file_70.param4 = read_buffer;
|
|
|
|
|
read_file_70.rezerv = 0;
|
|
|
|
|
read_file_70.name = file_path;
|
|
|
|
|
$mov eax,70
|
|
|
|
|
$mov ebx,#read_file_70.func
|
|
|
|
|
$int 0x40
|
2012-07-16 13:52:03 +02:00
|
|
|
|
}
|