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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
push esi
push edi
cmp ebx, eax
je case.0x4b3b26.1
mov edi, dword [ebx + 0x1c]
cmp edi, eax
je case.0x4b3b26.1
cmp dword [ebx + 0xc], eax
je case.0x4b3b26.1
cmp dword [ebx], eax
jne 0x4b3ada
cmp dword [ebx + 4], eax
jne case.0x4b3b26.1
cmp dword [edi], 0xb
jne 0x4b3ae5
mov dword [edi], 0xc
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov edx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], esi
cmp ecx, 0x1e
jbe switch.0x004b3b26
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 0xc]
jmp dword [ecx*4 + 0x4b47e7]
cmp dword [edi + 8], 0
jne 0x4b3b5f
mov dword [edi], 0xc
jmp 0x4b46b2
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
add esi, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
cmp esi, 0x10
jb 0x4b3b3e
movzx eax, byte [ebp - 4]
mov ecx, dword [ebp - 4]
shl eax, 8
shr ecx, 8
add eax, ecx
push 0x1f
xor edx, edx
pop ecx
div ecx
test edx, edx
je 0x4b3b8a
mov dword [ebx + 0x18], str.incorrect_header_check
jmp 0x4b46ac
mov eax, dword [ebp - 4]
and al, 0xf
cmp al, 8
je 0x4b3b9f
mov dword [ebx + 0x18], str.unknown_compression_method
jmp 0x4b46ac
shr dword [ebp - 4], 4
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 0x24]
and ecx, 0xf
sub esi, 4
add ecx, 8
mov dword [ebp - 0x10], esi
test eax, eax
jne 0x4b3be6
mov dword [edi + 0x24], ecx
xor eax, eax
inc eax
mov edx, eax
shl edx, cl
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], edx
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 4]
shr eax, 8
not eax
and eax, 2
or eax, 9
xor esi, esi
mov dword [edi], eax
mov dword [ebp - 4], esi
jmp 0x4b3d13
cmp ecx, eax
jbe 0x4b3bbc
mov dword [ebx + 0x18], str.invalid_window_size
jmp 0x4b46ac
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
cmp esi, 0x20
jb 0x4b3bf6
mov ecx, dword [ebp - 4]
mov edx, ecx
mov esi, ecx
shl esi, 0x10
and edx, 0xff00
add edx, esi
mov esi, ecx
shr esi, 8
shl edx, 8
and esi, 0xff00
add edx, esi
shr ecx, 0x18
add ecx, edx
mov dword [edi + 0x18], ecx
xor esi, esi
mov dword [ebx + 0x30], ecx
mov dword [ebp - 4], esi
mov dword [edi], 0xa
cmp dword [edi + 0xc], 0
je 0x4b46c2
xor ecx, ecx
inc ecx
mov dword [edi + 0x18], ecx
mov dword [ebx + 0x30], ecx
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x4b3ca6
mov ecx, esi
and ecx, 7
shr dword [ebp - 4], cl
sub esi, ecx
mov dword [ebp - 0x10], esi
mov dword [edi], 0x1a
jmp 0x4b46b2
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
cmp esi, 3
jb 0x4b3c88
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 1
and eax, 1
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
and eax, 3
dec esi
sub eax, 0
je 0x4b3d07
dec eax
je 0x4b3ce3
dec eax
je 0x4b3cdb
dec eax
jne 0x4b3d0d
mov dword [ebx + 0x18], str.invalid_block_type
mov dword [edi], 0x1d
jmp 0x4b3d0d
mov dword [edi], 0x10
jmp 0x4b3d0d
mov dword [edi + 0x4c], 0x523a18
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x524218
mov dword [edi + 0x58], 5
mov dword [edi], 0x13
jmp 0x4b3d0d
mov dword [edi], 0xd
shr dword [ebp - 4], 2
dec esi
dec esi
mov dword [ebp - 0x10], esi
jmp 0x4b46b2
mov ecx, esi
and ecx, 7
shr dword [ebp - 4], cl
mov dword [ebp - 0x28], ecx
sub esi, ecx
jmp 0x4b3d48
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
mov dword [ebp - 0x10], esi
cmp esi, 0x20
jb 0x4b3d2a
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
not edx
and ecx, 0xffff
shr edx, 0x10
cmp ecx, edx
je 0x4b3d71
mov dword [ebx + 0x18], str.invalid_stored_block_lengths
jmp 0x4b46ac
xor esi, esi
mov dword [edi + 0x40], ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [edi], 0xe
mov dword [edi], 0xf
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x4b4348
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x14], ecx
jbe 0x4b3da1
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], ecx
jbe 0x4b3dac
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x4b4701
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
call fcn.004e9720
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add dword [ebp - 0xc], eax
sub dword [ebp - 0x18], eax
add dword [ebp - 0x1c], eax
add esp, 0xc
sub dword [edi + 0x40], eax
jmp 0x4b46b2
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
cmp esi, 0xe
jb 0x4b3dde
mov ecx, dword [ebp - 4]
shr dword [ebp - 4], 5
and ecx, 0x1f
add ecx, 0x101
mov dword [edi + 0x60], ecx
mov ecx, dword [ebp - 4]
shr dword [ebp - 4], 5
and ecx, 0x1f
inc ecx
mov dword [edi + 0x64], ecx
mov ecx, dword [ebp - 4]
shr dword [ebp - 4], 4
and ecx, 0xf
add ecx, 4
sub esi, 0xe
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x5c], ecx
mov dword [ebp - 0x10], esi
ja 0x4b3e53
cmp dword [edi + 0x64], 0x1e
ja 0x4b3e53
and dword [edi + 0x68], 0
mov dword [edi], 0x11
jmp case.0x4b3b26.17
mov dword [ebx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x4b46ac
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
cmp esi, 3
jb 0x4b3e5f
mov edx, dword [edi + 0x68]
mov ecx, dword [ebp - 4]
movzx edx, word [edx*2 + 0x524298]
shr dword [ebp - 4], 3
and ecx, 7
mov word [edi + edx*2 + 0x70], cx
inc dword [edi + 0x68]
sub esi, 3
mov dword [ebp - 0x10], esi
mov ecx, dword [edi + 0x68]
cmp ecx, dword [edi + 0x5c]
jb 0x4b3e7d
jmp 0x4b3ec4
mov eax, dword [edi + 0x68]
movzx eax, word [eax*2 + 0x524298]
xor ecx, ecx
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
cmp dword [edi + 0x68], 0x13
jb 0x4b3eaf
lea eax, [edi + 0x530]
lea esi, [edi + 0x6c]
mov dword [esi], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x2f0]
push eax
push 0x13
lea eax, [edi + 0x70]
push eax
lea ecx, [edi + 0x54]
push 0
mov dword [ecx], 7
call fcn.004b63a4
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4b3f0e
mov dword [ebx + 0x18], str.invalid_code_lengths_set
jmp 0x4b46ac
and dword [edi + 0x68], 0
mov eax, dword [ebp - 0xc]
mov dword [edi], 0x12
jmp case.0x4b3b26.18
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
mov ecx, dword [edi + 0x54]
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [edi + 0x4c]
dec edx
and edx, dword [ebp - 4]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov dword [ebp - 0x14], ecx
cmp edx, esi
ja 0x4b3f20
mov edx, ecx
shr edx, 0x10
mov dword [ebp - 0x24], edx
cmp dx, 0x10
jae 0x4b3f8e
shr ecx, 8
movzx ecx, cl
shr dword [ebp - 4], cl
sub esi, ecx
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x68]
mov word [edi + ecx*2 + 0x70], dx
inc dword [edi + 0x68]
mov dword [ebp - 0x10], esi
jmp case.0x4b3b26.18
jne 0x4b3ffc
mov edx, ecx
shr edx, 8
movzx edx, dl
jmp 0x4b3fbe
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x14]
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
movzx edx, ch
inc edx
inc edx
cmp esi, edx
jb 0x4b3f9a
movzx ecx, ch
shr dword [ebp - 4], cl
sub esi, ecx
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x68]
mov dword [ebp - 0x10], esi
test ecx, ecx
je 0x4b40f6
movzx ecx, word [edi + ecx*2 + 0x6e]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 4]
shr dword [ebp - 4], 2
and ecx, 3
add ecx, 3
dec esi
mov dword [ebp - 0x14], ecx
dec esi
jmp 0x4b408e
cmp word [ebp - 0x12], 0x11
movzx ecx, ch
mov dword [ebp - 0x28], ecx
jne 0x4b4068
jmp 0x4b402c
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x28]
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
lea edx, [ecx + 3]
cmp esi, edx
jb 0x4b400b
shr dword [ebp - 4], cl
mov ecx, dword [ebp - 4]
and ecx, 7
add ecx, 3
shr dword [ebp - 4], 3
push 0xfffffffffffffffd
jmp 0x4b4081
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp - 0x28]
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
lea edx, [ecx + 7]
cmp esi, edx
jb 0x4b4047
shr dword [ebp - 4], cl
mov ecx, dword [ebp - 4]
and ecx, 0x7f
add ecx, 0xb
shr dword [ebp - 4], 7
push 0xfffffffffffffff9
and dword [ebp - 0x24], 0
mov dword [ebp - 0x14], ecx
pop ecx
sub ecx, dword [ebp - 0x28]
add esi, ecx
mov ecx, dword [edi + 0x68]
mov edx, dword [edi + 0x64]
add ecx, dword [ebp - 0x14]
add edx, dword [edi + 0x60]
mov dword [ebp - 0x10], esi
cmp ecx, edx
jbe 0x4b40df
mov dword [ebx + 0x18], str.invalid_bit_length_repeat
mov dword [edi], 0x1d
cmp dword [edi], 0x1d
je 0x4b46b2
cmp word [edi + 0x270], 0
jne 0x4b4102
mov dword [ebx + 0x18], str.invalid_code____missing_end_of_block
jmp 0x4b46ac
mov ecx, dword [edi + 0x68]
mov dx, word [ebp - 0x24]
dec dword [ebp - 0x14]
mov word [edi + ecx*2 + 0x70], dx
inc dword [edi + 0x68]
cmp dword [ebp - 0x14], 0
jne 0x4b40cd
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x60]
cmp dword [edi + 0x68], ecx
jb 0x4b3f3e
jmp 0x4b40ae
mov dword [ebx + 0x18], str.invalid_bit_length_repeat
jmp 0x4b46ac
lea eax, [edi + 0x530]
lea esi, [edi + 0x6c]
mov dword [esi], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x2f0]
push eax
push dword [edi + 0x60]
lea eax, [edi + 0x70]
push eax
lea ecx, [edi + 0x54]
push 1
mov dword [ecx], 9
call fcn.004b63a4
add esp, 0x10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4b4147
mov esi, dword [ebp - 0x10]
mov dword [ebx + 0x18], str.invalid_literal_lengths_set
jmp 0x4b46ac
mov eax, dword [esi]
mov dword [edi + 0x50], eax
lea eax, [edi + 0x2f0]
push eax
push dword [edi + 0x64]
mov eax, dword [edi + 0x60]
lea eax, [edi + eax*2 + 0x70]
push eax
lea ecx, [edi + 0x58]
push 2
mov dword [ecx], 6
call fcn.004b63a4
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4b4187
mov dword [ebx + 0x18], str.invalid_distances_set
jmp 0x4b46ac
mov eax, dword [ebp - 0xc]
mov dword [edi], 0x13
mov dword [edi], 0x14
cmp dword [ebp - 8], 6
jb 0x4b4208
cmp dword [ebp - 0x18], 0x102
jb 0x4b4208
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
push ebx
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], esi
call fcn.004b5fbe
cmp dword [edi], 0xb
mov eax, dword [ebx + 0xc]
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x38]
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
jne 0x4b46b2
or dword [edi + 0x1bc4], 0xffffffff
jmp 0x4b46b2
and dword [edi + 0x1bc4], 0
jmp 0x4b422f
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
mov ecx, dword [edi + 0x54]
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [edi + 0x4c]
dec edx
and edx, dword [ebp - 4]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov dword [ebp - 0x14], ecx
cmp edx, esi
ja 0x4b4211
test cl, cl
je 0x4b430b
test cl, 0xf0
jne 0x4b430b
mov dword [ebp - 0x10], ecx
shr dword [ebp - 0x10], 8
movzx edx, byte [ebp - 0x10]
mov dword [ebp - 0x24], ecx
movzx ecx, cl
add ecx, edx
mov dword [ebp - 0x28], edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x28]
dec edx
and edx, dword [ebp - 4]
shr edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
add edx, ecx
mov ecx, dword [edi + 0x4c]
mov ecx, dword [ecx + edx*4]
movzx edx, byte [ebp - 0x10]
mov dword [ebp - 0x14], ecx
shr ecx, 8
movzx ecx, cl
add ecx, edx
jmp 0x4b42f5
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
movzx ecx, byte [ebp - 0x24]
add dword [ebp - 4], edx
movzx edx, byte [ebp - 0x23]
add ecx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x10]
inc eax
add esi, 8
dec edx
and edx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
shr edx, cl
movzx ecx, word [ebp - 0x22]
add edx, ecx
mov ecx, dword [edi + 0x4c]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0x14], ecx
shr ecx, 8
movzx ecx, cl
add ecx, dword [ebp - 0x10]
cmp ecx, esi
ja 0x4b42a4
movzx ecx, byte [ebp - 0x23]
shr dword [ebp - 4], cl
sub esi, ecx
mov dword [edi + 0x1bc4], ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
shr dword [ebp - 4], cl
add dword [edi + 0x1bc4], ecx
sub esi, ecx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x14]
mov edx, ecx
shr edx, 0x10
mov dword [ebp - 0x10], esi
mov dword [edi + 0x40], edx
test cl, cl
jne 0x4b433c
mov dword [edi], 0x19
jmp 0x4b46b2
test cl, 0x20
je 0x4b4353
or dword [edi + 0x1bc4], 0xffffffff
mov dword [edi], 0xb
jmp 0x4b46b2
test cl, 0x40
je 0x4b4364
mov dword [ebx + 0x18], str.invalid_literal_length_code
jmp 0x4b46ac
movzx ecx, cl
and ecx, 0xf
mov dword [edi + 0x48], ecx
mov dword [edi], 0x15
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x4b43bb
cmp esi, ecx
jae 0x4b43a1
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add esi, 8
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
cmp esi, dword [edi + 0x48]
jb 0x4b437e
mov ecx, dword [edi + 0x48]
xor edx, edx
inc edx
shl edx, cl
sub esi, ecx
dec edx
and edx, dword [ebp - 4]
shr dword [ebp - 4], cl
add dword [edi + 0x40], edx
add dword [edi + 0x1bc4], ecx
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x1bc8], ecx
mov dword [edi], 0x16
jmp case.0x4b3b26.22
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
add esi, 8
mov ecx, dword [edi + 0x58]
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [edi + 0x50]
dec edx
and edx, dword [ebp - 4]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
shr edx, 8
movzx edx, dl
mov dword [ebp - 0x14], ecx
cmp edx, esi
ja 0x4b43cc
test cl, 0xf0
jne 0x4b44be
mov dword [ebp - 0x10], ecx
shr dword [ebp - 0x10], 8
movzx edx, byte [ebp - 0x10]
mov dword [ebp - 0x24], ecx
movzx ecx, cl
add ecx, edx
mov dword [ebp - 0x28], edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x28]
dec edx
and edx, dword [ebp - 4]
shr edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
add edx, ecx
mov ecx, dword [edi + 0x50]
mov ecx, dword [ecx + edx*4]
movzx edx, byte [ebp - 0x10]
mov dword [ebp - 0x14], ecx
shr ecx, 8
movzx ecx, cl
add ecx, edx
jmp 0x4b44a8
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
movzx ecx, byte [ebp - 0x24]
add dword [ebp - 4], edx
movzx edx, byte [ebp - 0x23]
add ecx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x10]
inc eax
add esi, 8
dec edx
and edx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
shr edx, cl
movzx ecx, word [ebp - 0x22]
add edx, ecx
mov ecx, dword [edi + 0x50]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0x14], ecx
shr ecx, 8
movzx ecx, cl
add ecx, dword [ebp - 0x10]
cmp ecx, esi
ja 0x4b4457
movzx ecx, byte [ebp - 0x23]
shr dword [ebp - 4], cl
sub esi, ecx
add dword [edi + 0x1bc4], ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
shr dword [ebp - 4], cl
add dword [edi + 0x1bc4], ecx
sub esi, ecx
test byte [ebp - 0x14], 0x40
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], esi
je 0x4b44e7
mov dword [ebx + 0x18], str.invalid_distance_code
jmp 0x4b46ac
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
mov dword [edi + 0x44], ecx
movzx ecx, byte [ebp - 0x14]
and ecx, 0xf
mov dword [edi + 0x48], ecx
mov dword [edi], 0x17
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x4b454b
cmp esi, ecx
jae 0x4b452e
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add esi, 8
add dword [ebp - 4], edx
inc eax
mov dword [ebp - 0xc], eax
cmp esi, dword [edi + 0x48]
jb 0x4b450b
mov ecx, dword [edi + 0x48]
xor edx, edx
inc edx
shl edx, cl
sub esi, ecx
mov dword [ebp - 0x10], esi
dec edx
and edx, dword [ebp - 4]
shr dword [ebp - 4], cl
add dword [edi + 0x44], edx
add dword [edi + 0x1bc4], ecx
mov dword [edi], 0x18
cmp dword [ebp - 0x18], 0
je 0x4b4701
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0x44]
cmp ecx, eax
jbe 0x4b45af
sub ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 0x2c]
jbe 0x4b4587
cmp dword [edi + 0x1bc0], 0
je 0x4b4587
mov dword [ebx + 0x18], str.invalid_distance_too_far_back
jmp 0x4b46ac
mov edx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
cmp ecx, edx
jbe 0x4b459d
add eax, dword [edi + 0x28]
sub ecx, edx
mov dword [ebp - 0x14], ecx
sub eax, ecx
jmp 0x4b45a1
sub eax, ecx
add eax, edx
mov edx, dword [edi + 0x40]
mov dword [ebp - 0x28], edx
cmp ecx, edx
jbe 0x4b45bd
mov ecx, edx
jmp 0x4b45ba
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x18]
jbe 0x4b45c8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x28]
sub dword [ebp - 0x18], ecx
sub edx, ecx
mov dword [edi + 0x40], edx
mov edx, dword [ebp - 0x1c]
mov cl, byte [eax]
inc dword [ebp - 0x1c]
inc eax
dec dword [ebp - 0x14]
mov byte [edx], cl
jne 0x4b45d3
cmp dword [edi + 0x40], 0
jne 0x4b46b2
jmp 0x4b4607
cmp dword [ebp - 0x18], 0
je 0x4b4701
mov ecx, dword [ebp - 0x1c]
mov al, byte [edi + 0x40]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x18]
mov byte [ecx], al
mov dword [edi], 0x14
jmp 0x4b46b2
cmp dword [edi + 8], 0
je 0x4b46eb
jmp 0x4b463f
cmp dword [ebp - 8], 0
je 0x4b4701
movzx edx, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add dword [ebp - 4], edx
inc eax
add esi, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
cmp esi, 0x20
jb 0x4b461e
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x18]
add dword [ebx + 0x14], ecx
add dword [edi + 0x1c], ecx
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x4b4670
mov eax, dword [edi + 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
call fcn.004b5da4
mov dword [edi + 0x18], eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 4]
shl edx, 0x10
and ecx, 0xff00
add ecx, edx
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xff00
shl ecx, 8
add ecx, edx
mov edx, dword [ebp - 4]
shr edx, 0x18
add ecx, edx
cmp ecx, dword [edi + 0x18]
je 0x4b46e6
mov dword [ebx + 0x18], str.incorrect_data_check
mov dword [edi], 0x1d
mov ecx, dword [edi]
cmp ecx, 0x1e
jbe 0x4b3b23
jmp case.0x4b3b26.1
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x10], ecx
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], esi
push 2
jmp 0x4b3b1e
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi], 0x1c
mov dword [ebp - 0x2c], 1
jmp 0x4b4701
mov dword [ebp - 0x2c], 0xfffffffd
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x10], ecx
cmp dword [edi + 0x28], 0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], esi
jne 0x4b4731
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x10]
je 0x4b4754
cmp dword [edi], 0x1d
jge 0x4b4754
mov eax, dword [ebp - 0x20]
sub eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push eax
mov eax, ebx
call fcn.004b39eb
pop ecx
test eax, eax
je 0x4b4754
mov dword [edi], 0x1e
push 0xfffffffffffffffc
jmp 0x4b3b1e
mov eax, dword [ebp - 0x30]
sub eax, dword [ebx + 4]
mov esi, dword [ebp - 0x20]
sub esi, dword [ebx + 0x10]
add dword [ebx + 8], eax
add dword [ebx + 0x14], esi
add dword [edi + 0x1c], esi
cmp dword [edi + 8], 0
mov dword [ebp - 0x30], eax
je 0x4b478e
test esi, esi
je 0x4b478e
mov ecx, dword [ebx + 0xc]
mov eax, dword [edi + 0x18]
push esi
sub ecx, esi
call fcn.004b5da4
mov dword [edi + 0x18], eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x30]
pop ecx
mov ecx, dword [edi]
cmp ecx, 0xb
jne 0x4b479e
mov dword [ebp - 0x30], 0x80
jmp 0x4b47a2
and dword [ebp - 0x30], 0
cmp ecx, 0x13
je 0x4b47b0
cmp ecx, 0xe
je 0x4b47b0
xor ecx, ecx
jmp 0x4b47b5
mov ecx, 0x100
mov edx, dword [edi + 4]
neg edx
sbb edx, edx
and edx, 0x40
add edx, ecx
add edx, dword [ebp - 0x30]
add edx, dword [edi + 0x3c]
mov dword [ebx + 0x2c], edx
test eax, eax
jne 0x4b47de
test esi, esi
jne 0x4b47de
cmp dword [ebp - 0x2c], esi
jne 0x4b47de
mov dword [ebp - 0x2c], 0xfffffffb
mov eax, dword [ebp - 0x2c]
jmp 0x4b3b1f