Function at 0x479360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x579ab4]
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x44]
push esi
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x44], esi
call fcn.0047d750
add esp, 8
mov dword [ebp - 0x48], 0x544834
push ebx
call fcn.004b22a3
add esp, 4
cmp eax, 0xffffffff
je 0x4793b6
cmp eax, 0x50
je 0x4793b6
push ebx
inc esi
call fcn.004b22a3
add esp, 4
cmp eax, 0xffffffff
jne 0x4793a2
push ebx
push 1
lea ecx, [ebp - 0x2f]
push 3
push ecx
mov byte [ebp - 0x30], al
call fcn.004b20b5
mov cl, byte [ebp - 0x2d]
add esp, 0x10
cmp eax, 1
jne 0x479421
movzx edx, cl
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x2e]
or eax, edx
movzx edx, byte [ebp - 0x2f]
shl dx, 8
movzx edx, dx
shl eax, 0x10
or eax, edx
movzx edx, byte [ebp - 0x30]
or eax, edx
cmp eax, 0x4034b50
je 0x479421
cmp eax, 0x6054b50
je 0x479421
push 1
push 0xfffffffffffffffd
push ebx
call fcn.004b1dbc
add esp, 0xc
test eax, eax
jne 0x4797d1
inc esi
jmp 0x479394
movzx edx, byte [ebp - 0x2e]
movzx eax, cl
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2f]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x30]
shl ecx, 0x10
or ecx, edx
or ecx, eax
mov dword [ebp - 0x34], esi
mov dword [0x579f14], esi
cmp ecx, 0x4034b50
jne 0x47995f
lea esp, [esp]
push 0x60
call fcn.004aa188
mov esi, eax
add esp, 4
test esi, esi
je 0x479b4d
mov eax, dword [0x579f20]
lea ecx, [eax + 1]
cmp ecx, eax
jb 0x479b4d
push ebx
push 1
lea edx, [ebp - 0x30]
push 0x1a
push edx
call fcn.004b20b5
add esp, 0x10
cmp eax, 1
jne 0x479adf
movzx eax, byte [ebp - 0x2f]
movzx ecx, byte [ebp - 0x30]
shl ax, 8
or ax, cx
mov ecx, dword [0x544804]
mov word [esi + 2], ax
mov dword [esi + 0x58], ecx
mov edx, ecx
neg edx
sbb edx, edx
and edx, 0xfffff4fd
add edx, 0xb17
mov word [esi], dx
movzx eax, byte [ebp - 0x2d]
movzx edx, byte [ebp - 0x2e]
shl eax, 8
or eax, edx
mov word [esi + 0x2c], ax
mov word [esi + 4], ax
movzx edx, byte [ebp - 0x2b]
movzx eax, ax
mov dword [ebp - 0x4c], eax
movzx eax, byte [ebp - 0x2c]
shl dx, 8
or dx, ax
mov word [esi + 6], dx
movzx edx, byte [ebp - 0x27]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x28]
or eax, edx
movzx edx, byte [ebp - 0x29]
shl dx, 8
movzx edx, dx
shl eax, 0x10
or eax, edx
movzx edx, byte [ebp - 0x2a]
or eax, edx
mov dword [esi + 8], eax
movzx eax, byte [ebp - 0x23]
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x24]
or edx, eax
movzx eax, byte [ebp - 0x25]
shl ax, 8
shl edx, 0x10
movzx eax, ax
or edx, eax
movzx eax, byte [ebp - 0x26]
or edx, eax
mov dword [esi + 0xc], edx
movzx edx, byte [ebp - 0x1f]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x20]
or eax, edx
movzx edx, byte [ebp - 0x21]
shl dx, 8
movzx edx, dx
shl eax, 0x10
or eax, edx
movzx edx, byte [ebp - 0x22]
or eax, edx
mov dword [esi + 0x10], eax
movzx eax, byte [ebp - 0x1b]
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x1c]
or edx, eax
movzx eax, byte [ebp - 0x1d]
shl ax, 8
shl edx, 0x10
movzx eax, ax
or edx, eax
movzx eax, byte [ebp - 0x1e]
or edx, eax
mov dword [esi + 0x14], edx
movzx edx, byte [ebp - 0x19]
shl dx, 8
movzx edi, dx
movzx eax, byte [ebp - 0x1a]
or edi, eax
mov dword [esi + 0x18], edi
movzx edx, byte [ebp - 0x17]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x18]
or eax, edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
xor eax, eax
xor edx, edx
mov word [esi + 0x28], ax
mov word [esi + 0x2a], ax
movzx eax, byte [ebp - 0x44]
mov dword [ebp - 0x40], edi
mov dword [esi + 0x24], edx
cmp ecx, edx
jne 0x4795ed
mov eax, dword [ebp - 0x44]
cmp dword [0x54480c], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edx
jle 0x479604
mov dword [ebp - 0x38], edx
jmp 0x47960a
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x44], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x4c], edx
mov dword [eax], esi
lea eax, [esi + 0x5c]
mov dword [eax], edx
mov dword [ebp - 0x48], eax
cmp edi, edx
je 0x479aed
lea ecx, [edi + 1]
push ecx
call fcn.004aa188
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [esi + 0x48], eax
test eax, eax
je 0x479b4d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x479666
push eax
call fcn.004aa188
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x479b4d
mov edx, dword [ebp - 0x3c]
push ebx
push 1
push edi
push edx
call fcn.004b20b5
add esp, 0x10
cmp eax, 1
jne 0x4797d1
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x47969f
push ebx
push 1
push eax
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b20b5
add esp, 0x10
cmp eax, 1
jne 0x4797d1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4796ba
push 1
push eax
push ebx
call fcn.004b1dbc
add esp, 0xc
test eax, eax
jne 0x4797d1
mov ecx, dword [esi + 0x48]
mov edx, edi
mov byte [edx + ecx], 0
mov edi, dword [esi + 0x48]
mov eax, edi
lea edx, [eax + 1]
jmp 0x4796d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4796d0
sub eax, edx
inc eax
push eax
call fcn.004aa188
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4796fe
mov eax, dword [ebp - 0x3c]
mov ecx, edi
sub eax, edi
mov dl, byte [ecx]
mov byte [ecx + eax], dl
inc ecx
test dl, dl
jne 0x4796f1
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x479b4d
cmp dword [0x4eb49c], 0
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], ecx
je 0x479730
mov edx, dword [0x579aa4]
push eax
push str.zip:_reading__s_n
push edx
call fcn.004abd3d
add esp, 0xc
mov ecx, dword [esi + 0x1c]
add ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
add ecx, edi
lea edx, [eax + ecx + 0x1e]
mov dword [esi + 0x34], eax
mov eax, 1
add dword [0x579f20], eax
test byte [ebp - 0x4c], 8
mov dword [ebp - 0x34], edx
je 0x4799fa
test edi, edi
jne 0x479857
push ebx
call fcn.004b22a3
add esp, 4
cmp eax, 0xffffffff
je 0x479778
cmp eax, 0x50
jne 0x479765
push ebx
push 1
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x2f]
push 0xf
push eax
call fcn.004b20b5
add esp, 0x10
cmp eax, 1
jne 0x4797f4
movzx ecx, byte [ebp - 0x2d]
movzx eax, byte [ebp - 0x2e]
shl cx, 8
movzx edx, cx
movzx ecx, byte [ebp - 0x2f]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [ebp - 0x30]
shl edx, 0x10
or edx, eax
or edx, ecx
cmp edx, 0x8074b50
je 0x4797f4
push 1
push 0xfffffffffffffff1
push ebx
call fcn.004b1dbc
add esp, 0xc
test eax, eax
je 0x479765
push ebx
call fcn.004b1d0a
add esp, 4
neg eax
sbb eax, eax
and eax, 9
add eax, 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
movzx edx, byte [ebp - 0x25]
movzx ecx, byte [ebp - 0x27]
movzx eax, byte [ebp - 0x26]
shl dx, 8
movzx edi, dx
or edi, eax
movzx eax, byte [ebp - 0x28]
shl cx, 8
movzx edx, cx
shl edi, 0x10
or edi, edx
or edi, eax
add dword [ebp - 0x34], edi
push ebx
call fcn.004b252b
mov ecx, dword [ebp - 0x34]
add ecx, 0x10
add esp, 4
cmp eax, ecx
je 0x4798bb
mov eax, dword [esi + 0x4c]
mov ecx, str.bad_extended_local_header_for
call fcn.00475cd0
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x34]
push 0
push edx
push ebx
call fcn.004b1dbc
add esp, 0xc
test eax, eax
jne 0x4797d1
push ebx
push 1
lea eax, [ebp - 0x30]
push 0x10
push eax
call fcn.004b20b5
add esp, 0x10
cmp eax, 1
jne 0x4797d1
movzx ecx, byte [ebp - 0x2d]
movzx eax, byte [ebp - 0x2e]
shl cx, 8
movzx edx, cx
movzx ecx, byte [ebp - 0x2f]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [ebp - 0x30]
shl edx, 0x10
or edx, eax
or edx, ecx
cmp edx, 0x8074b50
jne 0x479b2b
movzx edx, byte [ebp - 0x29]
movzx ecx, byte [ebp - 0x2a]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x2b]
or eax, ecx
shl dx, 8
shl eax, 0x10
movzx ecx, dx
movzx edx, byte [ebp - 0x2c]
or eax, ecx
or eax, edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
movzx eax, byte [ebp - 0x21]
movzx edx, byte [ebp - 0x22]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x23]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x24]
shl ecx, 0x10
or ecx, edx
or ecx, eax
add dword [ebp - 0x34], 0x10
mov dword [esi + 0x14], ecx
push ebx
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call fcn.004b20b5
add esp, 0x10
cmp eax, 1
jne 0x47995f
movzx ecx, byte [ebp - 0x2d]
movzx eax, byte [ebp - 0x2e]
shl cx, 8
movzx edx, cx
movzx ecx, byte [ebp - 0x2f]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [ebp - 0x30]
shl edx, 0x10
or edx, eax
or edx, ecx
cmp edx, 0x4034b50
je 0x479460
movzx eax, byte [ebp - 0x2d]
movzx edx, byte [ebp - 0x2e]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2f]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x30]
shl ecx, 0x10
or ecx, edx
or ecx, eax
cmp ecx, 0x2014b50
je 0x479b62
cmp dword [0x4eb49c], 0
je 0x479b62
mov esi, 1
mov eax, str.has_been
cmp dword [0x54480c], esi
jg 0x4799b6
mov eax, str.would_be
mov ecx, dword [0x579ab4]
mov edx, dword [0x579aa4]
push eax
push ecx
push str.zip_warning:__s__s_truncated._n
push edx
call fcn.004abd3d
add esp, 0x10
cmp dword [0x54480c], esi
jne 0x479b62
mov eax, dword [0x579aa4]
push str.Retry_with_option__qF_to_truncate__with__FF_to_attempt_full_recovery_n
push eax
call fcn.004abd3d
add esp, 8
push 3
xor eax, eax
call fcn.00475b00
cmp dword [0x54480c], eax
jle 0x479916
mov edi, dword [ebp - 0x34]
lea esp, [esp]
push ebx
call fcn.004b22a3
add esp, 4
cmp eax, 0xffffffff
je 0x479a37
mov edi, edi
cmp eax, 0x50
je 0x479a34
push ebx
inc edi
call fcn.004b22a3
add esp, 4
cmp eax, 0xffffffff
jne 0x479a20
mov dword [ebp - 0x34], edi
push ebx
push 1
lea ecx, [ebp - 0x2f]
push 3
push ecx
mov byte [ebp - 0x30], al
call fcn.004b20b5
add esp, 0x10
cmp eax, 1
jne 0x479aa3
movzx edx, byte [ebp - 0x2d]
movzx ecx, byte [ebp - 0x2e]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x2f]
or eax, ecx
shl dx, 8
movzx ecx, dx
movzx edx, byte [ebp - 0x30]
shl eax, 0x10
or eax, ecx
or eax, edx
cmp eax, 0x4034b50
je 0x479aa3
cmp eax, 0x2014b50
je 0x479aa3
push 1
push 0xfffffffffffffffd
push ebx
call fcn.004b1dbc
add esp, 0xc
test eax, eax
jne 0x4797d1
inc edi
mov dword [ebp - 0x34], edi
jmp 0x479a10
mov edi, dword [ebp - 0x34]
sub edi, dword [esi + 0x34]
mov eax, dword [esi + 0x10]
sub edi, dword [esi + 0x1c]
sub edi, dword [ebp - 0x40]
sub edi, 0x1e
cmp edi, eax
je 0x47992c
mov ecx, dword [esi + 0x4c]
mov edx, dword [0x579aa4]
push ecx
push edi
push eax
push str._compressed_size__ld__actual_size__ld_for__s_n
push edx
call fcn.004abd3d
add esp, 0x14
mov dword [esi + 0x10], edi
jmp 0x47992c
push esi
call fcn.004aa14e
add esp, 4
jmp 0x47995f
mov edx, dword [0x579f20]
inc edx
push edx
push 0x4e11e0
push 0x579ac0
call fcn.004a931b
add esp, 0xc
mov eax, 0x579ac0
mov ecx, str.zero_length_name_for_entry_
call fcn.00475cd0
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
mov ecx, str.extended_local_header_not_found_for
call fcn.00475cd0
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov eax, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov eax, dword [0x579f14]
mov ecx, dword [ebp - 0x34]
mov dword [0x579aac], ecx
test eax, eax
je 0x479b98
cmp dword [0x4eb49c], 0
je 0x479b98
mov edx, dword [0x579ab4]
push eax
mov eax, dword [0x579aa4]
push edx
push str._s:_adjusting_offsets_for_a_preamble_of__lu_bytes_n
push eax
call fcn.004abd3d
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret