1 ; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.30319.01
\r
3 TITLE C:\Workspaces\Sysdyn\org.simantics.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 c:\workspaces\sysdyn\org.simantics.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 19 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 ff 15 00 00 00
\r
106 00 call DWORD PTR __imp__free
\r
107 00025 83 c4 04 add esp, 4
\r
111 ; 328 : return ret;
\r
114 00029 8b c6 mov eax, esi
\r
121 _win32_close_file_func ENDP
\r
123 PUBLIC _win32_seek64_file_func
\r
124 ; Function compile flags: /Ogtp
\r
125 ; COMDAT _win32_seek64_file_func
\r
127 _opaque$ = 8 ; size = 4
\r
128 _stream$ = 12 ; size = 4
\r
129 _offset$ = 16 ; size = 8
\r
130 _origin$ = 24 ; size = 4
\r
131 _win32_seek64_file_func PROC ; COMDAT
\r
136 00001 8b ec mov ebp, esp
\r
139 ; 276 : DWORD dwMoveMethod=0xFFFFFFFF;
\r
140 ; 277 : HANDLE hFile = NULL;
\r
141 ; 278 : long ret=-1;
\r
143 ; 280 : if (stream!=NULL)
\r
145 00004 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
146 00007 33 d2 xor edx, edx
\r
147 00009 83 c8 ff or eax, -1
\r
148 0000c 85 f6 test esi, esi
\r
149 0000e 74 02 je SHORT $LN10@win32_seek
\r
151 ; 281 : hFile = ((WIN32FILE_IOWIN*)stream)->hf;
\r
153 00010 8b 16 mov edx, DWORD PTR [esi]
\r
157 ; 283 : switch (origin)
\r
159 00012 8b 4d 18 mov ecx, DWORD PTR _origin$[ebp]
\r
160 00015 83 e9 00 sub ecx, 0
\r
161 00018 74 14 je SHORT $LN5@win32_seek
\r
163 0001b 74 0a je SHORT $LN7@win32_seek
\r
167 ; 294 : default: return -1;
\r
169 0001e 75 32 jne SHORT $LN13@win32_seek
\r
171 ; 288 : case ZLIB_FILEFUNC_SEEK_END :
\r
172 ; 289 : dwMoveMethod = FILE_END;
\r
174 00020 b9 02 00 00 00 mov ecx, 2
\r
178 00025 eb 09 jmp SHORT $LN8@win32_seek
\r
182 ; 285 : case ZLIB_FILEFUNC_SEEK_CUR :
\r
183 ; 286 : dwMoveMethod = FILE_CURRENT;
\r
185 00027 b9 01 00 00 00 mov ecx, 1
\r
189 0002c eb 02 jmp SHORT $LN8@win32_seek
\r
192 ; 291 : case ZLIB_FILEFUNC_SEEK_SET :
\r
193 ; 292 : dwMoveMethod = FILE_BEGIN;
\r
195 0002e 33 c9 xor ecx, ecx
\r
202 00030 85 d2 test edx, edx
\r
203 00032 74 26 je SHORT $LN11@win32_seek
\r
206 ; 299 : LARGE_INTEGER* li = (LARGE_INTEGER*)&offset;
\r
207 ; 300 : DWORD dwSet = SetFilePointer(hFile, li->u.LowPart, &li->u.HighPart, dwMoveMethod);
\r
210 00035 8b 4d 10 mov ecx, DWORD PTR _offset$[ebp]
\r
211 00038 8d 45 14 lea eax, DWORD PTR _offset$[ebp+4]
\r
215 0003e ff 15 00 00 00
\r
216 00 call DWORD PTR __imp__SetFilePointer@16
\r
218 ; 301 : if (dwSet == INVALID_SET_FILE_POINTER)
\r
220 00044 83 f8 ff cmp eax, -1
\r
221 00047 75 0f jne SHORT $LN2@win32_seek
\r
224 ; 303 : DWORD dwErr = GetLastError();
\r
226 00049 ff 15 00 00 00
\r
227 00 call DWORD PTR __imp__GetLastError@0
\r
229 ; 304 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
231 0004f 89 46 04 mov DWORD PTR [esi+4], eax
\r
236 00052 83 c8 ff or eax, -1
\r
240 ; 310 : return ret;
\r
251 00058 33 c0 xor eax, eax
\r
256 ; 310 : return ret;
\r
261 _win32_seek64_file_func ENDP
\r
263 PUBLIC _win32_seek_file_func
\r
264 ; Function compile flags: /Ogtp
\r
265 ; COMDAT _win32_seek_file_func
\r
267 _opaque$ = 8 ; size = 4
\r
268 _stream$ = 12 ; size = 4
\r
269 _offset$ = 16 ; size = 4
\r
270 _origin$ = 20 ; size = 4
\r
271 _win32_seek_file_func PROC ; COMDAT
\r
276 00001 8b ec mov ebp, esp
\r
279 ; 239 : DWORD dwMoveMethod=0xFFFFFFFF;
\r
280 ; 240 : HANDLE hFile = NULL;
\r
282 ; 242 : long ret=-1;
\r
283 ; 243 : if (stream!=NULL)
\r
285 00004 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
286 00007 33 d2 xor edx, edx
\r
287 00009 83 c8 ff or eax, -1
\r
288 0000c 85 f6 test esi, esi
\r
289 0000e 74 02 je SHORT $LN10@win32_seek@2
\r
291 ; 244 : hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
\r
293 00010 8b 16 mov edx, DWORD PTR [esi]
\r
294 $LN10@win32_seek@2:
\r
296 ; 245 : switch (origin)
\r
298 00012 8b 4d 14 mov ecx, DWORD PTR _origin$[ebp]
\r
299 00015 83 e9 00 sub ecx, 0
\r
300 00018 74 14 je SHORT $LN5@win32_seek@2
\r
302 0001b 74 0a je SHORT $LN7@win32_seek@2
\r
306 ; 256 : default: return -1;
\r
308 0001e 75 30 jne SHORT $LN13@win32_seek@2
\r
310 ; 250 : case ZLIB_FILEFUNC_SEEK_END :
\r
311 ; 251 : dwMoveMethod = FILE_END;
\r
313 00020 b9 02 00 00 00 mov ecx, 2
\r
317 00025 eb 09 jmp SHORT $LN8@win32_seek@2
\r
321 ; 247 : case ZLIB_FILEFUNC_SEEK_CUR :
\r
322 ; 248 : dwMoveMethod = FILE_CURRENT;
\r
324 00027 b9 01 00 00 00 mov ecx, 1
\r
328 0002c eb 02 jmp SHORT $LN8@win32_seek@2
\r
331 ; 253 : case ZLIB_FILEFUNC_SEEK_SET :
\r
332 ; 254 : dwMoveMethod = FILE_BEGIN;
\r
334 0002e 33 c9 xor ecx, ecx
\r
339 ; 259 : if (hFile != NULL)
\r
341 00030 85 d2 test edx, edx
\r
342 00032 74 24 je SHORT $LN11@win32_seek@2
\r
345 ; 261 : DWORD dwSet = SetFilePointer(hFile, offset, NULL, dwMoveMethod);
\r
347 00034 8b 45 10 mov eax, DWORD PTR _offset$[ebp]
\r
352 0003c ff 15 00 00 00
\r
353 00 call DWORD PTR __imp__SetFilePointer@16
\r
355 ; 262 : if (dwSet == INVALID_SET_FILE_POINTER)
\r
357 00042 83 f8 ff cmp eax, -1
\r
358 00045 75 0f jne SHORT $LN2@win32_seek@2
\r
361 ; 264 : DWORD dwErr = GetLastError();
\r
363 00047 ff 15 00 00 00
\r
364 00 call DWORD PTR __imp__GetLastError@0
\r
366 ; 265 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
368 0004d 89 46 04 mov DWORD PTR [esi+4], eax
\r
369 $LN13@win32_seek@2:
\r
373 00050 83 c8 ff or eax, -1
\r
377 ; 271 : return ret;
\r
388 00056 33 c0 xor eax, eax
\r
389 $LN11@win32_seek@2:
\r
393 ; 271 : return ret;
\r
398 _win32_seek_file_func ENDP
\r
400 PUBLIC _win32_tell64_file_func
\r
401 ; Function compile flags: /Ogtp
\r
402 ; COMDAT _win32_tell64_file_func
\r
404 _li$82099 = -8 ; size = 8
\r
405 _opaque$ = 8 ; size = 4
\r
406 _stream$ = 12 ; size = 4
\r
407 _win32_tell64_file_func PROC ; COMDAT
\r
412 00001 8b ec mov ebp, esp
\r
413 00003 83 e4 f8 and esp, -8 ; fffffff8H
\r
414 00006 83 ec 08 sub esp, 8
\r
417 ; 214 : ZPOS64_T ret= (ZPOS64_T)-1;
\r
418 ; 215 : HANDLE hFile = NULL;
\r
419 ; 216 : if (stream!=NULL)
\r
421 0000a 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
423 0000e 33 ff xor edi, edi
\r
424 00010 83 c8 ff or eax, -1
\r
425 00013 83 ca ff or edx, -1
\r
426 00016 3b f7 cmp esi, edi
\r
427 00018 74 4b je SHORT $LN1@win32_tell
\r
429 ; 217 : hFile = ((WIN32FILE_IOWIN*)stream)->hf;
\r
431 0001a 8b 0e mov ecx, DWORD PTR [esi]
\r
436 0001c 3b cf cmp ecx, edi
\r
437 0001e 74 45 je SHORT $LN1@win32_tell
\r
440 ; 221 : LARGE_INTEGER li;
\r
441 ; 222 : li.QuadPart = 0;
\r
442 ; 223 : li.u.LowPart = SetFilePointer(hFile, li.u.LowPart, &li.u.HighPart, FILE_CURRENT);
\r
445 00022 8d 44 24 10 lea eax, DWORD PTR _li$82099[esp+24]
\r
449 00029 89 7c 24 18 mov DWORD PTR _li$82099[esp+32], edi
\r
450 0002d 89 7c 24 1c mov DWORD PTR _li$82099[esp+36], edi
\r
451 00031 ff 15 00 00 00
\r
452 00 call DWORD PTR __imp__SetFilePointer@16
\r
453 00037 89 44 24 08 mov DWORD PTR _li$82099[esp+16], eax
\r
455 ; 224 : if ( (li.LowPart == 0xFFFFFFFF) && (GetLastError() != NO_ERROR))
\r
457 0003b 83 f8 ff cmp eax, -1
\r
458 0003e 75 21 jne SHORT $LN2@win32_tell
\r
459 00040 8b 3d 00 00 00
\r
460 00 mov edi, DWORD PTR __imp__GetLastError@0
\r
461 00046 ff d7 call edi
\r
462 00048 85 c0 test eax, eax
\r
463 0004a 74 11 je SHORT $LN9@win32_tell
\r
466 ; 226 : DWORD dwErr = GetLastError();
\r
468 0004c ff d7 call edi
\r
470 ; 227 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
472 0004e 89 46 04 mov DWORD PTR [esi+4], eax
\r
474 ; 228 : ret = (ZPOS64_T)-1;
\r
476 00051 83 c8 ff or eax, -1
\r
477 00054 83 ca ff or edx, -1
\r
480 ; 233 : return ret;
\r
485 00059 8b e5 mov esp, ebp
\r
493 0005d 8b 44 24 08 mov eax, DWORD PTR _li$82099[esp+16]
\r
496 ; 231 : ret=li.QuadPart;
\r
498 00061 8b 54 24 0c mov edx, DWORD PTR _li$82099[esp+20]
\r
502 ; 233 : return ret;
\r
507 00067 8b e5 mov esp, ebp
\r
510 _win32_tell64_file_func ENDP
\r
512 PUBLIC _win32_tell_file_func
\r
513 ; Function compile flags: /Ogtp
\r
514 ; COMDAT _win32_tell_file_func
\r
516 _opaque$ = 8 ; size = 4
\r
517 _stream$ = 12 ; size = 4
\r
518 _win32_tell_file_func PROC ; COMDAT
\r
523 00001 8b ec mov ebp, esp
\r
526 ; 193 : long ret=-1;
\r
527 ; 194 : HANDLE hFile = NULL;
\r
528 ; 195 : if (stream!=NULL)
\r
530 00004 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
531 00007 83 c8 ff or eax, -1
\r
532 0000a 85 f6 test esi, esi
\r
533 0000c 74 24 je SHORT $LN1@win32_tell@2
\r
535 ; 196 : hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
\r
537 0000e 8b 0e mov ecx, DWORD PTR [esi]
\r
539 ; 197 : if (hFile != NULL)
\r
541 00010 85 c9 test ecx, ecx
\r
542 00012 74 1e je SHORT $LN1@win32_tell@2
\r
545 ; 199 : DWORD dwSet = SetFilePointer(hFile, 0, NULL, FILE_CURRENT);
\r
551 0001b ff 15 00 00 00
\r
552 00 call DWORD PTR __imp__SetFilePointer@16
\r
554 ; 200 : if (dwSet == INVALID_SET_FILE_POINTER)
\r
556 00021 83 f8 ff cmp eax, -1
\r
557 00024 75 0c jne SHORT $LN1@win32_tell@2
\r
560 ; 202 : DWORD dwErr = GetLastError();
\r
562 00026 ff 15 00 00 00
\r
563 00 call DWORD PTR __imp__GetLastError@0
\r
565 ; 203 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
567 0002c 89 46 04 mov DWORD PTR [esi+4], eax
\r
571 0002f 83 c8 ff or eax, -1
\r
577 ; 207 : ret=(long)dwSet;
\r
579 ; 209 : return ret;
\r
584 _win32_tell_file_func ENDP
\r
586 PUBLIC _win32_write_file_func
\r
587 ; Function compile flags: /Ogtp
\r
588 ; COMDAT _win32_write_file_func
\r
590 _ret$ = -4 ; size = 4
\r
591 _opaque$ = 8 ; size = 4
\r
592 _stream$ = 12 ; size = 4
\r
593 _buf$ = 16 ; size = 4
\r
594 _size$ = 20 ; size = 4
\r
595 _win32_write_file_func PROC ; COMDAT
\r
600 00001 8b ec mov ebp, esp
\r
604 ; 172 : uLong ret=0;
\r
605 ; 173 : HANDLE hFile = NULL;
\r
606 ; 174 : if (stream!=NULL)
\r
608 00005 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
609 00008 33 c0 xor eax, eax
\r
610 0000a 89 45 fc mov DWORD PTR _ret$[ebp], eax
\r
611 0000d 85 f6 test esi, esi
\r
612 0000f 74 31 je SHORT $LN2@win32_writ
\r
614 ; 175 : hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
\r
616 00011 8b 0e mov ecx, DWORD PTR [esi]
\r
619 ; 177 : if (hFile != NULL)
\r
621 00013 85 c9 test ecx, ecx
\r
622 00015 74 2b je SHORT $LN2@win32_writ
\r
625 ; 179 : if (!WriteFile(hFile, buf, size, &ret, NULL))
\r
627 00017 8b 55 14 mov edx, DWORD PTR _size$[ebp]
\r
629 0001b 8d 45 fc lea eax, DWORD PTR _ret$[ebp]
\r
631 0001f 8b 45 10 mov eax, DWORD PTR _buf$[ebp]
\r
635 00025 ff 15 00 00 00
\r
636 00 call DWORD PTR __imp__WriteFile@20
\r
637 0002b 85 c0 test eax, eax
\r
638 0002d 75 10 jne SHORT $LN7@win32_writ
\r
641 ; 181 : DWORD dwErr = GetLastError();
\r
643 0002f ff 15 00 00 00
\r
644 00 call DWORD PTR __imp__GetLastError@0
\r
646 ; 182 : if (dwErr == ERROR_HANDLE_EOF)
\r
648 00035 83 f8 26 cmp eax, 38 ; 00000026H
\r
649 00038 75 02 jne SHORT $LN1@win32_writ
\r
653 0003a 33 c0 xor eax, eax
\r
656 ; 184 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
658 0003c 89 46 04 mov DWORD PTR [esi+4], eax
\r
664 ; 188 : return ret;
\r
666 0003f 8b 45 fc mov eax, DWORD PTR _ret$[ebp]
\r
672 00043 8b e5 mov esp, ebp
\r
675 _win32_write_file_func ENDP
\r
677 PUBLIC _win32_read_file_func
\r
678 ; Function compile flags: /Ogtp
\r
679 ; COMDAT _win32_read_file_func
\r
681 _ret$ = -4 ; size = 4
\r
682 _opaque$ = 8 ; size = 4
\r
683 _stream$ = 12 ; size = 4
\r
684 _buf$ = 16 ; size = 4
\r
685 _size$ = 20 ; size = 4
\r
686 _win32_read_file_func PROC ; COMDAT
\r
691 00001 8b ec mov ebp, esp
\r
695 ; 150 : uLong ret=0;
\r
696 ; 151 : HANDLE hFile = NULL;
\r
697 ; 152 : if (stream!=NULL)
\r
699 00005 8b 75 0c mov esi, DWORD PTR _stream$[ebp]
\r
700 00008 33 c0 xor eax, eax
\r
701 0000a 89 45 fc mov DWORD PTR _ret$[ebp], eax
\r
702 0000d 85 f6 test esi, esi
\r
703 0000f 74 31 je SHORT $LN2@win32_read
\r
705 ; 153 : hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
\r
707 00011 8b 0e mov ecx, DWORD PTR [esi]
\r
710 ; 155 : if (hFile != NULL)
\r
712 00013 85 c9 test ecx, ecx
\r
713 00015 74 2b je SHORT $LN2@win32_read
\r
716 ; 157 : if (!ReadFile(hFile, buf, size, &ret, NULL))
\r
718 00017 8b 55 14 mov edx, DWORD PTR _size$[ebp]
\r
720 0001b 8d 45 fc lea eax, DWORD PTR _ret$[ebp]
\r
722 0001f 8b 45 10 mov eax, DWORD PTR _buf$[ebp]
\r
726 00025 ff 15 00 00 00
\r
727 00 call DWORD PTR __imp__ReadFile@20
\r
728 0002b 85 c0 test eax, eax
\r
729 0002d 75 10 jne SHORT $LN7@win32_read
\r
732 ; 159 : DWORD dwErr = GetLastError();
\r
734 0002f ff 15 00 00 00
\r
735 00 call DWORD PTR __imp__GetLastError@0
\r
737 ; 160 : if (dwErr == ERROR_HANDLE_EOF)
\r
739 00035 83 f8 26 cmp eax, 38 ; 00000026H
\r
740 00038 75 02 jne SHORT $LN1@win32_read
\r
744 0003a 33 c0 xor eax, eax
\r
747 ; 162 : ((WIN32FILE_IOWIN*)stream) -> error=(int)dwErr;
\r
749 0003c 89 46 04 mov DWORD PTR [esi+4], eax
\r
755 ; 166 : return ret;
\r
757 0003f 8b 45 fc mov eax, DWORD PTR _ret$[ebp]
\r
763 00043 8b e5 mov esp, ebp
\r
766 _win32_read_file_func ENDP
\r
767 ; Function compile flags: /Ogtp
\r
769 ; COMDAT _win32_build_iowin
\r
771 _win32_build_iowin PROC ; COMDAT
\r
774 ; 71 : voidpf ret=NULL;
\r
776 00000 33 c0 xor eax, eax
\r
779 ; 73 : if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE))
\r
781 00002 85 ff test edi, edi
\r
782 00004 74 2d je SHORT $LN1@win32_buil
\r
783 00006 83 ff ff cmp edi, -1
\r
784 00009 74 28 je SHORT $LN1@win32_buil
\r
787 ; 75 : WIN32FILE_IOWIN w32fiow;
\r
788 ; 76 : w32fiow.hf = hFile;
\r
789 ; 77 : w32fiow.error = 0;
\r
790 ; 78 : ret = malloc(sizeof(WIN32FILE_IOWIN));
\r
795 0000f 33 db xor ebx, ebx
\r
796 00011 ff 15 00 00 00
\r
797 00 call DWORD PTR __imp__malloc
\r
798 00017 8b f0 mov esi, eax
\r
799 00019 83 c4 04 add esp, 4
\r
802 ; 80 : if (ret==NULL)
\r
804 0001c 85 f6 test esi, esi
\r
805 0001e 75 0c jne SHORT $LN2@win32_buil
\r
807 ; 81 : CloseHandle(hFile);
\r
810 00021 ff 15 00 00 00
\r
811 00 call DWORD PTR __imp__CloseHandle@4
\r
816 00027 8b c6 mov eax, esi
\r
826 ; 83 : *((WIN32FILE_IOWIN*)ret) = w32fiow;
\r
828 0002c 89 5e 04 mov DWORD PTR [esi+4], ebx
\r
829 0002f 89 3e mov DWORD PTR [esi], edi
\r
837 _win32_build_iowin ENDP
\r
838 ; Function compile flags: /Ogtp
\r
840 ; COMDAT _win32_translate_open_mode
\r
842 _lpdwFlagsAndAttributes$ = 8 ; size = 4
\r
843 _win32_translate_open_mode PROC ; COMDAT
\r
845 ; _lpdwDesiredAccess$ = ecx
\r
846 ; _lpdwCreationDisposition$ = eax
\r
847 ; _lpdwShareMode$ = esi
\r
852 00001 8b ec mov ebp, esp
\r
856 ; 49 : *lpdwDesiredAccess = *lpdwShareMode = *lpdwFlagsAndAttributes = *lpdwCreationDisposition = 0;
\r
858 00005 8b 7d 08 mov edi, DWORD PTR _lpdwFlagsAndAttributes$[ebp]
\r
861 ; 51 : if ((mode & ZLIB_FILEFUNC_MODE_READWRITEFILTER)==ZLIB_FILEFUNC_MODE_READ)
\r
863 00008 8b da mov ebx, edx
\r
864 0000a 80 e3 03 and bl, 3
\r
865 0000d c7 07 00 00 00
\r
866 00 mov DWORD PTR [edi], 0
\r
868 00014 80 fb 01 cmp bl, 1
\r
869 00017 c7 00 00 00 00
\r
870 00 mov DWORD PTR [eax], 0
\r
871 0001d c7 06 00 00 00
\r
872 00 mov DWORD PTR [esi], 0
\r
873 00023 c7 01 00 00 00
\r
874 00 mov DWORD PTR [ecx], 0
\r
876 0002a 75 14 jne SHORT $LN5@win32_tran
\r
879 ; 53 : *lpdwDesiredAccess = GENERIC_READ;
\r
881 0002c c7 01 00 00 00
\r
882 80 mov DWORD PTR [ecx], -2147483648 ; 80000000H
\r
884 ; 54 : *lpdwCreationDisposition = OPEN_EXISTING;
\r
886 00032 c7 00 03 00 00
\r
887 00 mov DWORD PTR [eax], 3
\r
889 ; 55 : *lpdwShareMode = FILE_SHARE_READ;
\r
891 00038 c7 06 01 00 00
\r
892 00 mov DWORD PTR [esi], 1
\r
902 ; 57 : else if (mode & ZLIB_FILEFUNC_MODE_EXISTING)
\r
904 00040 f6 c2 04 test dl, 4
\r
905 00043 74 0e je SHORT $LN3@win32_tran
\r
908 ; 59 : *lpdwDesiredAccess = GENERIC_WRITE | GENERIC_READ;
\r
909 ; 60 : *lpdwCreationDisposition = OPEN_EXISTING;
\r
911 00045 c7 00 03 00 00
\r
912 00 mov DWORD PTR [eax], 3
\r
915 ; 64 : *lpdwDesiredAccess = GENERIC_WRITE | GENERIC_READ;
\r
917 0004b c7 01 00 00 00
\r
918 c0 mov DWORD PTR [ecx], -1073741824 ; c0000000H
\r
928 ; 62 : else if (mode & ZLIB_FILEFUNC_MODE_CREATE)
\r
930 00053 f6 c2 08 test dl, 8
\r
931 00056 74 0c je SHORT $LN1@win32_tran
\r
933 ; 65 : *lpdwCreationDisposition = CREATE_ALWAYS;
\r
935 00058 c7 00 02 00 00
\r
936 00 mov DWORD PTR [eax], 2
\r
937 0005e c7 01 00 00 00
\r
938 c0 mov DWORD PTR [ecx], -1073741824 ; c0000000H
\r
946 _win32_translate_open_mode ENDP
\r
947 PUBLIC _win32_open_file_func
\r
948 ; Function compile flags: /Ogtp
\r
949 ; COMDAT _win32_open_file_func
\r
951 _dwShareMode$ = -16 ; size = 4
\r
952 _dwCreationDisposition$ = -12 ; size = 4
\r
953 _dwFlagsAndAttributes$ = -8 ; size = 4
\r
954 _dwDesiredAccess$ = -4 ; size = 4
\r
955 _opaque$ = 8 ; size = 4
\r
956 _filename$ = 12 ; size = 4
\r
957 _mode$ = 16 ; size = 4
\r
958 _win32_open_file_func PROC ; COMDAT
\r
963 00001 8b ec mov ebp, esp
\r
965 ; 135 : const char* mode_fopen = NULL;
\r
966 ; 136 : DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
\r
967 ; 137 : HANDLE hFile = NULL;
\r
969 ; 139 : win32_translate_open_mode(mode,&dwDesiredAccess,&dwCreationDisposition,&dwShareMode,&dwFlagsAndAttributes);
\r
971 00003 8b 55 10 mov edx, DWORD PTR _mode$[ebp]
\r
972 00006 83 ec 10 sub esp, 16 ; 00000010H
\r
975 0000b 8d 45 f8 lea eax, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
977 0000f 8d 75 f0 lea esi, DWORD PTR _dwShareMode$[ebp]
\r
978 00012 8d 45 f4 lea eax, DWORD PTR _dwCreationDisposition$[ebp]
\r
979 00015 8d 4d fc lea ecx, DWORD PTR _dwDesiredAccess$[ebp]
\r
980 00018 33 ff xor edi, edi
\r
981 0001a e8 00 00 00 00 call _win32_translate_open_mode
\r
984 ; 141 : if ((filename!=NULL) && (dwDesiredAccess != 0))
\r
986 0001f 8b 4d 0c mov ecx, DWORD PTR _filename$[ebp]
\r
987 00022 83 c4 04 add esp, 4
\r
988 00025 85 c9 test ecx, ecx
\r
989 00027 74 1f je SHORT $LN1@win32_open
\r
990 00029 8b 45 fc mov eax, DWORD PTR _dwDesiredAccess$[ebp]
\r
991 0002c 85 c0 test eax, eax
\r
992 0002e 74 18 je SHORT $LN1@win32_open
\r
994 ; 142 : hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
\r
996 00030 8b 55 f8 mov edx, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
999 00035 8b 55 f4 mov edx, DWORD PTR _dwCreationDisposition$[ebp]
\r
1001 00039 8b 55 f0 mov edx, DWORD PTR _dwShareMode$[ebp]
\r
1006 00040 ff 15 00 00 00
\r
1007 00 call DWORD PTR __imp__CreateFileA@28
\r
1008 00046 8b f8 mov edi, eax
\r
1012 ; 144 : return win32_build_iowin(hFile);
\r
1014 00048 e8 00 00 00 00 call _win32_build_iowin
\r
1020 0004f 8b e5 mov esp, ebp
\r
1023 _win32_open_file_func ENDP
\r
1025 PUBLIC _win32_open64_file_funcW
\r
1026 ; Function compile flags: /Ogtp
\r
1027 ; COMDAT _win32_open64_file_funcW
\r
1029 _dwShareMode$ = -16 ; size = 4
\r
1030 _dwCreationDisposition$ = -12 ; size = 4
\r
1031 _dwFlagsAndAttributes$ = -8 ; size = 4
\r
1032 _dwDesiredAccess$ = -4 ; size = 4
\r
1033 _opaque$ = 8 ; size = 4
\r
1034 _filename$ = 12 ; size = 4
\r
1035 _mode$ = 16 ; size = 4
\r
1036 _win32_open64_file_funcW PROC ; COMDAT
\r
1041 00001 8b ec mov ebp, esp
\r
1043 ; 120 : const char* mode_fopen = NULL;
\r
1044 ; 121 : DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
\r
1045 ; 122 : HANDLE hFile = NULL;
\r
1047 ; 124 : win32_translate_open_mode(mode,&dwDesiredAccess,&dwCreationDisposition,&dwShareMode,&dwFlagsAndAttributes);
\r
1049 00003 8b 55 10 mov edx, DWORD PTR _mode$[ebp]
\r
1050 00006 83 ec 10 sub esp, 16 ; 00000010H
\r
1053 0000b 8d 45 f8 lea eax, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1055 0000f 8d 75 f0 lea esi, DWORD PTR _dwShareMode$[ebp]
\r
1056 00012 8d 45 f4 lea eax, DWORD PTR _dwCreationDisposition$[ebp]
\r
1057 00015 8d 4d fc lea ecx, DWORD PTR _dwDesiredAccess$[ebp]
\r
1058 00018 33 ff xor edi, edi
\r
1059 0001a e8 00 00 00 00 call _win32_translate_open_mode
\r
1062 ; 126 : if ((filename!=NULL) && (dwDesiredAccess != 0))
\r
1064 0001f 8b 4d 0c mov ecx, DWORD PTR _filename$[ebp]
\r
1065 00022 83 c4 04 add esp, 4
\r
1066 00025 85 c9 test ecx, ecx
\r
1067 00027 74 1f je SHORT $LN1@win32_open@2
\r
1068 00029 8b 45 fc mov eax, DWORD PTR _dwDesiredAccess$[ebp]
\r
1069 0002c 85 c0 test eax, eax
\r
1070 0002e 74 18 je SHORT $LN1@win32_open@2
\r
1072 ; 127 : hFile = CreateFileW((LPCWSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
\r
1074 00030 8b 55 f8 mov edx, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1077 00035 8b 55 f4 mov edx, DWORD PTR _dwCreationDisposition$[ebp]
\r
1079 00039 8b 55 f0 mov edx, DWORD PTR _dwShareMode$[ebp]
\r
1084 00040 ff 15 00 00 00
\r
1085 00 call DWORD PTR __imp__CreateFileW@28
\r
1086 00046 8b f8 mov edi, eax
\r
1087 $LN1@win32_open@2:
\r
1090 ; 129 : return win32_build_iowin(hFile);
\r
1092 00048 e8 00 00 00 00 call _win32_build_iowin
\r
1098 0004f 8b e5 mov esp, ebp
\r
1101 _win32_open64_file_funcW ENDP
\r
1103 PUBLIC _win32_open64_file_funcA
\r
1104 ; Function compile flags: /Ogtp
\r
1105 ; COMDAT _win32_open64_file_funcA
\r
1107 _dwShareMode$ = -16 ; size = 4
\r
1108 _dwCreationDisposition$ = -12 ; size = 4
\r
1109 _dwFlagsAndAttributes$ = -8 ; size = 4
\r
1110 _dwDesiredAccess$ = -4 ; size = 4
\r
1111 _opaque$ = 8 ; size = 4
\r
1112 _filename$ = 12 ; size = 4
\r
1113 _mode$ = 16 ; size = 4
\r
1114 _win32_open64_file_funcA PROC ; COMDAT
\r
1119 00001 8b ec mov ebp, esp
\r
1121 ; 105 : const char* mode_fopen = NULL;
\r
1122 ; 106 : DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
\r
1123 ; 107 : HANDLE hFile = NULL;
\r
1125 ; 109 : win32_translate_open_mode(mode,&dwDesiredAccess,&dwCreationDisposition,&dwShareMode,&dwFlagsAndAttributes);
\r
1127 00003 8b 55 10 mov edx, DWORD PTR _mode$[ebp]
\r
1128 00006 83 ec 10 sub esp, 16 ; 00000010H
\r
1131 0000b 8d 45 f8 lea eax, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1133 0000f 8d 75 f0 lea esi, DWORD PTR _dwShareMode$[ebp]
\r
1134 00012 8d 45 f4 lea eax, DWORD PTR _dwCreationDisposition$[ebp]
\r
1135 00015 8d 4d fc lea ecx, DWORD PTR _dwDesiredAccess$[ebp]
\r
1136 00018 33 ff xor edi, edi
\r
1137 0001a e8 00 00 00 00 call _win32_translate_open_mode
\r
1140 ; 111 : if ((filename!=NULL) && (dwDesiredAccess != 0))
\r
1142 0001f 8b 4d 0c mov ecx, DWORD PTR _filename$[ebp]
\r
1143 00022 83 c4 04 add esp, 4
\r
1144 00025 85 c9 test ecx, ecx
\r
1145 00027 74 1f je SHORT $LN1@win32_open@3
\r
1146 00029 8b 45 fc mov eax, DWORD PTR _dwDesiredAccess$[ebp]
\r
1147 0002c 85 c0 test eax, eax
\r
1148 0002e 74 18 je SHORT $LN1@win32_open@3
\r
1150 ; 112 : hFile = CreateFileA((LPCSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
\r
1152 00030 8b 55 f8 mov edx, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1155 00035 8b 55 f4 mov edx, DWORD PTR _dwCreationDisposition$[ebp]
\r
1157 00039 8b 55 f0 mov edx, DWORD PTR _dwShareMode$[ebp]
\r
1162 00040 ff 15 00 00 00
\r
1163 00 call DWORD PTR __imp__CreateFileA@28
\r
1164 00046 8b f8 mov edi, eax
\r
1165 $LN1@win32_open@3:
\r
1168 ; 114 : return win32_build_iowin(hFile);
\r
1170 00048 e8 00 00 00 00 call _win32_build_iowin
\r
1176 0004f 8b e5 mov esp, ebp
\r
1179 _win32_open64_file_funcA ENDP
\r
1181 PUBLIC _win32_open64_file_func
\r
1182 ; Function compile flags: /Ogtp
\r
1183 ; COMDAT _win32_open64_file_func
\r
1185 _dwShareMode$ = -16 ; size = 4
\r
1186 _dwCreationDisposition$ = -12 ; size = 4
\r
1187 _dwFlagsAndAttributes$ = -8 ; size = 4
\r
1188 _dwDesiredAccess$ = -4 ; size = 4
\r
1189 _opaque$ = 8 ; size = 4
\r
1190 _filename$ = 12 ; size = 4
\r
1191 _mode$ = 16 ; size = 4
\r
1192 _win32_open64_file_func PROC ; COMDAT
\r
1197 00001 8b ec mov ebp, esp
\r
1199 ; 90 : const char* mode_fopen = NULL;
\r
1200 ; 91 : DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
\r
1201 ; 92 : HANDLE hFile = NULL;
\r
1203 ; 94 : win32_translate_open_mode(mode,&dwDesiredAccess,&dwCreationDisposition,&dwShareMode,&dwFlagsAndAttributes);
\r
1205 00003 8b 55 10 mov edx, DWORD PTR _mode$[ebp]
\r
1206 00006 83 ec 10 sub esp, 16 ; 00000010H
\r
1209 0000b 8d 45 f8 lea eax, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1211 0000f 8d 75 f0 lea esi, DWORD PTR _dwShareMode$[ebp]
\r
1212 00012 8d 45 f4 lea eax, DWORD PTR _dwCreationDisposition$[ebp]
\r
1213 00015 8d 4d fc lea ecx, DWORD PTR _dwDesiredAccess$[ebp]
\r
1214 00018 33 ff xor edi, edi
\r
1215 0001a e8 00 00 00 00 call _win32_translate_open_mode
\r
1218 ; 96 : if ((filename!=NULL) && (dwDesiredAccess != 0))
\r
1220 0001f 8b 4d 0c mov ecx, DWORD PTR _filename$[ebp]
\r
1221 00022 83 c4 04 add esp, 4
\r
1222 00025 85 c9 test ecx, ecx
\r
1223 00027 74 1f je SHORT $LN1@win32_open@4
\r
1224 00029 8b 45 fc mov eax, DWORD PTR _dwDesiredAccess$[ebp]
\r
1225 0002c 85 c0 test eax, eax
\r
1226 0002e 74 18 je SHORT $LN1@win32_open@4
\r
1228 ; 97 : hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
\r
1230 00030 8b 55 f8 mov edx, DWORD PTR _dwFlagsAndAttributes$[ebp]
\r
1233 00035 8b 55 f4 mov edx, DWORD PTR _dwCreationDisposition$[ebp]
\r
1235 00039 8b 55 f0 mov edx, DWORD PTR _dwShareMode$[ebp]
\r
1240 00040 ff 15 00 00 00
\r
1241 00 call DWORD PTR __imp__CreateFileA@28
\r
1242 00046 8b f8 mov edi, eax
\r
1243 $LN1@win32_open@4:
\r
1246 ; 99 : return win32_build_iowin(hFile);
\r
1248 00048 e8 00 00 00 00 call _win32_build_iowin
\r
1254 0004f 8b e5 mov esp, ebp
\r
1257 _win32_open64_file_func ENDP
\r
1258 PUBLIC _fill_win32_filefunc64W
\r
1259 ; Function compile flags: /Ogtp
\r
1260 ; COMDAT _fill_win32_filefunc64W
\r
1262 _pzlib_filefunc_def$ = 8 ; size = 4
\r
1263 _fill_win32_filefunc64W PROC ; COMDAT
\r
1268 00001 8b ec mov ebp, esp
\r
1270 ; 381 : pzlib_filefunc_def->zopen64_file = win32_open64_file_funcW;
\r
1272 00003 8b 45 08 mov eax, DWORD PTR _pzlib_filefunc_def$[ebp]
\r
1273 00006 c7 00 00 00 00
\r
1274 00 mov DWORD PTR [eax], OFFSET _win32_open64_file_funcW
\r
1276 ; 382 : pzlib_filefunc_def->zread_file = win32_read_file_func;
\r
1278 0000c c7 40 04 00 00
\r
1279 00 00 mov DWORD PTR [eax+4], OFFSET _win32_read_file_func
\r
1281 ; 383 : pzlib_filefunc_def->zwrite_file = win32_write_file_func;
\r
1283 00013 c7 40 08 00 00
\r
1284 00 00 mov DWORD PTR [eax+8], OFFSET _win32_write_file_func
\r
1286 ; 384 : pzlib_filefunc_def->ztell64_file = win32_tell64_file_func;
\r
1288 0001a c7 40 0c 00 00
\r
1289 00 00 mov DWORD PTR [eax+12], OFFSET _win32_tell64_file_func
\r
1291 ; 385 : pzlib_filefunc_def->zseek64_file = win32_seek64_file_func;
\r
1293 00021 c7 40 10 00 00
\r
1294 00 00 mov DWORD PTR [eax+16], OFFSET _win32_seek64_file_func
\r
1296 ; 386 : pzlib_filefunc_def->zclose_file = win32_close_file_func;
\r
1298 00028 c7 40 14 00 00
\r
1299 00 00 mov DWORD PTR [eax+20], OFFSET _win32_close_file_func
\r
1301 ; 387 : pzlib_filefunc_def->zerror_file = win32_error_file_func;
\r
1303 0002f c7 40 18 00 00
\r
1304 00 00 mov DWORD PTR [eax+24], OFFSET _win32_error_file_func
\r
1306 ; 388 : pzlib_filefunc_def->opaque = NULL;
\r
1308 00036 c7 40 1c 00 00
\r
1309 00 00 mov DWORD PTR [eax+28], 0
\r
1315 _fill_win32_filefunc64W ENDP
\r
1317 PUBLIC _fill_win32_filefunc64A
\r
1318 ; Function compile flags: /Ogtp
\r
1319 ; COMDAT _fill_win32_filefunc64A
\r
1321 _pzlib_filefunc_def$ = 8 ; size = 4
\r
1322 _fill_win32_filefunc64A PROC ; COMDAT
\r
1327 00001 8b ec mov ebp, esp
\r
1329 ; 368 : pzlib_filefunc_def->zopen64_file = win32_open64_file_funcA;
\r
1331 00003 8b 45 08 mov eax, DWORD PTR _pzlib_filefunc_def$[ebp]
\r
1332 00006 c7 00 00 00 00
\r
1333 00 mov DWORD PTR [eax], OFFSET _win32_open64_file_funcA
\r
1335 ; 369 : pzlib_filefunc_def->zread_file = win32_read_file_func;
\r
1337 0000c c7 40 04 00 00
\r
1338 00 00 mov DWORD PTR [eax+4], OFFSET _win32_read_file_func
\r
1340 ; 370 : pzlib_filefunc_def->zwrite_file = win32_write_file_func;
\r
1342 00013 c7 40 08 00 00
\r
1343 00 00 mov DWORD PTR [eax+8], OFFSET _win32_write_file_func
\r
1345 ; 371 : pzlib_filefunc_def->ztell64_file = win32_tell64_file_func;
\r
1347 0001a c7 40 0c 00 00
\r
1348 00 00 mov DWORD PTR [eax+12], OFFSET _win32_tell64_file_func
\r
1350 ; 372 : pzlib_filefunc_def->zseek64_file = win32_seek64_file_func;
\r
1352 00021 c7 40 10 00 00
\r
1353 00 00 mov DWORD PTR [eax+16], OFFSET _win32_seek64_file_func
\r
1355 ; 373 : pzlib_filefunc_def->zclose_file = win32_close_file_func;
\r
1357 00028 c7 40 14 00 00
\r
1358 00 00 mov DWORD PTR [eax+20], OFFSET _win32_close_file_func
\r
1360 ; 374 : pzlib_filefunc_def->zerror_file = win32_error_file_func;
\r
1362 0002f c7 40 18 00 00
\r
1363 00 00 mov DWORD PTR [eax+24], OFFSET _win32_error_file_func
\r
1365 ; 375 : pzlib_filefunc_def->opaque = NULL;
\r
1367 00036 c7 40 1c 00 00
\r
1368 00 00 mov DWORD PTR [eax+28], 0
\r
1374 _fill_win32_filefunc64A ENDP
\r
1376 PUBLIC _fill_win32_filefunc64
\r
1377 ; Function compile flags: /Ogtp
\r
1378 ; COMDAT _fill_win32_filefunc64
\r
1380 _pzlib_filefunc_def$ = 8 ; size = 4
\r
1381 _fill_win32_filefunc64 PROC ; COMDAT
\r
1386 00001 8b ec mov ebp, esp
\r
1388 ; 355 : pzlib_filefunc_def->zopen64_file = win32_open64_file_func;
\r
1390 00003 8b 45 08 mov eax, DWORD PTR _pzlib_filefunc_def$[ebp]
\r
1391 00006 c7 00 00 00 00
\r
1392 00 mov DWORD PTR [eax], OFFSET _win32_open64_file_func
\r
1394 ; 356 : pzlib_filefunc_def->zread_file = win32_read_file_func;
\r
1396 0000c c7 40 04 00 00
\r
1397 00 00 mov DWORD PTR [eax+4], OFFSET _win32_read_file_func
\r
1399 ; 357 : pzlib_filefunc_def->zwrite_file = win32_write_file_func;
\r
1401 00013 c7 40 08 00 00
\r
1402 00 00 mov DWORD PTR [eax+8], OFFSET _win32_write_file_func
\r
1404 ; 358 : pzlib_filefunc_def->ztell64_file = win32_tell64_file_func;
\r
1406 0001a c7 40 0c 00 00
\r
1407 00 00 mov DWORD PTR [eax+12], OFFSET _win32_tell64_file_func
\r
1409 ; 359 : pzlib_filefunc_def->zseek64_file = win32_seek64_file_func;
\r
1411 00021 c7 40 10 00 00
\r
1412 00 00 mov DWORD PTR [eax+16], OFFSET _win32_seek64_file_func
\r
1414 ; 360 : pzlib_filefunc_def->zclose_file = win32_close_file_func;
\r
1416 00028 c7 40 14 00 00
\r
1417 00 00 mov DWORD PTR [eax+20], OFFSET _win32_close_file_func
\r
1419 ; 361 : pzlib_filefunc_def->zerror_file = win32_error_file_func;
\r
1421 0002f c7 40 18 00 00
\r
1422 00 00 mov DWORD PTR [eax+24], OFFSET _win32_error_file_func
\r
1424 ; 362 : pzlib_filefunc_def->opaque = NULL;
\r
1426 00036 c7 40 1c 00 00
\r
1427 00 00 mov DWORD PTR [eax+28], 0
\r
1433 _fill_win32_filefunc64 ENDP
\r
1435 PUBLIC _fill_win32_filefunc
\r
1436 ; Function compile flags: /Ogtp
\r
1437 ; COMDAT _fill_win32_filefunc
\r
1439 _pzlib_filefunc_def$ = 8 ; size = 4
\r
1440 _fill_win32_filefunc PROC ; COMDAT
\r
1445 00001 8b ec mov ebp, esp
\r
1447 ; 343 : pzlib_filefunc_def->zopen_file = win32_open_file_func;
\r
1449 00003 8b 45 08 mov eax, DWORD PTR _pzlib_filefunc_def$[ebp]
\r
1450 00006 c7 00 00 00 00
\r
1451 00 mov DWORD PTR [eax], OFFSET _win32_open_file_func
\r
1453 ; 344 : pzlib_filefunc_def->zread_file = win32_read_file_func;
\r
1455 0000c c7 40 04 00 00
\r
1456 00 00 mov DWORD PTR [eax+4], OFFSET _win32_read_file_func
\r
1458 ; 345 : pzlib_filefunc_def->zwrite_file = win32_write_file_func;
\r
1460 00013 c7 40 08 00 00
\r
1461 00 00 mov DWORD PTR [eax+8], OFFSET _win32_write_file_func
\r
1463 ; 346 : pzlib_filefunc_def->ztell_file = win32_tell_file_func;
\r
1465 0001a c7 40 0c 00 00
\r
1466 00 00 mov DWORD PTR [eax+12], OFFSET _win32_tell_file_func
\r
1468 ; 347 : pzlib_filefunc_def->zseek_file = win32_seek_file_func;
\r
1470 00021 c7 40 10 00 00
\r
1471 00 00 mov DWORD PTR [eax+16], OFFSET _win32_seek_file_func
\r
1473 ; 348 : pzlib_filefunc_def->zclose_file = win32_close_file_func;
\r
1475 00028 c7 40 14 00 00
\r
1476 00 00 mov DWORD PTR [eax+20], OFFSET _win32_close_file_func
\r
1478 ; 349 : pzlib_filefunc_def->zerror_file = win32_error_file_func;
\r
1480 0002f c7 40 18 00 00
\r
1481 00 00 mov DWORD PTR [eax+24], OFFSET _win32_error_file_func
\r
1483 ; 350 : pzlib_filefunc_def->opaque = NULL;
\r
1485 00036 c7 40 1c 00 00
\r
1486 00 00 mov DWORD PTR [eax+28], 0
\r
1492 _fill_win32_filefunc ENDP
\r