Function at 0x58c8b8
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.0058e10e
pop ecx
test eax, eax
jne case.default.0x58c955
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
test eax, eax
je case.default.0x58c955
mov eax, dword [esi]
mov dword [ebp - 8], eax
test eax, eax
jne 0x58c8f3
cmp dword [esi + 4], eax
jne case.default.0x58c955
mov ebx, dword [esi + 0x1c]
mov edx, 0x3f40
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebx + 4]
cmp ecx, 0x3f3f
jne 0x58c919
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.0x58c955
mov dword [ebp - 0x3c], 0x10
jmp dword [eax*4 + 0x58de6c]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x58c96f
mov dword [ebx + 4], 0x3f40
jmp 0x58dd52
push 0x10
pop eax
cmp edi, eax
jae 0x58c9ab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58c979
mov ecx, dword [ebx + 0xc]
test cl, 2
je 0x58ca09
cmp edx, 0x8b1f
jne 0x58ca09
xor edi, edi
cmp dword [ebx + 0x28], edi
jne 0x58c9c6
mov dword [ebx + 0x28], 0xf
test byte [esi + 0x34], 1
jne 0x58c9f5
push edi
push edi
push edi
call fcn.0058e457
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.0058e457
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 0x58dd52
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58ca17
or dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebx + 0xc]
test cl, 1
je 0x58cacd
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 0x58cacd
mov eax, edx
and al, 0xf
cmp al, 8
je 0x58ca53
mov dword [esi + 0x18], str.unknown_compression_method
jmp 0x58dd4b
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 0x58ca73
mov dword [ebx + 0x28], ecx
mov eax, ecx
cmp ecx, 0xf
ja 0x58cac1
cmp ecx, eax
ja 0x58cac1
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 0x58caa3
push edi
push edi
push edi
call fcn.0058e20d
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 0x58dd52
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x58dd4b
mov dword [esi + 0x18], str.incorrect_header_check
jmp 0x58dd4b
push 0x10
pop eax
cmp edi, eax
jae 0x58cb12
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58cae3
mov dword [ebx + 0x14], edx
cmp dl, 8
jne 0x58ca47
test edx, 0xe000
je 0x58cb32
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x58dd4b
mov edi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
test edi, edi
je 0x58cb45
mov eax, ecx
and eax, 1
mov dword [edi], eax
test byte [esi + 0x34], 1
jne 0x58cb74
test dword [ebx + 0x14], 0x200
je 0x58cb74
test byte [ebx + 0xc], 4
je 0x58cb74
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x1c]
call fcn.0058e457
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 0x58cbb6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58cb8c
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58cbc0
mov dword [eax + 4], edx
test byte [esi + 0x34], 1
jne 0x58cc02
test dword [ebx + 0x14], 0x200
je 0x58cc02
test byte [ebx + 0xc], 4
je 0x58cc02
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.0058e457
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 0x58cc48
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58cc1c
mov edi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
test edi, edi
je 0x58cc60
movzx eax, dl
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [eax + 0xc], ecx
test byte [esi + 0x34], 1
jne 0x58cc8f
test dword [ebx + 0x14], 0x200
je 0x58cc8f
test byte [ebx + 0xc], 4
je 0x58cc8f
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x1c]
call fcn.0058e457
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 0x58cca6
xor ecx, ecx
test dword [ebx + 0x14], 0x400
je 0x58cd34
push 0x10
pop eax
cmp edi, eax
jae 0x58cce9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58ccbd
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x44], edx
test eax, eax
je 0x58ccf6
mov dword [eax + 0x14], edx
test byte [esi + 0x34], 1
jne 0x58cd28
test dword [ebx + 0x14], 0x200
je 0x58cd28
test byte [ebx + 0xc], 4
je 0x58cd28
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.0058e457
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 0x58cd3e
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58cd3e
mov dword [eax + 0x10], ecx
mov dword [ebx + 4], 0x3f39
test dword [ebx + 0x14], 0x400
je 0x58cdf9
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 0x58cdf1
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x58cdb6
mov esi, dword [ecx + 0x10]
test esi, esi
mov dword [ebp - 0x40], esi
mov esi, dword [ebp + 8]
je 0x58cdb6
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 0x58cdb6
add eax, edx
cmp eax, ecx
mov eax, dword [ebp - 0x30]
jbe 0x58cda0
sub ecx, eax
jmp 0x58cda2
mov ecx, edx
add eax, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 8]
push ecx
push eax
call fcn.0055f020
mov edx, dword [ebp - 0x34]
add esp, 0xc
test byte [esi + 0x34], 1
jne 0x58cddd
test dword [ebx + 0x14], 0x200
je 0x58cddd
test byte [ebx + 0xc], 4
je 0x58cddd
push edx
push dword [ebp - 8]
push dword [ebx + 0x1c]
call fcn.0058e457
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 0x58d1ab
xor edx, edx
mov dword [ebx + 4], 0x3f3a
mov dword [ebx + 0x44], edx
jmp 0x58ce09
xor edx, edx
test dword [ebx + 0x14], 0x800
je 0x58cea5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58ce59
cmp dword [ecx + 0x1c], 0
je 0x58ce56
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x20]
jae 0x58ce56
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 0x58ce63
cmp eax, esi
jb 0x58ce28
mov esi, dword [ebp + 8]
test byte [esi + 0x34], 1
jne 0x58ce8e
test dword [ebx + 0x14], 0x200
je 0x58ce8e
test byte [ebx + 0xc], 4
je 0x58ce8e
push eax
push edx
push dword [ebx + 0x1c]
call fcn.0058e457
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 0x58d1ab
jmp 0x58ceaf
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58ceaf
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [ebx + 4], 0x3f3b
mov dword [ebx + 0x44], edx
jmp 0x58cebf
xor edx, edx
test dword [ebx + 0x14], 0x1000
je 0x58cf5b
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58cf0f
cmp dword [ecx + 0x24], 0
je 0x58cf0c
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x28]
jae 0x58cf0c
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 0x58cf19
cmp eax, esi
jb 0x58cede
mov esi, dword [ebp + 8]
test byte [esi + 0x34], 1
jne 0x58cf44
test dword [ebx + 0x14], 0x200
je 0x58cf44
test byte [ebx + 0xc], 4
je 0x58cf44
push eax
push edx
push dword [ebx + 0x1c]
call fcn.0058e457
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 0x58d1ab
jmp 0x58cf65
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58cf65
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f3c
mov ecx, dword [ebx + 0x14]
test ecx, 0x200
je 0x58cfe2
push 0x10
pop eax
cmp edi, eax
jae 0x58cfb6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58cf84
mov ecx, dword [ebx + 0x14]
test byte [esi + 0x34], 1
jne 0x58cfd6
test byte [ebx + 0xc], 4
je 0x58cfd6
movzx eax, word [ebx + 0x1c]
cmp edx, eax
je 0x58cfd6
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x58dd4b
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 0x58cffc
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 0x58d018
xor eax, eax
push eax
push eax
push eax
call fcn.0058e457
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [ebx + 4], 0x3f3f
jmp 0x58dd52
cmp edi, 0x20
jae 0x58d056
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d02c
test byte [esi + 0x34], 1
jne 0x58d083
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 0x58d097
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x58dd6c
test byte [esi + 0x34], 1
jne 0x58d0b7
push eax
push eax
push eax
call fcn.0058e20d
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 0x58d1a8
cmp dword [ebp + 0xc], 6
je 0x58d1a8
cmp dword [ebx + 8], 0
je 0x58d0f6
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 0x58dd52
cmp edi, 3
jae 0x58d128
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d0fe
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 8], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x58d224
sub eax, 1
je 0x58d172
sub eax, 1
je 0x58d166
sub eax, 1
jne 0x58d22b
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx + 4], 0x3f51
jmp 0x58d22b
mov dword [ebx + 4], 0x3f44
jmp 0x58d22b
cmp dword [ebp + 0xc], 6
mov dword [ebx + 0x50], 0x61ba10
mov dword [ebx + 0x58], 9
mov dword [ebx + 0x54], 0x61c210
mov dword [ebx + 0x5c], 5
mov dword [ebx + 4], 0x3f47
jne 0x58d22b
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 0x58d1fe
cmp edx, dword [esi + 0x10]
je 0x58ddb4
cmp dword [ebx + 4], 0x3f51
jge 0x58ddb4
cmp dword [ebx + 4], 0x3f4e
jl 0x58d1fe
cmp dword [ebp + 0xc], 4
je 0x58ddb4
sub edx, dword [esi + 0x10]
push edx
push dword [esi + 0xc]
push esi
call fcn.0058e145
add esp, 0xc
test eax, eax
je 0x58ddb1
mov dword [ebx + 4], 0x3f52
push 0xfffffffffffffffc
jmp 0x58dd66
mov dword [ebx + 4], 0x3f41
shr edx, 2
sub edi, 3
jmp 0x58cab6
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 0x58d27a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d24d
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x58d294
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x58dd4b
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 0x58d1a8
mov dword [ebx + 4], 0x3f43
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x58d018
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 0x58d1a8
push ecx
push dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0055f020
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 0x58dd52
cmp edi, 0xe
jae 0x58d33d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d313
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 0x58d391
cmp dword [ebp - 0x40], 0x1e
ja 0x58d391
and dword [ebx + 0x6c], 0
mov dword [ebx + 4], 0x3f45
jmp case.0x58c955.16197
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x58dd4b
cmp edi, 3
jae 0x58d3cf
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d3a5
mov eax, dword [ebx + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 0xc], edx
movzx eax, word [eax*2 + 0x61c290]
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 0x58d39d
cmp eax, 0x13
jae 0x58d41b
mov eax, dword [ebx + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x61c290]
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
cmp dword [ebx + 0x6c], 0x13
jb 0x58d400
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.0058e72e
mov edx, dword [ebp - 0xc]
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x58d461
mov dword [esi + 0x18], str.invalid_code_lengths_set
jmp 0x58dd4b
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 0x58d674
mov ecx, dword [ebx + 0x58]
xor eax, eax
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x40], eax
jmp 0x58d4b3
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d48c
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x40], ecx
cmp cx, word [ebp - 0x3c]
jae 0x58d4fe
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 0x58d646
jne 0x58d572
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, 2
mov dword [ebp - 0x40], ecx
cmp edi, ecx
jae 0x58d53c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d512
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 0x58d659
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 0x58d60e
cmp word [ebp - 0x32], 0x11
movzx ecx, ah
jne 0x58d5c0
mov dword [ebp - 0x40], ecx
jmp 0x58d5a8
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d581
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x58d602
mov dword [ebp - 0x40], ecx
jmp 0x58d5ec
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d5c5
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 0x58d665
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 0x58d62a
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x64]
cmp ecx, eax
jb 0x58d47e
mov ecx, dword [ebx + 4]
jmp 0x58d674
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x58dd4b
mov ecx, 0x3f51
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx + 4], ecx
cmp ecx, 0x3f51
je 0x58dd52
xor eax, eax
cmp word [ebx + 0x274], ax
jne 0x58d697
mov dword [esi + 0x18], str.invalid_code____missing_end_of_block
jmp 0x58dd4b
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.0058e72e
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x58d6de
mov dword [esi + 0x18], str.invalid_literal_lengths_set
mov edx, dword [ebp - 0xc]
jmp 0x58dd4b
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.0058e72e
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x58d71f
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x58d6d6
cmp dword [ebp + 0xc], 6
mov dword [ebx + 4], 0x3f47
je 0x58d1a8
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f48
mov eax, dword [ebp - 0x10]
cmp eax, 6
jb 0x58d7ac
cmp dword [ebp - 0x18], 0x102
jb 0x58d7ac
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.0058eb08
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 0x58dd52
or dword [ebx + 0x1bc8], 0xffffffff
jmp 0x58dd52
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 0x58d7f4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d7c7
test al, al
je 0x58d8c5
test al, 0xf0
jne 0x58d8c5
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 0x58d8af
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58dda9
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 0x58d856
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 0x58d8f5
mov dword [ebx + 4], 0x3f4d
jmp 0x58dd52
test al, 0x20
je 0x58d905
or dword [ebx + 0x1bc8], 0xffffffff
jmp 0x58d018
test al, 0x40
je 0x58d915
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x58dd4b
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 0x58d979
cmp edi, esi
jae 0x58d95c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d933
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 0x58d9c5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58d99b
test al, 0xf0
jne 0x58da8e
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 0x58da7b
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58dda9
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 0x58da22
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 0x58dab9
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x58dd4b
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 0x58db26
cmp edi, ecx
jae 0x58db0b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58dadf
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 0x58d1a8
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebx + 0x48]
cmp eax, ecx
jbe 0x58db90
sub eax, ecx
cmp eax, dword [ebx + 0x30]
jbe 0x58db60
cmp dword [ebx + 0x1bc4], 0
je 0x58db60
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x58dd4b
cmp eax, dword [ebx + 0x34]
jbe 0x58db72
sub eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
sub ecx, eax
add ecx, dword [ebx + 0x38]
jmp 0x58db7a
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 0x58db9b
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 0x58dbb9
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x44], 0
jne 0x58dd52
mov dword [ebx + 4], 0x3f48
jmp 0x58dd52
cmp dword [ebp - 0x18], 0
je 0x58d1a8
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 0x58dbd7
cmp dword [ebx + 0xc], 0
je 0x58dce6
cmp edi, 0x20
jae 0x58dc3d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58dc10
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 0x58dc90
cmp dword [ebp - 0x24], 0
je 0x58dc90
test byte [esi + 0x34], 1
jne 0x58dc90
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 0x58dc7c
call fcn.0058e457
jmp 0x58dc81
call fcn.0058e20d
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 0x58dcda
test byte [esi + 0x34], 1
jne 0x58dcda
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 0x58dcda
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x58dd4b
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 0x58dd92
xor eax, eax
cmp dword [ebx + 0x14], eax
je 0x58dd92
cmp edi, 0x20
jae 0x58dd39
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58d1ab
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 0x58dd0a
xor eax, eax
test byte [ebx + 0xc], 4
je 0x58dd8d
cmp edx, dword [ebx + 0x20]
je 0x58dd8d
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.0x0058c955
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 0x58dd66
mov dword [ebp - 0xc], eax
mov edi, eax
mov dword [ebx + 4], 0x3f50
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
jmp 0x58d1a8
push 0xfffffffffffffffd
pop eax
jmp 0x58dd9c
mov ebx, dword [ebp - 0x2c]
jmp 0x58d1ab
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 0x58de03
test edx, edx
je 0x58de03
test byte [esi + 0x34], 1
jne 0x58de03
mov eax, dword [esi + 0xc]
sub eax, edx
push edx
push eax
push dword [ebx + 0x1c]
cmp dword [ebx + 0x14], edi
je 0x58ddf2
call fcn.0058e457
jmp 0x58ddf7
call fcn.0058e20d
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
cmp dword [ebx + 4], 0x3f47
je 0x58de15
cmp dword [ebx + 4], 0x3f42
jne 0x58de1a
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 0x58de4c
test edx, edx
je 0x58de52
cmp dword [ebp + 0xc], 4
jne 0x58de62
mov eax, dword [ebp - 0x28]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x58dd67
mov eax, dword [ebp - 0x28]
jmp 0x58dd67