1 ; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01
\r
3 TITLE D:\FMU\FMUSolution\zlib-1.2.6\contrib\minizip\iowin32.c
\r
11 EXTRN __imp__CreateFileW@28:PROC
\r
12 EXTRN __imp__CreateFileA@28:PROC
\r
13 EXTRN __imp__ReadFile@20:PROC
\r
14 EXTRN __imp__WriteFile@20:PROC
\r
15 EXTRN __imp__GetLastError@0:PROC
\r
16 EXTRN __imp__SetFilePointer@16:PROC
\r
17 EXTRN __imp__CloseHandle@4:PROC
\r
18 PUBLIC _win32_error_file_func
\r
19 ; Function compile flags: /Ogtp
\r
20 ; File d:\fmu\fmusolution\zlib-1.2.6\contrib\minizip\iowin32.c
\r
21 ; COMDAT _win32_error_file_func
\r
23 _opaque$ = 8 ; size = 4
\r
24 _stream$ = 12 ; size = 4
\r
25 _win32_error_file_func PROC ; COMDAT
\r
30 00001 8b ec mov ebp, esp
\r
33 ; 334 : if (stream!=NULL)
\r
35 00003 8b 4d 0c mov ecx, DWORD PTR _stream$[ebp]
\r
36 00006 83 c8 ff or eax, -1
\r
37 00009 85 c9 test ecx, ecx
\r
38 0000b 74 03 je SHORT $LN1@win32_erro
\r
41 ; 336 : ret = ((WIN32FILE_IOWIN*)stream) -> error;
\r
45 0000d 8b 41 04 mov eax, DWORD PTR [ecx+4]
\r
52 _win32_error_file_func ENDP
\r
54 PUBLIC _win32_close_file_func
\r
55 ; Function compile flags: /Ogtp
\r
56 ; COMDAT _win32_close_file_func
\r
58 _opaque$ = 8 ; size = 4
\r
59 _stream$ = 12 ; size = 4
\r
60 _win32_close_file_func PROC ; COMDAT
\r
65 00001 8b ec mov ebp, esp
\r
71 ; 317 : if (stream!=NULL)
\r
73 00005 8b 7d 0c mov edi, DWORD PTR _stream$[ebp]
\r
74 00008 83 ce ff or esi, -1
\r
75 0000b 85 ff test edi, edi
\r
76 0000d 74 18 je SHORT $LN5@win32_clos
\r
79 ; 319 : HANDLE hFile;
\r
80 ; 320 : hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
\r
82 0000f 8b 07 mov eax, DWORD PTR [edi]
\r
84 ; 321 : if (hFile != NULL)
\r
86 00011 85 c0 test eax, eax
\r
87 00013 74 09 je SHORT $LN1@win32_clos
\r
90 ; 323 : CloseHandle(hFile);
\r
93 00016 ff 15 00 00 00
\r
94 00 call DWORD PTR __imp__CloseHandle@4
\r
98 0001c 33 f6 xor esi, esi
\r
102 ; 326 : free(stream);
\r
105 0001f e8 00 00 00 00 call _free
\r
106 00024 83 c4 04 add esp, 4
\r
110 ; 328 : return ret;
\r
113 00028 8b c6 mov eax, esi
\r
120 _win32_close_file_func ENDP
\r
122 PUBLIC _win32_seek64_file_func
\r
123 ; Function compile flags: /Ogtp
\r
124 ; COMDAT _win32_seek64_file_func
\r
126 _opaque$ = 8 ; size = 4
\r
127 _stream$ = 12 ; size = 4
\r
128 _offset$ = 16 ; size = 8
\r
129 _origin$ = 24 ; size = 4
\r
130 _win32_seek64_file_func PROC ; COMDAT
\r
135 00001 8b ec mov ebp, esp
\r
138 ; 276 : DWORD dwMoveMethod=0xFFFFFFFF;
\r
139 ; 277 : HANDLE hFile = NULL;
\r
140 ; 278 : long ret=-1;
\r
142 ; 280 : if (stream!=NULL)
\r
144 00004 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
145 00007 33 d2 xor edx, edx
\r
146 00009 83 c8 ff or eax, -1
\r
147 0000c 85 f6 test esi, esi
\r
148 0000e 74 02 je SHORT $LN10@win32_seek
\r
150 ; 281 : hFile = ((WIN32FILE_IOWIN*)stream)->hf;
\r
152 00010 8b 16 mov edx, DWORD PTR [esi]
\r
156 ; 283 : switch (origin)
\r
158 00012 8b 4d 18 mov ecx, DWORD PTR _origin$[ebp]
\r
159 00015 83 e9 00 sub ecx, 0
\r
160 00018 74 14 je SHORT $LN5@win32_seek
\r
162 0001b 74 0a je SHORT $LN7@win32_seek
\r
166 ; 294 : default: return -1;
\r
168 0001e 75 32 jne SHORT $LN13@win32_seek
\r
170 ; 288 : case ZLIB_FILEFUNC_SEEK_END :
\r
171 ; 289 : dwMoveMethod = FILE_END;
\r
173 00020 b9 02 00 00 00 mov ecx, 2
\r
177 00025 eb 09 jmp SHORT $LN8@win32_seek
\r
181 ; 285 : case ZLIB_FILEFUNC_SEEK_CUR :
\r
182 ; 286 : dwMoveMethod = FILE_CURRENT;
\r
184 00027 b9 01 00 00 00 mov ecx, 1
\r
188 0002c eb 02 jmp SHORT $LN8@win32_seek
\r
191 ; 291 : case ZLIB_FILEFUNC_SEEK_SET :
\r
192 ; 292 : dwMoveMethod = FILE_BEGIN;
\r
194 0002e 33 c9 xor ecx, ecx
\r
201 00030 85 d2 test edx, edx
\r
202 00032 74 26 je SHORT $LN11@win32_seek
\r
205 ; 299 : LARGE_INTEGER* li = (LARGE_INTEGER*)&offset;
\r
206 ; 300 : DWORD dwSet = SetFilePointer(hFile, li->u.LowPart, &li->u.HighPart, dwMoveMethod);
\r
209 00035 8b 4d 10 mov ecx, DWORD PTR _offset$[ebp]
\r
210 00038 8d 45 14 lea eax, DWORD PTR _offset$[ebp+4]
\r
214 0003e ff 15 00 00 00
\r
215 00 call DWORD PTR __imp__SetFilePointer@16
\r
217 ; 301 : if (dwSet == INVALID_SET_FILE_POINTER)
\r
219 00044 83 f8 ff cmp eax, -1
\r
220 00047 75 0f jne SHORT $LN2@win32_seek
\r
223 ; 303 : DWORD dwErr = GetLastError();
\r
225 00049 ff 15 00 00 00
\r
226 00 call DWORD PTR __imp__GetLastError@0
\r
228 ; 304 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
230 0004f 89 46 04 mov DWORD PTR [esi+4], eax
\r
235 00052 83 c8 ff or eax, -1
\r
239 ; 310 : return ret;
\r
250 00058 33 c0 xor eax, eax
\r
255 ; 310 : return ret;
\r
260 _win32_seek64_file_func ENDP
\r
262 PUBLIC _win32_seek_file_func
\r
263 ; Function compile flags: /Ogtp
\r
264 ; COMDAT _win32_seek_file_func
\r
266 _opaque$ = 8 ; size = 4
\r
267 _stream$ = 12 ; size = 4
\r
268 _offset$ = 16 ; size = 4
\r
269 _origin$ = 20 ; size = 4
\r
270 _win32_seek_file_func PROC ; COMDAT
\r
275 00001 8b ec mov ebp, esp
\r
278 ; 239 : DWORD dwMoveMethod=0xFFFFFFFF;
\r
279 ; 240 : HANDLE hFile = NULL;
\r
281 ; 242 : long ret=-1;
\r
282 ; 243 : if (stream!=NULL)
\r
284 00004 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
285 00007 33 d2 xor edx, edx
\r
286 00009 83 c8 ff or eax, -1
\r
287 0000c 85 f6 test esi, esi
\r
288 0000e 74 02 je SHORT $LN10@win32_seek@2
\r
290 ; 244 : hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
\r
292 00010 8b 16 mov edx, DWORD PTR [esi]
\r
293 $LN10@win32_seek@2:
\r
295 ; 245 : switch (origin)
\r
297 00012 8b 4d 14 mov ecx, DWORD PTR _origin$[ebp]
\r
298 00015 83 e9 00 sub ecx, 0
\r
299 00018 74 14 je SHORT $LN5@win32_seek@2
\r
301 0001b 74 0a je SHORT $LN7@win32_seek@2
\r
305 ; 256 : default: return -1;
\r
307 0001e 75 30 jne SHORT $LN13@win32_seek@2
\r
309 ; 250 : case ZLIB_FILEFUNC_SEEK_END :
\r
310 ; 251 : dwMoveMethod = FILE_END;
\r
312 00020 b9 02 00 00 00 mov ecx, 2
\r
316 00025 eb 09 jmp SHORT $LN8@win32_seek@2
\r
320 ; 247 : case ZLIB_FILEFUNC_SEEK_CUR :
\r
321 ; 248 : dwMoveMethod = FILE_CURRENT;
\r
323 00027 b9 01 00 00 00 mov ecx, 1
\r
327 0002c eb 02 jmp SHORT $LN8@win32_seek@2
\r
330 ; 253 : case ZLIB_FILEFUNC_SEEK_SET :
\r
331 ; 254 : dwMoveMethod = FILE_BEGIN;
\r
333 0002e 33 c9 xor ecx, ecx
\r
338 ; 259 : if (hFile != NULL)
\r
340 00030 85 d2 test edx, edx
\r
341 00032 74 24 je SHORT $LN11@win32_seek@2
\r
344 ; 261 : DWORD dwSet = SetFilePointer(hFile, offset, NULL, dwMoveMethod);
\r
346 00034 8b 45 10 mov eax, DWORD PTR _offset$[ebp]
\r
351 0003c ff 15 00 00 00
\r
352 00 call DWORD PTR __imp__SetFilePointer@16
\r
354 ; 262 : if (dwSet == INVALID_SET_FILE_POINTER)
\r
356 00042 83 f8 ff cmp eax, -1
\r
357 00045 75 0f jne SHORT $LN2@win32_seek@2
\r
360 ; 264 : DWORD dwErr = GetLastError();
\r
362 00047 ff 15 00 00 00
\r
363 00 call DWORD PTR __imp__GetLastError@0
\r
365 ; 265 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
367 0004d 89 46 04 mov DWORD PTR [esi+4], eax
\r
368 $LN13@win32_seek@2:
\r
372 00050 83 c8 ff or eax, -1
\r
376 ; 271 : return ret;
\r
387 00056 33 c0 xor eax, eax
\r
388 $LN11@win32_seek@2:
\r
392 ; 271 : return ret;
\r
397 _win32_seek_file_func ENDP
\r
399 PUBLIC _win32_tell64_file_func
\r
400 ; Function compile flags: /Ogtp
\r
401 ; COMDAT _win32_tell64_file_func
\r
403 _li$82085 = -8 ; size = 8
\r
404 _opaque$ = 8 ; size = 4
\r
405 _stream$ = 12 ; size = 4
\r
406 _win32_tell64_file_func PROC ; COMDAT
\r
411 00001 8b ec mov ebp, esp
\r
412 00003 83 e4 f8 and esp, -8 ; fffffff8H
\r
413 00006 83 ec 08 sub esp, 8
\r
416 ; 214 : ZPOS64_T ret= (ZPOS64_T)-1;
\r
417 ; 215 : HANDLE hFile = NULL;
\r
418 ; 216 : if (stream!=NULL)
\r
420 0000a 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
422 0000e 33 ff xor edi, edi
\r
423 00010 83 c8 ff or eax, -1
\r
424 00013 83 ca ff or edx, -1
\r
425 00016 3b f7 cmp esi, edi
\r
426 00018 74 4b je SHORT $LN1@win32_tell
\r
428 ; 217 : hFile = ((WIN32FILE_IOWIN*)stream)->hf;
\r
430 0001a 8b 0e mov ecx, DWORD PTR [esi]
\r
435 0001c 3b cf cmp ecx, edi
\r
436 0001e 74 45 je SHORT $LN1@win32_tell
\r
439 ; 221 : LARGE_INTEGER li;
\r
440 ; 222 : li.QuadPart = 0;
\r
441 ; 223 : li.u.LowPart = SetFilePointer(hFile, li.u.LowPart, &li.u.HighPart, FILE_CURRENT);
\r
444 00022 8d 44 24 10 lea eax, DWORD PTR _li$82085[esp+24]
\r
448 00029 89 7c 24 18 mov DWORD PTR _li$82085[esp+32], edi
\r
449 0002d 89 7c 24 1c mov DWORD PTR _li$82085[esp+36], edi
\r
450 00031 ff 15 00 00 00
\r
451 00 call DWORD PTR __imp__SetFilePointer@16
\r
452 00037 89 44 24 08 mov DWORD PTR _li$82085[esp+16], eax
\r
454 ; 224 : if ( (li.LowPart == 0xFFFFFFFF) && (GetLastError() != NO_ERROR))
\r
456 0003b 83 f8 ff cmp eax, -1
\r
457 0003e 75 21 jne SHORT $LN2@win32_tell
\r
458 00040 8b 3d 00 00 00
\r
459 00 mov edi, DWORD PTR __imp__GetLastError@0
\r
460 00046 ff d7 call edi
\r
461 00048 85 c0 test eax, eax
\r
462 0004a 74 11 je SHORT $LN9@win32_tell
\r
465 ; 226 : DWORD dwErr = GetLastError();
\r
467 0004c ff d7 call edi
\r
469 ; 227 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
471 0004e 89 46 04 mov DWORD PTR [esi+4], eax
\r
473 ; 228 : ret = (ZPOS64_T)-1;
\r
475 00051 83 c8 ff or eax, -1
\r
476 00054 83 ca ff or edx, -1
\r
479 ; 233 : return ret;
\r
484 00059 8b e5 mov esp, ebp
\r
492 0005d 8b 44 24 08 mov eax, DWORD PTR _li$82085[esp+16]
\r
495 ; 231 : ret=li.QuadPart;
\r
497 00061 8b 54 24 0c mov edx, DWORD PTR _li$82085[esp+20]
\r
501 ; 233 : return ret;
\r
506 00067 8b e5 mov esp, ebp
\r
509 _win32_tell64_file_func ENDP
\r
511 PUBLIC _win32_tell_file_func
\r
512 ; Function compile flags: /Ogtp
\r
513 ; COMDAT _win32_tell_file_func
\r
515 _opaque$ = 8 ; size = 4
\r
516 _stream$ = 12 ; size = 4
\r
517 _win32_tell_file_func PROC ; COMDAT
\r
522 00001 8b ec mov ebp, esp
\r
525 ; 193 : long ret=-1;
\r
526 ; 194 : HANDLE hFile = NULL;
\r
527 ; 195 : if (stream!=NULL)
\r
529 00004 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
530 00007 83 c8 ff or eax, -1
\r
531 0000a 85 f6 test esi, esi
\r
532 0000c 74 24 je SHORT $LN1@win32_tell@2
\r
534 ; 196 : hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
\r
536 0000e 8b 0e mov ecx, DWORD PTR [esi]
\r
538 ; 197 : if (hFile != NULL)
\r
540 00010 85 c9 test ecx, ecx
\r
541 00012 74 1e je SHORT $LN1@win32_tell@2
\r
544 ; 199 : DWORD dwSet = SetFilePointer(hFile, 0, NULL, FILE_CURRENT);
\r
550 0001b ff 15 00 00 00
\r
551 00 call DWORD PTR __imp__SetFilePointer@16
\r
553 ; 200 : if (dwSet == INVALID_SET_FILE_POINTER)
\r
555 00021 83 f8 ff cmp eax, -1
\r
556 00024 75 0c jne SHORT $LN1@win32_tell@2
\r
559 ; 202 : DWORD dwErr = GetLastError();
\r
561 00026 ff 15 00 00 00
\r
562 00 call DWORD PTR __imp__GetLastError@0
\r
564 ; 203 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
566 0002c 89 46 04 mov DWORD PTR [esi+4], eax
\r
570 0002f 83 c8 ff or eax, -1
\r
576 ; 207 : ret=(long)dwSet;
\r
578 ; 209 : return ret;
\r
583 _win32_tell_file_func ENDP
\r
585 PUBLIC _win32_write_file_func
\r
586 ; Function compile flags: /Ogtp
\r
587 ; COMDAT _win32_write_file_func
\r
589 _ret$ = -4 ; size = 4
\r
590 _opaque$ = 8 ; size = 4
\r
591 _stream$ = 12 ; size = 4
\r
592 _buf$ = 16 ; size = 4
\r
593 _size$ = 20 ; size = 4
\r
594 _win32_write_file_func PROC ; COMDAT
\r
599 00001 8b ec mov ebp, esp
\r
603 ; 172 : uLong ret=0;
\r
604 ; 173 : HANDLE hFile = NULL;
\r
605 ; 174 : if (stream!=NULL)
\r
607 00005 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
608 00008 33 c0 xor eax, eax
\r
609 0000a 89 45 fc mov DWORD PTR _ret$[ebp], eax
\r
610 0000d 85 f6 test esi, esi
\r
611 0000f 74 31 je SHORT $LN2@win32_writ
\r
613 ; 175 : hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
\r
615 00011 8b 0e mov ecx, DWORD PTR [esi]
\r
618 ; 177 : if (hFile != NULL)
\r
620 00013 85 c9 test ecx, ecx
\r
621 00015 74 2b je SHORT $LN2@win32_writ
\r
624 ; 179 : if (!WriteFile(hFile, buf, size, &ret, NULL))
\r
626 00017 8b 55 14 mov edx, DWORD PTR _size$[ebp]
\r
628 0001b 8d 45 fc lea eax, DWORD PTR _ret$[ebp]
\r
630 0001f 8b 45 10 mov eax, DWORD PTR _buf$[ebp]
\r
634 00025 ff 15 00 00 00
\r
635 00 call DWORD PTR __imp__WriteFile@20
\r
636 0002b 85 c0 test eax, eax
\r
637 0002d 75 10 jne SHORT $LN7@win32_writ
\r
640 ; 181 : DWORD dwErr = GetLastError();
\r
642 0002f ff 15 00 00 00
\r
643 00 call DWORD PTR __imp__GetLastError@0
\r
645 ; 182 : if (dwErr == ERROR_HANDLE_EOF)
\r
647 00035 83 f8 26 cmp eax, 38 ; 00000026H
\r
648 00038 75 02 jne SHORT $LN1@win32_writ
\r
652 0003a 33 c0 xor eax, eax
\r
655 ; 184 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
657 0003c 89 46 04 mov DWORD PTR [esi+4], eax
\r
663 ; 188 : return ret;
\r
665 0003f 8b 45 fc mov eax, DWORD PTR _ret$[ebp]
\r
671 00043 8b e5 mov esp, ebp
\r
674 _win32_write_file_func ENDP
\r
676 PUBLIC _win32_read_file_func
\r
677 ; Function compile flags: /Ogtp
\r
678 ; COMDAT _win32_read_file_func
\r
680 _ret$ = -4 ; size = 4
\r
681 _opaque$ = 8 ; size = 4
\r
682 _stream$ = 12 ; size = 4
\r
683 _buf$ = 16 ; size = 4
\r
684 _size$ = 20 ; size = 4
\r
685 _win32_read_file_func PROC ; COMDAT
\r
690 00001 8b ec mov ebp, esp
\r
694 ; 150 : uLong ret=0;
\r
695 ; 151 : HANDLE hFile = NULL;
\r
696 ; 152 : if (stream!=NULL)
\r
698 00005 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
699 00008 33 c0 xor eax, eax
\r
700 0000a 89 45 fc mov DWORD PTR _ret$[ebp], eax
\r
701 0000d 85 f6 test esi, esi
\r
702 0000f 74 31 je SHORT $LN2@win32_read
\r
704 ; 153 : hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
\r
706 00011 8b 0e mov ecx, DWORD PTR [esi]
\r
709 ; 155 : if (hFile != NULL)
\r
711 00013 85 c9 test ecx, ecx
\r
712 00015 74 2b je SHORT $LN2@win32_read
\r
715 ; 157 : if (!ReadFile(hFile, buf, size, &ret, NULL))
\r
717 00017 8b 55 14 mov edx, DWORD PTR _size$[ebp]
\r
719 0001b 8d 45 fc lea eax, DWORD PTR _ret$[ebp]
\r
721 0001f 8b 45 10 mov eax, DWORD PTR _buf$[ebp]
\r
725 00025 ff 15 00 00 00
\r
726 00 call DWORD PTR __imp__ReadFile@20
\r
727 0002b 85 c0 test eax, eax
\r
728 0002d 75 10 jne SHORT $LN7@win32_read
\r
731 ; 159 : DWORD dwErr = GetLastError();
\r
733 0002f ff 15 00 00 00
\r
734 00 call DWORD PTR __imp__GetLastError@0
\r
736 ; 160 : if (dwErr == ERROR_HANDLE_EOF)
\r
738 00035 83 f8 26 cmp eax, 38 ; 00000026H
\r
739 00038 75 02 jne SHORT $LN1@win32_read
\r
743 0003a 33 c0 xor eax, eax
\r
746 ; 162 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
748 0003c 89 46 04 mov DWORD PTR [esi+4], eax
\r
754 ; 166 : return ret;
\r
756 0003f 8b 45 fc mov eax, DWORD PTR _ret$[ebp]
\r
762 00043 8b e5 mov esp, ebp
\r
765 _win32_read_file_func ENDP
\r
766 ; Function compile flags: /Ogtp
\r
768 ; COMDAT _win32_build_iowin
\r
770 _win32_build_iowin PROC ; COMDAT
\r
773 ; 71 : voidpf ret=NULL;
\r
775 00000 33 c0 xor eax, eax
\r
778 ; 73 : if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE))
\r
780 00002 85 ff test edi, edi
\r
781 00004 74 2c je SHORT $LN1@win32_buil
\r
782 00006 83 ff ff cmp edi, -1
\r
783 00009 74 27 je SHORT $LN1@win32_buil
\r
786 ; 75 : WIN32FILE_IOWIN w32fiow;
\r
787 ; 76 : w32fiow.hf = hFile;
\r
788 ; 77 : w32fiow.error = 0;
\r
789 ; 78 : ret = malloc(sizeof(WIN32FILE_IOWIN));
\r
794 0000f 33 db xor ebx, ebx
\r
795 00011 e8 00 00 00 00 call _malloc
\r
796 00016 8b f0 mov esi, eax
\r
797 00018 83 c4 04 add esp, 4
\r
800 ; 80 : if (ret==NULL)
\r
802 0001b 85 f6 test esi, esi
\r
803 0001d 75 0c jne SHORT $LN2@win32_buil
\r
805 ; 81 : CloseHandle(hFile);
\r
808 00020 ff 15 00 00 00
\r
809 00 call DWORD PTR __imp__CloseHandle@4
\r
814 00026 8b c6 mov eax, esi
\r
824 ; 83 : *((WIN32FILE_IOWIN*)ret) = w32fiow;
\r
826 0002b 89 5e 04 mov DWORD PTR [esi+4], ebx
\r
827 0002e 89 3e mov DWORD PTR [esi], edi
\r
835 _win32_build_iowin ENDP
\r
836 ; Function compile flags: /Ogtp
\r
838 ; COMDAT _win32_translate_open_mode
\r
840 _lpdwFlagsAndAttributes$ = 8 ; size = 4
\r
841 _win32_translate_open_mode PROC ; COMDAT
\r
843 ; _lpdwDesiredAccess$ = ecx
\r
844 ; _lpdwCreationDisposition$ = eax
\r
845 ; _lpdwShareMode$ = esi
\r
850 00001 8b ec mov ebp, esp
\r
854 ; 49 : *lpdwDesiredAccess = *lpdwShareMode = *lpdwFlagsAndAttributes = *lpdwCreationDisposition = 0;
\r
856 00005 8b 7d 08 mov edi, DWORD PTR _lpdwFlagsAndAttributes$[ebp]
\r
859 ; 51 : if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER)==ZLIB_FILEFUNC_MODE_READ)
\r
861 00008 8b da mov ebx, edx
\r
862 0000a 80 e3 03 and bl, 3
\r
863 0000d c7 07 00 00 00
\r
864 00 mov DWORD PTR [edi], 0
\r
866 00014 80 fb 01 cmp bl, 1
\r
867 00017 c7 00 00 00 00
\r
868 00 mov DWORD PTR [eax], 0
\r
869 0001d c7 06 00 00 00
\r
870 00 mov DWORD PTR [esi], 0
\r
871 00023 c7 01 00 00 00
\r
872 00 mov DWORD PTR [ecx], 0
\r
874 0002a 75 14 jne SHORT $LN5@win32_tran
\r
877 ; 53 : *lpdwDesiredAccess = GENERIC_READ;
\r
879 0002c c7 01 00 00 00
\r
880 80 mov DWORD PTR [ecx], -2147483648 ; 80000000H
\r
882 ; 54 : *lpdwCreationDisposition = OPEN_EXISTING;
\r
884 00032 c7 00 03 00 00
\r
885 00 mov DWORD PTR [eax], 3
\r
887 ; 55 : *lpdwShareMode = FILE_SHARE_READ;
\r
889 00038 c7 06 01 00 00
\r
890 00 mov DWORD PTR [esi], 1
\r
900 ; 57 : else if (mode & ZLIB_FILEFUNC_MODE_EXISTING)
\r
902 00040 f6 c2 04 test dl, 4
\r
903 00043 74 0e je SHORT $LN3@win32_tran
\r
906 ; 59 : *lpdwDesiredAccess = GENERIC_WRITE | GENERIC_READ;
\r
907 ; 60 : *lpdwCreationDisposition = OPEN_EXISTING;
\r
909 00045 c7 00 03 00 00
\r
910 00 mov DWORD PTR [eax], 3
\r
913 ; 64 : *lpdwDesiredAccess = GENERIC_WRITE | GENERIC_READ;
\r
915 0004b c7 01 00 00 00
\r
916 c0 mov DWORD PTR [ecx], -1073741824 ; c0000000H
\r
926 ; 62 : else if (mode & ZLIB_FILEFUNC_MODE_CREATE)
\r
928 00053 f6 c2 08 test dl, 8
\r
929 00056 74 0c je SHORT $LN1@win32_tran
\r
931 ; 65 : *lpdwCreationDisposition = CREATE_ALWAYS;
\r
933 00058 c7 00 02 00 00
\r
934 00 mov DWORD PTR [eax], 2
\r
935 0005e c7 01 00 00 00
\r
936 c0 mov DWORD PTR [ecx], -1073741824 ; c0000000H
\r
944 _win32_translate_open_mode ENDP
\r
945 PUBLIC _win32_open_file_func
\r
946 ; Function compile flags: /Ogtp
\r
947 ; COMDAT _win32_open_file_func
\r
949 _dwShareMode$ = -16 ; size = 4
\r
950 _dwCreationDisposition$ = -12 ; size = 4
\r
951 _dwFlagsAndAttributes$ = -8 ; size = 4
\r
952 _dwDesiredAccess$ = -4 ; size = 4
\r
953 _opaque$ = 8 ; size = 4
\r
954 _filename$ = 12 ; size = 4
\r
955 _mode$ = 16 ; size = 4
\r
956 _win32_open_file_func PROC ; COMDAT
\r
961 00001 8b ec mov ebp, esp
\r
963 ; 135 : const char* mode_fopen = NULL;
\r
964 ; 136 : DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
\r
965 ; 137 : HANDLE hFile = NULL;
\r
967 ; 139 : win32_translate_open_mode(mode,&dwDesiredAccess,&dwCreationDisposition,&dwShareMode,&dwFlagsAndAttributes);
\r
969 00003 8b 55 10 mov edx, DWORD PTR _mode$[ebp]
\r
970 00006 83 ec 10 sub esp, 16 ; 00000010H
\r
973 0000b 8d 45 f8 lea eax, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
975 0000f 8d 75 f0 lea esi, DWORD PTR _dwShareMode$[ebp]
\r
976 00012 8d 45 f4 lea eax, DWORD PTR _dwCreationDisposition$[ebp]
\r
977 00015 8d 4d fc lea ecx, DWORD PTR _dwDesiredAccess$[ebp]
\r
978 00018 33 ff xor edi, edi
\r
979 0001a e8 00 00 00 00 call _win32_translate_open_mode
\r
982 ; 141 : if ((filename!=NULL) && (dwDesiredAccess != 0))
\r
984 0001f 8b 4d 0c mov ecx, DWORD PTR _filename$[ebp]
\r
985 00022 83 c4 04 add esp, 4
\r
986 00025 85 c9 test ecx, ecx
\r
987 00027 74 1f je SHORT $LN1@win32_open
\r
988 00029 8b 45 fc mov eax, DWORD PTR _dwDesiredAccess$[ebp]
\r
989 0002c 85 c0 test eax, eax
\r
990 0002e 74 18 je SHORT $LN1@win32_open
\r
992 ; 142 : hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
\r
994 00030 8b 55 f8 mov edx, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
997 00035 8b 55 f4 mov edx, DWORD PTR _dwCreationDisposition$[ebp]
\r
999 00039 8b 55 f0 mov edx, DWORD PTR _dwShareMode$[ebp]
\r
1004 00040 ff 15 00 00 00
\r
1005 00 call DWORD PTR __imp__CreateFileA@28
\r
1006 00046 8b f8 mov edi, eax
\r
1010 ; 144 : return win32_build_iowin(hFile);
\r
1012 00048 e8 00 00 00 00 call _win32_build_iowin
\r
1018 0004f 8b e5 mov esp, ebp
\r
1021 _win32_open_file_func ENDP
\r
1023 PUBLIC _win32_open64_file_funcW
\r
1024 ; Function compile flags: /Ogtp
\r
1025 ; COMDAT _win32_open64_file_funcW
\r
1027 _dwShareMode$ = -16 ; size = 4
\r
1028 _dwCreationDisposition$ = -12 ; size = 4
\r
1029 _dwFlagsAndAttributes$ = -8 ; size = 4
\r
1030 _dwDesiredAccess$ = -4 ; size = 4
\r
1031 _opaque$ = 8 ; size = 4
\r
1032 _filename$ = 12 ; size = 4
\r
1033 _mode$ = 16 ; size = 4
\r
1034 _win32_open64_file_funcW PROC ; COMDAT
\r
1039 00001 8b ec mov ebp, esp
\r
1041 ; 120 : const char* mode_fopen = NULL;
\r
1042 ; 121 : DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
\r
1043 ; 122 : HANDLE hFile = NULL;
\r
1045 ; 124 : win32_translate_open_mode(mode,&dwDesiredAccess,&dwCreationDisposition,&dwShareMode,&dwFlagsAndAttributes);
\r
1047 00003 8b 55 10 mov edx, DWORD PTR _mode$[ebp]
\r
1048 00006 83 ec 10 sub esp, 16 ; 00000010H
\r
1051 0000b 8d 45 f8 lea eax, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1053 0000f 8d 75 f0 lea esi, DWORD PTR _dwShareMode$[ebp]
\r
1054 00012 8d 45 f4 lea eax, DWORD PTR _dwCreationDisposition$[ebp]
\r
1055 00015 8d 4d fc lea ecx, DWORD PTR _dwDesiredAccess$[ebp]
\r
1056 00018 33 ff xor edi, edi
\r
1057 0001a e8 00 00 00 00 call _win32_translate_open_mode
\r
1060 ; 126 : if ((filename!=NULL) && (dwDesiredAccess != 0))
\r
1062 0001f 8b 4d 0c mov ecx, DWORD PTR _filename$[ebp]
\r
1063 00022 83 c4 04 add esp, 4
\r
1064 00025 85 c9 test ecx, ecx
\r
1065 00027 74 1f je SHORT $LN1@win32_open@2
\r
1066 00029 8b 45 fc mov eax, DWORD PTR _dwDesiredAccess$[ebp]
\r
1067 0002c 85 c0 test eax, eax
\r
1068 0002e 74 18 je SHORT $LN1@win32_open@2
\r
1070 ; 127 : hFile = CreateFileW((LPCWSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
\r
1072 00030 8b 55 f8 mov edx, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1075 00035 8b 55 f4 mov edx, DWORD PTR _dwCreationDisposition$[ebp]
\r
1077 00039 8b 55 f0 mov edx, DWORD PTR _dwShareMode$[ebp]
\r
1082 00040 ff 15 00 00 00
\r
1083 00 call DWORD PTR __imp__CreateFileW@28
\r
1084 00046 8b f8 mov edi, eax
\r
1085 $LN1@win32_open@2:
\r
1088 ; 129 : return win32_build_iowin(hFile);
\r
1090 00048 e8 00 00 00 00 call _win32_build_iowin
\r
1096 0004f 8b e5 mov esp, ebp
\r
1099 _win32_open64_file_funcW ENDP
\r
1101 PUBLIC _win32_open64_file_funcA
\r
1102 ; Function compile flags: /Ogtp
\r
1103 ; COMDAT _win32_open64_file_funcA
\r
1105 _dwShareMode$ = -16 ; size = 4
\r
1106 _dwCreationDisposition$ = -12 ; size = 4
\r
1107 _dwFlagsAndAttributes$ = -8 ; size = 4
\r
1108 _dwDesiredAccess$ = -4 ; size = 4
\r
1109 _opaque$ = 8 ; size = 4
\r
1110 _filename$ = 12 ; size = 4
\r
1111 _mode$ = 16 ; size = 4
\r
1112 _win32_open64_file_funcA PROC ; COMDAT
\r
1117 00001 8b ec mov ebp, esp
\r
1119 ; 105 : const char* mode_fopen = NULL;
\r
1120 ; 106 : DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
\r
1121 ; 107 : HANDLE hFile = NULL;
\r
1123 ; 109 : win32_translate_open_mode(mode,&dwDesiredAccess,&dwCreationDisposition,&dwShareMode,&dwFlagsAndAttributes);
\r
1125 00003 8b 55 10 mov edx, DWORD PTR _mode$[ebp]
\r
1126 00006 83 ec 10 sub esp, 16 ; 00000010H
\r
1129 0000b 8d 45 f8 lea eax, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1131 0000f 8d 75 f0 lea esi, DWORD PTR _dwShareMode$[ebp]
\r
1132 00012 8d 45 f4 lea eax, DWORD PTR _dwCreationDisposition$[ebp]
\r
1133 00015 8d 4d fc lea ecx, DWORD PTR _dwDesiredAccess$[ebp]
\r
1134 00018 33 ff xor edi, edi
\r
1135 0001a e8 00 00 00 00 call _win32_translate_open_mode
\r
1138 ; 111 : if ((filename!=NULL) && (dwDesiredAccess != 0))
\r
1140 0001f 8b 4d 0c mov ecx, DWORD PTR _filename$[ebp]
\r
1141 00022 83 c4 04 add esp, 4
\r
1142 00025 85 c9 test ecx, ecx
\r
1143 00027 74 1f je SHORT $LN1@win32_open@3
\r
1144 00029 8b 45 fc mov eax, DWORD PTR _dwDesiredAccess$[ebp]
\r
1145 0002c 85 c0 test eax, eax
\r
1146 0002e 74 18 je SHORT $LN1@win32_open@3
\r
1148 ; 112 : hFile = CreateFileA((LPCSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
\r
1150 00030 8b 55 f8 mov edx, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1153 00035 8b 55 f4 mov edx, DWORD PTR _dwCreationDisposition$[ebp]
\r
1155 00039 8b 55 f0 mov edx, DWORD PTR _dwShareMode$[ebp]
\r
1160 00040 ff 15 00 00 00
\r
1161 00 call DWORD PTR __imp__CreateFileA@28
\r
1162 00046 8b f8 mov edi, eax
\r
1163 $LN1@win32_open@3:
\r
1166 ; 114 : return win32_build_iowin(hFile);
\r
1168 00048 e8 00 00 00 00 call _win32_build_iowin
\r
1174 0004f 8b e5 mov esp, ebp
\r
1177 _win32_open64_file_funcA ENDP
\r
1179 PUBLIC _win32_open64_file_func
\r
1180 ; Function compile flags: /Ogtp
\r
1181 ; COMDAT _win32_open64_file_func
\r
1183 _dwShareMode$ = -16 ; size = 4
\r
1184 _dwCreationDisposition$ = -12 ; size = 4
\r
1185 _dwFlagsAndAttributes$ = -8 ; size = 4
\r
1186 _dwDesiredAccess$ = -4 ; size = 4
\r
1187 _opaque$ = 8 ; size = 4
\r
1188 _filename$ = 12 ; size = 4
\r
1189 _mode$ = 16 ; size = 4
\r
1190 _win32_open64_file_func PROC ; COMDAT
\r
1195 00001 8b ec mov ebp, esp
\r
1197 ; 90 : const char* mode_fopen = NULL;
\r
1198 ; 91 : DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
\r
1199 ; 92 : HANDLE hFile = NULL;
\r
1201 ; 94 : win32_translate_open_mode(mode,&dwDesiredAccess,&dwCreationDisposition,&dwShareMode,&dwFlagsAndAttributes);
\r
1203 00003 8b 55 10 mov edx, DWORD PTR _mode$[ebp]
\r
1204 00006 83 ec 10 sub esp, 16 ; 00000010H
\r
1207 0000b 8d 45 f8 lea eax, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1209 0000f 8d 75 f0 lea esi, DWORD PTR _dwShareMode$[ebp]
\r
1210 00012 8d 45 f4 lea eax, DWORD PTR _dwCreationDisposition$[ebp]
\r
1211 00015 8d 4d fc lea ecx, DWORD PTR _dwDesiredAccess$[ebp]
\r
1212 00018 33 ff xor edi, edi
\r
1213 0001a e8 00 00 00 00 call _win32_translate_open_mode
\r
1216 ; 96 : if ((filename!=NULL) && (dwDesiredAccess != 0))
\r
1218 0001f 8b 4d 0c mov ecx, DWORD PTR _filename$[ebp]
\r
1219 00022 83 c4 04 add esp, 4
\r
1220 00025 85 c9 test ecx, ecx
\r
1221 00027 74 1f je SHORT $LN1@win32_open@4
\r
1222 00029 8b 45 fc mov eax, DWORD PTR _dwDesiredAccess$[ebp]
\r
1223 0002c 85 c0 test eax, eax
\r
1224 0002e 74 18 je SHORT $LN1@win32_open@4
\r
1226 ; 97 : hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
\r
1228 00030 8b 55 f8 mov edx, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1231 00035 8b 55 f4 mov edx, DWORD PTR _dwCreationDisposition$[ebp]
\r
1233 00039 8b 55 f0 mov edx, DWORD PTR _dwShareMode$[ebp]
\r
1238 00040 ff 15 00 00 00
\r
1239 00 call DWORD PTR __imp__CreateFileA@28
\r
1240 00046 8b f8 mov edi, eax
\r
1241 $LN1@win32_open@4:
\r
1244 ; 99 : return win32_build_iowin(hFile);
\r
1246 00048 e8 00 00 00 00 call _win32_build_iowin
\r
1252 0004f 8b e5 mov esp, ebp
\r
1255 _win32_open64_file_func ENDP
\r
1256 PUBLIC _fill_win32_filefunc64W
\r
1257 ; Function compile flags: /Ogtp
\r
1258 ; COMDAT _fill_win32_filefunc64W
\r
1260 _pzlib_filefunc_def$ = 8 ; size = 4
\r
1261 _fill_win32_filefunc64W PROC ; COMDAT
\r
1266 00001 8b ec mov ebp, esp
\r
1268 ; 381 : pzlib_filefunc_def->zopen64_file = win32_open64_file_funcW;
\r
1270 00003 8b 45 08 mov eax, DWORD PTR _pzlib_filefunc_def$[ebp]
\r
1271 00006 c7 00 00 00 00
\r
1272 00 mov DWORD PTR [eax], OFFSET _win32_open64_file_funcW
\r
1274 ; 382 : pzlib_filefunc_def->zread_file = win32_read_file_func;
\r
1276 0000c c7 40 04 00 00
\r
1277 00 00 mov DWORD PTR [eax+4], OFFSET _win32_read_file_func
\r
1279 ; 383 : pzlib_filefunc_def->zwrite_file = win32_write_file_func;
\r
1281 00013 c7 40 08 00 00
\r
1282 00 00 mov DWORD PTR [eax+8], OFFSET _win32_write_file_func
\r
1284 ; 384 : pzlib_filefunc_def->ztell64_file = win32_tell64_file_func;
\r
1286 0001a c7 40 0c 00 00
\r
1287 00 00 mov DWORD PTR [eax+12], OFFSET _win32_tell64_file_func
\r
1289 ; 385 : pzlib_filefunc_def->zseek64_file = win32_seek64_file_func;
\r
1291 00021 c7 40 10 00 00
\r
1292 00 00 mov DWORD PTR [eax+16], OFFSET _win32_seek64_file_func
\r
1294 ; 386 : pzlib_filefunc_def->zclose_file = win32_close_file_func;
\r
1296 00028 c7 40 14 00 00
\r
1297 00 00 mov DWORD PTR [eax+20], OFFSET _win32_close_file_func
\r
1299 ; 387 : pzlib_filefunc_def->zerror_file = win32_error_file_func;
\r
1301 0002f c7 40 18 00 00
\r
1302 00 00 mov DWORD PTR [eax+24], OFFSET _win32_error_file_func
\r
1304 ; 388 : pzlib_filefunc_def->opaque = NULL;
\r
1306 00036 c7 40 1c 00 00
\r
1307 00 00 mov DWORD PTR [eax+28], 0
\r
1313 _fill_win32_filefunc64W ENDP
\r
1315 PUBLIC _fill_win32_filefunc64A
\r
1316 ; Function compile flags: /Ogtp
\r
1317 ; COMDAT _fill_win32_filefunc64A
\r
1319 _pzlib_filefunc_def$ = 8 ; size = 4
\r
1320 _fill_win32_filefunc64A PROC ; COMDAT
\r
1325 00001 8b ec mov ebp, esp
\r
1327 ; 368 : pzlib_filefunc_def->zopen64_file = win32_open64_file_funcA;
\r
1329 00003 8b 45 08 mov eax, DWORD PTR _pzlib_filefunc_def$[ebp]
\r
1330 00006 c7 00 00 00 00
\r
1331 00 mov DWORD PTR [eax], OFFSET _win32_open64_file_funcA
\r
1333 ; 369 : pzlib_filefunc_def->zread_file = win32_read_file_func;
\r
1335 0000c c7 40 04 00 00
\r
1336 00 00 mov DWORD PTR [eax+4], OFFSET _win32_read_file_func
\r
1338 ; 370 : pzlib_filefunc_def->zwrite_file = win32_write_file_func;
\r
1340 00013 c7 40 08 00 00
\r
1341 00 00 mov DWORD PTR [eax+8], OFFSET _win32_write_file_func
\r
1343 ; 371 : pzlib_filefunc_def->ztell64_file = win32_tell64_file_func;
\r
1345 0001a c7 40 0c 00 00
\r
1346 00 00 mov DWORD PTR [eax+12], OFFSET _win32_tell64_file_func
\r
1348 ; 372 : pzlib_filefunc_def->zseek64_file = win32_seek64_file_func;
\r
1350 00021 c7 40 10 00 00
\r
1351 00 00 mov DWORD PTR [eax+16], OFFSET _win32_seek64_file_func
\r
1353 ; 373 : pzlib_filefunc_def->zclose_file = win32_close_file_func;
\r
1355 00028 c7 40 14 00 00
\r
1356 00 00 mov DWORD PTR [eax+20], OFFSET _win32_close_file_func
\r
1358 ; 374 : pzlib_filefunc_def->zerror_file = win32_error_file_func;
\r
1360 0002f c7 40 18 00 00
\r
1361 00 00 mov DWORD PTR [eax+24], OFFSET _win32_error_file_func
\r
1363 ; 375 : pzlib_filefunc_def->opaque = NULL;
\r
1365 00036 c7 40 1c 00 00
\r
1366 00 00 mov DWORD PTR [eax+28], 0
\r
1372 _fill_win32_filefunc64A ENDP
\r
1374 PUBLIC _fill_win32_filefunc64
\r
1375 ; Function compile flags: /Ogtp
\r
1376 ; COMDAT _fill_win32_filefunc64
\r
1378 _pzlib_filefunc_def$ = 8 ; size = 4
\r
1379 _fill_win32_filefunc64 PROC ; COMDAT
\r
1384 00001 8b ec mov ebp, esp
\r
1386 ; 355 : pzlib_filefunc_def->zopen64_file = win32_open64_file_func;
\r
1388 00003 8b 45 08 mov eax, DWORD PTR _pzlib_filefunc_def$[ebp]
\r
1389 00006 c7 00 00 00 00
\r
1390 00 mov DWORD PTR [eax], OFFSET _win32_open64_file_func
\r
1392 ; 356 : pzlib_filefunc_def->zread_file = win32_read_file_func;
\r
1394 0000c c7 40 04 00 00
\r
1395 00 00 mov DWORD PTR [eax+4], OFFSET _win32_read_file_func
\r
1397 ; 357 : pzlib_filefunc_def->zwrite_file = win32_write_file_func;
\r
1399 00013 c7 40 08 00 00
\r
1400 00 00 mov DWORD PTR [eax+8], OFFSET _win32_write_file_func
\r
1402 ; 358 : pzlib_filefunc_def->ztell64_file = win32_tell64_file_func;
\r
1404 0001a c7 40 0c 00 00
\r
1405 00 00 mov DWORD PTR [eax+12], OFFSET _win32_tell64_file_func
\r
1407 ; 359 : pzlib_filefunc_def->zseek64_file = win32_seek64_file_func;
\r
1409 00021 c7 40 10 00 00
\r
1410 00 00 mov DWORD PTR [eax+16], OFFSET _win32_seek64_file_func
\r
1412 ; 360 : pzlib_filefunc_def->zclose_file = win32_close_file_func;
\r
1414 00028 c7 40 14 00 00
\r
1415 00 00 mov DWORD PTR [eax+20], OFFSET _win32_close_file_func
\r
1417 ; 361 : pzlib_filefunc_def->zerror_file = win32_error_file_func;
\r
1419 0002f c7 40 18 00 00
\r
1420 00 00 mov DWORD PTR [eax+24], OFFSET _win32_error_file_func
\r
1422 ; 362 : pzlib_filefunc_def->opaque = NULL;
\r
1424 00036 c7 40 1c 00 00
\r
1425 00 00 mov DWORD PTR [eax+28], 0
\r
1431 _fill_win32_filefunc64 ENDP
\r
1433 PUBLIC _fill_win32_filefunc
\r
1434 ; Function compile flags: /Ogtp
\r
1435 ; COMDAT _fill_win32_filefunc
\r
1437 _pzlib_filefunc_def$ = 8 ; size = 4
\r
1438 _fill_win32_filefunc PROC ; COMDAT
\r
1443 00001 8b ec mov ebp, esp
\r
1445 ; 343 : pzlib_filefunc_def->zopen_file = win32_open_file_func;
\r
1447 00003 8b 45 08 mov eax, DWORD PTR _pzlib_filefunc_def$[ebp]
\r
1448 00006 c7 00 00 00 00
\r
1449 00 mov DWORD PTR [eax], OFFSET _win32_open_file_func
\r
1451 ; 344 : pzlib_filefunc_def->zread_file = win32_read_file_func;
\r
1453 0000c c7 40 04 00 00
\r
1454 00 00 mov DWORD PTR [eax+4], OFFSET _win32_read_file_func
\r
1456 ; 345 : pzlib_filefunc_def->zwrite_file = win32_write_file_func;
\r
1458 00013 c7 40 08 00 00
\r
1459 00 00 mov DWORD PTR [eax+8], OFFSET _win32_write_file_func
\r
1461 ; 346 : pzlib_filefunc_def->ztell_file = win32_tell_file_func;
\r
1463 0001a c7 40 0c 00 00
\r
1464 00 00 mov DWORD PTR [eax+12], OFFSET _win32_tell_file_func
\r
1466 ; 347 : pzlib_filefunc_def->zseek_file = win32_seek_file_func;
\r
1468 00021 c7 40 10 00 00
\r
1469 00 00 mov DWORD PTR [eax+16], OFFSET _win32_seek_file_func
\r
1471 ; 348 : pzlib_filefunc_def->zclose_file = win32_close_file_func;
\r
1473 00028 c7 40 14 00 00
\r
1474 00 00 mov DWORD PTR [eax+20], OFFSET _win32_close_file_func
\r
1476 ; 349 : pzlib_filefunc_def->zerror_file = win32_error_file_func;
\r
1478 0002f c7 40 18 00 00
\r
1479 00 00 mov DWORD PTR [eax+24], OFFSET _win32_error_file_func
\r
1481 ; 350 : pzlib_filefunc_def->opaque = NULL;
\r
1483 00036 c7 40 1c 00 00
\r
1484 00 00 mov DWORD PTR [eax+28], 0
\r
1490 _fill_win32_filefunc ENDP
\r