Function at 0x4c5420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0
mov esi, ecx
lea edx, [ebp - 0x40]
mov ecx, dword [0x654d54]
push 0
push eax
call fcn.004c4a50
add esp, 8
mov dword [ebp - 0x44], 0x5e7cd4
xor edi, edi
nop dword [eax]
push esi
call fcn.00555eca
add esp, 4
cmp eax, 0xffffffff
je 0x4c5484
nop
cmp eax, 0x50
je 0x4c5484
push esi
inc edi
call fcn.00555eca
add esp, 4
cmp eax, 0xffffffff
jne 0x4c5470
push esi
push 1
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x2f]
push 3
push eax
call fcn.005563eb
add esp, 0x10
cmp eax, 1
jne 0x4c54ef
movzx eax, byte [ebp - 0x2d]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2e]
or ecx, eax
movzx eax, byte [ebp - 0x2f]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x30]
or ecx, eax
cmp ecx, 0x4034b50
je 0x4c54ef
cmp ecx, 0x6054b50
je 0x4c54ef
push 1
push 0xfffffffffffffffd
push esi
call fcn.00555bb3
add esp, 0xc
test eax, eax
jne 0x4c589c
inc edi
jmp 0x4c5460
movzx eax, byte [ebp - 0x2d]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2e]
or ecx, eax
mov dword [0x654d6c], edi
movzx eax, byte [ebp - 0x2f]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x30]
or ecx, eax
cmp ecx, 0x4034b50
jne 0x4c5a2a
push 0x60
call fcn.0054cef5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c5bad
mov edx, dword [0x654d60]
lea ecx, [edx + 1]
cmp ecx, edx
jb 0x4c5bad
push esi
push 1
lea eax, [ebp - 0x30]
push 0x1a
push eax
call fcn.005563eb
add esp, 0x10
cmp eax, 1
jne 0x4c5c2d
movzx ecx, byte [ebp - 0x2f]
movzx eax, byte [ebp - 0x30]
shl cx, 8
or cx, ax
mov edx, dword [0x5e7cf8]
mov word [ebx + 2], cx
test edx, edx
mov dword [ebx + 0x58], edx
mov ecx, 0x14
mov eax, 0xb17
cmovne eax, ecx
mov word [ebx], ax
movzx ecx, byte [ebp - 0x2d]
movzx eax, byte [ebp - 0x2e]
shl cx, 8
or cx, ax
mov word [ebx + 0x2c], cx
mov word [ebx + 4], cx
movzx eax, cx
movzx ecx, byte [ebp - 0x2b]
mov dword [ebp - 0x3c], eax
movzx eax, byte [ebp - 0x2c]
shl cx, 8
or cx, ax
mov word [ebx + 6], cx
movzx eax, byte [ebp - 0x27]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x28]
or ecx, eax
movzx eax, byte [ebp - 0x29]
shl ax, 8
movzx eax, ax
shl ecx, 0x10
or ecx, eax
movzx eax, byte [ebp - 0x2a]
or ecx, eax
mov dword [ebx + 8], ecx
movzx eax, byte [ebp - 0x23]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x24]
or ecx, eax
movzx eax, byte [ebp - 0x25]
shl ax, 8
movzx eax, ax
shl ecx, 0x10
or ecx, eax
movzx eax, byte [ebp - 0x26]
or ecx, eax
mov dword [ebx + 0xc], ecx
movzx eax, byte [ebp - 0x1f]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x20]
or ecx, eax
movzx eax, byte [ebp - 0x21]
shl ax, 8
movzx eax, ax
shl ecx, 0x10
or ecx, eax
movzx eax, byte [ebp - 0x22]
or ecx, eax
mov dword [ebx + 0x10], ecx
movzx eax, byte [ebp - 0x1b]
shl ax, 8
mov dword [ebp - 0x34], ecx
movzx ecx, ax
movzx eax, byte [ebp - 0x1c]
or ecx, eax
movzx eax, byte [ebp - 0x1d]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x1e]
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx eax, byte [ebp - 0x19]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x1a]
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx eax, byte [ebp - 0x17]
shl ax, 8
mov dword [ebp - 0x38], ecx
movzx ecx, ax
movzx eax, byte [ebp - 0x18]
or ecx, eax
mov dword [ebx + 0x24], 0
xor eax, eax
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x20], ecx
test edx, edx
je 0x4c56b4
movzx eax, al
xor ecx, ecx
mov dword [ebx + 0x30], eax
cmp dword [0x5e7d08], 1
mov eax, dword [ebp - 0x34]
cmovg eax, ecx
mov dword [ebx + 0x50], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x4c], ecx
mov dword [eax], ebx
lea eax, [ebx + 0x5c]
mov dword [ebp - 0x44], eax
mov dword [eax], ecx
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4c5bc3
inc eax
push eax
call fcn.0054cef5
add esp, 4
mov dword [ebx + 0x48], eax
test eax, eax
je 0x4c5bad
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4c5731
push eax
call fcn.0054cef5
add esp, 4
mov dword [ebx + 0x3c], eax
test eax, eax
je 0x4c5bad
push esi
push 1
push dword [ebp - 0x38]
push dword [ebx + 0x48]
call fcn.005563eb
add esp, 0x10
cmp eax, 1
jne 0x4c589c
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4c576a
push esi
push 1
push eax
push dword [ebx + 0x3c]
call fcn.005563eb
add esp, 0x10
cmp eax, 1
jne 0x4c589c
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4c5785
push 1
push eax
push esi
call fcn.00555bb3
add esp, 0xc
test eax, eax
jne 0x4c589c
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebp - 0x38]
mov byte [ecx + eax], 0
mov eax, dword [ebx + 0x48]
mov ecx, eax
mov dword [ebp - 0x48], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c57a0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0054cef5
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x4c5ba6
mov ecx, dword [ebp - 0x48]
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x4c57c7
cmp dword [0x5d7bd0], 0
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x4c], ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x40], eax
je 0x4c5800
push ecx
push str.zip:_reading__s_n
push dword [0x654d5c]
call fcn.004535a0
add esp, 0xc
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x34]
add eax, ecx
add eax, dword [ebp - 0x38]
inc dword [0x654d60]
mov dword [ebx + 0x34], edi
add edi, 0x1e
add edi, eax
test byte [ebp - 0x3c], 8
je 0x4c5aaa
test ecx, ecx
jne 0x4c5923
nop dword [eax + eax]
push esi
call fcn.00555eca
add esp, 4
cmp eax, 0xffffffff
je 0x4c5843
cmp eax, 0x50
jne 0x4c5830
push esi
push 1
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x2f]
push 0xf
push eax
call fcn.005563eb
add esp, 0x10
cmp eax, 1
jne 0x4c58c0
movzx eax, byte [ebp - 0x2d]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2e]
or ecx, eax
movzx eax, byte [ebp - 0x2f]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x30]
or ecx, eax
cmp ecx, 0x8074b50
je 0x4c58c0
push 1
push 0xfffffffffffffff1
push esi
call fcn.00555bb3
add esp, 0xc
test eax, eax
je 0x4c5830
push esi
call fcn.00555825
add esp, 4
neg eax
sbb eax, eax
and eax, 9
add eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 0x25]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x26]
or ecx, eax
movzx eax, byte [ebp - 0x27]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x28]
or ecx, eax
push esi
mov dword [ebp - 0x34], ecx
add edi, ecx
call fcn.00556b1e
lea ecx, [edi + 0x10]
add esp, 4
cmp eax, ecx
je 0x4c5984
mov edx, dword [ebx + 0x4c]
mov ecx, str.bad_extended_local_header_for
call fcn.004bebd0
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push 0
push edi
push esi
call fcn.00555bb3
add esp, 0xc
test eax, eax
jne 0x4c589c
push esi
push 1
lea eax, [ebp - 0x30]
push 0x10
push eax
call fcn.005563eb
add esp, 0x10
cmp eax, 1
jne 0x4c589c
movzx eax, byte [ebp - 0x2d]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2e]
or ecx, eax
movzx eax, byte [ebp - 0x2f]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x30]
or ecx, eax
cmp ecx, 0x8074b50
jne 0x4c5b83
movzx eax, byte [ebp - 0x29]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2a]
or ecx, eax
movzx eax, byte [ebp - 0x2b]
shl ax, 8
movzx eax, ax
shl ecx, 0x10
or ecx, eax
movzx eax, byte [ebp - 0x2c]
or ecx, eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], eax
movzx eax, byte [ebp - 0x21]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x22]
or ecx, eax
movzx eax, byte [ebp - 0x23]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x24]
or ecx, eax
add edi, 0x10
mov dword [ebx + 0x14], ecx
push esi
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call fcn.005563eb
add esp, 0x10
cmp eax, 1
jne 0x4c5a2a
movzx eax, byte [ebp - 0x2d]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2e]
or ecx, eax
movzx eax, byte [ebp - 0x2f]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x30]
or ecx, eax
cmp ecx, 0x4034b50
je 0x4c5528
movzx eax, byte [ebp - 0x2d]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2e]
or ecx, eax
movzx eax, byte [ebp - 0x2f]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x30]
or ecx, eax
cmp ecx, 0x2014b50
je 0x4c5c3b
cmp dword [0x5d7bd0], 0
je 0x4c5c3b
cmp dword [0x5e7d08], 1
mov ecx, str.would_be
mov eax, str.has_been
cmovle eax, ecx
push eax
push dword [0x654d54]
push str.zip_warning:__s__s_truncated._n
push dword [0x654d5c]
call fcn.004535a0
add esp, 0x10
cmp dword [0x5e7d08], 1
je 0x4c5c80
jmp 0x4c5c3b
cmp dword [0x5e7d08], 1
jle 0x4c59e1
push esi
call fcn.00555eca
add esp, 4
cmp eax, 0xffffffff
je 0x4c5ad9
cmp eax, 0x50
je 0x4c5ad9
push esi
inc edi
call fcn.00555eca
add esp, 4
cmp eax, 0xffffffff
jne 0x4c5ac5
push esi
push 1
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x2f]
push 3
push eax
call fcn.005563eb
add esp, 0x10
cmp eax, 1
jne 0x4c5b44
movzx eax, byte [ebp - 0x2d]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2e]
or ecx, eax
movzx eax, byte [ebp - 0x2f]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 0x30]
or ecx, eax
cmp ecx, 0x4034b50
je 0x4c5b44
cmp ecx, 0x2014b50
je 0x4c5b44
push 1
push 0xfffffffffffffffd
push esi
call fcn.00555bb3
add esp, 0xc
test eax, eax
jne 0x4c589c
inc edi
jmp 0x4c5ab7
mov ecx, dword [ebx + 0x10]
mov eax, edi
sub eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x34]
sub eax, dword [ebp - 0x38]
add eax, 0xffffffe2
mov dword [ebp - 0x3c], eax
cmp eax, ecx
je 0x4c59f7
push dword [ebx + 0x4c]
push eax
push ecx
push str._compressed_size__ld__actual_size__ld_for__s_n
push dword [0x654d5c]
call fcn.004535a0
mov eax, dword [ebp - 0x3c]
add esp, 0x14
mov dword [ebx + 0x10], eax
jmp 0x4c59f7
mov edx, dword [ebx + 0x4c]
mov ecx, str.extended_local_header_not_found_for
call fcn.004bebd0
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x4c], 0
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov eax, dword [0x654d60]
inc eax
push eax
push 0x5ce628
push 0x654900
call fcn.0048d4b0
add esp, 0xc
cmp dword [0x5d7bd0], 0
je 0x4c5c17
push 0x654900
push str.zero_length_name_for_entry_
push str._tzip_warning:__s_s_n
push 2
call fcn.0054d4c0
add esp, 4
push eax
call fcn.004535a0
push 2
call fcn.0054d4c0
add esp, 0x14
push eax
call fcn.0055321c
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005417da
add esp, 4
jmp 0x4c5a2a
mov eax, dword [0x654d6c]
mov dword [0x654d64], edi
test eax, eax
je 0x4c5c6d
cmp dword [0x5d7bd0], 0
je 0x4c5c6d
push eax
push dword [0x654d54]
push str._s:_adjusting_offsets_for_a_preamble_of__lu_bytes_n
push dword [0x654d5c]
call fcn.004535a0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push str.Retry_with_option__qF_to_truncate__with__FF_to_attempt_full_recovery_n
push dword [0x654d5c]
call fcn.004535a0
xor edx, edx
add esp, 8
lea ecx, [edx + 3]
call fcn.004be9e0
int3