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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.006978c5
pop ecx
test eax, eax
jne case.default.0x69610c
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
test eax, eax
je case.default.0x69610c
mov eax, dword [esi]
mov dword [ebp - 8], eax
test eax, eax
jne 0x6960aa
cmp dword [esi + 4], eax
jne case.default.0x69610c
mov ebx, dword [esi + 0x1c]
mov edx, 0x3f40
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebx + 4]
cmp ecx, 0x3f3f
jne 0x6960d0
mov dword [ebx + 4], edx
mov ecx, edx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x40]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ecx - 0x3f34]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
cmp eax, 0x1e
ja case.default.0x69610c
mov dword [ebp - 0x3c], 0x10
jmp dword [eax*4 + 0x697623]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x696126
mov dword [ebx + 4], 0x3f40
jmp 0x697509
push 0x10
pop eax
cmp edi, eax
jae 0x696162
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x696130
mov ecx, dword [ebx + 0xc]
test cl, 2
je 0x6961c0
cmp edx, 0x8b1f
jne 0x6961c0
xor edi, edi
cmp dword [ebx + 0x28], edi
jne 0x69617d
mov dword [ebx + 0x28], 0xf
test byte [esi + 0x34], 1
jne 0x6961ac
push edi
push edi
push edi
call fcn.00699cda
mov dword [ebx + 0x1c], eax
push 0x1f
pop eax
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x1c]
push 2
push eax
mov byte [ebp - 0x1b], 0x8b
push dword [ebx + 0x1c]
call fcn.00699cda
add esp, 0x18
mov dword [ebx + 0x1c], eax
mov edx, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edx
mov dword [ebx + 4], 0x3f35
jmp 0x697509
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x6961ce
or dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebx + 0xc]
test cl, 1
je 0x696284
movzx ecx, dl
mov eax, edx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
push 0x1f
pop ecx
div ecx
test edx, edx
mov edx, dword [ebp - 0xc]
jne 0x696284
mov eax, edx
and al, 0xf
cmp al, 8
je 0x69620a
mov dword [esi + 0x18], str.unknown_compression_method
jmp 0x697502
mov eax, dword [ebx + 0x28]
sub edi, 4
shr edx, 4
mov ecx, edx
mov dword [ebp - 0xc], edx
and ecx, 0xf
mov dword [ebp - 0x14], edi
add ecx, 8
test eax, eax
jne 0x69622a
mov dword [ebx + 0x28], ecx
mov eax, ecx
cmp ecx, 0xf
ja 0x696278
cmp ecx, eax
ja 0x696278
xor eax, eax
xor edi, edi
inc eax
mov dword [ebx + 0x14], edi
shl eax, cl
mov dword [ebx + 0x18], eax
test byte [esi + 0x34], 1
jne 0x69625a
push edi
push edi
push edi
call fcn.00699a90
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
shr edx, 8
not edx
and edx, 2
or edx, 0x3f3d
mov dword [ebx + 4], edx
mov edx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x697509
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x697502
mov dword [esi + 0x18], str.incorrect_header_check
jmp 0x697502
push 0x10
pop eax
cmp edi, eax
jae 0x6962c9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x69629a
mov dword [ebx + 0x14], edx
cmp dl, 8
jne 0x6961fe
test edx, 0xe000
je 0x6962e9
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x697502
mov edi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
test edi, edi
je 0x6962fc
mov eax, ecx
and eax, 1
mov dword [edi], eax
test byte [esi + 0x34], 1
jne 0x69632b
test dword [ebx + 0x14], 0x200
je 0x69632b
test byte [ebx + 0xc], 4
je 0x69632b
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x1c]
call fcn.00699cda
add esp, 0xc
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 4], 0x3f36
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
cmp edi, 0x20
jae 0x69636d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x696343
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x696377
mov dword [eax + 4], edx
test byte [esi + 0x34], 1
jne 0x6963b9
test dword [ebx + 0x14], 0x200
je 0x6963b9
test byte [ebx + 0xc], 4
je 0x6963b9
mov eax, edx
mov byte [ebp - 0x1c], dl
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x1c]
push 4
shr edx, 0x18
push eax
mov byte [ebp - 0x19], dl
push dword [ebx + 0x1c]
call fcn.00699cda
add esp, 0xc
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 4], 0x3f37
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
push 0x10
pop eax
cmp edi, eax
jae 0x6963ff
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x6963d3
mov edi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
test edi, edi
je 0x696417
movzx eax, dl
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [eax + 0xc], ecx
test byte [esi + 0x34], 1
jne 0x696446
test dword [ebx + 0x14], 0x200
je 0x696446
test byte [ebx + 0xc], 4
je 0x696446
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x1c]
call fcn.00699cda
add esp, 0xc
mov dword [ebx + 0x1c], eax
xor ecx, ecx
mov dword [ebx + 4], 0x3f38
mov edx, ecx
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x69645d
xor ecx, ecx
test dword [ebx + 0x14], 0x400
je 0x6964eb
push 0x10
pop eax
cmp edi, eax
jae 0x6964a0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x696474
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x44], edx
test eax, eax
je 0x6964ad
mov dword [eax + 0x14], edx
test byte [esi + 0x34], 1
jne 0x6964df
test dword [ebx + 0x14], 0x200
je 0x6964df
test byte [ebx + 0xc], 4
je 0x6964df
mov byte [ebp - 0x1c], dl
lea eax, [ebp - 0x1c]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x1b], dl
push dword [ebx + 0x1c]
call fcn.00699cda
add esp, 0xc
mov dword [ebx + 0x1c], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edi
jmp 0x6964f5
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x6964f5
mov dword [eax + 0x10], ecx
mov dword [ebx + 4], 0x3f39
test dword [ebx + 0x14], 0x400
je 0x6965b0
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
mov edx, ecx
cmovbe edx, eax
mov dword [ebp - 0x34], edx
test edx, edx
je 0x6965a8
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x69656d
mov esi, dword [ecx + 0x10]
test esi, esi
mov dword [ebp - 0x40], esi
mov esi, dword [ebp + 8]
je 0x69656d
mov ecx, dword [ecx + 0x14]
sub ecx, eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x18]
cmp eax, ecx
jae 0x69656d
add eax, edx
cmp eax, ecx
mov eax, dword [ebp - 0x30]
jbe 0x696557
sub ecx, eax
jmp 0x696559
mov ecx, edx
add eax, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 8]
push ecx
push eax
call fcn.00717660
mov edx, dword [ebp - 0x34]
add esp, 0xc
test byte [esi + 0x34], 1
jne 0x696594
test dword [ebx + 0x14], 0x200
je 0x696594
test byte [ebx + 0xc], 4
je 0x696594
push edx
push dword [ebp - 8]
push dword [ebx + 0x1c]
call fcn.00699cda
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], eax
sub ecx, eax
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x696962
xor edx, edx
mov dword [ebx + 4], 0x3f3a
mov dword [ebx + 0x44], edx
jmp 0x6965c0
xor edx, edx
test dword [ebx + 0x14], 0x800
je 0x69665c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
mov eax, edx
mov esi, ecx
mov edx, dword [ebp - 8]
mov cl, byte [eax + edx]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x696610
cmp dword [ecx + 0x1c], 0
je 0x69660d
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x20]
jae 0x69660d
mov ecx, dword [ecx + 0x1c]
mov al, byte [ebp - 1]
mov byte [edx + ecx], al
inc dword [ebx + 0x44]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
cmp byte [ebp - 1], 0
je 0x69661a
cmp eax, esi
jb 0x6965df
mov esi, dword [ebp + 8]
test byte [esi + 0x34], 1
jne 0x696645
test dword [ebx + 0x14], 0x200
je 0x696645
test byte [ebx + 0xc], 4
je 0x696645
push eax
push edx
push dword [ebx + 0x1c]
call fcn.00699cda
mov dword [ebx + 0x1c], eax
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], eax
sub ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x10], ecx
jne 0x696962
jmp 0x696666
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x696666
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [ebx + 4], 0x3f3b
mov dword [ebx + 0x44], edx
jmp 0x696676
xor edx, edx
test dword [ebx + 0x14], 0x1000
je 0x696712
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
mov eax, edx
mov esi, ecx
mov edx, dword [ebp - 8]
mov cl, byte [eax + edx]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x6966c6
cmp dword [ecx + 0x24], 0
je 0x6966c3
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x28]
jae 0x6966c3
mov ecx, dword [ecx + 0x24]
mov al, byte [ebp - 1]
mov byte [edx + ecx], al
inc dword [ebx + 0x44]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
cmp byte [ebp - 1], 0
je 0x6966d0
cmp eax, esi
jb 0x696695
mov esi, dword [ebp + 8]
test byte [esi + 0x34], 1
jne 0x6966fb
test dword [ebx + 0x14], 0x200
je 0x6966fb
test byte [ebx + 0xc], 4
je 0x6966fb
push eax
push edx
push dword [ebx + 0x1c]
call fcn.00699cda
mov dword [ebx + 0x1c], eax
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], eax
sub ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x10], ecx
jne 0x696962
jmp 0x69671c
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x69671c
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f3c
mov ecx, dword [ebx + 0x14]
test ecx, 0x200
je 0x696799
push 0x10
pop eax
cmp edi, eax
jae 0x69676d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
push 0x10
inc eax
mov dword [ebp - 0xc], edx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x69673b
mov ecx, dword [ebx + 0x14]
test byte [esi + 0x34], 1
jne 0x69678d
test byte [ebx + 0xc], 4
je 0x69678d
movzx eax, word [ebx + 0x1c]
cmp edx, eax
je 0x69678d
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x697502
xor eax, eax
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x6967b3
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov eax, dword [ebx + 0x24]
mov dword [eax + 0x30], 1
test byte [esi + 0x34], 1
jne 0x6967cf
xor eax, eax
push eax
push eax
push eax
call fcn.00699cda
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [ebx + 4], 0x3f3f
jmp 0x697509
cmp edi, 0x20
jae 0x69680d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x6967e3
test byte [esi + 0x34], 1
jne 0x69683a
mov ecx, edx
mov edi, 0xff00
mov eax, edx
and ecx, edi
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, edi
add eax, ecx
shr edx, 0x18
add eax, edx
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [ebx + 4], 0x3f3e
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
jmp 0x69684e
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x697523
test byte [esi + 0x34], 1
jne 0x69686e
push eax
push eax
push eax
call fcn.00699a90
mov dword [ebx + 0x1c], eax
add esp, 0xc
mov dword [esi + 0x30], eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f3f
cmp dword [ebp + 0xc], 5
je 0x69695f
cmp dword [ebp + 0xc], 6
je 0x69695f
cmp dword [ebx + 8], 0
je 0x6968ad
mov ecx, edi
mov dword [ebx + 4], 0x3f4e
and ecx, 7
shr edx, cl
sub edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jmp 0x697509
cmp edi, 3
jae 0x6968df
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x6968b5
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 8], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x6969db
sub eax, 1
je 0x696929
sub eax, 1
je 0x69691d
sub eax, 1
jne 0x6969e2
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx + 4], 0x3f51
jmp 0x6969e2
mov dword [ebx + 4], 0x3f44
jmp 0x6969e2
cmp dword [ebp + 0xc], 6
mov dword [ebx + 0x50], 0x84e980
mov dword [ebx + 0x58], 9
mov dword [ebx + 0x54], 0x84f180
mov dword [ebx + 0x5c], 5
mov dword [ebx + 4], 0x3f47
jne 0x6969e2
shr edx, 2
sub edi, 3
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov dword [ebx + 0x40], edi
xor edi, edi
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x2c], edi
jne 0x6969b5
cmp edx, dword [esi + 0x10]
je 0x69756b
cmp dword [ebx + 4], 0x3f51
jge 0x69756b
cmp dword [ebx + 4], 0x3f4e
jl 0x6969b5
cmp dword [ebp + 0xc], 4
je 0x69756b
sub edx, dword [esi + 0x10]
push edx
push dword [esi + 0xc]
push esi
call fcn.006978fc
add esp, 0xc
test eax, eax
je 0x697568
mov dword [ebx + 4], 0x3f52
push 0xfffffffffffffffc
jmp 0x69751d
mov dword [ebx + 4], 0x3f41
shr edx, 2
sub edi, 3
jmp 0x69626d
mov ecx, edi
and ecx, 7
sub edi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
cmp edi, 0x20
jae 0x696a31
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x696a04
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x696a4b
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x697502
xor eax, eax
mov dword [ebx + 0x44], ecx
cmp dword [ebp + 0xc], 6
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebx + 4], 0x3f42
je 0x69695f
mov dword [ebx + 4], 0x3f43
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x6967cf
mov eax, dword [ebp - 0x10]
cmp ecx, eax
cmovbe eax, ecx
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
cmovbe ecx, eax
mov dword [ebp - 0x40], ecx
test ecx, ecx
je 0x69695f
push ecx
push dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00717660
mov eax, dword [ebp - 0x40]
add esp, 0xc
sub dword [ebp - 0x10], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x18], eax
add dword [ebp - 0x20], eax
sub dword [ebx + 0x44], eax
mov edx, dword [ebp - 0xc]
jmp 0x697509
cmp edi, 0xe
jae 0x696af4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0xe
jb 0x696aca
mov eax, edx
sub edi, 0xe
shr edx, 5
push 0x1f
pop ecx
and ecx, eax
mov dword [ebp - 0x14], edi
mov eax, edx
add ecx, 0x101
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ebx + 0x64], ecx
mov dword [ebp - 0x40], eax
mov dword [ebx + 0x68], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp - 0xc], edx
mov dword [ebx + 0x60], eax
cmp ecx, 0x11e
ja 0x696b48
cmp dword [ebp - 0x40], 0x1e
ja 0x696b48
and dword [ebx + 0x6c], 0
mov dword [ebx + 4], 0x3f45
jmp case.0x69610c.16197
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x697502
cmp edi, 3
jae 0x696b86
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x696b5c
mov eax, dword [ebx + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 0xc], edx
movzx eax, word [eax*2 + 0x84f200]
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
sub edi, 3
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x6c]
cmp eax, dword [ebx + 0x60]
jb 0x696b54
cmp eax, 0x13
jae 0x696bd2
mov eax, dword [ebx + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x84f200]
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
cmp dword [ebx + 0x6c], 0x13
jb 0x696bb7
lea eax, [ebx + 0x534]
lea edx, [ebx + 0x70]
mov dword [ebx + 0x50], eax
mov dword [edx], eax
lea ecx, [ebx + 0x58]
lea eax, [ebx + 0x2f4]
mov dword [ecx], 7
push eax
push ecx
push edx
push 0x13
lea eax, [ebx + 0x74]
push eax
push 0
call fcn.00699fd8
mov edx, dword [ebp - 0xc]
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x696c18
mov dword [esi + 0x18], str.invalid_code_lengths_set
jmp 0x697502
and dword [ebx + 0x6c], 0
mov eax, 0x3f46
mov dword [ebx + 4], eax
mov ecx, eax
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x64]
cmp dword [ebx + 0x6c], eax
jae 0x696e2b
mov ecx, dword [ebx + 0x58]
xor eax, eax
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x40], eax
jmp 0x696c6a
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x40]
add edi, 8
mov dword [ebp - 0xc], edx
mov ecx, dword [ebx + 0x50]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x34], eax
cmp ecx, edi
ja 0x696c43
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x40], ecx
cmp cx, word [ebp - 0x3c]
jae 0x696cb5
shr eax, 8
movzx ecx, al
mov eax, dword [ebx + 0x6c]
sub edi, ecx
shr edx, cl
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xc], edx
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x14], edi
jmp 0x696dfd
jne 0x696d29
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, 2
mov dword [ebp - 0x40], ecx
cmp edi, ecx
jae 0x696cf3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, edi
shl edx, cl
add edi, 8
add dword [ebp - 0xc], edx
inc dword [ebp - 8]
cmp edi, dword [ebp - 0x40]
jb 0x696cc9
mov edx, dword [ebp - 0xc]
movzx ecx, ah
mov eax, dword [ebx + 0x6c]
sub edi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
test eax, eax
je 0x696e10
movzx eax, word [ebx + eax*2 + 0x72]
mov ecx, edx
and ecx, 3
shr edx, 2
add ecx, 3
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
sub edi, 2
jmp 0x696dc5
cmp word [ebp - 0x32], 0x11
movzx ecx, ah
jne 0x696d77
mov dword [ebp - 0x40], ecx
jmp 0x696d5f
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp - 0x40]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
lea eax, [ecx + 3]
cmp edi, eax
jb 0x696d38
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x696db9
mov dword [ebp - 0x40], ecx
jmp 0x696da3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp - 0x40]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
lea eax, [ecx + 7]
cmp edi, eax
jb 0x696d7c
shr edx, cl
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
push 0xfffffffffffffff9
mov dword [ebp - 0x30], eax
pop eax
sub eax, ecx
add edi, eax
and dword [ebp - 0x34], 0
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x68]
add ecx, dword [ebp - 0x30]
add eax, dword [ebx + 0x64]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
cmp ecx, eax
ja 0x696e1c
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x6c]
mov word [ebx + eax*2 + 0x74], dx
mov ecx, dword [ebx + 0x6c]
lea ecx, [ecx + 1]
mov dword [ebx + 0x6c], ecx
sub esi, 1
jne 0x696de1
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x64]
cmp ecx, eax
jb 0x696c35
mov ecx, dword [ebx + 4]
jmp 0x696e2b
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x697502
mov ecx, 0x3f51
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx + 4], ecx
cmp ecx, 0x3f51
je 0x697509
xor eax, eax
cmp word [ebx + 0x274], ax
jne 0x696e4e
mov dword [esi + 0x18], str.invalid_code____missing_end_of_block
jmp 0x697502
lea eax, [ebx + 0x534]
lea ecx, [ebx + 0x70]
mov dword [ebx + 0x50], eax
mov dword [ecx], eax
lea edx, [ebx + 0x2f4]
push edx
lea eax, [ebx + 0x58]
push eax
push ecx
push dword [ebx + 0x64]
mov dword [eax], 9
lea eax, [ebx + 0x74]
push eax
push 1
call fcn.00699fd8
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x696e95
mov dword [esi + 0x18], str.invalid_literal_lengths_set
mov edx, dword [ebp - 0xc]
jmp 0x697502
lea ecx, [ebx + 0x70]
mov eax, dword [ecx]
lea edx, [ebx + 0x2f4]
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x5c]
push edx
push eax
mov dword [eax], 6
mov eax, dword [ebx + 0x64]
push ecx
push dword [ebx + 0x68]
add eax, 0x3a
lea eax, [ebx + eax*2]
push eax
push 2
call fcn.00699fd8
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x696ed6
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x696e8d
cmp dword [ebp + 0xc], 6
mov dword [ebx + 4], 0x3f47
je 0x69695f
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f48
mov eax, dword [ebp - 0x10]
cmp eax, 6
jb 0x696f63
cmp dword [ebp - 0x18], 0x102
jb 0x696f63
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x24]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov dword [esi + 4], eax
push esi
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edi
call fcn.0069a3b2
cmp dword [ebx + 4], 0x3f3f
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
jne 0x697509
or dword [ebx + 0x1bc8], 0xffffffff
jmp 0x697509
mov ecx, dword [ebx + 0x58]
xor eax, eax
and dword [ebx + 0x1bc8], 0
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x50]
dec eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], ecx
jmp 0x696fab
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x50]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x696f7e
test al, al
je 0x69707c
test al, 0xf0
jne 0x69707c
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x34], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x30]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x14]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
add esi, ecx
cmp esi, edi
jbe 0x697066
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x697560
mov esi, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
add edi, 8
mov dword [ebp - 0x14], edi
movzx eax, byte [esi]
shl eax, cl
add ebx, eax
movzx edi, dh
movzx eax, word [ebp - 0x32]
inc esi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
mov dword [ebp - 0xc], ebx
shl esi, cl
mov ecx, edi
dec esi
and esi, ebx
shr esi, cl
add esi, eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x14]
cmp ecx, edi
ja 0x69700d
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp + 8]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub edi, ecx
mov dword [ebx + 0x1bc8], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x1bc8], ecx
sub edi, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebx + 0x44], ecx
test al, al
jne 0x6970ac
mov dword [ebx + 4], 0x3f4d
jmp 0x697509
test al, 0x20
je 0x6970bc
or dword [ebx + 0x1bc8], 0xffffffff
jmp 0x6967cf
test al, 0x40
je 0x6970cc
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x697502
movzx eax, al
and eax, 0xf
mov dword [ebx + 4], 0x3f49
mov dword [ebx + 0x4c], eax
mov esi, dword [ebx + 0x4c]
test esi, esi
je 0x697130
cmp edi, esi
jae 0x697113
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, esi
jb 0x6970ea
xor eax, eax
mov ecx, esi
inc eax
sub edi, esi
shl eax, cl
dec eax
mov dword [ebp - 0x14], edi
and eax, edx
shr edx, cl
add dword [ebx + 0x44], eax
add dword [ebx + 0x1bc8], esi
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x1bcc], eax
mov dword [ebx + 4], 0x3f4a
mov ecx, dword [ebx + 0x5c]
xor eax, eax
lea esi, [eax + 1]
shl esi, cl
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x30], ecx
jmp 0x69717c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x54]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
lea eax, [esi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x697152
test al, 0xf0
jne 0x697245
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x34], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x30]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x14]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
add esi, ecx
cmp esi, edi
jbe 0x697232
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x697560
mov esi, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
add edi, 8
mov dword [ebp - 0x14], edi
movzx eax, byte [esi]
shl eax, cl
add ebx, eax
movzx edi, dh
movzx eax, word [ebp - 0x32]
inc esi
mov dword [ebp - 8], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
mov dword [ebp - 0xc], ebx
shl esi, cl
mov ecx, edi
dec esi
and esi, ebx
shr esi, cl
add esi, eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x14]
cmp ecx, edi
ja 0x6971d9
mov ebx, dword [ebp - 0x2c]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
sub edi, ecx
shr edx, cl
add dword [ebx + 0x1bc8], ecx
mov esi, dword [ebp + 8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x1bc8], ecx
sub edi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
test al, 0x40
je 0x697270
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x697502
mov ecx, eax
mov dword [ebx + 4], 0x3f4b
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x4c], eax
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x6972dd
cmp edi, ecx
jae 0x6972c2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebx + 0x4c]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x697296
xor eax, eax
sub edi, ecx
inc eax
mov dword [ebp - 0x14], edi
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x48], eax
add dword [ebx + 0x1bc8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebx + 4], 0x3f4c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x69695f
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebx + 0x48]
cmp eax, ecx
jbe 0x697347
sub eax, ecx
cmp eax, dword [ebx + 0x30]
jbe 0x697317
cmp dword [ebx + 0x1bc4], 0
je 0x697317
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x697502
cmp eax, dword [ebx + 0x34]
jbe 0x697329
sub eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
sub ecx, eax
add ecx, dword [ebx + 0x38]
jmp 0x697331
mov ecx, dword [ebx + 0x38]
sub ecx, eax
add ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x44]
cmp eax, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
cmovbe esi, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], esi
jmp 0x697352
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x18]
mov ebx, esi
cmp dword [ebp - 0x30], ebx
cmovbe esi, dword [ebp - 0x30]
sub ebx, esi
sub eax, esi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [ebx + 0x44], eax
mov ebx, dword [ebp - 0x20]
sub ecx, ebx
mov al, byte [ecx + ebx]
mov byte [ebx], al
inc ebx
sub esi, 1
jne 0x697370
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x44], 0
jne 0x697509
mov dword [ebx + 4], 0x3f48
jmp 0x697509
cmp dword [ebp - 0x18], 0
je 0x69695f
mov ecx, dword [ebp - 0x20]
mov al, byte [ebx + 0x44]
mov byte [ecx], al
inc ecx
dec dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
jmp 0x69738e
cmp dword [ebx + 0xc], 0
je 0x69749d
cmp edi, 0x20
jae 0x6973f4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x6973c7
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
add dword [esi + 0x14], eax
add dword [ebx + 0x20], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x24], eax
mov eax, ecx
test cl, 4
je 0x697447
cmp dword [ebp - 0x24], 0
je 0x697447
test byte [esi + 0x34], 1
jne 0x697447
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
cmp dword [ebx + 0x14], 0
push ecx
push eax
push dword [ebx + 0x1c]
je 0x697433
call fcn.00699cda
jmp 0x697438
call fcn.00699a90
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
test al, 4
je 0x697491
test byte [esi + 0x34], 1
jne 0x697491
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
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp dword [ebx + 0x14], 0
cmovne ecx, edx
cmp ecx, dword [ebx + 0x1c]
je 0x697491
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x697502
xor ecx, ecx
mov edx, ecx
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edi
mov dword [ebx + 4], 0x3f4f
cmp dword [ebx + 0xc], 0
je 0x697549
xor eax, eax
cmp dword [ebx + 0x14], eax
je 0x697549
cmp edi, 0x20
jae 0x6974f0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x696962
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x6974c1
xor eax, eax
test byte [ebx + 0xc], 4
je 0x697544
cmp edx, dword [ebx + 0x20]
je 0x697544
mov dword [esi + 0x18], str.incorrect_length_check
mov dword [ebx + 4], 0x3f51
mov ecx, dword [ebx + 4]
lea eax, [ecx - 0x3f34]
cmp eax, 0x1e
jbe switch.0x0069610c
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edi
push 2
jmp 0x69751d
mov dword [ebp - 0xc], eax
mov edi, eax
mov dword [ebx + 4], 0x3f50
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
jmp 0x69695f
push 0xfffffffffffffffd
pop eax
jmp 0x697553
mov ebx, dword [ebp - 0x2c]
jmp 0x696962
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
sub eax, dword [esi + 4]
sub edx, dword [esi + 0x10]
add dword [esi + 8], eax
add dword [esi + 0x14], edx
add dword [ebx + 0x20], edx
test byte [ebx + 0xc], 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], edx
je 0x6975ba
test edx, edx
je 0x6975ba
test byte [esi + 0x34], 1
jne 0x6975ba
mov eax, dword [esi + 0xc]
sub eax, edx
push edx
push eax
push dword [ebx + 0x1c]
cmp dword [ebx + 0x14], edi
je 0x6975a9
call fcn.00699cda
jmp 0x6975ae
call fcn.00699a90
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
cmp dword [ebx + 4], 0x3f47
je 0x6975cc
cmp dword [ebx + 4], 0x3f42
jne 0x6975d1
mov edi, 0x100
mov ecx, dword [ebx + 8]
neg ecx
mov dword [ebp - 0x40], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebx + 4], 0x3f3f
cmove eax, dword [ebp - 0x40]
add ecx, eax
add ecx, dword [ebx + 0x40]
add ecx, edi
cmp dword [ebp - 0x38], 0
mov dword [esi + 0x2c], ecx
jne 0x697603
test edx, edx
je 0x697609
cmp dword [ebp + 0xc], 4
jne 0x697619
mov eax, dword [ebp - 0x28]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x69751e
mov eax, dword [ebp - 0x28]
jmp 0x69751e