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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x67076760
mov edi, dword [eax + 0x1c]
cmp edi, esi
je 0x67076760
mov dword [eax + 0x18], esi
mov dword [edi], 0xb
mov dword [edi + 4], esi
mov dword [edi + 0x2c], esi
mov ecx, dword [eax]
push ebx
push ebp
mov dword [esp + 0x10], ecx
cmp ecx, esi
je 0x67075a2e
mov ebp, dword [eax + 4]
jmp 0x67075a30
xor ebp, ebp
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
sub eax, 0xb
xor ebx, ebx
mov dword [esp + 0x14], edx
cmp eax, 0x12
jbe 0x67075a74
mov esi, 0xfffffffe
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ebp
pop ebp
pop ebx
mov dword [eax], ecx
pop edi
mov eax, esi
pop esi
add esp, 0x18
ret
mov edx, dword [esp + 0x14]
movzx ecx, byte [eax + 0x67076788]
jmp dword [ecx*4 + 0x6707676c]
cmp dword [edi + 4], 0
je 0x67075a9c
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x1c
jmp 0x670766ea
cmp esi, 3
jae 0x67075adb
test ebp, ebp
jne 0x67075ac0
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
dec ebp
add ebx, edx
mov dword [esp + 0x10], eax
cmp esi, 3
jb 0x67075aa1
mov eax, ebx
and eax, 1
shr ebx, 1
mov dword [edi + 4], eax
mov eax, ebx
and eax, 3
cmp eax, 3
ja case.default.0x67075aef
jmp dword [eax*4 + 0x6707679c]
shr ebx, 2
mov dword [edi], 0xd
sub esi, 3
jmp 0x670766ea
shr ebx, 2
mov dword [edi + 0x4c], 0x671d03c8
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x671d0bc8
mov dword [edi + 0x58], 5
mov dword [edi], 0x14
sub esi, 3
jmp 0x670766ea
shr ebx, 2
mov dword [edi], 0x10
sub esi, 3
jmp 0x670766ea
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x18], str.invalid_block_type
mov dword [edi], 0x1d
shr ebx, 2
sub esi, 3
jmp 0x670766ea
mov ecx, esi
and ecx, 7
sub esi, ecx
shr ebx, cl
cmp esi, 0x20
jae 0x67075baa
nop
test ebp, ebp
jne 0x67075b8f
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
dec ebp
add ebx, edx
mov dword [esp + 0x10], eax
cmp esi, 0x20
jb 0x67075b70
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x67075bd2
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x18], str.invalid_stored_block_lengths
mov dword [edi], 0x1d
jmp 0x670766ea
xor ebx, ebx
xor esi, esi
mov dword [edi + 0x40], eax
test eax, eax
je 0x67075c83
mov eax, dword [edi + 0x40]
mov dword [esp + 0x20], eax
test ebp, ebp
jne 0x67075c07
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x6707670f
cmp dword [esp + 0x18], ebx
jne 0x67075c34
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x34]
push eax
mov dword [esp + 0x1c], eax
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x40]
push ecx
push eax
mov dword [esp + 0x20], ecx
call dword [esp + 0x44]
add esp, 0xc
test eax, eax
jne 0x67076705
mov eax, dword [esp + 0x20]
cmp eax, ebp
jbe 0x67075c42
mov eax, ebp
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x67075c4e
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x2c]
add dword [esp + 0x1c], eax
sub dword [esp + 0x24], eax
add dword [esp + 0x20], eax
sub dword [edi + 0x40], eax
add esp, 0xc
sub ebp, eax
cmp dword [edi + 0x40], ebx
jne 0x67075be1
mov dword [edi], 0xb
jmp 0x670766ea
cmp esi, 0xe
jae 0x67075ccd
test ebp, ebp
jne 0x67075cb2
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
dec ebp
add ebx, edx
mov dword [esp + 0x10], eax
cmp esi, 0xe
jb 0x67075c93
mov eax, ebx
shr ebx, 5
mov ecx, ebx
shr ebx, 5
mov edx, ebx
and eax, 0x1f
and ecx, 0x1f
and edx, 0xf
add eax, 0x101
inc ecx
add edx, 4
shr ebx, 4
sub esi, 0xe
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ecx
mov dword [edi + 0x5c], edx
cmp eax, 0x11e
ja 0x670761fc
cmp ecx, 0x1e
ja 0x670761fc
mov dword [edi + 0x68], 0
test edx, edx
jbe 0x67075d85
lea esp, [esp]
cmp esi, 3
jae 0x67075d5f
test ebp, ebp
jne 0x67075d44
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
dec ebp
add ebx, edx
mov dword [esp + 0x10], eax
cmp esi, 3
jb 0x67075d25
mov ecx, dword [edi + 0x68]
movzx edx, word [ecx*2 + 0x671d0c48]
mov eax, ebx
and eax, 7
mov word [edi + edx*2 + 0x70], ax
inc dword [edi + 0x68]
mov eax, dword [edi + 0x68]
shr ebx, 3
sub esi, 3
cmp eax, dword [edi + 0x5c]
jb 0x67075d20
mov eax, 0x13
cmp dword [edi + 0x68], eax
jae 0x67075daa
nop
mov ecx, dword [edi + 0x68]
movzx edx, word [ecx*2 + 0x671d0c48]
xor ecx, ecx
mov word [edi + edx*2 + 0x70], cx
inc dword [edi + 0x68]
cmp dword [edi + 0x68], eax
jb 0x67075d90
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea edx, [edi + 0x2f0]
push edx
lea eax, [edi + 0x54]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [edi + 0x70]
push eax
push 0
call fcn.670789f0
add esp, 0x18
test eax, eax
je 0x67075df4
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x18], str.invalid_code_lengths_set
mov dword [edi], 0x1d
jmp 0x670766ea
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
mov dword [edi + 0x68], 0
je 0x6707609d
jmp 0x67075e10
mov ecx, dword [edi + 0x54]
mov eax, dword [edi + 0x4c]
mov edx, 1
shl edx, cl
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov dword [esp + 0x20], eax
cmp edx, esi
jbe 0x67075e8d
test ebp, ebp
jne 0x67075e52
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
inc eax
mov dword [esp + 0x10], eax
mov ecx, esi
shl edx, cl
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
add ebx, edx
add esi, 8
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x20], eax
shr eax, 8
movzx edx, al
dec ebp
cmp edx, esi
ja 0x67075e33
mov eax, dword [esp + 0x20]
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x67075f01
mov edx, eax
shr edx, 8
movzx ecx, dl
cmp esi, ecx
jae 0x67075ee5
test ebp, ebp
jne 0x67075ec2
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
mov ecx, esi
inc eax
shl edx, cl
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x21]
add esi, 8
dec ebp
add ebx, edx
cmp esi, eax
jb 0x67075ea3
mov eax, dword [esp + 0x20]
mov dx, word [esp + 0x22]
movzx ecx, ah
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x68]
mov word [edi + ecx*2 + 0x70], dx
inc dword [edi + 0x68]
jmp 0x6707608e
mov cx, word [esp + 0x22]
cmp cx, 0x10
jne 0x67075f8f
movzx ecx, ah
lea eax, [ecx + 2]
mov dword [esp + 0x1c], ecx
cmp esi, eax
jae 0x67075f64
mov edi, edi
test ebp, ebp
jne 0x67075f3f
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
inc eax
mov ecx, esi
shl edx, cl
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add esi, 8
add eax, 2
dec ebp
add ebx, edx
cmp esi, eax
jb 0x67075f20
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
test eax, eax
je 0x670760c6
movzx eax, word [edi + eax*2 + 0x6e]
mov dword [esp + 0x20], eax
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
sub esi, 2
jmp 0x67076064
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x1c], ecx
jne 0x67075ffb
lea eax, [ecx + 3]
cmp esi, eax
jae 0x67075fe7
test ebp, ebp
jne 0x67075fc2
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
inc eax
mov ecx, esi
shl edx, cl
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add esi, 8
add eax, 3
dec ebp
add ebx, edx
cmp esi, eax
jb 0x67075fa3
mov ecx, dword [esp + 0x1c]
shr ebx, cl
mov edx, 0xfffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x67076058
lea eax, [ecx + 7]
cmp esi, eax
jae 0x67076046
test ebp, ebp
jne 0x67076021
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
inc eax
mov ecx, esi
shl edx, cl
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add esi, 8
add eax, 7
dec ebp
add ebx, edx
cmp esi, eax
jb 0x67076002
mov ecx, dword [esp + 0x1c]
shr ebx, cl
mov edx, 0xfffffff9
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
sub edx, ecx
add esi, edx
mov dword [esp + 0x20], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [edi + 0x68]
add ecx, dword [edi + 0x60]
add edx, eax
cmp edx, ecx
ja 0x670760dc
test eax, eax
je 0x6707608e
mov ecx, dword [esp + 0x20]
jmp 0x67076080
mov edx, dword [edi + 0x68]
mov word [edi + edx*2 + 0x70], cx
inc dword [edi + 0x68]
dec eax
jne 0x67076080
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jb 0x67075e10
cmp dword [edi], 0x1d
je 0x670766ea
cmp word [edi + 0x270], 0
jne 0x670760f2
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
mov dword [edi], 0x1d
jmp 0x670766ea
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
mov dword [edi], 0x1d
jmp 0x670766ea
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x18], str.invalid_bit_length_repeat
mov dword [edi], 0x1d
jmp 0x670766ea
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea edx, [edi + 0x2f0]
push edx
lea eax, [edi + 0x54]
push eax
push ecx
mov ecx, dword [edi + 0x60]
mov dword [eax], 9
push ecx
lea eax, [edi + 0x70]
push eax
push 1
call fcn.670789f0
add esp, 0x18
test eax, eax
je 0x6707613e
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov dword [edi], 0x1d
jmp 0x670766ea
mov eax, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
mov dword [edi + 0x50], eax
lea edx, [edi + 0x2f0]
push edx
mov edx, dword [edi + 0x60]
lea eax, [edi + 0x58]
push eax
push ecx
mov ecx, dword [edi + 0x64]
mov dword [eax], 6
push ecx
lea eax, [edi + edx*2 + 0x70]
push eax
push 2
call fcn.670789f0
add esp, 0x18
test eax, eax
je 0x67076189
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x18], str.invalid_distances_set
mov dword [edi], 0x1d
jmp 0x670766ea
mov edx, dword [esp + 0x14]
mov dword [edi], 0x14
cmp ebp, 6
jb 0x67076212
mov ecx, dword [esp + 0x18]
cmp ecx, 0x102
jb 0x67076212
mov eax, dword [esp + 0x2c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x10], ecx
mov dword [eax], edx
mov dword [eax + 4], ebp
mov eax, dword [edi + 0x28]
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
cmp dword [edi + 0x2c], eax
jae 0x670761cc
mov edx, eax
sub edx, ecx
mov dword [edi + 0x2c], edx
mov esi, dword [esp + 0x2c]
push eax
push esi
call fcn.670767f0
mov edx, dword [esi]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov ebp, dword [esi + 4]
mov dword [esp + 0x18], edx
mov ebx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jmp 0x670766ea
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
mov dword [edi], 0x1d
jmp 0x670766ea
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x67076289
test ebp, ebp
jne 0x67076250
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
inc eax
mov dword [esp + 0x10], eax
mov ecx, esi
shl edx, cl
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
add ebx, edx
add esi, 8
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov edx, eax
shr edx, 8
movzx ecx, dl
dec ebp
cmp ecx, esi
ja 0x67076231
mov edx, dword [esp + 0x14]
test al, al
je 0x6707635c
test al, 0xf0
jne 0x6707635c
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
movzx ecx, al
add ecx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
shr eax, 0x10
dec edx
and edx, ebx
shr edx, cl
add edx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, byte [esp + 0x24]
add edx, ecx
cmp edx, esi
jbe 0x6707634a
test ebp, ebp
jne 0x670762ff
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, esi
shl edx, cl
movzx ecx, al
add ebx, edx
movzx edx, ah
add ecx, edx
mov eax, 1
shl eax, cl
mov ecx, edx
add esi, 8
dec ebp
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x1e]
add eax, ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, esi
ja 0x670762e0
movzx ecx, byte [esp + 0x1d]
mov edx, dword [esp + 0x14]
shr ebx, cl
movzx ecx, byte [esp + 0x1d]
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x20], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [edi + 0x40], ecx
test al, al
jne 0x670763c3
cmp dword [esp + 0x18], 0
jne 0x670763aa
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x34]
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [edi + 0x2c], eax
call dword [esp + 0x44]
add esp, 0xc
test eax, eax
jne 0x67076705
mov edx, dword [esp + 0x14]
mov al, byte [edi + 0x40]
mov byte [edx], al
inc edx
dec dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [edi], 0x14
jmp 0x670766ea
test al, 0x20
je 0x670763d2
mov dword [edi], 0xb
jmp 0x670766ea
test al, 0x40
je 0x670763ec
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x18], str.invalid_literal_length_code
mov dword [edi], 0x1d
jmp 0x670766ea
movzx eax, al
and eax, 0xf
mov dword [edi + 0x48], eax
je 0x67076452
cmp esi, eax
jae 0x6707643e
jmp 0x67076400
test ebp, ebp
jne 0x6707641f
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
dec ebp
add ebx, edx
mov dword [esp + 0x10], eax
cmp esi, dword [edi + 0x48]
jb 0x67076400
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
add dword [edi + 0x40], eax
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x58]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
jbe 0x670764c9
test ebp, ebp
jne 0x67076490
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
inc eax
mov dword [esp + 0x10], eax
mov ecx, esi
shl edx, cl
mov ecx, dword [edi + 0x58]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
add ebx, edx
add esi, 8
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov edx, eax
shr edx, 8
movzx ecx, dl
dec ebp
cmp ecx, esi
ja 0x67076471
mov edx, dword [esp + 0x14]
test al, 0xf0
jne 0x67076594
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
movzx ecx, al
add ecx, edx
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
shr eax, 0x10
dec edx
and edx, ebx
shr edx, cl
add edx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, byte [esp + 0x24]
add edx, ecx
cmp edx, esi
jbe 0x67076582
test ebp, ebp
jne 0x67076537
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, esi
shl edx, cl
movzx ecx, al
add ebx, edx
movzx edx, ah
add ecx, edx
mov eax, 1
shl eax, cl
mov ecx, edx
add esi, 8
dec ebp
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x1e]
add eax, ecx
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, esi
ja 0x67076518
movzx ecx, byte [esp + 0x1d]
mov edx, dword [esp + 0x14]
shr ebx, cl
movzx ecx, byte [esp + 0x1d]
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x20], ecx
test al, 0x40
je 0x670765be
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x18], str.invalid_distance_code
mov dword [edi], 0x1d
jmp 0x670766ea
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], eax
je 0x67076627
cmp esi, eax
jae 0x67076613
test ebp, ebp
jne 0x670765f4
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
call dword [esp + 0x38]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x670766fd
mov eax, dword [esp + 0x10]
movzx edx, byte [eax]
mov ecx, esi
shl edx, cl
inc eax
add esi, 8
dec ebp
add ebx, edx
mov dword [esp + 0x10], eax
cmp esi, dword [edi + 0x48]
jb 0x670765d5
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
add dword [edi + 0x44], eax
shr ebx, cl
sub esi, ecx
mov eax, dword [edi + 0x28]
cmp dword [edi + 0x2c], eax
sbb ecx, ecx
and ecx, dword [esp + 0x18]
sub eax, ecx
cmp dword [edi + 0x44], eax
jbe 0x67076650
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x18], str.invalid_distance_too_far_back
mov dword [edi], 0x1d
jmp 0x670766ea
cmp dword [esp + 0x18], 0
jne 0x67076682
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x34]
push eax
mov dword [esp + 0x1c], eax
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x40]
push ecx
push eax
mov dword [esp + 0x20], ecx
call dword [esp + 0x44]
add esp, 0xc
test eax, eax
jne 0x67076705
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x28]
sub ecx, dword [edi + 0x44]
cmp ecx, dword [esp + 0x18]
jae 0x6707669d
lea eax, [ecx + edx]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
sub eax, ecx
jmp 0x670766aa
mov eax, edx
sub eax, dword [edi + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x40]
cmp eax, ecx
jbe 0x670766b3
mov eax, ecx
sub dword [esp + 0x18], eax
sub ecx, eax
mov dword [edi + 0x40], ecx
mov ecx, dword [esp + 0x24]
sub ecx, edx
mov dword [esp + 0x24], ecx
jmp 0x670766d4
mov ecx, dword [esp + 0x24]
mov cl, byte [ecx + edx]
mov byte [edx], cl
inc edx
dec eax
jne 0x670766d0
mov dword [esp + 0x14], edx
cmp dword [edi + 0x40], eax
jne 0x67076650
mov eax, dword [edi]
sub eax, 0xb
cmp eax, 0x12
jbe 0x67075a70
jmp case.0x67075a7b.12
mov dword [esp + 0x10], 0
mov esi, 0xfffffffb
jmp 0x67075a4f
mov dword [esp + 0x10], ebx
mov esi, 0xfffffffb
jmp 0x67075a4f
mov eax, dword [edi + 0x28]
mov esi, 1
cmp dword [esp + 0x18], eax
jae 0x67075a4f
sub eax, dword [esp + 0x18]
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call dword [esp + 0x44]
add esp, 0xc
test eax, eax
je 0x67075a4f
mov esi, 0xfffffffb
jmp 0x67075a4f
mov esi, 0xfffffffd
jmp 0x67075a4f
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x18
ret