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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
call fcn.1813dc6b
test eax, eax
jne case.default.0x1813df7e
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x24], eax
test eax, eax
je case.default.0x1813df7e
mov eax, dword [edi]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1813df0a
cmp dword [edi + 4], eax
jne case.default.0x1813df7e
mov ebx, dword [edi + 0x1c]
mov edx, 0x3f40
mov ecx, dword [ebx + 4]
cmp ecx, 0x3f3f
jne 0x1813df2d
mov dword [ebx + 4], edx
mov ecx, edx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
mov edx, dword [ebx + 0x3c]
mov esi, dword [ebx + 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ecx - 0x3f34]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
cmp eax, 0x1e
ja case.default.0x1813df7e
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x44], 0x1f
mov dword [ebp - 0x54], 0x3f51
mov dword [ebp - 0x50], 0x3f46
jmp dword [eax*4 + 0x1813f307]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x1813df98
mov dword [ebx + 4], 0x3f40
jmp 0x1813e7ea
cmp esi, dword [ebp - 0x28]
jae 0x1813dfd0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 0x28]
jb 0x1813dfa0
mov eax, dword [ebx + 0xc]
test al, 2
je 0x1813e01b
cmp edx, 0x8b1f
jne 0x1813e01b
xor esi, esi
cmp dword [ebx + 0x28], esi
jne 0x1813dfea
mov dword [ebx + 0x28], 0xf
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x20]
push 2
xor ecx, ecx
mov dword [ebx + 0x1c], esi
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1f], 0x8b
call fcn.1813bdb6
mov edx, esi
mov dword [ebx + 0x1c], eax
pop ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov dword [ebx + 4], 0x3f35
jmp 0x1813e7ea
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x1813e029
or dword [ecx + 0x30], 0xffffffff
mov eax, dword [ebx + 0xc]
test al, 1
je 0x1813e0c2
movzx ecx, dl
mov eax, edx
shr eax, 8
xor edx, edx
shl ecx, 8
add eax, ecx
div dword [ebp - 0x44]
test edx, edx
mov edx, dword [ebp - 0xc]
jne 0x1813e0c2
mov eax, edx
and al, 0xf
cmp al, 8
je 0x1813e05b
mov dword [edi + 0x18], str.unknown_compression_method
jmp 0x1813e0c9
mov eax, dword [ebx + 0x28]
sub esi, 4
shr edx, 4
mov ecx, edx
mov dword [ebp - 0xc], edx
and ecx, 0xf
mov dword [ebp - 0x14], esi
add ecx, 8
test eax, eax
jne 0x1813e07b
mov dword [ebx + 0x28], ecx
mov eax, ecx
cmp ecx, 0xf
ja 0x1813e0b9
cmp ecx, eax
ja 0x1813e0b9
xor esi, esi
shr edx, 8
inc esi
not edx
mov eax, esi
mov dword [ebx + 0x1c], esi
shl eax, cl
and edx, 2
mov dword [ebx + 0x18], eax
xor eax, eax
or edx, 0x3f3d
mov dword [ebx + 0x14], eax
mov dword [edi + 0x30], esi
mov esi, eax
mov dword [ebx + 4], edx
mov edx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
jmp 0x1813e7ea
mov dword [edi + 0x18], str.invalid_window_size
jmp 0x1813e0c9
mov dword [edi + 0x18], str.incorrect_header_check
mov dword [ebx + 4], 0x3f51
jmp 0x1813e7ea
cmp esi, dword [ebp - 0x28]
jae 0x1813e10a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 0x28]
jb 0x1813e0dd
mov dword [ebx + 0x14], edx
cmp dl, 8
jne 0x1813e052
test edx, 0xe000
je 0x1813e127
mov dword [edi + 0x18], str.unknown_header_flags_set
jmp 0x1813e0c9
mov esi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
mov eax, edx
test esi, esi
je 0x1813e13f
mov eax, ecx
and eax, 1
mov dword [esi], eax
mov eax, dword [ebx + 0x14]
test eax, 0x200
je 0x1813e163
test byte [ebx + 0xc], 4
je 0x1813e163
mov byte [ebp - 0x20], dl
lea edx, [ebp - 0x20]
mov byte [ebp - 0x1f], cl
mov ecx, dword [ebx + 0x1c]
push 2
call fcn.1813bdb6
pop ecx
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 4], 0x3f36
mov edx, eax
mov esi, eax
mov dword [ebp - 0xc], edx
cmp esi, 0x20
jae 0x1813e1a5
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 0x20
jb 0x1813e17b
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1813e1af
mov dword [eax + 4], edx
test dword [ebx + 0x14], 0x200
je 0x1813e1e8
test byte [ebx + 0xc], 4
je 0x1813e1e8
mov ecx, dword [ebx + 0x1c]
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1f], al
mov eax, edx
mov byte [ebp - 0x20], dl
shr edx, 0x18
shr eax, 0x10
mov byte [ebp - 0x1d], dl
lea edx, [ebp - 0x20]
push 4
mov byte [ebp - 0x1e], al
call fcn.1813bdb6
pop ecx
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 4], 0x3f37
mov edx, eax
mov esi, eax
mov dword [ebp - 0xc], edx
cmp esi, dword [ebp - 0x28]
jae 0x1813e22a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 0x28]
jb 0x1813e200
mov esi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
test esi, esi
je 0x1813e242
movzx eax, dl
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [eax + 0xc], ecx
test dword [ebx + 0x14], 0x200
je 0x1813e268
test byte [ebx + 0xc], 4
je 0x1813e268
mov byte [ebp - 0x20], dl
lea edx, [ebp - 0x20]
mov byte [ebp - 0x1f], cl
mov ecx, dword [ebx + 0x1c]
push 2
call fcn.1813bdb6
pop ecx
mov dword [ebx + 0x1c], eax
xor ecx, ecx
mov dword [ebx + 4], 0x3f38
mov edx, ecx
mov esi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
jmp 0x1813e27f
xor ecx, ecx
test dword [ebx + 0x14], 0x400
je 0x1813e2fc
cmp esi, dword [ebp - 0x28]
jae 0x1813e2ba
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 0x28]
jb 0x1813e290
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x44], edx
test eax, eax
je 0x1813e2c7
mov dword [eax + 0x14], edx
test dword [ebx + 0x14], 0x200
je 0x1813e2f0
test byte [ebx + 0xc], 4
je 0x1813e2f0
mov ecx, dword [ebx + 0x1c]
mov byte [ebp - 0x20], dl
shr edx, 8
mov byte [ebp - 0x1f], dl
lea edx, [ebp - 0x20]
push 2
call fcn.1813bdb6
pop ecx
mov dword [ebx + 0x1c], eax
xor eax, eax
mov esi, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
jmp 0x1813e306
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1813e306
mov dword [eax + 0x10], ecx
mov dword [ebx + 4], 0x3f39
test dword [ebx + 0x14], 0x400
je 0x1813e3e9
mov eax, dword [ebx + 0x44]
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x40], ecx
cmp ecx, edx
jbe 0x1813e32e
mov ecx, edx
mov dword [ebp - 0x40], edx
test ecx, ecx
je 0x1813e3e1
mov edi, dword [ebx + 0x14]
mov edx, dword [ebx + 0x24]
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
test edx, edx
je 0x1813e3b1
cmp dword [edx + 0x10], 0
mov edi, dword [edx + 0x10]
mov dword [ebp - 0x4c], edi
mov edi, dword [ebx + 0x14]
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
je 0x1813e3b1
mov edx, dword [edx + 0x14]
mov edi, dword [ebx + 0x14]
sub edx, eax
mov dword [ebp - 0x3c], edx
mov edx, dword [ebx + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edi
mov edx, dword [edx + 0x18]
mov edi, dword [ebp - 0x18]
cmp eax, edx
jae 0x1813e3b1
add eax, ecx
cmp eax, edx
mov eax, dword [ebp - 0x3c]
jbe 0x1813e38f
sub edx, eax
jmp 0x1813e391
mov edx, ecx
mov ecx, dword [ebp - 8]
add eax, dword [ebp - 0x4c]
push edx
push ecx
push eax
call fcn.18147aa0
mov ecx, dword [ebx + 0x14]
add esp, 0xc
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
test dword [ebp - 0x34], 0x200
je 0x1813e3d0
test byte [ebx + 0xc], 4
je 0x1813e3d0
mov edx, dword [ebp - 8]
push ecx
mov ecx, dword [ebx + 0x1c]
call fcn.1813bdb6
pop ecx
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x10], ecx
add dword [ebp - 8], ecx
sub eax, ecx
mov dword [ebx + 0x44], eax
test eax, eax
jne 0x1813f205
xor edx, edx
mov dword [ebx + 4], 0x3f3a
mov dword [ebx + 0x44], edx
jmp 0x1813e3f9
xor edx, edx
test dword [ebx + 0x14], 0x800
je 0x1813e48c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
mov eax, edx
mov edi, 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 - 0x40], eax
test ecx, ecx
je 0x1813e449
cmp dword [ecx + 0x1c], 0
je 0x1813e446
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x20]
jae 0x1813e446
mov ecx, dword [ecx + 0x1c]
mov al, byte [ebp - 1]
mov byte [edx + ecx], al
inc dword [ebx + 0x44]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 8]
cmp byte [ebp - 1], 0
je 0x1813e453
cmp eax, edi
jb 0x1813e418
test dword [ebx + 0x14], 0x200
mov edi, dword [ebp - 0x18]
je 0x1813e475
test byte [ebx + 0xc], 4
je 0x1813e475
mov ecx, dword [ebx + 0x1c]
push eax
call fcn.1813bdb6
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x40]
pop ecx
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], eax
sub ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x10], ecx
jne 0x1813f208
jmp 0x1813e496
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1813e496
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [ebx + 4], 0x3f3b
mov dword [ebx + 0x44], edx
jmp 0x1813e4a6
xor edx, edx
test dword [ebx + 0x14], 0x1000
je 0x1813e539
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
mov eax, edx
mov edi, 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 - 0x40], eax
test ecx, ecx
je 0x1813e4f6
cmp dword [ecx + 0x24], 0
je 0x1813e4f3
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x28]
jae 0x1813e4f3
mov ecx, dword [ecx + 0x24]
mov al, byte [ebp - 1]
mov byte [edx + ecx], al
inc dword [ebx + 0x44]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 8]
cmp byte [ebp - 1], 0
je 0x1813e500
cmp eax, edi
jb 0x1813e4c5
test dword [ebx + 0x14], 0x200
mov edi, dword [ebp - 0x18]
je 0x1813e522
test byte [ebx + 0xc], 4
je 0x1813e522
mov ecx, dword [ebx + 0x1c]
push eax
call fcn.1813bdb6
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x40]
pop ecx
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], eax
sub ecx, eax
cmp byte [ebp - 1], 0
mov dword [ebp - 0x10], ecx
jne 0x1813f208
jmp 0x1813e543
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1813e543
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f3c
mov eax, dword [ebx + 0x14]
test eax, 0x200
je 0x1813e5b5
cmp esi, dword [ebp - 0x28]
jae 0x1813e58c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 0x28]
jb 0x1813e55f
test byte [ebx + 0xc], 4
je 0x1813e5a6
movzx eax, word [ebx + 0x1c]
cmp edx, eax
je 0x1813e5a6
mov dword [edi + 0x18], str.header_crc_mismatch
jmp 0x1813e0c9
xor eax, eax
mov edx, eax
mov esi, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x1813e5cf
sar eax, 9
and eax, 1
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 0x24]
mov dword [eax + 0x30], 1
xor eax, eax
mov dword [ebx + 0x1c], eax
mov dword [edi + 0x30], eax
mov dword [ebx + 4], 0x3f3f
jmp 0x1813e7ea
cmp esi, 0x20
jae 0x1813e615
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 0x20
jb 0x1813e5eb
mov ecx, edx
mov esi, 0xff00
mov eax, edx
and ecx, esi
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, esi
shl ecx, 8
shr edx, 0x18
add eax, ecx
add eax, edx
mov dword [ebx + 0x1c], eax
mov dword [edi + 0x30], eax
xor eax, eax
mov edx, eax
mov dword [ebx + 4], 0x3f3e
mov dword [ebp - 0xc], edx
mov esi, eax
jmp 0x1813e650
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x1813f1c5
xor ecx, ecx
inc ecx
mov dword [ebx + 0x1c], ecx
mov dword [edi + 0x30], ecx
mov dword [ebx + 4], 0x3f3f
jmp 0x1813e66d
xor eax, eax
cmp dword [ebx + 8], eax
je 0x1813e68d
mov ecx, esi
mov dword [ebx + 4], 0x3f4e
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
jmp 0x1813e7ea
cmp esi, 3
jae 0x1813e6bf
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 3
jb 0x1813e695
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 8], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x1813e720
sub eax, 1
je 0x1813e6fb
sub eax, 1
je 0x1813e6f2
sub eax, 1
jne 0x1813e727
mov dword [edi + 0x18], str.invalid_block_type
mov dword [ebx + 4], 0x3f51
jmp 0x1813e727
mov dword [ebx + 4], 0x3f44
jmp 0x1813e727
mov dword [ebx + 0x50], 0x181a4848
mov dword [ebx + 0x58], 9
mov dword [ebx + 0x54], 0x181a47a0
mov dword [ebx + 0x5c], 5
mov dword [ebx + 4], 0x3f47
jmp 0x1813e727
mov dword [ebx + 4], 0x3f41
shr edx, 2
sub esi, 3
jmp 0x1813e0ae
mov ecx, esi
and ecx, 7
sub esi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
cmp esi, 0x20
jae 0x1813e776
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 0x20
jb 0x1813e749
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x1813e790
mov dword [edi + 0x18], str.invalid_stored_block_lengths
jmp 0x1813e0c9
xor eax, eax
mov dword [ebx + 0x44], ecx
mov edx, eax
mov esi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov dword [ebx + 4], 0x3f43
mov edi, dword [ebx + 0x44]
test edi, edi
je 0x1813e804
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
jbe 0x1813e7b6
mov edi, ecx
cmp edi, dword [ebp - 0x1c]
jbe 0x1813e7be
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1813f208
push edi
push dword [ebp - 8]
push dword [ebp - 0x24]
call fcn.18147aa0
sub dword [ebp - 0x10], edi
add esp, 0xc
add dword [ebp - 8], edi
sub dword [ebp - 0x1c], edi
add dword [ebp - 0x24], edi
sub dword [ebx + 0x44], edi
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebx + 4]
lea eax, [ecx - 0x3f34]
cmp eax, 0x1e
jbe switch.0x1813df7e
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebx + 4], 0x3f3f
jmp 0x1813e7e7
cmp esi, 0xe
jae 0x1813e83f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 0xe
jb 0x1813e815
mov ecx, edx
sub esi, 0xe
and ecx, dword [ebp - 0x44]
shr edx, 5
add ecx, 0x101
mov eax, edx
mov dword [ebx + 0x64], ecx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x4c], 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 0x1813e891
cmp dword [ebp - 0x4c], 0x1e
ja 0x1813e891
and dword [ebx + 0x6c], 0
mov dword [ebx + 4], 0x3f45
jmp case.0x1813df7e.16197
mov dword [edi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x1813e0c9
cmp esi, 3
jae 0x1813e8cf
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 3
jb 0x1813e8a5
mov eax, dword [ebx + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 0xc], edx
movzx eax, word [eax*2 + 0x181a4820]
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
sub esi, 3
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 0x6c]
cmp eax, dword [ebx + 0x60]
jb 0x1813e89d
cmp eax, 0x13
jae 0x1813e91b
mov eax, dword [ebx + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x181a4820]
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
cmp dword [ebx + 0x6c], 0x13
jb 0x1813e900
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 edx, [ebx + 0x74]
xor ecx, ecx
call fcn.181425b7
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1813e960
mov dword [edi + 0x18], str.invalid_code_lengths_set
jmp 0x1813e0c9
mov eax, dword [ebp - 0x50]
mov ecx, eax
and dword [ebx + 0x6c], 0
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x64]
cmp dword [ebx + 0x6c], eax
jae 0x1813eb71
mov ecx, dword [ebx + 0x58]
xor eax, eax
lea edi, [eax + 1]
shl edi, cl
jmp 0x1813e9ab
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add esi, 8
mov ecx, dword [ebx + 0x50]
lea eax, [edi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x40], eax
cmp ecx, esi
ja 0x1813e987
mov ecx, eax
shr ecx, 0x10
mov edi, ecx
cmp cx, word [ebp - 0x28]
jae 0x1813e9f5
shr eax, 8
movzx ecx, al
mov eax, dword [ebx + 0x6c]
sub esi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov word [ebx + eax*2 + 0x74], di
inc dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x6c]
jmp 0x1813eb3c
cmp di, word [ebp - 0x28]
jne 0x1813ea66
mov ecx, eax
shr ecx, 8
movzx edi, cl
add edi, 2
cmp esi, edi
jae 0x1813ea33
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, esi
shl edx, cl
add esi, 8
add dword [ebp - 0xc], edx
inc dword [ebp - 8]
cmp esi, edi
jb 0x1813ea0a
mov edx, dword [ebp - 0xc]
movzx ecx, ah
mov eax, dword [ebx + 0x6c]
sub esi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
test eax, eax
je 0x1813eb52
movzx eax, word [ebx + eax*2 + 0x72]
mov edi, edx
and edi, 3
shr edx, 2
add edi, 3
mov dword [ebp - 0x40], eax
sub esi, 2
jmp 0x1813eb0b
cmp word [ebp - 0x3e], 0x11
movzx ecx, ah
jne 0x1813eaba
lea edi, [ecx + 3]
mov dword [ebp - 0x4c], ecx
cmp esi, edi
jae 0x1813eaa9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, edi
jb 0x1813ea7d
mov ecx, dword [ebp - 0x4c]
shr edx, cl
mov edi, edx
and edi, 7
add edi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x1813eb02
lea edi, [ecx + 7]
mov dword [ebp - 0x4c], ecx
cmp esi, edi
jae 0x1813eaf3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, edi
jb 0x1813eac7
mov ecx, dword [ebp - 0x4c]
shr edx, cl
mov edi, edx
and edi, 0x7f
add edi, 0xb
shr edx, 7
push 0xfffffffffffffff9
pop eax
sub eax, ecx
add esi, eax
and dword [ebp - 0x40], 0
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x68]
add ecx, edi
add eax, dword [ebx + 0x64]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
cmp ecx, eax
ja 0x1813eb61
mov edx, dword [ebp - 0x40]
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 edi, 1
jne 0x1813eb23
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x64]
cmp ecx, eax
jb 0x1813e97b
mov ecx, dword [ebx + 4]
mov edi, dword [ebp - 0x18]
jmp 0x1813eb71
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x18], str.invalid_bit_length_repeat
jmp 0x1813e0c9
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x54]
mov dword [edi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx + 4], ecx
cmp ecx, 0x3f51
je 0x1813e7ea
xor eax, eax
cmp word [ebx + 0x274], ax
jne 0x1813eb94
mov dword [edi + 0x18], str.invalid_code____missing_end_of_block
jmp 0x1813e0c9
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]
xor ecx, ecx
mov dword [eax], 0xa
lea edx, [ebx + 0x74]
inc ecx
call fcn.181425b7
add esp, 0x10
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1813ebe2
mov edx, dword [ebp - 0xc]
mov dword [edi + 0x18], str.invalid_literal_lengths_set
mov dword [ebx + 4], 0x3f51
jmp 0x1813e7ea
lea ecx, [ebx + 0x70]
mov eax, dword [ecx]
lea edx, [ebx + 0x2f4]
push edx
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x5c]
push eax
mov dword [eax], 9
mov eax, dword [ebx + 0x64]
push ecx
push dword [ebx + 0x68]
add eax, 0x3a
push 2
pop ecx
lea edx, [ebx + eax*2]
call fcn.181425b7
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 0x30], eax
test eax, eax
je case.0x1813df7e.16199
mov dword [edi + 0x18], str.invalid_distances_set
jmp 0x1813e0c9
mov dword [ebx + 4], 0x3f48
cmp dword [ebp - 0x10], 6
jb 0x1813eca1
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x102
jb 0x1813eca1
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [edi], ecx
mov ecx, edi
mov dword [edi + 4], eax
mov dword [ebx + 0x3c], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0x40], esi
call fcn.181429a5
cmp dword [ebx + 4], 0x3f3f
mov eax, dword [edi + 0xc]
mov edx, dword [ebx + 0x3c]
mov esi, dword [ebx + 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
jne 0x1813e7ea
or dword [ebx + 0x2348], 0xffffffff
jmp 0x1813e7ea
and dword [ebx + 0x2348], 0
xor eax, eax
mov ecx, dword [ebx + 0x58]
lea edi, [eax + 1]
shl edi, cl
jmp 0x1813ecdb
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 0x50]
lea eax, [edi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x1813ecb4
test al, al
je 0x1813ed96
test al, 0xf0
jne 0x1813ed96
mov ecx, eax
xor esi, esi
shr ecx, 8
inc esi
movzx edi, cl
mov edx, eax
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl esi, cl
mov ecx, edi
dec esi
mov dword [ebp - 0x40], edx
and esi, dword [ebp - 0xc]
shr esi, cl
mov ecx, dword [ebx + 0x50]
add esi, eax
mov eax, dword [ecx + esi*4]
jmp 0x1813ed75
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
mov edi, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
add esi, 8
mov dword [ebp - 0x14], esi
xor esi, esi
movzx eax, byte [edi]
inc esi
shl eax, cl
add dword [ebp - 0xc], eax
inc edi
movzx eax, word [ebp - 0x3e]
mov dword [ebp - 8], edi
movzx edi, dh
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 0xc]
shr esi, cl
add esi, eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0x14]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, esi
ja 0x1813ed2e
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub esi, ecx
mov dword [ebx + 0x2348], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x2348], ecx
sub esi, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov dword [ebx + 0x44], ecx
test al, al
jne 0x1813edc6
mov dword [ebx + 4], 0x3f4d
jmp 0x1813e7e7
test al, 0x20
je 0x1813edd6
or dword [ebx + 0x2348], 0xffffffff
jmp 0x1813e804
test al, 0x40
je 0x1813ede9
mov edi, dword [ebp - 0x18]
mov dword [edi + 0x18], str.invalid_literal_length_code
jmp 0x1813e0c9
movzx eax, al
and eax, 0xf
mov dword [ebx + 4], 0x3f49
mov dword [ebx + 0x4c], eax
mov edi, dword [ebx + 0x4c]
test edi, edi
je 0x1813ee4d
cmp esi, edi
jae 0x1813ee30
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, edi
jb 0x1813ee07
xor eax, eax
mov ecx, edi
inc eax
sub esi, edi
shl eax, cl
dec eax
mov dword [ebp - 0x14], esi
and eax, edx
shr edx, cl
add dword [ebx + 0x44], eax
add dword [ebx + 0x2348], edi
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x234c], eax
mov dword [ebx + 4], 0x3f4a
mov ecx, dword [ebx + 0x5c]
xor eax, eax
lea edi, [eax + 1]
shl edi, cl
jmp 0x1813ee90
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 0x54]
lea eax, [edi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x1813ee69
test al, 0xf0
jne 0x1813ef43
mov ecx, eax
xor esi, esi
shr ecx, 8
inc esi
movzx edi, cl
mov edx, eax
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl esi, cl
mov ecx, edi
dec esi
mov dword [ebp - 0x40], edx
and esi, dword [ebp - 0xc]
shr esi, cl
mov ecx, dword [ebx + 0x54]
add esi, eax
mov eax, dword [ecx + esi*4]
jmp 0x1813ef22
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
mov edi, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
add esi, 8
mov dword [ebp - 0x14], esi
xor esi, esi
movzx eax, byte [edi]
inc esi
shl eax, cl
add dword [ebp - 0xc], eax
inc edi
movzx eax, word [ebp - 0x3e]
mov dword [ebp - 8], edi
movzx edi, dh
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 0xc]
shr esi, cl
add esi, eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0x14]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, esi
ja 0x1813eedb
movzx ecx, dh
mov edx, dword [ebp - 0xc]
sub esi, ecx
shr edx, cl
add dword [ebx + 0x2348], ecx
mov edi, dword [ebp - 0x18]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x2348], ecx
sub esi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
test al, 0x40
je 0x1813ef6e
mov dword [edi + 0x18], str.invalid_distance_code
jmp 0x1813e0c9
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 0x1813efdb
cmp esi, ecx
jae 0x1813efc0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 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 esi, ecx
jb 0x1813ef94
xor eax, eax
sub esi, ecx
inc eax
mov dword [ebp - 0x14], esi
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x48], eax
add dword [ebx + 0x2348], ecx
mov dword [ebp - 0xc], edx
mov dword [ebx + 4], 0x3f4c
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1813f205
mov eax, dword [ebp - 0x2c]
sub eax, ecx
mov ecx, dword [ebx + 0x48]
cmp ecx, eax
jbe 0x1813f031
sub ecx, eax
cmp ecx, dword [ebx + 0x30]
jbe 0x1813f015
cmp dword [ebx + 0x2344], 0
je 0x1813f015
mov dword [edi + 0x18], str.invalid_distance_too_far_back
jmp 0x1813e0c9
mov edi, dword [ebx + 0x34]
cmp ecx, edi
jbe 0x1813f021
sub ecx, edi
mov edi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x44]
sub edi, ecx
add edi, dword [ebx + 0x38]
cmp ecx, eax
jbe 0x1813f03b
mov ecx, eax
jmp 0x1813f03b
mov edi, dword [ebp - 0x24]
sub edi, ecx
mov ecx, dword [ebx + 0x44]
mov eax, ecx
cmp ecx, dword [ebp - 0x1c]
jbe 0x1813f043
mov ecx, dword [ebp - 0x1c]
sub dword [ebp - 0x1c], ecx
sub eax, ecx
mov edx, dword [ebp - 0x24]
sub edi, edx
mov dword [ebx + 0x44], eax
mov al, byte [edi + edx]
mov byte [edx], al
inc edx
sub ecx, 1
jne 0x1813f050
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0xc]
cmp dword [ebx + 0x44], ecx
jne 0x1813e7e7
mov dword [ebx + 4], 0x3f48
jmp 0x1813e7e7
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1813f205
mov edi, dword [ebp - 0x24]
inc dword [ebp - 0x24]
dec ecx
mov al, byte [ebx + 0x44]
mov dword [ebp - 0x1c], ecx
mov byte [edi], al
jmp 0x1813f06a
cmp dword [ebx + 0xc], 0
je 0x1813f167
cmp esi, 0x20
jae 0x1813f0d1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 0x20
jb 0x1813f0a4
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x1c]
add dword [edi + 0x14], ecx
add dword [ebx + 0x20], ecx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x2c], ecx
test al, 4
je 0x1813f115
test ecx, ecx
je 0x1813f115
mov edx, dword [ebp - 0x24]
push dword [ebp - 0x2c]
sub edx, ecx
cmp dword [ebx + 0x14], 0
mov ecx, dword [ebx + 0x1c]
je 0x1813f103
call fcn.1813bdb6
jmp 0x1813f108
call fcn.1814237e
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0x1c], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebx + 0xc]
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
test al, 4
je 0x1813f15b
cmp dword [ebx + 0x14], 0
mov ecx, edx
jne 0x1813f14a
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp ecx, dword [ebx + 0x1c]
je 0x1813f15b
mov dword [edi + 0x18], str.incorrect_data_check
jmp 0x1813e0c9
xor eax, eax
mov edx, eax
mov esi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
mov dword [ebx + 4], 0x3f4f
cmp dword [ebx + 0xc], 0
je 0x1813f1ee
xor eax, eax
cmp dword [ebx + 0x14], eax
je 0x1813f1ee
cmp esi, 0x20
jae 0x1813f1ae
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1813f208
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
shl eax, cl
add esi, 8
add edx, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp esi, 0x20
jb 0x1813f183
xor eax, eax
test byte [ebx + 0xc], 4
je 0x1813f1e9
cmp edx, dword [ebx + 0x20]
je 0x1813f1e9
mov dword [edi + 0x18], str.incorrect_length_check
jmp 0x1813e0c9
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], esi
push 2
jmp 0x1813e7fe
mov dword [ebp - 0xc], eax
mov esi, eax
mov dword [ebx + 4], 0x3f50
mov dword [ebp - 0x30], 1
jmp 0x1813f205
mov dword [ebp - 0x30], 0xfffffffd
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 0x40], esi
xor esi, esi
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebx + 0x2c], esi
jne 0x1813f240
cmp eax, dword [edi + 0x10]
je 0x1813f264
cmp dword [ebx + 4], 0x3f51
jge 0x1813f264
sub eax, dword [edi + 0x10]
mov ecx, edi
mov edx, dword [edi + 0xc]
push eax
call fcn.1813ddff
pop ecx
test eax, eax
je 0x1813f261
mov dword [ebx + 4], 0x3f52
push 0xfffffffffffffffc
jmp 0x1813e7fe
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x48]
sub ecx, dword [edi + 4]
sub eax, dword [edi + 0x10]
add dword [edi + 8], ecx
add dword [edi + 0x14], eax
add dword [ebx + 0x20], eax
test byte [ebx + 0xc], 4
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], eax
je 0x1813f2aa
test eax, eax
je 0x1813f2aa
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 0x1c]
sub edx, eax
push eax
cmp dword [ebx + 0x14], esi
je 0x1813f29b
call fcn.1813bdb6
jmp 0x1813f2a0
call fcn.1814237e
pop ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 0x1c], eax
mov dword [edi + 0x30], eax
cmp dword [ebx + 4], 0x3f3f
jne 0x1813f2ba
mov esi, 0x80
jmp 0x1813f2d1
cmp dword [ebx + 4], 0x3f47
je 0x1813f2cc
cmp dword [ebx + 4], 0x3f42
jne 0x1813f2d1
mov esi, 0x100
mov eax, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 0x40
add eax, esi
add eax, dword [ebx + 0x40]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x30]
test ecx, ecx
jne 0x1813e7ff
cmp dword [ebp - 0x2c], ecx
jne 0x1813e7ff
test eax, eax
jne 0x1813e7ff
push 0xfffffffffffffffb
jmp 0x1813e7fe