Function at 0x4c6db0
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x38
test eax, eax
push ebx
je 0x4c8176
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x4c8176
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4c8176
cmp dword [eax], 0
jne 0x4c6de6
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4c8176
cmp dword [ebx], 0xb
jne 0x4c6df1
mov dword [ebx], 0xc
mov ecx, dword [eax + 0xc]
mov edx, dword [ebx + 0x30]
push ebp
mov ebp, dword [ebx + 0x34]
push esi
mov esi, dword [eax]
push edi
mov edi, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [ebx]
cmp eax, 0x1c
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], 0
ja case.default.0x4c6e34
jmp dword [eax*4 + 0x4c8180]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4c6e4d
mov dword [ebx], 0xc
jmp 0x4c7ff5
cmp ebp, 0x10
jae 0x4c6e79
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jb 0x4c6e52
mov eax, dword [ebx + 8]
test al, 2
je 0x4c6ec6
cmp edx, 0x8b1f
jne 0x4c6ec6
xor ebp, ebp
push ebp
push ebp
push ebp
call fcn.004c60a0
mov dword [ebx + 0x14], eax
push 2
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], 0x1f
mov byte [esp + 0x35], 0x8b
mov edx, dword [ebx + 0x14]
push ecx
push edx
call fcn.004c60a0
add esp, 0x18
mov dword [ebx + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [ebx], 1
mov edx, ebp
jmp 0x4c7ff5
test al, 1
mov dword [ebx + 0x10], 0
je 0x4c6f79
mov eax, edx
and eax, 0xff
shr edx, 8
shl eax, 8
add eax, edx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
jne 0x4c6f75
mov eax, dword [esp + 0x10]
mov edx, eax
and dl, 0xf
cmp dl, 8
je 0x4c6f17
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x4c7fef
mov ecx, dword [ebx + 0x1c]
shr eax, 4
mov dword [esp + 0x10], eax
and eax, 0xf
add eax, 8
sub ebp, 4
cmp eax, ecx
jbe 0x4c6f42
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], str.invalid_window_size
jmp 0x4c7fef
xor ebp, ebp
push ebp
push ebp
push ebp
call fcn.004c8bc0
mov edx, dword [esp + 0x58]
mov dword [ebx + 0x14], eax
mov dword [edx + 0x30], eax
mov eax, dword [esp + 0x1c]
shr eax, 8
not eax
and eax, 2
add esp, 0xc
or eax, 9
mov dword [ebx], eax
mov dword [esp + 0x10], ebp
mov edx, ebp
jmp 0x4c7ff5
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x18], str.incorrect_header_check
jmp 0x4c7fef
cmp ebp, 0x10
jae 0x4c6fb7
mov edi, edi
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jb 0x4c6f90
cmp dl, 8
mov dword [ebx + 0x10], edx
je 0x4c6fcf
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x4c7fef
test dh, 0xe0
je 0x4c6fe4
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x4c7fef
test dh, 2
je 0x4c700a
mov byte [esp + 0x24], dl
shr edx, 8
push 2
lea ecx, [esp + 0x28]
mov byte [esp + 0x29], dl
mov edx, dword [ebx + 0x14]
push ecx
push edx
call fcn.004c60a0
add esp, 0xc
mov dword [ebx + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [ebx], 2
mov edx, ebp
jmp 0x4c7020
cmp ebp, 0x20
jae 0x4c703b
nop
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
add edx, eax
inc esi
cmp ebp, 0x20
jb 0x4c7020
mov eax, dword [ebx + 0x10]
test ah, 2
je 0x4c7076
mov ecx, edx
mov eax, edx
shr ecx, 8
mov byte [esp + 0x24], dl
mov byte [esp + 0x25], cl
shr edx, 0x18
shr eax, 0x10
push 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], dl
mov edx, dword [ebx + 0x14]
push ecx
push edx
call fcn.004c60a0
add esp, 0xc
mov dword [ebx + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [ebx], 3
mov edx, ebp
jmp 0x4c7090
cmp ebp, 0x10
jae 0x4c70b3
jmp 0x4c7090
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0x10
mov dword [esp + 0x18], esi
jb 0x4c7090
mov eax, dword [ebx + 0x10]
test ah, 2
je 0x4c70dc
mov byte [esp + 0x24], dl
shr edx, 8
push 2
lea ecx, [esp + 0x28]
mov byte [esp + 0x29], dl
mov edx, dword [ebx + 0x14]
push ecx
push edx
call fcn.004c60a0
add esp, 0xc
mov dword [ebx + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [ebx], 4
mov edx, ebp
mov eax, dword [ebx + 0x10]
test ah, 4
je 0x4c714e
cmp ebp, 0x10
jae 0x4c711a
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0x10
mov dword [esp + 0x18], esi
jb 0x4c70f7
mov eax, dword [ebx + 0x10]
test ah, 2
mov dword [ebx + 0x38], edx
je 0x4c7146
mov byte [esp + 0x24], dl
shr edx, 8
push 2
lea ecx, [esp + 0x28]
mov byte [esp + 0x29], dl
mov edx, dword [ebx + 0x14]
push ecx
push edx
call fcn.004c60a0
add esp, 0xc
mov dword [ebx + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov edx, ebp
mov dword [ebx], 5
mov ecx, dword [ebx + 0x10]
test ch, 4
je 0x4c71b2
mov eax, dword [ebx + 0x38]
cmp eax, edi
mov dword [esp + 0x1c], eax
jbe 0x4c716d
mov eax, edi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4c71a7
test ch, 2
je 0x4c7193
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x14]
push eax
push esi
push ecx
call fcn.004c60a0
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [ebx + 0x38]
sub edi, eax
add esi, eax
sub ecx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [ebx + 0x38], ecx
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x4c8057
mov dword [ebx], 6
mov eax, dword [ebx + 0x10]
test ah, 8
je 0x4c7220
test edi, edi
je 0x4c8057
xor eax, eax
lea ebx, [ebx]
movzx ecx, byte [eax + esi]
inc eax
test ecx, ecx
mov dword [esp + 0x30], ecx
je 0x4c71e1
cmp eax, edi
jb 0x4c71d0
mov ecx, dword [ebx + 0x10]
test ch, 0x20
mov dword [esp + 0x1c], eax
je 0x4c7208
mov edx, eax
mov eax, dword [ebx + 0x14]
push edx
push esi
push eax
call fcn.004c60a0
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
sub edi, eax
add esi, eax
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
jne 0x4c8057
mov dword [ebx], 7
mov eax, dword [ebx + 0x10]
test ah, 0x10
je 0x4c7288
test edi, edi
je 0x4c8057
xor eax, eax
movzx ecx, byte [eax + esi]
inc eax
test ecx, ecx
mov dword [esp + 0x30], ecx
je 0x4c7249
cmp eax, edi
jb 0x4c7238
mov ecx, dword [ebx + 0x10]
test ch, 0x20
mov dword [esp + 0x1c], eax
je 0x4c7270
mov edx, dword [ebx + 0x14]
mov ecx, eax
push ecx
push esi
push edx
call fcn.004c60a0
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
sub edi, eax
add esi, eax
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
jne 0x4c8057
mov dword [ebx], 8
mov eax, dword [ebx + 0x10]
test ah, 2
je 0x4c72ea
cmp ebp, 0x10
jae 0x4c72c7
jmp 0x4c72a0
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jb 0x4c72a0
mov ecx, dword [ebx + 0x14]
and ecx, 0xffff
cmp edx, ecx
je 0x4c72e4
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x4c7fef
xor ebp, ebp
mov dword [esp + 0x10], ebp
push 0
push 0
push 0
call fcn.004c60a0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [ebx], 0xb
jmp 0x4c7ff5
cmp ebp, 0x20
jae 0x4c733d
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jb 0x4c7316
mov ecx, edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
xor eax, eax
mov ah, byte [esp + 0x12]
shl ecx, 8
shr edx, 0x18
add ecx, eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x4c]
xor ebp, ebp
mov dword [ebx + 0x14], eax
mov dword [ecx + 0x30], eax
mov dword [esp + 0x10], ebp
mov dword [ebx], 0xa
mov edx, ebp
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4c800d
push 0
push 0
push 0
call fcn.004c8bc0
mov edx, dword [esp + 0x58]
mov dword [ebx + 0x14], eax
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebx], 0xb
cmp dword [esp + 0x50], 5
je 0x4c8057
mov eax, dword [ebx + 4]
test eax, eax
je 0x4c73cc
mov ecx, ebp
and ecx, 7
shr edx, cl
sub ebp, ecx
mov dword [ebx], 0x18
mov dword [esp + 0x10], edx
jmp 0x4c7ff5
cmp ebp, 3
jae 0x4c73f4
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 3
mov dword [esp + 0x18], esi
jb 0x4c73d1
mov ecx, edx
shr edx, 1
and ecx, 1
mov eax, edx
and eax, 3
dec ebp
cmp eax, 3
mov dword [ebx + 4], ecx
ja case.default.0x4c7409
jmp dword [eax*4 + 0x4c81f4]
shr edx, 2
mov dword [ebx], 0xd
mov dword [esp + 0x10], edx
sub ebp, 2
jmp 0x4c7ff5
shr edx, 2
mov dword [ebx + 0x44], 0x53a3c0
mov dword [ebx + 0x4c], 9
mov dword [ebx + 0x48], 0x53abc0
mov dword [ebx + 0x50], 5
mov dword [ebx], 0x12
mov dword [esp + 0x10], edx
sub ebp, 2
jmp 0x4c7ff5
shr edx, 2
mov dword [ebx], 0xf
mov dword [esp + 0x10], edx
sub ebp, 2
jmp 0x4c7ff5
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [ebx], 0x1b
shr edx, 2
mov dword [esp + 0x10], edx
sub ebp, 2
jmp 0x4c7ff5
mov ecx, ebp
and ecx, 7
shr edx, cl
sub ebp, ecx
cmp ebp, 0x20
mov dword [esp + 0x10], edx
jae 0x4c74c7
lea ecx, [ecx]
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jb 0x4c74a0
mov ecx, edx
mov eax, edx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x4c74e9
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x4c7fef
xor ebp, ebp
mov dword [ebx + 0x38], eax
mov dword [esp + 0x10], ebp
mov dword [ebx], 0xe
mov edx, ebp
mov ecx, dword [ebx + 0x38]
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x4c7b8c
cmp ecx, edi
jbe 0x4c7513
mov ecx, edi
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
cmp ecx, eax
jbe 0x4c7521
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4c8057
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
sub esi, eax
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x38]
sub edi, eax
add esi, eax
sub ecx, eax
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x18]
mov dword [ebx + 0x38], ecx
jmp 0x4c7ff5
cmp ebp, 0xe
jae 0x4c75a8
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0xe
mov dword [esp + 0x18], esi
jb 0x4c7585
mov ecx, edx
and ecx, 0x1f
shr edx, 5
add ecx, 0x101
mov eax, edx
mov dword [ebx + 0x58], ecx
and eax, 0x1f
shr edx, 5
inc eax
mov ecx, edx
and ecx, 0xf
mov dword [ebx + 0x5c], eax
mov eax, dword [ebx + 0x58]
add ecx, 4
shr edx, 4
sub ebp, 0xe
cmp eax, 0x11e
mov dword [ebx + 0x54], ecx
mov dword [esp + 0x10], edx
ja 0x4c76d7
cmp dword [ebx + 0x5c], 0x1e
ja 0x4c76d7
mov dword [ebx + 0x60], 0
mov dword [ebx], 0x10
mov ecx, dword [ebx + 0x60]
cmp ecx, dword [ebx + 0x54]
jae 0x4c7660
cmp ebp, 3
jae 0x4c7633
lea esp, [esp]
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 3
mov dword [esp + 0x18], esi
jb 0x4c7610
mov eax, dword [ebx + 0x60]
movzx eax, word [eax*2 + 0x53ac40]
xor ecx, ecx
mov cl, dl
shr edx, 3
sub ebp, 3
mov dword [esp + 0x10], edx
and ecx, 7
mov word [ebx + eax*2 + 0x68], cx
mov ecx, dword [ebx + 0x60]
inc ecx
mov dword [ebx + 0x60], ecx
cmp ecx, dword [ebx + 0x54]
jb 0x4c7607
mov ecx, dword [ebx + 0x60]
mov eax, 0x13
cmp ecx, eax
jae 0x4c768b
xor ecx, ecx
mov edi, edi
mov edx, dword [ebx + 0x60]
movzx edx, word [edx*2 + 0x53ac40]
mov word [ebx + edx*2 + 0x68], cx
mov edx, dword [ebx + 0x60]
inc edx
cmp edx, eax
mov dword [ebx + 0x60], edx
jb 0x4c7670
lea eax, [ebx + 0x528]
lea ecx, [ebx + 0x64]
mov dword [ecx], eax
mov dword [ebx + 0x44], eax
lea edx, [ebx + 0x2e8]
push edx
lea eax, [ebx + 0x4c]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [ebx + 0x68]
push eax
push 0
call fcn.004c8700
mov edx, dword [esp + 0x28]
add esp, 0x18
test eax, eax
mov dword [esp + 0x34], eax
je 0x4c76e7
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x18], str.invalid_code_lengths_set
jmp 0x4c7fef
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x4c7fef
mov dword [ebx + 0x60], 0
mov dword [ebx], 0x11
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x5c]
add eax, ecx
cmp dword [ebx + 0x60], eax
jae 0x4c793b
mov ecx, dword [ebx + 0x4c]
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x44]
dec eax
and eax, edx
mov ecx, dword [ecx + eax*4]
movzx eax, ch
cmp eax, ebp
mov dword [esp + 0x40], ecx
jbe 0x4c775f
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [ebx + 0x4c]
dec edi
add ebp, 8
add edx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x44]
inc esi
mov dword [esp + 0x14], edi
dec eax
and eax, edx
mov ecx, dword [ecx + eax*4]
movzx eax, ch
cmp eax, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], ecx
ja 0x4c7723
mov eax, dword [esp + 0x40]
shr eax, 0x10
cmp ax, 0x10
jae 0x4c77be
movzx ecx, ch
cmp ebp, ecx
mov dword [esp + 0x1c], ecx
jae 0x4c779d
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [esp + 0x1c]
dec edi
add ebp, 8
add edx, eax
inc esi
cmp ebp, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
jb 0x4c7777
mov ax, word [esp + 0x42]
shr edx, cl
sub ebp, ecx
mov ecx, dword [ebx + 0x60]
mov word [ebx + ecx*2 + 0x68], ax
mov eax, dword [ebx + 0x60]
inc eax
mov dword [esp + 0x10], edx
mov dword [ebx + 0x60], eax
jmp 0x4c7906
jne 0x4c7828
movzx ecx, ch
lea eax, [ecx + 2]
cmp ebp, eax
mov dword [esp + 0x1c], ecx
jae 0x4c77f9
mov edi, edi
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [esp + 0x1c]
dec edi
add ebp, 8
add edx, eax
inc esi
lea eax, [ecx + 2]
cmp ebp, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
jb 0x4c77d0
mov eax, dword [ebx + 0x60]
shr edx, cl
sub ebp, ecx
test eax, eax
mov dword [esp + 0x10], edx
je 0x4c7919
movzx ecx, word [ebx + eax*2 + 0x66]
mov eax, edx
and eax, 3
add eax, 3
shr edx, 2
mov dword [esp + 0x30], ecx
sub ebp, 2
jmp 0x4c78d3
cmp ax, 0x11
movzx eax, ch
mov dword [esp + 0x1c], eax
jne 0x4c7881
add eax, 3
cmp ebp, eax
jae 0x4c7869
lea esp, [esp]
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
mov eax, dword [esp + 0x1c]
inc esi
add eax, 3
cmp ebp, eax
mov dword [esp + 0x18], esi
jb 0x4c7840
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov edi, 0xfffffffd
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
jmp 0x4c78c7
add eax, 7
cmp ebp, eax
jae 0x4c78b1
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
mov eax, dword [esp + 0x1c]
inc esi
add eax, 7
cmp ebp, eax
mov dword [esp + 0x18], esi
jb 0x4c7888
mov ecx, dword [esp + 0x1c]
shr edx, cl
mov edi, 0xfffffff9
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
sub edi, ecx
mov dword [esp + 0x30], 0
add ebp, edi
mov edi, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x60]
add edi, dword [ebx + 0x58]
add ecx, eax
cmp ecx, edi
mov dword [esp + 0x10], edx
ja 0x4c7926
test eax, eax
je 0x4c7902
mov ecx, dword [esp + 0x30]
mov edi, edi
mov edi, dword [ebx + 0x60]
mov word [ebx + edi*2 + 0x68], cx
mov edi, dword [ebx + 0x60]
inc edi
dec eax
mov dword [ebx + 0x60], edi
jne 0x4c78f0
mov edi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x5c]
add eax, ecx
cmp dword [ebx + 0x60], eax
jb 0x4c7705
jmp 0x4c793b
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x4c7935
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
mov dword [edx + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1b
lea eax, [ebx + 0x528]
lea ecx, [ebx + 0x64]
mov dword [ecx], eax
mov dword [ebx + 0x44], eax
lea edx, [ebx + 0x2e8]
push edx
lea eax, [ebx + 0x4c]
push eax
push ecx
mov dword [eax], 9
mov eax, dword [ebx + 0x58]
push eax
lea ecx, [ebx + 0x68]
push ecx
push 1
call fcn.004c8700
add esp, 0x18
test eax, eax
mov dword [esp + 0x34], eax
je 0x4c7989
mov edx, dword [esp + 0x4c]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x4c7fef
mov eax, dword [ebx + 0x64]
lea ecx, [ebx + 0x64]
mov dword [ebx + 0x48], eax
lea edx, [ebx + 0x2e8]
push edx
mov edx, dword [ebx + 0x58]
lea eax, [ebx + 0x50]
push eax
push ecx
mov ecx, dword [ebx + 0x5c]
mov dword [eax], 6
push ecx
lea eax, [ebx + edx*2 + 0x68]
push eax
push 2
call fcn.004c8700
mov edx, dword [esp + 0x28]
add esp, 0x18
test eax, eax
mov dword [esp + 0x34], eax
je 0x4c79d6
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x18], str.invalid_distances_set
jmp 0x4c7fef
mov dword [ebx], 0x12
cmp edi, 6
jb 0x4c7a46
cmp dword [esp + 0x20], 0x102
jb 0x4c7a46
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [ebx + 0x30], edx
mov edx, dword [esp + 0x2c]
push edx
push eax
mov dword [ebx + 0x34], ebp
call fcn.004c8290
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [ebx + 0x30]
mov ebp, dword [ebx + 0x34]
mov dword [esp + 0x28], edx
add esp, 8
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov edx, eax
jmp 0x4c7ff5
mov ecx, dword [ebx + 0x4c]
mov eax, 1
shl eax, cl
dec eax
and eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + ecx*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x40], eax
jbe 0x4c7aa2
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [ebx + 0x4c]
dec edi
add ebp, 8
add edx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x44]
inc esi
mov dword [esp + 0x14], edi
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], eax
ja 0x4c7a66
test al, al
je 0x4c7b61
test al, 0xf0
jne 0x4c7b61
movzx ecx, ah
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov cl, al
mov dword [esp + 0x30], eax
add ecx, dword [esp + 0x1c]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
dec eax
and eax, edx
shr eax, cl
mov ecx, dword [esp + 0x40]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x30]
shr ecx, 8
mov dword [esp + 0x40], eax
movzx ecx, cl
movzx eax, ah
add eax, ecx
cmp eax, ebp
mov dword [esp + 0x1c], ecx
jbe 0x4c7b59
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
xor ecx, ecx
mov cl, byte [esp + 0x30]
dec edi
add edx, eax
mov eax, dword [esp + 0x1c]
inc esi
add ebp, 8
mov dword [esp + 0x14], edi
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
dec eax
and eax, edx
shr eax, cl
movzx ecx, word [esp + 0x32]
add eax, ecx
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
movzx eax, ah
add eax, ecx
cmp eax, ebp
ja 0x4c7b01
mov eax, dword [esp + 0x40]
shr edx, cl
sub ebp, ecx
movzx ecx, ah
shr edx, cl
movzx ecx, ah
sub ebp, ecx
mov ecx, dword [esp + 0x40]
shr ecx, 0x10
test al, al
mov dword [esp + 0x10], edx
mov dword [ebx + 0x38], ecx
jne 0x4c7b88
mov dword [ebx], 0x17
jmp 0x4c7ff5
test al, 0x20
je 0x4c7b97
mov dword [ebx], 0xb
jmp 0x4c7ff5
test al, 0x40
je 0x4c7bab
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x4c7fef
and eax, 0xf
mov dword [ebx + 0x40], eax
mov dword [ebx], 0x13
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4c7c03
cmp ebp, eax
jae 0x4c7be7
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
mov eax, dword [ebx + 0x40]
inc esi
cmp ebp, eax
mov dword [esp + 0x18], esi
jb 0x4c7bc2
mov ecx, dword [ebx + 0x40]
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x38]
dec eax
and eax, edx
add ecx, eax
mov dword [ebx + 0x38], ecx
mov ecx, dword [ebx + 0x40]
shr edx, cl
sub ebp, ecx
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x50]
mov eax, 1
shl eax, cl
dec eax
and eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + ecx*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x40], eax
jbe 0x4c7c6c
lea esp, [esp]
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
mov ecx, dword [ebx + 0x50]
dec edi
add ebp, 8
add edx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x48]
inc esi
mov dword [esp + 0x14], edi
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], eax
ja 0x4c7c30
test al, 0xf0
jne 0x4c7d23
movzx ecx, ah
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov cl, al
mov dword [esp + 0x30], eax
add ecx, dword [esp + 0x1c]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
dec eax
and eax, edx
shr eax, cl
mov ecx, dword [esp + 0x40]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x30]
shr ecx, 8
mov dword [esp + 0x40], eax
movzx ecx, cl
movzx eax, ah
add eax, ecx
cmp eax, ebp
mov dword [esp + 0x1c], ecx
jbe 0x4c7d1b
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
xor ecx, ecx
mov cl, byte [esp + 0x30]
dec edi
add edx, eax
mov eax, dword [esp + 0x1c]
inc esi
add ebp, 8
mov dword [esp + 0x14], edi
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
dec eax
and eax, edx
shr eax, cl
movzx ecx, word [esp + 0x32]
add eax, ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
movzx eax, ah
add eax, ecx
cmp eax, ebp
ja 0x4c7cc3
mov eax, dword [esp + 0x40]
shr edx, cl
sub ebp, ecx
movzx ecx, ah
shr edx, cl
movzx ecx, ah
sub ebp, ecx
test al, 0x40
mov dword [esp + 0x10], edx
je 0x4c7d45
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x18], str.invalid_distance_code
jmp 0x4c7fef
mov ecx, dword [esp + 0x40]
shr ecx, 0x10
and eax, 0xf
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x40], eax
mov dword [ebx], 0x15
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4c7dab
cmp ebp, eax
jae 0x4c7d8b
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
mov eax, dword [ebx + 0x40]
inc esi
cmp ebp, eax
mov dword [esp + 0x18], esi
jb 0x4c7d66
mov ecx, dword [ebx + 0x40]
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x3c]
dec eax
and eax, edx
add ecx, eax
mov dword [ebx + 0x3c], ecx
mov ecx, dword [ebx + 0x40]
shr edx, cl
sub ebp, ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x24]
sub ecx, eax
add ecx, dword [esp + 0x2c]
cmp dword [ebx + 0x3c], ecx
jbe 0x4c7dcd
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x4c7fef
mov dword [ebx], 0x16
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c8057
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov eax, dword [ebx + 0x3c]
cmp eax, ecx
jbe 0x4c7e28
sub eax, ecx
mov ecx, dword [ebx + 0x28]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x4c7e09
sub eax, ecx
mov ecx, dword [ebx + 0x2c]
add ecx, dword [ebx + 0x20]
mov dword [esp + 0x1c], eax
sub ecx, eax
jmp 0x4c7e15
mov ecx, dword [ebx + 0x2c]
sub ecx, eax
add ecx, dword [ebx + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x38]
cmp eax, ecx
mov dword [esp + 0x38], ecx
jbe 0x4c7e3d
mov eax, ecx
jmp 0x4c7e39
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jbe 0x4c7e4b
mov eax, ecx
mov dword [esp + 0x1c], eax
sub ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x38], ecx
mov edi, edi
mov ecx, dword [esp + 0x30]
mov cl, byte [ecx]
mov byte [eax], cl
mov ecx, dword [esp + 0x30]
inc eax
inc ecx
mov dword [esp + 0x30], ecx
dec dword [esp + 0x1c]
jne 0x4c7e60
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x4c7ff5
mov dword [ebx], 0x12
jmp 0x4c7ff5
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c8057
mov eax, dword [esp + 0x28]
mov cl, byte [ebx + 0x38]
mov byte [eax], cl
inc eax
mov dword [esp + 0x28], eax
dec dword [esp + 0x20]
mov dword [ebx], 0x12
jmp 0x4c7ff5
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c7f97
cmp ebp, 0x20
jae 0x4c7ef7
jmp 0x4c7ed0
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jb 0x4c7ed0
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
add dword [ecx + 0x14], eax
mov ecx, dword [ebx + 0x18]
add ecx, eax
test eax, eax
mov dword [esp + 0x2c], eax
mov dword [ebx + 0x18], ecx
je 0x4c7f4e
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x28]
test eax, eax
mov eax, dword [esp + 0x2c]
push eax
je 0x4c7f34
sub ecx, eax
push ecx
push edx
call fcn.004c60a0
jmp 0x4c7f3d
sub ecx, eax
push ecx
push edx
call fcn.004c8bc0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x14], eax
add esp, 0xc
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x10]
test eax, eax
mov eax, edx
jne 0x4c7f7d
and eax, 0xff00
mov ecx, edx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [esp + 0x12]
shl eax, 8
add eax, ecx
mov ecx, edx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [ebx + 0x14]
je 0x4c7f8f
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x4c7fef
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov edx, ebp
mov dword [ebx], 0x19
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c803f
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4c803f
cmp ebp, 0x20
jae 0x4c7fdf
test edi, edi
je 0x4c8057
movzx eax, byte [esi]
mov ecx, ebp
shl eax, cl
dec edi
add ebp, 8
mov dword [esp + 0x14], edi
add edx, eax
inc esi
cmp ebp, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jb 0x4c7fb8
cmp edx, dword [ebx + 0x18]
je 0x4c8037
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [ebx], 0x1b
mov eax, dword [ebx]
cmp eax, 0x1c
jbe switch.0x004c6e34
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edi
mov dword [eax], esi
pop edi
mov dword [eax + 0x10], ecx
pop esi
mov dword [ebx + 0x34], ebp
pop ebp
mov dword [ebx + 0x30], edx
mov eax, 2
pop ebx
add esp, 0x38
ret
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov edx, ebp
mov dword [ebx], 0x1a
mov dword [esp + 0x34], 1
jmp 0x4c8057
mov dword [esp + 0x34], 0xfffffffd
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebx + 0x20]
test eax, eax
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], ebp
jne 0x4c808d
cmp dword [ebx], 0x18
jge 0x4c80b5
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
cmp edx, dword [eax + 0x10]
je 0x4c80b5
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
push ecx
call fcn.004c6c90
add esp, 4
test eax, eax
je 0x4c80b5
mov dword [ebx], 0x1c
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x38
ret
mov esi, dword [esp + 0x4c]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
mov eax, dword [esi + 8]
sub ebp, edx
mov edx, dword [esi + 0x14]
sub edi, ecx
add eax, ebp
add edx, edi
mov dword [esi + 8], eax
mov dword [esi + 0x14], edx
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
add ecx, edi
test eax, eax
mov dword [ebx + 0x18], ecx
je 0x4c811f
test edi, edi
je 0x4c811f
mov eax, dword [ebx + 0x10]
test eax, eax
push edi
je 0x4c8107
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x14]
sub edx, edi
push edx
push eax
call fcn.004c60a0
jmp 0x4c8116
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx + 0x14]
sub ecx, edi
push ecx
push edx
call fcn.004c8bc0
mov dword [ebx + 0x14], eax
add esp, 0xc
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, 0x40
cmp edx, 0xb
setne cl
dec ecx
and ecx, 0x80
add eax, ecx
add eax, dword [ebx + 0x34]
test ebp, ebp
mov dword [esi + 0x2c], eax
jne 0x4c814a
test edi, edi
je 0x4c8151
cmp dword [esp + 0x50], 4
jne 0x4c816a
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4c8005
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, 0xfffffffe
pop ebx
add esp, 0x38
ret