Function at 0x491500
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x10078
call fcn.004a7e80
sub esp, eax
mov ebx, ecx
mov eax, dword [esp + eax]
mov ecx, 0xe
mov esi, edx
lea edi, [esp + 0x38]
mov ebp, eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8070]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], 0x5494ce
mov dword [esp + 4], 0xfffffff1
mov dword [esp], eax
mov dword [esp + 0x48], 0x8000
mov dword [esp + 0x64], 2
call fcn.00497c80
test eax, eax
je 0x4915a3
cmp eax, 0xfffffffa
je 0x49173e
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Call_to_inflateInit2_failed__zerr_d_
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
add esp, 0x1007c
mov eax, 0xfffffffe
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx]
mov edi, dword [esi]
lea esi, [esp + 0x70]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4915fa
mov ebx, 0x8000
cmp edi, 0x8000
cmovbe ebx, edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], ebp
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov edx, eax
je 0x491698
cmp ebx, eax
jne 0x4916af
sub edi, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0x38]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00498100
mov ebx, eax
mov eax, dword [esp + 0x48]
cmp ebx, 1
ja 0x49177e
test eax, eax
je 0x491631
cmp ebx, 1
jne 0x4915b7
cmp eax, 0x8000
je 0x4916f1
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x8070]
sub eax, ecx
mov ecx, dword [esp + 0x28]
lea edx, [ecx + eax]
cmp edx, dword [esp + 0x10094]
mov dword [esp + 0x24], edx
ja 0x4917c4
add ecx, dword [esp + 0x10090]
mov dword [esp + 8], eax
lea eax, [esp + 0x8070]
mov dword [esp + 4], eax
mov dword [esp], ecx
call sub.msvcrt.dll_memcpy
lea eax, [esp + 0x8070]
test ebx, ebx
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x48], 0x8000
jne 0x4916f1
mov dword [esp + 0x28], edx
jmp 0x4915b7
mov dword [esp + 0x24], eax
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4915cd
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov ebx, 0xfffffff5
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Zip:_inflate_read_failed___ld_vs__ld_
mov dword [esp + 4], 0
mov dword [esp], 5
call fcn.004750f0
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.0049a8e0
add esp, 0x1007c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x10098]
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], 0
mov dword [eax], ecx
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x2c], eax
je 0x491772
mov ecx, dword [esp + 0x2c]
mov ebx, 0xfffffff7
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Zip:_size_mismatch_on_inflated_file___lu_vs__u_
mov dword [esp + 4], 0
mov dword [esp + 0x10], ecx
mov dword [esp], 5
call fcn.004750f0
jmp 0x4916d8
mov dword [esp + 0xc], 0x5494ce
mov dword [esp + 8], str.Installed_zlib_is_not_compatible_with_linked_version___s_
mov dword [esp + 4], 0
mov dword [esp], 6
call fcn.004750f0
add esp, 0x1007c
mov eax, 0xfffffffe
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
test edi, edi
je 0x4916d8
jmp 0x49170f
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
mov ebx, 0xfffffffe
mov dword [esp + 8], str.Zip:_inflate_zerr_d__nIn_p_aIn_u_nOut_p_aOut_u_
mov dword [esp + 4], 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
call fcn.004750f0
jmp 0x4916d8
mov ebx, 0xffffffff
jmp 0x4916d8