Rev 318 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 318 | Rev 485 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | include '..\..\macros.inc' |
|
1 | use32 |
2 | use32 |
2 | db 'MENUET01' |
3 | db 'MENUET01' |
3 | dd 1 |
4 | dd 1 |
4 | dd start |
5 | dd start |
5 | dd i_end |
6 | dd i_end |
Line 8... | Line 9... | ||
8 | 9 | ||
9 | start: |
10 | start: |
10 | push 70 |
11 | push 70 |
11 | pop eax |
12 | pop eax |
12 | mov ebx, fileinfo |
13 | mov ebx, fileinfo |
13 | int 0x40 |
14 | mcall |
14 | cmp ebx, max_file_size |
15 | cmp ebx, max_file_size |
15 | jz exit |
16 | jz exit |
16 | cmp ebx, -1 |
17 | cmp ebx, -1 |
17 | jnz @f |
18 | jnz @f |
18 | exit: |
19 | exit: |
19 | or eax, -1 |
20 | or eax, -1 |
20 | int 0x40 |
21 | mcall |
21 | @@: |
22 | @@: |
22 | mov esi, filebuf |
23 | mov esi, filebuf |
23 | xor ecx, ecx |
24 | xor ecx, ecx |
24 | scan1l1: |
25 | scan1l1: |
Line 43... | Line 44... | ||
43 | inc ecx |
44 | inc ecx |
44 | @@: |
45 | @@: |
45 | jecxz exit |
46 | jecxz exit |
46 | push 3 |
47 | push 3 |
47 | pop eax |
48 | pop eax |
48 | int 0x40 |
49 | mcall |
49 | ror eax, 16 |
50 | ror eax, 16 |
50 | mov edx, 1024 |
51 | mov edx, 1024 |
51 | @@: |
52 | @@: |
52 | sub eax, 0x43ab45b5 |
53 | sub eax, 0x43ab45b5 |
53 | ror eax, 1 |
54 | ror eax, 1 |
Line 81... | Line 82... | ||
81 | mov [eax-4], esi |
82 | mov [eax-4], esi |
82 | lea ecx, [eax-20] |
83 | lea ecx, [eax-20] |
83 | push 48 |
84 | push 48 |
84 | pop eax |
85 | pop eax |
85 | mov bl, 8 |
86 | mov bl, 8 |
86 | int 0x40 |
87 | mcall |
87 | jmp exit |
88 | jmp exit |
Line 88... | Line 89... | ||
88 | 89 | ||
89 | fileinfo: |
90 | fileinfo: |
90 | dd 0 |
91 | dd 0 |