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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je case.default.0x5b37fb
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0x28], ebx
test ebx, ebx
je case.default.0x5b37fb
xor eax, eax
cmp dword [esi + 0xc], eax
je case.default.0x5b37fb
cmp dword [esi], eax
jne 0x5b37b3
cmp dword [esi + 4], eax
jne case.default.0x5b37fb
cmp dword [ebx], 0xb
jne 0x5b37be
mov dword [ebx], 0xc
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 4]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], esi
cmp eax, 0x1e
ja case.default.0x5b37fb
mov esi, dword [ebp + 8]
jmp dword [eax*4 + 0x5b4c05]
cmp dword [ebx + 8], 0
jne 0x5b3813
mov dword [ebx], 0xc
jmp 0x5b469a
push 0x10
pop eax
cmp edi, eax
jae 0x5b384a
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x10
jb 0x5b381d
test byte [ebx + 8], 2
je 0x5b3896
cmp edx, 0x8b1f
jne 0x5b3896
xor edi, edi
push edi
push edi
push edi
call fcn.005b4f21
mov dword [ebx + 0x18], eax
push 0x1f
pop eax
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x18]
push 2
push eax
mov byte [ebp - 0x17], 0x8b
push dword [ebx + 0x18]
call fcn.005b4f21
mov edx, edi
mov dword [ebx + 0x18], eax
add esp, 0x18
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 1
jmp 0x5b4697
and dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5b38a5
or dword [eax + 0x30], 0xffffffff
test byte [ebx + 8], 1
je 0x5b3947
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 0x5b3947
mov eax, edx
and al, 0xf
cmp al, 8
je 0x5b38e4
mov dword [esi + 0x18], str.unknown_compression_method
mov dword [ebx], 0x1d
jmp 0x5b4697
shr edx, 4
sub edi, 4
mov ecx, edx
mov dword [ebp - 0xc], edx
and ecx, 0xf
mov dword [ebp - 0x10], edi
add ecx, 8
cmp dword [ebx + 0x24], 0
jne 0x5b3939
mov dword [ebx + 0x24], ecx
xor edi, edi
xor eax, eax
push edi
inc eax
shl eax, cl
push edi
push edi
mov dword [ebx + 0x14], eax
call fcn.005b6a0b
mov edx, dword [ebp - 0xc]
add esp, 0xc
shr edx, 8
not edx
mov dword [ebx + 0x18], eax
and edx, 2
mov dword [esi + 0x30], eax
or edx, 9
mov dword [ebx], edx
mov edx, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jmp 0x5b4697
cmp ecx, dword [ebx + 0x24]
jbe 0x5b3901
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x5b38d9
mov dword [esi + 0x18], str.incorrect_header_check
jmp 0x5b38d9
push 0x10
pop eax
cmp edi, eax
jae 0x5b3987
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x10
jb 0x5b395a
mov dword [ebx + 0x10], edx
cmp dl, 8
je 0x5b39a1
mov dword [esi + 0x18], str.unknown_compression_method
mov dword [ebx], 0x1d
jmp 0x5b469a
test edx, 0xe000
je 0x5b39b2
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x5b3996
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x5b39c3
mov eax, edx
shr eax, 8
and eax, 1
mov dword [ecx], eax
test dword [ebx + 0x10], 0x200
je 0x5b39e9
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x17], dl
push dword [ebx + 0x18]
call fcn.005b4f21
add esp, 0xc
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, eax
mov dword [ebx], 2
mov dword [ebp - 0xc], edx
mov edi, eax
cmp edi, 0x20
jae 0x5b3a2d
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x5b3a03
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5b3a37
mov dword [eax + 4], edx
test dword [ebx + 0x10], 0x200
je 0x5b3a6d
mov eax, edx
mov byte [ebp - 0x18], dl
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x16], al
lea eax, [ebp - 0x18]
push 4
shr edx, 0x18
push eax
mov byte [ebp - 0x15], dl
push dword [ebx + 0x18]
call fcn.005b4f21
add esp, 0xc
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, eax
mov dword [ebx], 3
mov dword [ebp - 0xc], edx
mov edi, eax
push 0x10
pop eax
cmp edi, eax
jae 0x5b3ab3
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x10
jb 0x5b3a89
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x5b3acb
movzx eax, dl
mov dword [ecx + 8], eax
mov ecx, edx
mov eax, dword [ebx + 0x20]
shr ecx, 8
mov dword [eax + 0xc], ecx
test dword [ebx + 0x10], 0x200
je 0x5b3af1
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x17], dl
push dword [ebx + 0x18]
call fcn.005b4f21
add esp, 0xc
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
xor eax, eax
mov edx, eax
mov dword [ebx], 4
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
test dword [ebx + 0x10], 0x400
je 0x5b3b82
push 0x10
pop eax
cmp edi, eax
jae 0x5b3b43
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x10
jb 0x5b3b19
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x40], edx
test eax, eax
je 0x5b3b50
mov dword [eax + 0x14], edx
test dword [ebx + 0x10], 0x200
je 0x5b3b76
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x17], dl
push dword [ebx + 0x18]
call fcn.005b4f21
add esp, 0xc
mov dword [ebx + 0x18], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edi
jmp 0x5b3b8d
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5b3b8d
and dword [eax + 0x10], 0
mov dword [ebx], 5
test dword [ebx + 0x10], 0x400
je 0x5b3c26
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebp - 4]
cmp ecx, edx
cmova ecx, edx
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x5b3c19
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x5b3bf2
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x5b3bf2
mov eax, dword [edx + 0x14]
sub eax, dword [ebx + 0x40]
mov edx, dword [edx + 0x18]
mov dword [ebp - 0x2c], eax
add eax, ecx
cmp eax, edx
mov eax, dword [ebp - 0x2c]
jbe 0x5b3bdc
sub edx, eax
jmp 0x5b3bde
mov edx, ecx
mov ecx, dword [ebp - 8]
add eax, dword [ebp - 0x38]
push edx
push ecx
push eax
call fcn.004ab1c0
mov ecx, dword [ebp - 0x34]
add esp, 0xc
test dword [ebx + 0x10], 0x200
je 0x5b3c0d
push ecx
push dword [ebp - 8]
push dword [ebx + 0x18]
call fcn.005b4f21
add esp, 0xc
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x34]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [ebx + 0x40], eax
xor edx, edx
cmp dword [ebx + 0x40], edx
jne 0x5b4b10
jmp 0x5b3c28
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x40], edx
mov dword [ebx], 6
jmp 0x5b3c38
xor edx, edx
test dword [ebx + 0x10], 0x800
je 0x5b3cc8
test ecx, ecx
je 0x5b4b10
mov esi, dword [ebp - 4]
mov eax, edx
mov edx, dword [ebp - 8]
movzx ecx, byte [eax + edx]
inc eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x5b3c88
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x5b3c85
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x20]
jae 0x5b3c85
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x2c]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x2c], 0
je 0x5b3c92
cmp eax, esi
jb 0x5b3c55
test dword [ebx + 0x10], 0x200
mov esi, dword [ebp + 8]
je 0x5b3cb1
push eax
push edx
push dword [ebx + 0x18]
call fcn.005b4f21
mov dword [ebx + 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
add dword [ebp - 8], eax
sub ecx, eax
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 4], ecx
jne 0x5b4b10
jmp 0x5b3cd2
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5b3cd2
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [ebx], 7
mov dword [ebx + 0x40], edx
jmp 0x5b3ce1
xor edx, edx
test dword [ebx + 0x10], 0x1000
je 0x5b3d71
test ecx, ecx
je 0x5b4b10
mov esi, dword [ebp - 4]
mov eax, edx
mov edx, dword [ebp - 8]
movzx ecx, byte [eax + edx]
inc eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x5b3d31
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x5b3d2e
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x28]
jae 0x5b3d2e
mov ecx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x2c]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x2c], 0
je 0x5b3d3b
cmp eax, esi
jb 0x5b3cfe
test dword [ebx + 0x10], 0x200
mov esi, dword [ebp + 8]
je 0x5b3d5a
push eax
push edx
push dword [ebx + 0x18]
call fcn.005b4f21
mov dword [ebx + 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
add dword [ebp - 8], eax
sub ecx, eax
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 4], ecx
jne 0x5b4b10
jmp 0x5b3d7b
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5b3d7b
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx], 8
test dword [ebx + 0x10], 0x200
je 0x5b3de4
push 0x10
pop eax
cmp edi, eax
jae 0x5b3dc4
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x10
jb 0x5b3d97
movzx eax, word [ebx + 0x18]
cmp edx, eax
je 0x5b3dd8
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x5b38d9
xor edx, edx
mov edi, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jmp 0x5b3de6
xor edx, edx
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x5b3e03
mov eax, dword [ebx + 0x10]
sar eax, 9
and eax, 1
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x30], 1
push edx
push edx
push edx
call fcn.005b4f21
mov dword [ebx + 0x18], eax
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [ebx], 0xb
mov edx, dword [ebp - 0xc]
jmp 0x5b4697
cmp edi, 0x20
jae 0x5b3e54
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x5b3e2a
mov ecx, edx
mov edi, 0xff00
and ecx, edi
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, edi
shl ecx, 8
add eax, ecx
shr edx, 0x18
mov ecx, dword [ebp - 4]
add eax, edx
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
xor eax, eax
mov edx, eax
mov dword [ebx], 0xa
mov dword [ebp - 0xc], edx
mov edi, eax
jmp 0x5b3e91
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x5b4ad9
push eax
push eax
push eax
call fcn.005b6a0b
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov dword [ebx], 0xb
cmp dword [ebp + 0xc], 5
je 0x5b4b10
cmp dword [ebp + 0xc], 6
je 0x5b4b10
cmp dword [ebx + 4], 0
je 0x5b3eeb
mov ecx, edi
mov dword [ebx], 0x1a
and ecx, 7
shr edx, cl
sub edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jmp 0x5b4697
cmp edi, 3
jae 0x5b3f1d
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x5b3ef3
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 4], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x5b3f8c
sub eax, 1
je 0x5b3f56
sub eax, 1
je 0x5b3f4f
sub eax, 1
jne 0x5b3f92
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx], 0x1d
jmp 0x5b3f92
push 0x10
pop eax
mov dword [ebx], eax
jmp 0x5b3f92
cmp dword [ebp + 0xc], 6
mov dword [ebx + 0x4c], 0x630720
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x630f20
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x13
jne 0x5b3f92
shr edx, 2
sub edi, 3
mov dword [ebp - 0xc], edx
jmp 0x5b4b10
mov dword [ebx], 0xd
shr edx, 2
sub edi, 3
jmp 0x5b392e
mov ecx, edi
and ecx, 7
sub edi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
cmp edi, 0x20
jae 0x5b3fe1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x5b4b13
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0x20
jb 0x5b3fb4
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x5b3ffb
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x5b38d9
xor eax, eax
mov dword [ebx + 0x40], ecx
cmp dword [ebp + 0xc], 6
mov edx, eax
mov ecx, dword [ebp - 4]
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 0xe
je 0x5b4b13
mov dword [ebx], 0xf
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x5b406c
cmp esi, ecx
cmova esi, ecx
cmp esi, dword [ebp - 0x14]
cmova esi, dword [ebp - 0x14]
test esi, esi
je 0x5b4b10
push esi
push dword [ebp - 8]
push dword [ebp - 0x1c]
call fcn.004ab1c0
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp - 8], esi
sub ecx, esi
sub dword [ebp - 0x14], esi
add dword [ebp - 0x1c], esi
sub dword [ebx + 0x40], esi
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
jmp 0x5b469a
mov dword [ebx], 0xb
jmp 0x5b4064
cmp edi, 0xe
jae 0x5b40a6
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 0xe
jb 0x5b407c
mov eax, edx
sub edi, 0xe
and eax, 0x1f
shr edx, 5
add eax, 0x101
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x60], eax
mov eax, edx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ebx + 0x64], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp - 0xc], edx
cmp dword [ebx + 0x60], 0x11e
mov dword [ebx + 0x5c], eax
ja 0x5b40f3
cmp dword [ebx + 0x64], 0x1e
ja 0x5b40f3
and dword [ebx + 0x68], 0
push 0x11
pop eax
mov dword [ebx], eax
jmp case.0x5b37fb.17
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x5b3996
cmp edi, 3
jae 0x5b4131
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, 3
jb 0x5b4107
mov eax, dword [ebx + 0x68]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 0xc], edx
movzx eax, word [eax*2 + 0x630fa0]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
sub edi, 3
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], edi
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x5c]
jb 0x5b40ff
jmp 0x5b4177
mov eax, dword [ebx + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x630fa0]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
cmp dword [ebx + 0x68], 0x13
jb 0x5b4162
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
mov dword [ecx], eax
lea edx, [ebx + 0x54]
lea eax, [ebx + 0x2f0]
mov dword [edx], 7
push eax
push edx
push ecx
push 0x13
lea eax, [ebx + 0x70]
push eax
push 0
call fcn.005b6c73
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x5b41c6
mov dword [esi + 0x18], str.invalid_code_lengths_set
mov dword [ebx], 0x1d
jmp 0x5b3e1a
and dword [ebx + 0x68], 0
mov dword [ebx], 0x12
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
cmp dword [ebx + 0x68], eax
jae 0x5b4412
mov ecx, dword [ebx + 0x54]
xor edx, edx
mov eax, dword [ebx + 0x4c]
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x2c], eax
cmp ecx, edi
jbe 0x5b4244
mov esi, dword [ebp - 4]
test esi, esi
je 0x5b4b10
mov edx, dword [ebp - 8]
mov ecx, edi
dec esi
add edi, 8
mov dword [ebp - 4], esi
movzx eax, byte [edx]
shl eax, cl
add dword [ebp - 0xc], eax
inc edx
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 8], edx
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x2c], eax
cmp ecx, edi
ja 0x5b4203
mov ecx, eax
push 0x10
shr ecx, 0x10
pop edx
cmp cx, dx
jae 0x5b42a3
mov ecx, eax
shr ecx, 8
movzx esi, cl
jmp 0x5b427d
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x5b4b13
dec ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, edi
shl edx, cl
add dword [ebp - 0xc], edx
inc dword [ebp - 8]
add edi, 8
cmp edi, esi
jb 0x5b425b
movzx ecx, ah
shr dword [ebp - 0xc], cl
sub edi, ecx
mov ecx, dword [ebx + 0x68]
mov ax, word [ebp - 0x2a]
mov dword [ebp - 0x10], edi
mov word [ebx + ecx*2 + 0x70], ax
inc dword [ebx + 0x68]
mov ecx, dword [ebx + 0x68]
jmp 0x5b43e0
cmp word [ebp - 0x2a], dx
mov edx, dword [ebp - 0xc]
jne 0x5b430e
movzx esi, ah
lea eax, [esi + 2]
cmp edi, eax
jae 0x5b42dc
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x5b4b13
mov eax, dword [ebp - 8]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0xc], edx
add edi, 8
jmp 0x5b42af
mov eax, dword [ebx + 0x68]
mov ecx, esi
shr edx, cl
sub edi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
test eax, eax
je 0x5b43f3
movzx eax, word [ebx + eax*2 + 0x6e]
mov esi, edx
and esi, 3
shr edx, 2
add esi, 3
mov dword [ebp - 0x2c], eax
sub edi, 2
jmp 0x5b43b5
push 0x11
pop ecx
cmp word [ebp - 0x2a], cx
movzx ecx, ah
jne 0x5b4364
lea esi, [ecx + 3]
mov dword [ebp - 0x38], ecx
cmp edi, esi
jae 0x5b4353
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x5b4b13
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], 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 0x5b4327
mov ecx, dword [ebp - 0x38]
shr edx, cl
mov esi, edx
and esi, 7
add esi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x5b43ac
lea esi, [ecx + 7]
mov dword [ebp - 0x38], ecx
cmp edi, esi
jae 0x5b439d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x5b4b13
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], 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 0x5b4371
mov ecx, dword [ebp - 0x38]
shr edx, cl
mov esi, edx
and esi, 0x7f
add esi, 0xb
shr edx, 7
push 0xfffffffffffffff9
and dword [ebp - 0x2c], 0
pop eax
sub eax, ecx
add edi, eax
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x68]
add ecx, dword [ebx + 0x60]
add eax, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
cmp eax, ecx
ja 0x5b4402
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x68]
mov word [ebx + eax*2 + 0x70], dx
inc dword [ebx + 0x68]
mov ecx, dword [ebx + 0x68]
sub esi, 1
jne 0x5b43cd
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
cmp ecx, eax
jb 0x5b41df
mov esi, dword [ebp + 8]
jmp 0x5b4412
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x5b38d9
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1d
cmp dword [ebx], 0x1d
je 0x5b3e1a
xor eax, eax
cmp word [ebx + 0x270], ax
jne 0x5b4432
mov dword [esi + 0x18], str.invalid_code____missing_end_of_block
jmp 0x5b41bb
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
mov dword [ecx], eax
lea edx, [ebx + 0x54]
lea eax, [ebx + 0x2f0]
mov dword [edx], 9
push eax
push edx
push ecx
push dword [ebx + 0x60]
lea eax, [ebx + 0x70]
push eax
push 1
call fcn.005b6c73
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x5b4476
mov dword [esi + 0x18], str.invalid_literal_lengths_set
jmp 0x5b41bb
lea ecx, [ebx + 0x6c]
mov eax, dword [ecx]
lea edx, [ebx + 0x58]
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x2f0]
push eax
mov eax, dword [ebx + 0x60]
push edx
push ecx
push dword [ebx + 0x64]
add eax, 0x38
mov dword [edx], 6
lea eax, [ebx + eax*2]
push eax
push 2
call fcn.005b6c73
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x5b44ba
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x5b41bb
cmp dword [ebp + 0xc], 6
mov ecx, dword [ebp - 4]
mov dword [ebx], 0x13
je 0x5b4b13
mov edx, dword [ebp - 0xc]
mov dword [ebx], 0x14
cmp ecx, 6
jb 0x5b4542
mov eax, dword [ebp - 0x14]
cmp eax, 0x102
jb 0x5b4542
mov ebx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp - 0x28]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
push esi
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
call fcn.005b70d1
cmp dword [ebx], 0xb
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
pop ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
jne 0x5b469a
or dword [ebx + 0x1bc4], 0xffffffff
jmp 0x5b469a
mov ecx, dword [ebx + 0x54]
xor eax, eax
and dword [ebx + 0x1bc4], 0
inc eax
mov esi, dword [ebx + 0x4c]
shl eax, cl
dec eax
mov dword [ebp - 0x38], esi
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x5b45b1
mov esi, dword [ebp - 4]
test esi, esi
je 0x5b4b10
mov eax, dword [ebp - 8]
mov ecx, edi
dec esi
add edi, 8
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x54]
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0xc], edx
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x5b456c
test al, al
je 0x5b466a
test al, 0xf0
jne 0x5b466a
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 - 0x2c], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x38]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x10]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [ebp - 0x28]
add esi, ecx
cmp esi, edi
jbe 0x5b465a
mov esi, dword [ebp - 4]
test esi, esi
je 0x5b4b10
dec esi
mov ecx, edi
mov dword [ebp - 4], esi
add edi, 8
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], edi
movzx edi, dh
movzx eax, byte [esi]
shl eax, cl
add dword [ebp - 0xc], eax
inc esi
movzx eax, word [ebp - 0x2a]
mov dword [ebp - 8], esi
xor esi, esi
inc esi
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 + 0x4c]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x10]
cmp ecx, edi
ja 0x5b4602
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edx, cl
sub edi, ecx
mov dword [ebx + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x1bc4], ecx
sub edi, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x40], ecx
test al, al
jne 0x5b46af
mov dword [ebx], 0x19
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
cmp eax, 0x1e
jbe switch.0x005b37fb
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 0x20
je 0x5b46c2
or dword [ebx + 0x1bc4], 0xffffffff
mov dword [ebx], 0xb
jmp 0x5b4694
mov ecx, dword [ebp - 4]
test al, 0x40
je 0x5b46d8
mov esi, dword [ebp + 8]
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x5b3996
movzx eax, al
and eax, 0xf
mov dword [ebx], 0x15
mov dword [ebx + 0x48], eax
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x5b473b
cmp edi, esi
jae 0x5b471e
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, esi
jb 0x5b46f5
xor eax, eax
mov ecx, esi
inc eax
sub edi, esi
shl eax, cl
dec eax
mov dword [ebp - 0x10], edi
and eax, edx
shr edx, cl
add dword [ebx + 0x40], eax
add dword [ebx + 0x1bc4], esi
mov dword [ebp - 0xc], edx
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x1bc8], eax
mov dword [ebx], 0x16
mov ecx, dword [ebx + 0x58]
xor eax, eax
mov esi, dword [ebx + 0x50]
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x38], esi
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x5b47b2
mov esi, dword [ebp - 4]
test esi, esi
je 0x5b4b10
mov eax, dword [ebp - 8]
mov ecx, edi
dec esi
add edi, 8
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x58]
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0xc], edx
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x5b476d
test al, 0xf0
jne 0x5b4863
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 - 0x2c], edx
and edi, dword [ebp - 0xc]
shr edi, cl
mov ecx, dword [ebp - 0x38]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x10]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [ebp - 0x28]
add esi, ecx
cmp esi, edi
jbe 0x5b4853
mov esi, dword [ebp - 4]
test esi, esi
je 0x5b4b10
dec esi
mov ecx, edi
mov dword [ebp - 4], esi
add edi, 8
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], edi
movzx edi, dh
movzx eax, byte [esi]
shl eax, cl
add dword [ebp - 0xc], eax
inc esi
movzx eax, word [ebp - 0x2a]
mov dword [ebp - 8], esi
xor esi, esi
inc esi
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 ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x10]
cmp ecx, edi
ja 0x5b47fb
movzx ecx, dh
mov edx, dword [ebp - 0xc]
sub edi, ecx
shr edx, cl
add dword [ebx + 0x1bc4], ecx
mov esi, dword [ebp + 8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x1bc4], ecx
sub edi, ecx
shr edx, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
test al, 0x40
je 0x5b488e
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x5b38d9
mov ecx, eax
mov dword [ebx], 0x17
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x5b48fa
cmp edi, ecx
jae 0x5b48df
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x5b4b13
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebx + 0x48]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp edi, ecx
jb 0x5b48b3
xor eax, eax
sub edi, ecx
inc eax
mov dword [ebp - 0x10], edi
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x44], eax
add dword [ebx + 0x1bc4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebx], 0x18
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x5b4b10
mov eax, dword [ebp - 0x20]
sub eax, ecx
mov ecx, dword [ebx + 0x44]
cmp ecx, eax
jbe 0x5b4953
sub ecx, eax
cmp ecx, dword [ebx + 0x2c]
jbe 0x5b4933
cmp dword [ebx + 0x1bc0], 0
je 0x5b4933
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x5b38d9
mov esi, dword [ebx + 0x34]
cmp ecx, dword [ebx + 0x30]
jbe 0x5b4945
sub ecx, dword [ebx + 0x30]
add esi, dword [ebx + 0x28]
sub esi, ecx
jmp 0x5b494a
sub esi, ecx
add esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x40]
cmp ecx, eax
jbe 0x5b495d
jmp 0x5b495b
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x40]
sub esi, ecx
mov ecx, eax
cmp ecx, dword [ebp - 0x14]
cmova ecx, dword [ebp - 0x14]
sub dword [ebp - 0x14], ecx
sub eax, ecx
mov dword [ebx + 0x40], eax
mov ebx, dword [ebp - 0x1c]
sub esi, ebx
mov al, byte [esi + ebx]
mov byte [ebx], al
inc ebx
sub ecx, 1
jne 0x5b4971
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x28]
cmp dword [ebx + 0x40], ecx
jne 0x5b4694
mov dword [ebx], 0x14
jmp 0x5b4694
cmp dword [ebp - 0x14], 0
je 0x5b4b10
mov esi, dword [ebp - 0x1c]
mov al, byte [ebx + 0x40]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov byte [esi], al
mov dword [ebx], 0x14
jmp 0x5b4064
cmp dword [ebx + 8], 0
je 0x5b4a83
cmp edi, 0x20
jae 0x5b49f8
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x20
jb 0x5b49cb
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
sub ecx, eax
add dword [esi + 0x14], ecx
add dword [ebx + 0x1c], ecx
test ecx, ecx
je 0x5b4a35
mov eax, dword [ebp - 0x1c]
push ecx
sub eax, ecx
cmp dword [ebx + 0x10], 0
push eax
push dword [ebx + 0x18]
je 0x5b4a21
call fcn.005b4f21
jmp 0x5b4a26
call fcn.005b6a0b
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
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
xor eax, eax
cmp dword [ebx + 0x10], eax
cmovne ecx, edx
cmp ecx, dword [ebx + 0x18]
mov ecx, dword [ebp - 4]
je 0x5b4a79
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x5b3996
mov edx, eax
mov edi, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 0x1b
xor eax, eax
cmp dword [ebx + 8], eax
je 0x5b4aff
cmp dword [ebx + 0x10], eax
je 0x5b4aff
cmp edi, 0x20
jae 0x5b4ac8
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x5b4b10
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x20
jb 0x5b4a9d
xor eax, eax
cmp edx, dword [ebx + 0x1c]
je 0x5b4afa
mov dword [esi + 0x18], str.incorrect_length_check
jmp 0x5b38d9
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
push 2
jmp 0x5b46a7
mov dword [ebp - 0xc], eax
mov edi, eax
mov dword [ebx], 0x1c
xor eax, eax
inc eax
jmp 0x5b4b0d
push 0xfffffffffffffffd
pop eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], edx
xor edx, edx
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], ecx
mov dword [ebx + 0x3c], edi
mov edi, dword [ebp - 0x20]
mov dword [ebx + 0x38], eax
cmp dword [ebx + 0x28], edx
jne 0x5b4b47
cmp dword [ebx], 0x1a
jge 0x5b4b63
cmp edi, dword [esi + 0x10]
je 0x5b4b63
push edi
push esi
call fcn.005b4e4b
pop ecx
pop ecx
test eax, eax
je 0x5b4b61
mov dword [ebx], 0x1e
push 0xfffffffffffffffc
jmp 0x5b46a7
xor edx, edx
mov eax, dword [ebp - 0x30]
sub eax, dword [esi + 4]
sub edi, dword [esi + 0x10]
add dword [esi + 8], eax
add dword [esi + 0x14], edi
add dword [ebx + 0x1c], edi
mov dword [ebp - 0x30], eax
cmp dword [ebx + 8], edx
je 0x5b4ba7
test edi, edi
je 0x5b4ba7
mov eax, dword [esi + 0xc]
push edi
sub eax, edi
push eax
push dword [ebx + 0x18]
cmp dword [ebx + 0x10], edx
je 0x5b4b97
call fcn.005b4f21
jmp 0x5b4b9c
call fcn.005b6a0b
add esp, 0xc
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
xor edx, edx
cmp dword [ebx], 0x13
je 0x5b4bb1
cmp dword [ebx], 0xe
jne 0x5b4bb6
mov edx, 0x100
mov ecx, dword [ebx + 4]
neg ecx
mov dword [ebp + 8], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebx], 0xb
cmove eax, dword [ebp + 8]
add ecx, edx
add eax, ecx
add eax, dword [ebx + 0x3c]
mov dword [esi + 0x2c], eax
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x5b4be5
test edi, edi
je 0x5b4beb
cmp dword [ebp + 0xc], 4
jne 0x5b4bfb
mov eax, dword [ebp - 0x24]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x5b46a8
mov eax, dword [ebp - 0x24]
jmp 0x5b46a8