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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
test eax, eax
je 0x4d3536
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4d3536
cmp dword [eax + 0xc], 0
je 0x4d3536
cmp dword [eax], 0
jne 0x4d21e8
cmp dword [eax + 4], 0
jne 0x4d3536
cmp dword [ecx], 0xb
jne 0x4d21f3
mov dword [ecx], 0xc
mov edx, dword [eax + 0xc]
push ebx
mov ebx, dword [eax + 4]
push esi
mov esi, dword [ecx + 0x34]
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 0x30]
push edi
mov edi, dword [eax]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0x38], ebx
cmp eax, 0x1c
ja case.default.0x4d2240
lea edi, [ecx + 0x4c]
mov dword [ebp - 0x2c], edi
lea edi, [ecx + 0x50]
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x10]
mov edi, edi
jmp dword [eax*4 + 0x4d3540]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x4d225c
mov dword [ecx], 0xc
jmp 0x4d33ec
cmp esi, 0x10
jae 0x4d228b
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x4d2261
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
and eax, 1
je 0x4d22d8
cmp edx, 0x8b1f
jne 0x4d22d8
push 0
push 0
push 0
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
push 2
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], 0x8b1f
push dword [ecx + 0x14]
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
xor edx, edx
add esp, 0x18
mov dword [ebp - 4], edx
xor esi, esi
mov dword [ecx + 0x14], eax
mov dword [ecx], 1
jmp 0x4d33ec
mov dword [ecx + 0x10], 0
test eax, eax
je 0x4d2379
movzx ecx, dl
mov eax, edx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
mov ecx, 0x1f
div ecx
mov ecx, dword [ebp - 0xc]
test edx, edx
mov edx, dword [ebp - 4]
jne 0x4d2379
mov eax, edx
and al, 0xf
cmp al, 8
je 0x4d231e
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x4d33e6
shr edx, 4
sub esi, 4
mov eax, edx
mov dword [ebp - 4], edx
and eax, 0xf
add eax, 8
cmp eax, dword [ecx + 0x1c]
jbe 0x4d2343
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x4d33e6
push 0
push 0
push 0
call fcn.004e25c0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov dword [edx + 0x30], eax
mov edx, dword [ebp - 4]
shr edx, 8
not edx
and edx, 2
or edx, 9
mov dword [ecx], edx
xor edx, edx
mov dword [ebp - 4], edx
xor esi, esi
jmp 0x4d33ec
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_header_check
jmp 0x4d33e6
cmp esi, 0x10
jae 0x4d23b7
lea ecx, [ecx]
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x4d2390
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], edx
cmp dl, 8
je 0x4d23ce
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x4d33e6
test edx, 0xe000
je 0x4d23e5
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x4d33e6
test edx, 0x200
je 0x4d240d
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x17], dl
push dword [ecx + 0x14]
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ecx + 0x14], eax
xor edx, edx
mov dword [ecx], 2
mov dword [ebp - 4], edx
xor esi, esi
jmp 0x4d2421
cmp esi, 0x20
jae 0x4d2448
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x4d2421
mov ecx, dword [ebp - 0xc]
test dword [ecx + 0x10], 0x200
je 0x4d2481
mov eax, edx
mov byte [ebp - 0x18], dl
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x16], al
lea eax, [ebp - 0x18]
push 4
shr edx, 0x18
push eax
mov byte [ebp - 0x15], dl
push dword [ecx + 0x14]
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ecx + 0x14], eax
xor edx, edx
mov dword [ecx], 3
mov dword [ebp - 4], edx
xor esi, esi
jmp 0x4d2495
cmp esi, 0x10
jae 0x4d24bc
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x4d2495
mov ecx, dword [ebp - 0xc]
test dword [ecx + 0x10], 0x200
je 0x4d24e5
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x17], dl
push dword [ecx + 0x14]
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ecx + 0x14], eax
xor edx, edx
mov dword [ecx], 4
mov dword [ebp - 4], edx
xor esi, esi
test dword [ecx + 0x10], 0x400
je 0x4d255c
cmp esi, 0x10
jae 0x4d2527
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x4d2500
mov ecx, dword [ebp - 0xc]
test dword [ecx + 0x10], 0x200
mov dword [ecx + 0x38], edx
je 0x4d2553
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x17], dl
push dword [ecx + 0x14]
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ecx + 0x14], eax
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ecx], 5
mov edx, dword [ecx + 0x10]
test edx, 0x400
je 0x4d25b1
mov eax, dword [ecx + 0x38]
cmp eax, ebx
cmova eax, ebx
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4d25a7
test edx, 0x200
je 0x4d259a
push eax
push edi
push dword [ecx + 0x14]
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x34]
sub ebx, eax
add edi, eax
sub dword [ecx + 0x38], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
cmp dword [ecx + 0x38], 0
jne 0x4d344b
mov dword [ecx], 6
test dword [ecx + 0x10], 0x800
je 0x4d2617
test ebx, ebx
je 0x4d344b
xor eax, eax
lea ebx, [ebx]
movzx edx, byte [eax + edi]
inc eax
mov dword [ebp - 0x30], edx
test edx, edx
je 0x4d25e0
cmp eax, ebx
jb 0x4d25d0
test dword [ecx + 0x10], 0x2000
mov dword [ebp - 0x34], eax
je 0x4d2605
push eax
push edi
push dword [ecx + 0x14]
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x34]
sub ebx, eax
add edi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
test edx, edx
jne 0x4d344b
mov dword [ecx], 7
test dword [ecx + 0x10], 0x1000
je 0x4d2677
test ebx, ebx
je 0x4d344b
xor eax, eax
movzx edx, byte [eax + edi]
inc eax
mov dword [ebp - 0x30], edx
test edx, edx
je 0x4d2640
cmp eax, ebx
jb 0x4d2630
test dword [ecx + 0x10], 0x2000
mov dword [ebp - 0x34], eax
je 0x4d2665
push eax
push edi
push dword [ecx + 0x14]
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x34]
sub ebx, eax
add edi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
test edx, edx
jne 0x4d344b
mov edx, dword [ebp - 4]
mov dword [ecx], 8
test dword [ecx + 0x10], 0x200
je 0x4d26d7
cmp esi, 0x10
jae 0x4d26b7
mov edi, edi
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x10
jb 0x4d2690
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0x14]
cmp edx, eax
je 0x4d26ce
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x4d33e6
mov dword [ebp - 4], 0
xor esi, esi
push 0
push 0
push 0
call fcn.004e26f0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov dword [edx + 0x30], eax
mov edx, dword [ebp - 4]
mov dword [ecx], 0xb
jmp 0x4d33ec
cmp esi, 0x20
jae 0x4d2728
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x4d2704
mov ecx, edx
mov eax, edx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
shr edx, 0x18
add eax, ecx
mov ecx, dword [ebp - 0xc]
add eax, edx
mov edx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov dword [edx + 0x30], eax
xor edx, edx
mov dword [ebp - 4], edx
xor esi, esi
mov dword [ecx], 0xa
cmp dword [ecx + 0xc], 0
je 0x4d3403
push 0
push 0
push 0
call fcn.004e25c0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov dword [edx + 0x30], eax
mov edx, dword [ebp - 4]
mov dword [ecx], 0xb
cmp dword [ebp + 0xc], 5
je 0x4d344b
cmp dword [ecx + 4], 0
je 0x4d27bb
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov dword [ecx], 0x18
jmp 0x4d33ec
cmp esi, 3
jae 0x4d27e7
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 3
jb 0x4d27c0
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ecx + 4], eax
mov eax, edx
and eax, 3
cmp eax, 3
ja case.default.0x4d27fb
jmp dword [eax*4 + 0x4d35b4]
shr edx, 2
sub esi, 3
mov dword [ecx], 0xd
mov dword [ebp - 4], edx
jmp 0x4d33ec
shr edx, 2
sub esi, 3
mov dword [ecx + 0x44], 0x511930
mov dword [ecx + 0x4c], 9
mov dword [ecx + 0x48], 0x512130
mov dword [ecx + 0x50], 5
mov dword [ecx], 0x12
mov dword [ebp - 4], edx
jmp 0x4d33ec
shr edx, 2
sub esi, 3
mov dword [ecx], 0xf
mov dword [ebp - 4], edx
jmp 0x4d33ec
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [ecx], 0x1b
shr edx, 2
sub esi, 3
mov dword [ebp - 4], edx
jmp 0x4d33ec
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
cmp esi, 0x20
jae 0x4d28b4
lea esp, [esp]
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x4d2890
mov eax, edx
mov ecx, edx
and ecx, 0xffff
not eax
shr eax, 0x10
mov dword [ebp - 0x34], ecx
cmp ecx, eax
mov ecx, dword [ebp - 0xc]
je 0x4d28dc
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x4d33e6
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [ecx + 0x38], eax
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ecx], 0xe
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x4d2f79
cmp eax, ebx
cmova eax, ebx
cmp eax, dword [ebp - 0x14]
cmova eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4d344b
push eax
push edi
push dword [ebp - 0x1c]
call fcn.004ef340
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
sub ebx, eax
sub dword [ebp - 0x14], eax
add edi, eax
add dword [ebp - 0x1c], eax
mov edx, dword [ebp - 4]
sub dword [ecx + 0x38], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
jmp 0x4d33ec
cmp esi, 0xe
jae 0x4d296b
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0xe
jb 0x4d2944
mov ecx, dword [ebp - 0xc]
mov eax, edx
sub esi, 0xe
and eax, 0x1f
shr edx, 5
add eax, 0x101
mov dword [ecx + 0x58], eax
mov eax, edx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ecx + 0x5c], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp - 4], edx
cmp dword [ecx + 0x58], 0x11e
mov dword [ecx + 0x54], eax
ja 0x4d2a9b
cmp dword [ecx + 0x5c], 0x1e
ja 0x4d2a9b
mov dword [ecx + 0x60], 0
mov dword [ecx], 0x10
mov eax, dword [ecx + 0x60]
cmp eax, dword [ecx + 0x54]
jae 0x4d2a28
cmp esi, 3
jae 0x4d29f4
lea esp, [esp]
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 3
jb 0x4d29d0
mov eax, dword [ebp - 0xc]
mov ecx, edx
mov edi, dword [ebp - 0xc]
and ecx, 7
shr edx, 3
sub esi, 3
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x60]
movzx eax, word [eax*2 + 0x5121b0]
mov word [edi + eax*2 + 0x68], cx
mov ecx, edi
mov edi, dword [ebp - 0x10]
inc dword [ecx + 0x60]
mov eax, dword [ecx + 0x60]
cmp eax, dword [ecx + 0x54]
jb 0x4d29c7
cmp dword [ecx + 0x60], 0x13
jae 0x4d2a4b
mov edi, edi
mov eax, dword [ecx + 0x60]
xor edx, edx
movzx eax, word [eax*2 + 0x5121b0]
mov word [ecx + eax*2 + 0x68], dx
inc dword [ecx + 0x60]
cmp dword [ecx + 0x60], 0x13
jb 0x4d2a30
mov edx, dword [ebp - 0xc]
lea eax, [ecx + 0x528]
add ecx, 0x64
mov dword [edx + 0x44], eax
mov dword [ecx], eax
lea eax, [edx + 0x2e8]
push eax
lea eax, [edx + 0x4c]
mov dword [edx + 0x4c], 7
push eax
push ecx
push 0x13
lea eax, [edx + 0x68]
push eax
push 0
call fcn.004e2a10
mov ecx, dword [ebp - 0xc]
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4d2aaa
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x4d33e6
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x4d33e6
mov dword [ecx + 0x60], 0
mov dword [ecx], 0x11
mov eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 0x60]
add eax, dword [ecx + 0x58]
mov dword [ebp - 0x24], edx
cmp edx, eax
jae 0x4d2d1a
jmp 0x4d2ad0
mov eax, dword [ebp - 0x2c]
mov edx, 1
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x30], eax
cmp ecx, esi
jbe 0x4d2b3d
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
mov edx, 1
add dword [ebp - 4], eax
dec ebx
mov eax, dword [ebp - 0x2c]
inc edi
add esi, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x30], eax
cmp ecx, esi
ja 0x4d2af8
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x4d2b97
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x34], ecx
cmp esi, ecx
jae 0x4d2b78
test ebx, ebx
je 0x4d344b
movzx edx, byte [edi]
mov ecx, esi
shl edx, cl
dec ebx
add dword [ebp - 4], edx
inc edi
add esi, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x34]
jb 0x4d2b56
mov edx, dword [ebp - 0x24]
movzx ecx, ah
shr dword [ebp - 4], cl
sub esi, ecx
mov ecx, dword [ebp - 0xc]
mov ax, word [ebp - 0x2e]
mov word [ecx + edx*2 + 0x68], ax
inc dword [ecx + 0x60]
jmp 0x4d2cf1
mov cx, word [ebp - 0x2e]
mov edx, dword [ebp - 4]
cmp cx, 0x10
jne 0x4d2c0d
movzx ecx, ah
mov dword [ebp - 0x34], ecx
lea eax, [ecx + 2]
cmp esi, eax
jae 0x4d2bda
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x34]
add edx, eax
inc edi
mov dword [ebp - 8], ebx
add esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
lea eax, [ecx + 2]
cmp esi, eax
jb 0x4d2bb1
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x4d2d07
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2 + 0x66]
mov dword [ebp - 0x34], eax
mov eax, edx
and eax, 3
shr edx, 2
add eax, 3
sub esi, 2
mov dword [ebp - 0x30], eax
jmp 0x4d2cb9
cmp cx, 0x11
movzx ecx, ah
jne 0x4d2c60
lea eax, [ecx + 3]
mov dword [ebp - 0x34], ecx
cmp esi, eax
jae 0x4d2c49
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x34]
add edx, eax
inc edi
mov dword [ebp - 8], ebx
add esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
lea eax, [ecx + 3]
cmp esi, eax
jb 0x4d2c20
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
mov dword [ebp - 0x30], eax
mov eax, 0xfffffffd
jmp 0x4d2cae
lea eax, [ecx + 7]
mov dword [ebp - 0x34], ecx
cmp esi, eax
jae 0x4d2c99
lea ebx, [ebx]
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
mov ecx, dword [ebp - 0x34]
add edx, eax
inc edi
mov dword [ebp - 8], ebx
add esi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
lea eax, [ecx + 7]
cmp esi, eax
jb 0x4d2c70
shr edx, cl
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
mov dword [ebp - 0x30], eax
mov eax, 0xfffffff9
sub eax, ecx
mov dword [ebp - 0x34], 0
add esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax + 0x5c]
add ecx, dword [eax + 0x58]
mov eax, dword [ebp - 0x24]
add eax, edx
cmp eax, ecx
mov ecx, dword [ebp - 0xc]
ja 0x4d2d0a
test edx, edx
je 0x4d2cf1
mov edi, dword [ebp - 0x34]
jmp 0x4d2ce0
mov eax, dword [ecx + 0x60]
mov word [ecx + eax*2 + 0x68], di
inc dword [ecx + 0x60]
dec edx
jne 0x4d2ce0
mov edi, dword [ebp - 0x10]
mov eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 0x60]
add eax, dword [ecx + 0x58]
mov dword [ebp - 0x24], edx
cmp edx, eax
jb 0x4d2ad0
jmp 0x4d2d1a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [ecx], 0x1b
lea eax, [ecx + 0x528]
mov dword [ecx + 0x4c], 9
lea edx, [ecx + 0x64]
mov dword [ecx + 0x44], eax
mov dword [edx], eax
lea eax, [ecx + 0x2e8]
push eax
lea eax, [ecx + 0x4c]
mov dword [ebp - 0x34], edx
push eax
push edx
push dword [ecx + 0x58]
lea eax, [ecx + 0x68]
push eax
push 1
call fcn.004e2a10
mov ecx, dword [ebp - 0xc]
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4d2d6b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x4d33e6
mov edx, dword [ebp - 0x34]
mov dword [ecx + 0x50], 6
mov eax, dword [edx]
mov dword [ecx + 0x48], eax
lea eax, [ecx + 0x2e8]
push eax
lea eax, [ecx + 0x50]
push eax
mov eax, dword [ecx + 0x58]
push edx
push dword [ecx + 0x5c]
add eax, 0x34
lea eax, [ecx + eax*2]
push eax
push 2
call fcn.004e2a10
mov ecx, dword [ebp - 0xc]
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4d2db9
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x4d33e6
mov dword [ecx], 0x12
cmp ebx, 6
jb 0x4d2e21
cmp dword [ebp - 0x14], 0x102
jb 0x4d2e21
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x14]
mov dword [eax + 0x10], edi
mov edi, dword [ebp - 0x10]
mov dword [eax], edi
mov dword [eax + 4], ebx
push eax
mov dword [ecx + 0x30], edx
mov dword [ecx + 0x34], esi
call fcn.004e2eb0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
mov edx, dword [ecx + 0x30]
mov esi, dword [ecx + 0x34]
mov dword [ebp - 4], edx
jmp 0x4d33ec
mov eax, dword [ecx + 0x44]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, 1
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [ebp - 0x30]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x4d2e8f
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x2c]
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov edx, 1
mov dword [ebp - 0x10], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x4d2e48
test al, al
je 0x4d2f46
test al, 0xf0
jne 0x4d2f46
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [ebp - 0x24], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [ebp - 0x34], edx
and ebx, dword [ebp - 4]
shr ebx, cl
mov ecx, dword [ebp - 0x30]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [ebp - 0x24]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x4d2f39
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d344e
mov ebx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 8], eax
mov ecx, esi
mov edi, 1
add esi, 8
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [ebp - 4], eax
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x10], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 4]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x4d2ee2
mov ebx, dword [ebp - 8]
movzx ecx, dh
mov edx, dword [ebp - 4]
shr edx, cl
sub esi, ecx
mov edi, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov ecx, eax
mov dword [ebp - 4], edx
shr ecx, 0x10
mov dword [edi + 0x38], ecx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
test al, al
jne 0x4d2f75
mov dword [ecx], 0x17
jmp 0x4d33ec
test al, 0x20
je 0x4d2f84
mov dword [ecx], 0xb
jmp 0x4d33ec
test al, 0x40
je 0x4d2f97
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x4d33e6
movzx eax, al
and eax, 0xf
mov dword [ecx], 0x13
mov dword [ecx + 0x40], eax
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4d2ff8
cmp esi, eax
jae 0x4d2fd8
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x34]
jb 0x4d2fb4
mov ecx, dword [ebp - 0x34]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0xc]
dec eax
and eax, edx
add dword [ecx + 0x38], eax
mov ecx, dword [ebp - 0x34]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov dword [ecx], 0x14
mov eax, dword [ecx + 0x48]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, 1
mov ecx, dword [ecx]
shl eax, cl
mov ecx, dword [ebp - 0x30]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x4d306c
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x3c]
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov edx, 1
mov dword [ebp - 0x10], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x4d3025
test al, 0xf0
jne 0x4d3121
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [ebp - 0x24], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [ebp - 0x34], edx
and ebx, dword [ebp - 4]
shr ebx, cl
mov ecx, dword [ebp - 0x30]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
shr ecx, 8
movzx edi, cl
mov ecx, dword [ebp - 0x24]
movzx ecx, cl
add edi, ecx
cmp edi, esi
jbe 0x4d3117
jmp 0x4d30c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d344e
mov ebx, dword [ebp - 0x10]
dec eax
mov dword [ebp - 8], eax
mov ecx, esi
mov edi, 1
add esi, 8
movzx eax, byte [ebx]
inc ebx
shl eax, cl
add dword [ebp - 4], eax
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0x10], ebx
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 4]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
cmp ecx, esi
ja 0x4d30c0
movzx ecx, dh
mov edx, dword [ebp - 4]
shr edx, cl
sub esi, ecx
mov edi, dword [ebp - 0x10]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov dword [ebp - 4], edx
test al, 0x40
je 0x4d314c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x4d33e6
mov ebx, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x3c], ecx
mov ecx, ebx
mov ebx, dword [ebp - 8]
mov dword [ecx + 0x40], eax
mov dword [ecx], 0x15
mov eax, dword [ecx + 0x40]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4d31c4
cmp esi, eax
jae 0x4d31a4
lea esp, [esp]
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, dword [ebp - 0x34]
jb 0x4d3180
mov ecx, dword [ebp - 0x34]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0xc]
dec eax
and eax, edx
add dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 0x34]
shr edx, cl
sub esi, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ecx + 0x24]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 8]
cmp dword [ecx + 0x3c], eax
jbe 0x4d31e4
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x4d33e6
mov dword [ecx], 0x16
cmp dword [ebp - 0x14], 0
je 0x4d344b
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x3c]
cmp eax, dword [ebp - 0x34]
jbe 0x4d3236
sub eax, dword [ebp - 0x34]
mov edi, dword [ecx + 0x28]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x30], eax
cmp eax, edi
jbe 0x4d3221
add edx, dword [ecx + 0x20]
sub eax, edi
mov dword [ebp - 0x30], eax
sub edx, eax
jmp 0x4d3225
sub edx, eax
add edx, edi
mov edi, dword [ecx + 0x38]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], edi
cmp eax, edi
jbe 0x4d3248
mov eax, edi
jmp 0x4d3245
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
sub dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x38]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x30]
cmp edi, eax
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
cmova edi, eax
sub eax, edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
sub eax, edi
sub ebx, edx
mov dword [ecx + 0x38], eax
mov al, byte [ebx + edx]
mov byte [edx], al
inc edx
dec edi
jne 0x4d3268
cmp dword [ecx + 0x38], 0
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 4]
jne 0x4d33ec
mov dword [ecx], 0x12
jmp 0x4d33ec
cmp dword [ebp - 0x14], 0
je 0x4d344b
mov edx, dword [ebp - 0x1c]
mov al, byte [ecx + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov byte [edx], al
mov edx, dword [ebp - 4]
mov dword [ecx], 0x12
jmp 0x4d33ec
cmp dword [ecx + 8], 0
je 0x4d338a
cmp esi, 0x20
jae 0x4d32ee
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x4d32c7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
add dword [eax + 0x14], edi
mov eax, edi
add dword [ecx + 0x18], eax
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x4d3338
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
cmp dword [ecx + 0x10], 0
push eax
push dword [ecx + 0x14]
je 0x4d3321
call fcn.004e26f0
jmp 0x4d3326
call fcn.004e25c0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov dword [edx + 0x30], eax
mov edx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, edx
jne 0x4d3372
and eax, 0xff00
mov dword [ebp - 0x24], eax
mov eax, edx
shl eax, 0x10
add dword [ebp - 0x24], eax
mov eax, edx
shl dword [ebp - 0x24], 8
shr eax, 8
and eax, 0xff00
add dword [ebp - 0x24], eax
mov eax, edx
shr eax, 0x18
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ecx + 0x14]
je 0x4d3383
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x4d33e6
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ecx], 0x19
cmp dword [ecx + 8], 0
je 0x4d3435
cmp dword [ecx + 0x10], 0
je 0x4d3435
cmp esi, 0x20
jae 0x4d33d7
lea esp, [esp]
test ebx, ebx
je 0x4d344b
movzx eax, byte [edi]
mov ecx, esi
shl eax, cl
dec ebx
add edx, eax
mov dword [ebp - 8], ebx
inc edi
mov dword [ebp - 4], edx
add esi, 8
mov dword [ebp - 0x10], edi
cmp esi, 0x20
jb 0x4d33b0
mov ecx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x18]
je 0x4d342c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_length_check
mov dword [ecx], 0x1b
mov eax, dword [ecx]
cmp eax, 0x1c
jbe switch.0x004d2240
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov eax, 2
pop edi
mov dword [ecx + 0x34], esi
pop esi
mov dword [ecx + 0x30], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ecx], 0x1a
mov dword [ebp - 0x28], 1
jmp 0x4d344b
mov dword [ebp - 0x28], 0xfffffffd
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [edi], ecx
cmp dword [ebx + 0x20], 0
mov dword [ebx + 0x34], esi
mov esi, dword [ebp - 0x20]
mov dword [ebx + 0x30], eax
jne 0x4d3484
cmp dword [ebx], 0x18
jge 0x4d34a4
cmp esi, dword [edi + 0x10]
je 0x4d34a4
push esi
push edi
call fcn.004d37a0
add esp, 8
test eax, eax
je 0x4d34a4
mov dword [ebx], 0x1c
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x38]
sub eax, dword [edi + 4]
sub esi, dword [edi + 0x10]
add dword [edi + 8], eax
add dword [edi + 0x14], esi
add dword [ebx + 0x18], esi
cmp dword [ebx + 8], 0
mov dword [ebp - 0x38], eax
je 0x4d34e8
test esi, esi
je 0x4d34e8
mov eax, dword [edi + 0xc]
push esi
sub eax, esi
cmp dword [ebx + 0x10], 0
push eax
push dword [ebx + 0x14]
je 0x4d34da
call fcn.004e26f0
jmp 0x4d34df
call fcn.004e25c0
mov dword [ebx + 0x14], eax
add esp, 0xc
mov dword [edi + 0x30], eax
mov ecx, dword [ebx + 4]
mov edx, 0x80
neg ecx
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebx], 0xb
cmove eax, edx
add ecx, eax
mov eax, dword [ebp - 0x38]
add ecx, dword [ebx + 0x34]
mov dword [edi + 0x2c], ecx
test eax, eax
jne 0x4d3512
test esi, esi
je 0x4d3518
cmp dword [ebp + 0xc], 4
jne 0x4d352c
mov eax, dword [ebp - 0x28]
mov ecx, 0xfffffffb
pop edi
test eax, eax
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret