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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x24
test ecx, ecx
je 0x670a5697
mov edx, dword [ecx + 0x1c]
mov dword [esp + 4], edx
test edx, edx
je 0x670a5697
push ebx
push ebp
mov dword [ecx + 0x18], 0
mov dword [edx], 0xb
mov dword [edx + 4], 0
mov dword [edx + 0x2c], 0
mov ebp, dword [ecx]
mov dword [esp + 8], ebp
push esi
push edi
test ebp, ebp
je 0x670a47fc
mov esi, dword [ecx + 4]
jmp 0x670a47fe
xor esi, esi
mov eax, dword [edx + 0x34]
xor edi, edi
mov dword [esp + 0x24], eax
xor ebx, ebx
mov eax, dword [edx + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [edx]
sub eax, 0xb
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
cmp eax, 0x12
ja case.0x670a4833.12
mov edi, ebx
mov ecx, dword [esp + 0x40]
movzx eax, byte [eax + 0x670a56bc]
jmp dword [eax*4 + 0x670a56a0]
cmp dword [edx + 4], 0
je 0x670a485c
mov ecx, ebx
mov dword [edx], 0x1c
and ecx, 7
shr edi, cl
sub ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
jmp 0x670a55de
cmp ebx, 3
jae 0x670a48a0
test esi, esi
jne 0x670a4880
lea eax, [esp + 0x10]
push eax
push ecx
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
mov ecx, dword [esp + 0x40]
add ebx, 8
dec esi
mov dword [esp + 0x10], ebp
add edi, eax
cmp ebx, 3
jb 0x670a4861
mov edx, dword [esp + 0x14]
mov eax, edi
shr edi, 1
and eax, 1
mov dword [edx + 4], eax
mov eax, edi
and eax, 3
cmp eax, 3
ja case.default.0x670a48b4
jmp dword [eax*4 + 0x670a56d0]
shr edi, 2
sub ebx, 3
mov dword [edx], 0xd
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
jmp 0x670a55de
shr edi, 2
sub ebx, 3
mov dword [edx + 0x4c], 0x672c5008
mov dword [edx + 0x54], 9
mov dword [edx + 0x50], 0x672c5808
mov dword [edx + 0x58], 5
mov dword [edx], 0x14
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
jmp 0x670a55de
shr edi, 2
sub ebx, 3
mov dword [edx], 0x10
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
jmp 0x670a55de
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edx], 0x1d
shr edi, 2
sub ebx, 3
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
jmp 0x670a55de
mov ecx, ebx
and ecx, 7
sub ebx, ecx
shr edi, cl
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
cmp ebx, 0x20
jae 0x670a49a6
lea esp, [esp]
test esi, esi
jne 0x670a4982
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
add ebx, 8
add edi, eax
mov dword [esp + 0x1c], ebx
inc ebp
mov dword [esp + 0x18], edi
dec esi
mov dword [esp + 0x10], ebp
cmp ebx, 0x20
jb 0x670a4960
mov edx, dword [esp + 0x14]
mov eax, edi
mov ecx, edi
not eax
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
je 0x670a49cf
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
mov dword [edx], 0x1d
jmp 0x670a55de
xor ebx, ebx
mov dword [edx + 0x40], ecx
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
cmp ecx, ebx
je 0x670a4a84
mov eax, dword [esp + 0x20]
lea ebx, [ebx]
mov ebp, dword [edx + 0x40]
test esi, esi
jne 0x670a4a19
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x670a4a47
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x34]
push ecx
push eax
push dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [edx + 0x2c], ecx
call dword [esp + 0x50]
add esp, 0xc
test eax, eax
jne 0x670a5622
mov eax, dword [esp + 0x20]
cmp ebp, esi
cmova ebp, esi
cmp ebp, eax
cmova ebp, eax
mov eax, dword [esp + 0x24]
push ebp
push dword [esp + 0x14]
push eax
call fcn.67226d54
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x20]
sub esi, ebp
add dword [esp + 0x10], ebp
sub eax, ebp
add dword [esp + 0x24], ebp
sub dword [edx + 0x40], ebp
mov dword [esp + 0x20], eax
jne 0x670a49f0
mov dword [edx], 0xb
jmp 0x670a55de
cmp ebx, 0xe
jae 0x670a4ad3
test esi, esi
jne 0x670a4ab3
lea eax, [esp + 0x10]
push eax
push ecx
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
mov ecx, dword [esp + 0x40]
add ebx, 8
dec esi
mov dword [esp + 0x10], ebp
add edi, eax
cmp ebx, 0xe
jb 0x670a4a94
mov edx, dword [esp + 0x14]
mov eax, edi
sub ebx, 0xe
and eax, 0x1f
shr edi, 5
add eax, 0x101
mov dword [esp + 0x1c], ebx
mov dword [edx + 0x60], eax
mov eax, edi
and eax, 0x1f
shr edi, 5
inc eax
mov dword [edx + 0x64], eax
mov eax, edi
and eax, 0xf
shr edi, 4
add eax, 4
mov dword [esp + 0x18], edi
cmp dword [edx + 0x60], 0x11e
mov dword [edx + 0x5c], eax
ja 0x670a5087
cmp dword [edx + 0x64], 0x1e
ja 0x670a5087
mov dword [edx + 0x68], 0
test eax, eax
jbe 0x670a4bb0
mov edi, edi
cmp ebx, 3
jae 0x670a4b7e
mov edx, dword [esp + 0x10]
lea esp, [esp]
test esi, esi
jne 0x670a4b5f
lea eax, [esp + 0x10]
push eax
push ecx
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov edx, dword [esp + 0x10]
movzx eax, byte [edx]
mov ecx, ebx
shl eax, cl
inc edx
mov ecx, dword [esp + 0x40]
add ebx, 8
dec esi
mov dword [esp + 0x10], edx
add edi, eax
cmp ebx, 3
jb 0x670a4b40
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x68]
mov ecx, edi
and ecx, 7
shr edi, 3
sub ebx, 3
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
movzx eax, word [eax*2 + 0x672c5888]
mov word [edx + eax*2 + 0x70], cx
inc dword [edx + 0x68]
mov eax, dword [edx + 0x68]
mov ecx, dword [esp + 0x40]
cmp eax, dword [edx + 0x5c]
jb 0x670a4b30
cmp dword [edx + 0x68], 0x13
jae 0x670a4bdb
jmp 0x670a4bc0
mov eax, dword [edx + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x672c5888]
mov word [edx + eax*2 + 0x70], cx
inc dword [edx + 0x68]
cmp dword [edx + 0x68], 0x13
jb 0x670a4bc0
lea eax, [edx + 0x530]
mov dword [edx + 0x54], 7
lea ecx, [edx + 0x6c]
mov dword [edx + 0x4c], eax
lea ebp, [edx + 0x2f0]
mov dword [ecx], eax
lea eax, [edx + 0x54]
add edx, 0x70
push ebp
push eax
push ecx
push 0x13
push edx
push 0
mov dword [esp + 0x48], eax
call fcn.670a7b20
mov edx, dword [esp + 0x2c]
add esp, 0x18
test eax, eax
je 0x670a4c2e
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.invalid_code_lengths_set
mov dword [edx], 0x1d
jmp 0x670a55de
mov eax, dword [edx + 0x64]
mov dword [edx + 0x68], 0
mov ebp, dword [esp + 0x10]
add eax, dword [edx + 0x60]
je 0x670a4f12
mov eax, dword [esp + 0x30]
mov edx, 1
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp ecx, ebx
jbe 0x670a4cd6
test esi, esi
jne 0x670a4c95
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
add edi, eax
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x30]
mov edx, 1
add ebx, 8
dec esi
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp ecx, ebx
ja 0x670a4c73
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x670a4d57
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x1c], ecx
cmp ebx, ecx
jae 0x670a4d2f
test esi, esi
jne 0x670a4d12
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
add ebx, 8
mov dword [esp + 0x10], ebp
dec esi
add edi, eax
cmp ebx, dword [esp + 0x1c]
jb 0x670a4cf0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
movzx ecx, ah
mov ax, word [esp + 0x2a]
sub ebx, ecx
shr edi, cl
mov ecx, dword [edx + 0x68]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov word [edx + ecx*2 + 0x70], ax
inc dword [edx + 0x68]
jmp 0x670a4eff
mov cx, word [esp + 0x2a]
cmp cx, 0x10
jne 0x670a4def
movzx ecx, ah
mov dword [esp + 0x2c], ecx
lea eax, [ecx + 2]
cmp ebx, eax
jae 0x670a4db4
test esi, esi
jne 0x670a4d96
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
mov ecx, dword [esp + 0x2c]
add edi, eax
add ebx, 8
mov dword [esp + 0x10], ebp
dec esi
lea eax, [ecx + 2]
cmp ebx, eax
jb 0x670a4d74
mov edx, dword [esp + 0x14]
sub ebx, ecx
shr edi, cl
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov eax, dword [edx + 0x68]
test eax, eax
je 0x670a4f3b
movzx eax, word [edx + eax*2 + 0x6e]
mov dword [esp + 0x2c], eax
mov eax, edi
and eax, 3
shr edi, 2
add eax, 3
sub ebx, 2
mov dword [esp + 0x28], eax
jmp 0x670a4ecc
cmp cx, 0x11
movzx ecx, ah
jne 0x670a4e5b
lea eax, [ecx + 3]
mov dword [esp + 0x2c], ecx
cmp ebx, eax
jae 0x670a4e43
test esi, esi
jne 0x670a4e25
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
mov ecx, dword [esp + 0x2c]
add edi, eax
add ebx, 8
mov dword [esp + 0x10], ebp
dec esi
lea eax, [ecx + 3]
cmp ebx, eax
jb 0x670a4e03
shr edi, cl
mov eax, edi
and eax, 7
add eax, 3
shr edi, 3
mov dword [esp + 0x28], eax
mov eax, 0xfffffffd
jmp 0x670a4ebc
lea eax, [ecx + 7]
mov dword [esp + 0x2c], ecx
cmp ebx, eax
jae 0x670a4ea6
test esi, esi
jne 0x670a4e88
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
mov ecx, dword [esp + 0x2c]
add edi, eax
add ebx, 8
mov dword [esp + 0x10], ebp
dec esi
lea eax, [ecx + 7]
cmp ebx, eax
jb 0x670a4e66
shr edi, cl
mov eax, edi
and eax, 0x7f
add eax, 0xb
shr edi, 7
mov dword [esp + 0x28], eax
mov eax, 0xfffffff9
mov edx, dword [esp + 0x14]
sub eax, ecx
add ebx, eax
mov dword [esp + 0x2c], 0
mov ecx, dword [edx + 0x64]
mov eax, dword [edx + 0x68]
add ecx, dword [edx + 0x60]
add eax, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
cmp eax, ecx
ja 0x670a4f3b
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x670a4f03
mov ebp, dword [esp + 0x2c]
mov eax, dword [edx + 0x68]
mov word [edx + eax*2 + 0x70], bp
inc dword [edx + 0x68]
dec ecx
jne 0x670a4ef1
mov ebp, dword [esp + 0x10]
mov eax, dword [edx + 0x64]
add eax, dword [edx + 0x60]
cmp dword [edx + 0x68], eax
jb 0x670a4c45
cmp dword [edx], 0x1d
je 0x670a55e2
cmp word [edx + 0x270], 0
jne 0x670a4f51
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
mov dword [edx], 0x1d
jmp 0x670a55de
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [edx], 0x1d
jmp 0x670a55de
lea eax, [edx + 0x530]
mov dword [edx + 0x54], 9
lea ebp, [edx + 0x6c]
mov dword [edx + 0x4c], eax
mov dword [ebp], eax
lea ecx, [edx + 0x2f0]
push ecx
lea eax, [edx + 0x54]
push eax
push ebp
push dword [edx + 0x60]
lea eax, [edx + 0x70]
push eax
push 1
call fcn.670a7b20
add esp, 0x18
test eax, eax
je 0x670a4fa2
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
mov dword [edx], 0x1d
jmp 0x670a55de
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
mov dword [ecx + 0x58], 6
mov dword [ecx + 0x50], eax
lea edx, [ecx + 0x2f0]
push edx
lea eax, [ecx + 0x58]
push eax
mov eax, dword [ecx + 0x60]
add eax, 0x38
push ebp
push dword [ecx + 0x64]
lea eax, [ecx + eax*2]
push eax
push 2
call fcn.670a7b20
mov edx, dword [esp + 0x2c]
add esp, 0x18
test eax, eax
je 0x670a4ff4
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.invalid_distances_set
mov dword [edx], 0x1d
jmp 0x670a55de
mov dword [edx], 0x14
mov ebp, dword [esp + 0x10]
cmp esi, 6
jb 0x670a509d
mov ecx, dword [esp + 0x20]
cmp ecx, 0x102
jb 0x670a509d
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov dword [edx + 0xc], eax
mov eax, edx
mov edx, dword [esp + 0x14]
mov dword [eax + 0x10], ecx
mov dword [eax], ebp
mov dword [eax + 4], esi
mov ecx, dword [edx + 0x28]
mov dword [edx + 0x38], edi
mov dword [edx + 0x3c], ebx
cmp dword [edx + 0x2c], ecx
jae 0x670a504b
mov eax, ecx
sub eax, dword [esp + 0x20]
mov dword [edx + 0x2c], eax
mov eax, dword [esp + 0x38]
push ecx
push eax
call fcn.670a57f0
mov ecx, dword [esp + 0x40]
add esp, 8
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov ebp, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x10], ebp
mov edi, dword [edx + 0x38]
mov ebx, dword [edx + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
jmp 0x670a55e2
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
mov dword [edx], 0x1d
jmp 0x670a55de
mov eax, dword [esp + 0x14]
mov edx, 1
mov ecx, dword [eax + 0x54]
mov eax, dword [eax + 0x4c]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x670a5120
test esi, esi
jne 0x670a50e2
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
add edi, eax
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x14]
mov edx, 1
add ebx, 8
mov dword [esp + 0x18], edi
dec esi
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax + 0x54]
mov eax, dword [eax + 0x4c]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x670a50c0
test al, al
je 0x670a5208
test al, 0xf0
jne 0x670a5208
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [esp + 0x30], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [esp + 0x28], edx
and ebx, dword [esp + 0x18]
shr ebx, cl
add ebx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + ebx*4]
mov ecx, eax
mov ebx, dword [esp + 0x1c]
shr ecx, 8
movzx edi, cl
mov ecx, dword [esp + 0x30]
movzx ecx, cl
add edi, ecx
cmp edi, ebx
jbe 0x670a51fd
test esi, esi
jne 0x670a51a9
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
add ebx, 8
add dword [esp + 0x18], eax
mov edi, 1
movzx eax, word [esp + 0x2a]
inc ebp
mov dword [esp + 0x1c], ebx
dec esi
movzx ebx, dh
movzx ecx, dl
add ecx, ebx
mov dword [esp + 0x10], ebp
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [esp + 0x18]
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
mov ebx, dword [esp + 0x1c]
cmp ecx, ebx
ja 0x670a5183
mov edi, dword [esp + 0x18]
movzx ecx, dh
shr edi, cl
sub ebx, ecx
mov edx, dword [esp + 0x14]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edi, cl
sub ebx, ecx
mov ecx, eax
mov dword [esp + 0x18], edi
shr ecx, 0x10
mov dword [esp + 0x1c], ebx
mov dword [edx + 0x40], ecx
test al, al
jne 0x670a527f
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x670a5260
mov eax, dword [edx + 0x28]
mov ebp, dword [edx + 0x34]
push eax
push ebp
push dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dword [edx + 0x2c], eax
call dword [esp + 0x50]
add esp, 0xc
test eax, eax
jne 0x670a5622
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
jmp 0x670a5264
mov ebp, dword [esp + 0x24]
mov al, byte [edx + 0x40]
mov byte [ebp], al
inc ebp
dec ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ecx
mov dword [edx], 0x14
jmp 0x670a55de
test al, 0x20
je 0x670a528e
mov dword [edx], 0xb
jmp 0x670a55de
test al, 0x40
je 0x670a52a8
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov dword [edx], 0x1d
jmp 0x670a55de
movzx eax, al
and eax, 0xf
mov dword [edx + 0x48], eax
je 0x670a531a
cmp ebx, eax
jae 0x670a52fe
mov ebp, dword [esp + 0x10]
jmp 0x670a52c0
test esi, esi
jne 0x670a52e6
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
add ebx, 8
mov dword [esp + 0x10], ebp
dec esi
add edi, eax
cmp ebx, dword [edx + 0x48]
jb 0x670a52c0
mov ecx, dword [edx + 0x48]
mov eax, 1
shl eax, cl
dec eax
and eax, edi
shr edi, cl
add dword [edx + 0x40], eax
sub ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x14]
mov edx, 1
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x50]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x670a539b
lea ecx, [ecx]
test esi, esi
jne 0x670a535e
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov edx, dword [esp + 0x10]
mov ecx, ebx
add ebx, 8
dec esi
mov dword [esp + 0x1c], ebx
movzx eax, byte [edx]
inc edx
shl eax, cl
mov dword [esp + 0x10], edx
add edi, eax
mov ecx, dword [ebp + 0x58]
mov edx, 1
mov eax, dword [ebp + 0x50]
shl edx, cl
dec edx
mov dword [esp + 0x18], edi
and edx, edi
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x670a5340
test al, 0xf0
jne 0x670a547c
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 8
mov ebx, 1
movzx edi, cl
mov edx, eax
mov dword [esp + 0x30], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [esp + 0x28], edx
and ebx, ebp
shr ebx, cl
add ebx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + ebx*4]
mov ecx, eax
mov ebx, dword [esp + 0x1c]
shr ecx, 8
movzx edi, cl
mov ecx, dword [esp + 0x30]
movzx ecx, cl
add edi, ecx
cmp edi, ebx
jbe 0x670a5471
test esi, esi
jne 0x670a541a
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov ecx, ebx
add ebx, 8
dec esi
mov dword [esp + 0x1c], ebx
movzx ebx, dh
movzx eax, byte [edi]
inc edi
shl eax, cl
mov dword [esp + 0x10], edi
add ebp, eax
movzx eax, word [esp + 0x2a]
mov edi, 1
movzx ecx, dl
add ecx, ebx
mov dword [esp + 0x18], ebp
shl edi, cl
mov ecx, ebx
dec edi
and edi, ebp
shr edi, cl
add edi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
mov ebx, dword [esp + 0x1c]
cmp ecx, ebx
ja 0x670a53f8
mov edi, dword [esp + 0x18]
movzx ecx, dh
shr edi, cl
sub ebx, ecx
mov edx, dword [esp + 0x14]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edi, cl
sub ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
test al, 0x40
je 0x670a54ae
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.invalid_distance_code
mov dword [edx], 0x1d
jmp 0x670a55de
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [edx + 0x44], ecx
mov dword [edx + 0x48], eax
je 0x670a552a
cmp ebx, eax
jae 0x670a550e
mov ebp, dword [esp + 0x10]
lea esp, [esp]
test esi, esi
jne 0x670a54f6
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x44]
call dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x670a5608
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
movzx eax, byte [ebp]
mov ecx, ebx
shl eax, cl
inc ebp
add ebx, 8
mov dword [esp + 0x10], ebp
dec esi
add edi, eax
cmp ebx, dword [edx + 0x48]
jb 0x670a54d0
mov ecx, dword [edx + 0x48]
mov eax, 1
shl eax, cl
dec eax
and eax, edi
shr edi, cl
add dword [edx + 0x44], eax
sub ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov ecx, dword [edx + 0x28]
cmp dword [edx + 0x2c], ecx
mov ebp, dword [esp + 0x20]
sbb eax, eax
and eax, ebp
sub ecx, eax
cmp dword [edx + 0x44], ecx
jbe 0x670a5555
mov eax, dword [esp + 0x38]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
mov dword [edx], 0x1d
jmp 0x670a55de
test ebp, ebp
jne 0x670a5585
mov eax, dword [edx + 0x28]
mov ebp, dword [edx + 0x34]
push eax
push ebp
push dword [esp + 0x50]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
mov dword [edx + 0x2c], eax
call dword [esp + 0x50]
add esp, 0xc
test eax, eax
jne 0x670a5622
mov edx, dword [esp + 0x14]
jmp 0x670a5589
mov ebp, dword [esp + 0x24]
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 0x44]
sub eax, ecx
cmp eax, dword [esp + 0x20]
jae 0x670a55a1
mov ecx, dword [esp + 0x20]
add ebp, eax
sub ecx, eax
jmp 0x670a55a7
sub ebp, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, dword [edx + 0x40]
cmova ecx, dword [edx + 0x40]
sub dword [edx + 0x40], ecx
sub dword [esp + 0x20], ecx
mov edx, dword [esp + 0x24]
sub ebp, edx
jmp 0x670a55c0
mov al, byte [edx + ebp]
mov byte [edx], al
inc edx
dec ecx
jne 0x670a55c0
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x40], ecx
jne 0x670a5555
mov ebp, dword [esp + 0x10]
mov eax, dword [edx]
sub eax, 0xb
cmp eax, 0x12
jbe 0x670a4828
mov edi, 0xfffffffe
mov eax, dword [esp + 0x38]
mov dword [eax], ebp
mov dword [eax + 4], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x38]
xor ebp, ebp
mov edi, 0xfffffffb
mov dword [eax], ebp
mov dword [eax + 4], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x38]
mov edi, 0xfffffffb
mov ebp, dword [esp + 0x10]
mov dword [eax], ebp
mov dword [eax + 4], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [edx + 0x28]
mov edi, 1
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jae 0x670a55f5
sub eax, ecx
push eax
push dword [edx + 0x34]
push dword [esp + 0x50]
call dword [esp + 0x50]
mov ebp, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x670a55f5
mov eax, dword [esp + 0x38]
mov edi, 0xfffffffb
mov dword [eax], ebp
mov dword [eax + 4], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x38]
mov edi, 0xfffffffd
mov dword [eax], ebp
mov dword [eax + 4], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, 0xfffffffe
add esp, 0x24
ret