Function at 0x58c638
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.0058de8e
pop ecx
test eax, eax
jne case.default.0x58c6d5
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x20], eax
test eax, eax
je case.default.0x58c6d5
mov eax, dword [esi]
mov dword [ebp - 8], eax
test eax, eax
jne 0x58c673
cmp dword [esi + 4], eax
jne case.default.0x58c6d5
mov ebx, dword [esi + 0x1c]
mov edx, 0x3f40
mov dword [ebp - 0x2c], ebx
mov ecx, dword [ebx + 4]
cmp ecx, 0x3f3f
jne 0x58c699
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.0x58c6d5
mov dword [ebp - 0x3c], 0x10
jmp dword [eax*4 + 0x58dbec]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x58c6ef
mov dword [ebx + 4], 0x3f40
jmp 0x58dad2
push 0x10
pop eax
cmp edi, eax
jae 0x58c72b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58c6f9
mov ecx, dword [ebx + 0xc]
test cl, 2
je 0x58c789
cmp edx, 0x8b1f
jne 0x58c789
xor edi, edi
cmp dword [ebx + 0x28], edi
jne 0x58c746
mov dword [ebx + 0x28], 0xf
test byte [esi + 0x34], 1
jne 0x58c775
push edi
push edi
push edi
call fcn.0058e1d7
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.0058e1d7
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 0x58dad2
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58c797
or dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebx + 0xc]
test cl, 1
je 0x58c84d
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 0x58c84d
mov eax, edx
and al, 0xf
cmp al, 8
je 0x58c7d3
mov dword [esi + 0x18], str.unknown_compression_method
jmp 0x58dacb
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 0x58c7f3
mov dword [ebx + 0x28], ecx
mov eax, ecx
cmp ecx, 0xf
ja 0x58c841
cmp ecx, eax
ja 0x58c841
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 0x58c823
push edi
push edi
push edi
call fcn.0058df8d
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 0x58dad2
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x58dacb
mov dword [esi + 0x18], str.incorrect_header_check
jmp 0x58dacb
push 0x10
pop eax
cmp edi, eax
jae 0x58c892
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58c863
mov dword [ebx + 0x14], edx
cmp dl, 8
jne 0x58c7c7
test edx, 0xe000
je 0x58c8b2
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x58dacb
mov edi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
test edi, edi
je 0x58c8c5
mov eax, ecx
and eax, 1
mov dword [edi], eax
test byte [esi + 0x34], 1
jne 0x58c8f4
test dword [ebx + 0x14], 0x200
je 0x58c8f4
test byte [ebx + 0xc], 4
je 0x58c8f4
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x1c]
call fcn.0058e1d7
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 0x58c936
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58c90c
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58c940
mov dword [eax + 4], edx
test byte [esi + 0x34], 1
jne 0x58c982
test dword [ebx + 0x14], 0x200
je 0x58c982
test byte [ebx + 0xc], 4
je 0x58c982
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.0058e1d7
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 0x58c9c8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58c99c
mov edi, dword [ebx + 0x24]
mov ecx, edx
shr ecx, 8
test edi, edi
je 0x58c9e0
movzx eax, dl
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [eax + 0xc], ecx
test byte [esi + 0x34], 1
jne 0x58ca0f
test dword [ebx + 0x14], 0x200
je 0x58ca0f
test byte [ebx + 0xc], 4
je 0x58ca0f
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x1c]
call fcn.0058e1d7
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 0x58ca26
xor ecx, ecx
test dword [ebx + 0x14], 0x400
je 0x58cab4
push 0x10
pop eax
cmp edi, eax
jae 0x58ca69
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58ca3d
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x44], edx
test eax, eax
je 0x58ca76
mov dword [eax + 0x14], edx
test byte [esi + 0x34], 1
jne 0x58caa8
test dword [ebx + 0x14], 0x200
je 0x58caa8
test byte [ebx + 0xc], 4
je 0x58caa8
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.0058e1d7
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 0x58cabe
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58cabe
mov dword [eax + 0x10], ecx
mov dword [ebx + 4], 0x3f39
test dword [ebx + 0x14], 0x400
je 0x58cb79
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 0x58cb71
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x58cb36
mov esi, dword [ecx + 0x10]
test esi, esi
mov dword [ebp - 0x40], esi
mov esi, dword [ebp + 8]
je 0x58cb36
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 0x58cb36
add eax, edx
cmp eax, ecx
mov eax, dword [ebp - 0x30]
jbe 0x58cb20
sub ecx, eax
jmp 0x58cb22
mov ecx, edx
add eax, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 8]
push ecx
push eax
call fcn.0055ecf0
mov edx, dword [ebp - 0x34]
add esp, 0xc
test byte [esi + 0x34], 1
jne 0x58cb5d
test dword [ebx + 0x14], 0x200
je 0x58cb5d
test byte [ebx + 0xc], 4
je 0x58cb5d
push edx
push dword [ebp - 8]
push dword [ebx + 0x1c]
call fcn.0058e1d7
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 0x58cf2b
xor edx, edx
mov dword [ebx + 4], 0x3f3a
mov dword [ebx + 0x44], edx
jmp 0x58cb89
xor edx, edx
test dword [ebx + 0x14], 0x800
je 0x58cc25
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58cbd9
cmp dword [ecx + 0x1c], 0
je 0x58cbd6
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x20]
jae 0x58cbd6
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 0x58cbe3
cmp eax, esi
jb 0x58cba8
mov esi, dword [ebp + 8]
test byte [esi + 0x34], 1
jne 0x58cc0e
test dword [ebx + 0x14], 0x200
je 0x58cc0e
test byte [ebx + 0xc], 4
je 0x58cc0e
push eax
push edx
push dword [ebx + 0x1c]
call fcn.0058e1d7
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 0x58cf2b
jmp 0x58cc2f
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58cc2f
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [ebx + 4], 0x3f3b
mov dword [ebx + 0x44], edx
jmp 0x58cc3f
xor edx, edx
test dword [ebx + 0x14], 0x1000
je 0x58ccdb
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58cc8f
cmp dword [ecx + 0x24], 0
je 0x58cc8c
mov edx, dword [ebx + 0x44]
cmp edx, dword [ecx + 0x28]
jae 0x58cc8c
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 0x58cc99
cmp eax, esi
jb 0x58cc5e
mov esi, dword [ebp + 8]
test byte [esi + 0x34], 1
jne 0x58ccc4
test dword [ebx + 0x14], 0x200
je 0x58ccc4
test byte [ebx + 0xc], 4
je 0x58ccc4
push eax
push edx
push dword [ebx + 0x1c]
call fcn.0058e1d7
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 0x58cf2b
jmp 0x58cce5
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x58cce5
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f3c
mov ecx, dword [ebx + 0x14]
test ecx, 0x200
je 0x58cd62
push 0x10
pop eax
cmp edi, eax
jae 0x58cd36
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58cd04
mov ecx, dword [ebx + 0x14]
test byte [esi + 0x34], 1
jne 0x58cd56
test byte [ebx + 0xc], 4
je 0x58cd56
movzx eax, word [ebx + 0x1c]
cmp edx, eax
je 0x58cd56
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x58dacb
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 0x58cd7c
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 0x58cd98
xor eax, eax
push eax
push eax
push eax
call fcn.0058e1d7
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [ebx + 4], 0x3f3f
jmp 0x58dad2
cmp edi, 0x20
jae 0x58cdd6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58cdac
test byte [esi + 0x34], 1
jne 0x58ce03
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 0x58ce17
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x58daec
test byte [esi + 0x34], 1
jne 0x58ce37
push eax
push eax
push eax
call fcn.0058df8d
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 0x58cf28
cmp dword [ebp + 0xc], 6
je 0x58cf28
cmp dword [ebx + 8], 0
je 0x58ce76
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 0x58dad2
cmp edi, 3
jae 0x58cea8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58ce7e
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 8], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x58cfa4
sub eax, 1
je 0x58cef2
sub eax, 1
je 0x58cee6
sub eax, 1
jne 0x58cfab
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx + 4], 0x3f51
jmp 0x58cfab
mov dword [ebx + 4], 0x3f44
jmp 0x58cfab
cmp dword [ebp + 0xc], 6
mov dword [ebx + 0x50], 0x61b9c0
mov dword [ebx + 0x58], 9
mov dword [ebx + 0x54], 0x61c1c0
mov dword [ebx + 0x5c], 5
mov dword [ebx + 4], 0x3f47
jne 0x58cfab
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 0x58cf7e
cmp edx, dword [esi + 0x10]
je 0x58db34
cmp dword [ebx + 4], 0x3f51
jge 0x58db34
cmp dword [ebx + 4], 0x3f4e
jl 0x58cf7e
cmp dword [ebp + 0xc], 4
je 0x58db34
sub edx, dword [esi + 0x10]
push edx
push dword [esi + 0xc]
push esi
call fcn.0058dec5
add esp, 0xc
test eax, eax
je 0x58db31
mov dword [ebx + 4], 0x3f52
push 0xfffffffffffffffc
jmp 0x58dae6
mov dword [ebx + 4], 0x3f41
shr edx, 2
sub edi, 3
jmp 0x58c836
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 0x58cffa
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58cfcd
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x58d014
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x58dacb
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 0x58cf28
mov dword [ebx + 4], 0x3f43
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x58cd98
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 0x58cf28
push ecx
push dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0055ecf0
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 0x58dad2
cmp edi, 0xe
jae 0x58d0bd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d093
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 0x58d111
cmp dword [ebp - 0x40], 0x1e
ja 0x58d111
and dword [ebx + 0x6c], 0
mov dword [ebx + 4], 0x3f45
jmp case.0x58c6d5.16197
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x58dacb
cmp edi, 3
jae 0x58d14f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d125
mov eax, dword [ebx + 0x6c]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 0xc], edx
movzx eax, word [eax*2 + 0x61c240]
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 0x58d11d
cmp eax, 0x13
jae 0x58d19b
mov eax, dword [ebx + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x61c240]
mov word [ebx + eax*2 + 0x74], cx
inc dword [ebx + 0x6c]
cmp dword [ebx + 0x6c], 0x13
jb 0x58d180
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.0058e4ae
mov edx, dword [ebp - 0xc]
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x58d1e1
mov dword [esi + 0x18], str.invalid_code_lengths_set
jmp 0x58dacb
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 0x58d3f4
mov ecx, dword [ebx + 0x58]
xor eax, eax
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x40], eax
jmp 0x58d233
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d20c
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x40], ecx
cmp cx, word [ebp - 0x3c]
jae 0x58d27e
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 0x58d3c6
jne 0x58d2f2
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, 2
mov dword [ebp - 0x40], ecx
cmp edi, ecx
jae 0x58d2bc
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d292
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 0x58d3d9
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 0x58d38e
cmp word [ebp - 0x32], 0x11
movzx ecx, ah
jne 0x58d340
mov dword [ebp - 0x40], ecx
jmp 0x58d328
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d301
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x58d382
mov dword [ebp - 0x40], ecx
jmp 0x58d36c
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d345
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 0x58d3e5
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 0x58d3aa
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x64]
cmp ecx, eax
jb 0x58d1fe
mov ecx, dword [ebx + 4]
jmp 0x58d3f4
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x58dacb
mov ecx, 0x3f51
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx + 4], ecx
cmp ecx, 0x3f51
je 0x58dad2
xor eax, eax
cmp word [ebx + 0x274], ax
jne 0x58d417
mov dword [esi + 0x18], str.invalid_code____missing_end_of_block
jmp 0x58dacb
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.0058e4ae
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x58d45e
mov dword [esi + 0x18], str.invalid_literal_lengths_set
mov edx, dword [ebp - 0xc]
jmp 0x58dacb
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.0058e4ae
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
je 0x58d49f
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x58d456
cmp dword [ebp + 0xc], 6
mov dword [ebx + 4], 0x3f47
je 0x58cf28
mov edx, dword [ebp - 0xc]
mov dword [ebx + 4], 0x3f48
mov eax, dword [ebp - 0x10]
cmp eax, 6
jb 0x58d52c
cmp dword [ebp - 0x18], 0x102
jb 0x58d52c
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.0058e888
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 0x58dad2
or dword [ebx + 0x1bc8], 0xffffffff
jmp 0x58dad2
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 0x58d574
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d547
test al, al
je 0x58d645
test al, 0xf0
jne 0x58d645
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 0x58d62f
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58db29
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 0x58d5d6
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 0x58d675
mov dword [ebx + 4], 0x3f4d
jmp 0x58dad2
test al, 0x20
je 0x58d685
or dword [ebx + 0x1bc8], 0xffffffff
jmp 0x58cd98
test al, 0x40
je 0x58d695
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x58dacb
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 0x58d6f9
cmp edi, esi
jae 0x58d6dc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d6b3
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 0x58d745
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d71b
test al, 0xf0
jne 0x58d80e
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 0x58d7fb
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58db29
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 0x58d7a2
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 0x58d839
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x58dacb
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 0x58d8a6
cmp edi, ecx
jae 0x58d88b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d85f
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 0x58cf28
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebx + 0x48]
cmp eax, ecx
jbe 0x58d910
sub eax, ecx
cmp eax, dword [ebx + 0x30]
jbe 0x58d8e0
cmp dword [ebx + 0x1bc4], 0
je 0x58d8e0
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x58dacb
cmp eax, dword [ebx + 0x34]
jbe 0x58d8f2
sub eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
sub ecx, eax
add ecx, dword [ebx + 0x38]
jmp 0x58d8fa
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 0x58d91b
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 0x58d939
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x44], 0
jne 0x58dad2
mov dword [ebx + 4], 0x3f48
jmp 0x58dad2
cmp dword [ebp - 0x18], 0
je 0x58cf28
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 0x58d957
cmp dword [ebx + 0xc], 0
je 0x58da66
cmp edi, 0x20
jae 0x58d9bd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58d990
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 0x58da10
cmp dword [ebp - 0x24], 0
je 0x58da10
test byte [esi + 0x34], 1
jne 0x58da10
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 0x58d9fc
call fcn.0058e1d7
jmp 0x58da01
call fcn.0058df8d
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 0x58da5a
test byte [esi + 0x34], 1
jne 0x58da5a
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 0x58da5a
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x58dacb
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 0x58db12
xor eax, eax
cmp dword [ebx + 0x14], eax
je 0x58db12
cmp edi, 0x20
jae 0x58dab9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x58cf2b
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 0x58da8a
xor eax, eax
test byte [ebx + 0xc], 4
je 0x58db0d
cmp edx, dword [ebx + 0x20]
je 0x58db0d
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.0x0058c6d5
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 0x58dae6
mov dword [ebp - 0xc], eax
mov edi, eax
mov dword [ebx + 4], 0x3f50
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
jmp 0x58cf28
push 0xfffffffffffffffd
pop eax
jmp 0x58db1c
mov ebx, dword [ebp - 0x2c]
jmp 0x58cf2b
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 0x58db83
test edx, edx
je 0x58db83
test byte [esi + 0x34], 1
jne 0x58db83
mov eax, dword [esi + 0xc]
sub eax, edx
push edx
push eax
push dword [ebx + 0x1c]
cmp dword [ebx + 0x14], edi
je 0x58db72
call fcn.0058e1d7
jmp 0x58db77
call fcn.0058df8d
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebx + 0x1c], eax
mov dword [esi + 0x30], eax
cmp dword [ebx + 4], 0x3f47
je 0x58db95
cmp dword [ebx + 4], 0x3f42
jne 0x58db9a
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 0x58dbcc
test edx, edx
je 0x58dbd2
cmp dword [ebp + 0xc], 4
jne 0x58dbe2
mov eax, dword [ebp - 0x28]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x58dae7
mov eax, dword [ebp - 0x28]
jmp 0x58dae7