Function at 0x493aad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [esp], 0x17
call sym._umask
mov dword [esp + 4], 0x5035ea
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.wfopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x493b35
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.in_w_compress_gzfile__:_fopen_error__s___d_:_s
mov dword [esp + 8], str.w_compress_gzfile
mov dword [esp + 4], 0xadf
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov eax, 0xffffffff
jmp 0x493d0a
mov dword [esp + 4], 0x5036dc
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._gzopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x493bb5
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.in_w_compress_gzfile__:_gzopen_error__s___d_:_s
mov dword [esp + 8], str.w_compress_gzfile
mov dword [esp + 4], 0xaea
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov eax, 0xffffffff
jmp 0x493d0a
mov dword [esp + 4], 1
mov dword [esp], 0x2001
call sym._calloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x493c1a
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x503710
mov dword [esp + 8], str.w_compress_gzfile
mov dword [esp + 4], 0xaf1
mov dword [esp], str.shared_file_op.c
call dbg._merror_exit
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x493cd6
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._gzwrite
cmp dword [ebp - 0x18], eax
je 0x493c1a
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._gzerror
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.in_w_compress_gzfile__:_Compression_error:__s
mov dword [esp + 8], str.w_compress_gzfile
mov dword [esp + 4], 0xaf9
mov dword [esp], str.shared_file_op.c
call dbg._merror
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._gzclose
cmp dword [ebp - 0x14], 0
je 0x493ccf
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x14], 0
mov eax, 0xffffffff
jmp 0x493d0a
nop
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._gzclose
cmp dword [ebp - 0x14], 0
je 0x493d05
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x14], 0
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret