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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
push edi
test esi, esi
je case.default.0x521a40
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0x30], ebx
test ebx, ebx
je case.default.0x521a40
xor ecx, ecx
cmp dword [esi + 0xc], ecx
je case.default.0x521a40
cmp dword [esi], ecx
jne 0x521a01
cmp dword [esi + 4], ecx
jne case.default.0x521a40
cmp dword [ebx], 0xb
jne 0x521a0c
mov dword [ebx], 0xc
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x5221fb
jmp dword [eax*4 + 0x522cdd]
cmp dword [ebx + 8], 0
jne 0x521a58
mov dword [ebx], 0xc
jmp 0x5221fb
push 0x10
pop eax
cmp edi, eax
jae 0x521a8d
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], edi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
cmp edi, 0x10
jb 0x521a5f
xor ecx, ecx
test byte [ebx + 8], 2
je 0x521acf
cmp edx, 0x8b1f
jne 0x521acf
push 0x1f
pop eax
mov dword [ebx + 0x18], ecx
lea edx, [ebp - 0x1c]
push 2
xor ecx, ecx
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x1b], 0x8b
call fcn.0043344d
pop ecx
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov edx, ecx
mov dword [ebx], 1
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
jmp 0x5221fb
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x10], ecx
test eax, eax
je 0x521add
or dword [eax + 0x30], 0xffffffff
test byte [ebx + 8], 1
je 0x521b70
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 - 4]
jne 0x521b6e
mov eax, edx
and al, 0xf
cmp al, 8
je 0x521b1e
mov dword [esi + 0x18], str.unknown_compression_method
mov dword [ebx], 0x1b
xor ecx, ecx
jmp 0x5221fb
shr edx, 4
sub edi, 4
mov ecx, edx
mov dword [ebp - 4], edx
and ecx, 0xf
mov dword [ebp - 0x14], edi
add ecx, 8
cmp ecx, dword [ebx + 0x24]
jbe 0x521b40
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x521b11
xor edi, edi
shr edx, 8
inc edi
not edx
mov eax, edi
mov dword [ebx + 0x18], edi
and edx, 2
shl eax, cl
or edx, 9
mov dword [ebx + 0x14], eax
mov dword [esi + 0x30], edi
xor ecx, ecx
mov dword [ebx], edx
mov edi, ecx
mov edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
jmp 0x5221fb
xor ecx, ecx
mov dword [esi + 0x18], str.incorrect_header_check
mov dword [ebx], 0x1b
jmp 0x5221fb
push 0x10
pop eax
cmp edi, eax
jae 0x521bb9
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0x14], edi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
pop eax
mov dword [ebp - 4], edx
cmp edi, eax
jb 0x521b89
xor ecx, ecx
mov dword [ebx + 0x10], edx
cmp dl, 8
je 0x521bca
mov dword [esi + 0x18], str.unknown_compression_method
jmp 0x521b77
test edx, 0xe000
je 0x521bdb
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x521b77
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x521bec
mov eax, edx
shr eax, 8
and eax, 1
mov dword [ecx], eax
test dword [ebx + 0x10], 0x200
je 0x521c0f
mov ecx, dword [ebx + 0x18]
mov byte [ebp - 0x1c], dl
shr edx, 8
mov byte [ebp - 0x1b], dl
lea edx, [ebp - 0x1c]
push 2
call fcn.0043344d
pop ecx
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx], 2
mov edx, eax
mov edi, eax
jmp 0x521c3e
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 4], edx
cmp edi, 0x20
jb 0x521c1d
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x521c50
mov dword [eax + 4], edx
test dword [ebx + 0x10], 0x200
je 0x521c83
mov ecx, dword [ebx + 0x18]
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
mov byte [ebp - 0x1c], dl
shr edx, 0x18
shr eax, 0x10
mov byte [ebp - 0x19], dl
lea edx, [ebp - 0x1c]
push 4
mov byte [ebp - 0x1a], al
call fcn.0043344d
pop ecx
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx], 3
mov edx, eax
mov edi, eax
jmp 0x521cb2
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 4], edx
push 0x10
pop eax
cmp edi, eax
jb 0x521c91
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x521cd4
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 0x521cf7
mov ecx, dword [ebx + 0x18]
mov byte [ebp - 0x1c], dl
shr edx, 8
mov byte [ebp - 0x1b], dl
lea edx, [ebp - 0x1c]
push 2
call fcn.0043344d
pop ecx
mov dword [ebx + 0x18], eax
xor ecx, ecx
mov dword [ebx], 4
mov edx, ecx
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
test dword [ebx + 0x10], 0x400
jne 0x521d9f
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x521d20
mov dword [eax + 0x10], ecx
mov dword [ebx], 5
test dword [ebx + 0x10], 0x400
je 0x521e33
mov ecx, dword [ebx + 0x40]
mov eax, dword [ebp - 0xc]
cmp ecx, eax
cmova ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x521e28
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x521dfa
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x521dfa
mov eax, dword [edx + 0x14]
sub eax, dword [ebx + 0x40]
mov edx, dword [edx + 0x18]
mov dword [ebp - 0x34], eax
add eax, ecx
cmp eax, edx
mov eax, dword [ebp - 0x34]
jbe 0x521de5
sub edx, eax
jmp 0x521de7
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
add edi, 8
push 0x10
pop eax
cmp edi, eax
jb 0x521d7b
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x40], edx
test eax, eax
je 0x521db3
mov dword [eax + 0x14], edx
test dword [ebx + 0x10], 0x200
je 0x521dd6
mov ecx, dword [ebx + 0x18]
mov byte [ebp - 0x1c], dl
shr edx, 8
mov byte [ebp - 0x1b], dl
lea edx, [ebp - 0x1c]
push 2
call fcn.0043344d
pop ecx
mov dword [ebx + 0x18], eax
xor ecx, ecx
mov edi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], edi
jmp 0x521d20
mov edx, ecx
add eax, dword [ebp - 0x3c]
push edx
push dword [ebp - 8]
push eax
call sub.MSVCR120.dll_memcpy
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
test dword [ebx + 0x10], 0x200
je 0x521e19
mov eax, dword [ebp - 8]
test eax, eax
je 0x521e16
push ecx
mov ecx, dword [ebx + 0x18]
mov edx, eax
call fcn.0043344d
pop ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
add dword [ebp - 8], eax
sub dword [ebx + 0x40], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [ebx + 0x40], ecx
jne 0x522bf6
mov dword [ebx + 0x40], ecx
mov dword [ebx], 6
test dword [ebx + 0x10], 0x800
je 0x521ed6
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
mov edi, dword [ebp - 8]
mov esi, eax
movzx eax, byte [ecx + edi]
inc ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x521e89
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x521e89
mov edx, dword [ebx + 0x40]
cmp edx, dword [eax + 0x20]
jae 0x521e89
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x34]
mov byte [eax + edx], cl
inc dword [ebx + 0x40]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x521e94
cmp ecx, esi
jb 0x521e59
test dword [ebx + 0x10], 0x200
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
je 0x521ebf
mov eax, dword [ebp - 8]
test eax, eax
je 0x521ebc
push ecx
mov ecx, dword [ebx + 0x18]
mov edx, eax
call fcn.0043344d
mov edx, dword [ebp - 0x34]
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], ecx
sub eax, ecx
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x522bf6
xor ecx, ecx
jmp 0x521ee0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x521ee0
mov dword [eax + 0x1c], ecx
mov dword [ebx + 0x40], ecx
mov dword [ebx], 7
test dword [ebx + 0x10], 0x1000
je 0x521f81
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
mov edi, dword [ebp - 8]
mov esi, eax
movzx eax, byte [ecx + edi]
inc ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x521f36
mov edx, dword [eax + 0x24]
test edx, edx
je 0x521f36
mov edx, dword [ebx + 0x40]
cmp edx, dword [eax + 0x28]
jae 0x521f36
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x34]
mov byte [eax + edx], cl
inc dword [ebx + 0x40]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x521f41
cmp ecx, esi
jb 0x521f06
test dword [ebx + 0x10], 0x200
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
je 0x521f6c
mov eax, dword [ebp - 8]
test eax, eax
je 0x521f69
push ecx
mov ecx, dword [ebx + 0x18]
mov edx, eax
call fcn.0043344d
mov edx, dword [ebp - 0x34]
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], ecx
sub eax, ecx
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x522bf6
jmp 0x521f8b
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x521f8b
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 4]
mov dword [ebx], 8
test dword [ebx + 0x10], 0x200
je 0x521fed
jmp 0x521fc6
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
push 0x10
pop eax
cmp edi, eax
jb 0x521f9f
movzx eax, word [ebx + 0x18]
cmp edx, eax
je 0x521fe1
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x521b11
xor eax, eax
mov edx, eax
mov edi, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x52200a
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
xor ecx, ecx
mov dword [ebx + 0x18], ecx
mov dword [esi + 0x30], ecx
mov dword [ebx], 0xb
jmp 0x5221fb
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
add edi, 8
cmp edi, 0x20
jb 0x52201d
mov ecx, edx
mov edi, 0xff00
mov eax, edx
and ecx, edi
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, edi
shl ecx, 8
shr edx, 0x18
add eax, ecx
add eax, edx
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov edx, ecx
mov dword [esi + 0x30], eax
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [ebx], 0xa
cmp dword [ebx + 0xc], ecx
je 0x522bbe
xor eax, eax
inc eax
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov dword [ebx], 0xb
cmp dword [ebx + 4], ecx
je 0x5220b3
mov ecx, edi
mov dword [ebx], 0x18
and ecx, 7
shr edx, cl
sub edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
jmp 0x521b17
cmp edi, 3
jae 0x5220e3
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
cmp edi, 3
jb 0x5220b8
xor ecx, ecx
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 4], eax
mov eax, edx
and eax, 3
sub eax, ecx
je 0x52213a
dec eax
je 0x522116
dec eax
je 0x52210e
dec eax
jne 0x522140
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx], 0x1b
jmp 0x522140
mov dword [ebx], 0xf
jmp 0x522140
mov dword [ebx + 0x4c], 0x57c330
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x57cb58
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
jmp 0x522140
mov dword [ebx], 0xd
shr edx, 2
sub edi, 3
jmp 0x521b63
mov ecx, edi
and ecx, 7
shr edx, cl
sub edi, ecx
jmp 0x522177
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edx
cmp edi, 0x20
jb 0x522156
mov eax, edx
mov ecx, edx
not eax
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
je 0x5221a1
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x521b11
mov dword [ebx + 0x40], ecx
xor ecx, ecx
mov edx, ecx
mov dword [ebx], 0xe
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x522210
mov eax, dword [ebp - 0xc]
cmp esi, eax
mov ecx, dword [ebp - 0x10]
cmova esi, eax
cmp esi, ecx
cmova esi, ecx
test esi, esi
je 0x522bf9
push esi
push dword [ebp - 8]
push dword [ebp - 0x20]
call sub.MSVCR120.dll_memcpy
sub dword [ebp - 0xc], esi
add esp, 0xc
add dword [ebp - 8], esi
sub dword [ebp - 0x10], esi
add dword [ebp - 0x20], esi
sub dword [ebx + 0x40], esi
mov edx, dword [ebp - 4]
xor ecx, ecx
mov esi, dword [ebp - 0x18]
mov eax, dword [ebx]
cmp eax, 0x1c
jbe switch.0x00521a40
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx], 0xb
jmp 0x5221f8
cmp edi, 0xe
jae 0x522248
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
cmp edi, 0xe
jb 0x52221d
xor ecx, ecx
mov eax, edx
sub edi, 0xe
and eax, 0x1f
shr edx, 5
add eax, 0x101
mov dword [ebp - 0x14], 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 - 4], edx
cmp dword [ebx + 0x60], 0x11e
mov dword [ebx + 0x5c], eax
ja 0x522294
cmp dword [ebx + 0x64], 0x1e
ja 0x522294
push 0x10
pop eax
mov dword [ebx + 0x68], ecx
mov dword [ebx], eax
jmp case.0x521a40.16
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x521b77
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
add edi, 8
cmp edi, 3
jb 0x5222a0
mov eax, dword [ebx + 0x68]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 4], edx
movzx eax, word [eax*2 + 0x57cb30]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
sub edi, 3
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x5c]
jb 0x5222c4
jmp 0x52230c
mov eax, dword [ebx + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x57cb30]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
cmp dword [ebx + 0x68], 0x13
jb 0x5222f7
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 edx, [ebx + 0x70]
xor ecx, ecx
call fcn.0052315b
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x52235d
mov dword [esi + 0x18], str.invalid_code_lengths_set
mov dword [ebx], 0x1b
mov edx, dword [ebp - 4]
jmp 0x521b17
and dword [ebx + 0x68], 0
push 0x11
pop eax
mov dword [ebx], eax
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
add eax, dword [ebx + 0x60]
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
jae 0x522588
jmp 0x52239f
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
mov edx, dword [ebp - 8]
dec eax
mov dword [ebp - 0xc], eax
mov ecx, edi
movzx eax, byte [edx]
shl eax, cl
add dword [ebp - 4], eax
inc edx
mov dword [ebp - 8], edx
add edi, 8
mov ecx, dword [ebx + 0x54]
xor edx, edx
mov eax, dword [ebx + 0x4c]
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x34], eax
cmp ecx, edi
ja 0x52237c
mov ecx, eax
push 0x10
shr ecx, 0x10
pop edx
cmp cx, dx
jae 0x52241c
mov ecx, eax
shr ecx, 8
movzx esi, cl
jmp 0x5223f9
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x522bf3
dec ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov ecx, edi
shl edx, cl
add dword [ebp - 4], edx
inc dword [ebp - 8]
add edi, 8
cmp edi, esi
jb 0x5223d7
movzx ecx, ah
shr dword [ebp - 4], cl
sub edi, ecx
mov ecx, dword [ebp - 0x2c]
mov ax, word [ebp - 0x32]
mov dword [ebp - 0x14], edi
mov word [ebx + ecx*2 + 0x70], ax
inc dword [ebx + 0x68]
jmp 0x522550
cmp word [ebp - 0x32], dx
mov edx, dword [ebp - 4]
jne 0x522487
movzx esi, ah
lea eax, [esi + 2]
cmp edi, eax
jae 0x522455
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
add edi, 8
jmp 0x522428
mov ecx, esi
sub edi, esi
shr edx, cl
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
test ecx, ecx
je 0x522569
movzx eax, word [ebx + ecx*2 + 0x6e]
mov esi, edx
and esi, 3
shr edx, 2
add esi, 3
mov dword [ebp - 0x34], eax
sub edi, 2
jmp 0x522529
push 0x11
pop ecx
cmp word [ebp - 0x32], cx
movzx ecx, ah
jne 0x5224d9
lea esi, [ecx + 3]
mov dword [ebp - 0x3c], ecx
cmp edi, esi
jae 0x5224c8
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
cmp edi, esi
jb 0x52249d
mov ecx, dword [ebp - 0x3c]
shr edx, cl
mov esi, edx
and esi, 7
add esi, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x52251d
lea esi, [ecx + 7]
mov dword [ebp - 0x3c], ecx
cmp edi, esi
jae 0x52250e
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
cmp edi, esi
jb 0x5224e3
mov ecx, dword [ebp - 0x3c]
shr edx, cl
mov esi, edx
and esi, 0x7f
add esi, 0xb
shr edx, 7
push 0xfffffffffffffff9
and dword [ebp - 0x34], 0
pop eax
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
add edi, eax
mov eax, dword [ebx + 0x64]
add ecx, esi
add eax, dword [ebx + 0x60]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
cmp ecx, eax
ja 0x522578
test esi, esi
je 0x522550
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x68]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
dec esi
jne 0x522542
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x68]
add eax, dword [ebx + 0x60]
mov dword [ebp - 0x2c], ecx
cmp ecx, eax
jb 0x52239f
mov esi, dword [ebp - 0x18]
jmp 0x522588
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x521b11
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1b
cmp dword [ebx], 0x1b
je 0x522355
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]
xor ecx, ecx
lea edx, [ebx + 0x70]
inc ecx
call fcn.0052315b
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5225d5
mov dword [esi + 0x18], str.invalid_literal_lengths_set
jmp 0x52234f
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
push 2
pop ecx
lea edx, [ebx + eax*2]
call fcn.0052315b
mov edx, dword [ebp - 4]
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x52261c
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x521b11
mov dword [ebx], 0x12
mov eax, dword [ebp - 0xc]
cmp eax, 6
jb 0x522681
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x102
jb 0x522681
mov ebx, dword [ebp - 0x20]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp - 0x30]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, esi
mov dword [esi + 4], eax
mov dword [ebx + 0x38], edx
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0x3c], edi
call fcn.00522d8e
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
jmp 0x521b17
mov ecx, dword [ebx + 0x54]
xor eax, eax
mov esi, dword [ebx + 0x4c]
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x3c], esi
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x5226ea
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
movzx eax, byte [esi]
shl eax, cl
mov ecx, dword [ebx + 0x54]
add edx, eax
mov eax, dword [ebx + 0x4c]
inc esi
mov dword [ebp - 4], edx
xor edx, edx
inc edx
mov dword [ebp - 8], esi
shl edx, cl
dec edx
mov dword [ebp - 0x14], edi
and edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x5226a4
test al, al
je 0x52279d
test al, 0xf0
jne 0x52279d
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 - 4]
shr edi, cl
mov ecx, dword [ebp - 0x3c]
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
mov ebx, dword [ebp - 0x30]
add esi, ecx
cmp esi, edi
jbe 0x522793
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
mov esi, dword [ebp - 8]
dec eax
mov dword [ebp - 0xc], eax
mov ecx, edi
add edi, 8
mov dword [ebp - 0x14], edi
movzx eax, byte [esi]
shl eax, cl
add dword [ebp - 4], eax
inc esi
movzx eax, word [ebp - 0x32]
mov dword [ebp - 8], esi
xor esi, esi
movzx edi, dh
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 4]
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 - 0x14]
cmp ecx, edi
ja 0x52273b
movzx ecx, dh
mov edx, dword [ebp - 4]
shr edx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub edi, ecx
mov ecx, eax
mov dword [ebp - 4], edx
shr ecx, 0x10
mov dword [ebp - 0x14], edi
mov dword [ebx + 0x40], ecx
test al, al
jne 0x5227c6
mov dword [ebx], 0x17
jmp 0x5221f6
test al, 0x20
je 0x5227d5
mov dword [ebx], 0xb
jmp 0x5221f6
test al, 0x40
je 0x5227e8
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x521b11
movzx eax, al
and eax, 0xf
mov dword [ebx], 0x13
mov dword [ebx + 0x48], eax
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x52283f
jmp 0x522824
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
add edi, 8
cmp edi, esi
jb 0x522800
xor eax, eax
mov ecx, esi
inc eax
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x40], eax
sub edi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x58]
xor eax, eax
mov esi, dword [ebx + 0x50]
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x3c], esi
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x5228ae
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
movzx eax, byte [esi]
shl eax, cl
mov ecx, dword [ebx + 0x58]
add edx, eax
mov eax, dword [ebx + 0x50]
inc esi
mov dword [ebp - 4], edx
xor edx, edx
inc edx
mov dword [ebp - 8], esi
shl edx, cl
dec edx
mov dword [ebp - 0x14], edi
and edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x522868
test al, 0xf0
jne 0x522959
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 - 4]
shr edi, cl
mov ecx, dword [ebp - 0x3c]
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
mov ebx, dword [ebp - 0x30]
add esi, ecx
cmp esi, edi
jbe 0x52294f
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
mov esi, dword [ebp - 8]
dec eax
mov dword [ebp - 0xc], eax
mov ecx, edi
add edi, 8
mov dword [ebp - 0x14], edi
movzx eax, byte [esi]
shl eax, cl
add dword [ebp - 4], eax
inc esi
movzx eax, word [ebp - 0x32]
mov dword [ebp - 8], esi
xor esi, esi
movzx edi, dh
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 4]
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 - 0x14]
cmp ecx, edi
ja 0x5228f7
movzx ecx, dh
mov edx, dword [ebp - 4]
shr edx, cl
sub edi, ecx
mov esi, dword [ebp - 0x18]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
test al, 0x40
je 0x52297e
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x521b11
mov ecx, eax
mov dword [ebx], 0x15
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 0x5229de
jmp 0x5229c5
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x48]
add edx, eax
inc dword [ebp - 8]
add edi, 8
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x52299e
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x44], eax
sub edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
add eax, ecx
cmp dword [ebx + 0x44], eax
jbe 0x5229fa
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x521b11
mov dword [ebx], 0x16
jmp 0x522a05
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x522bf3
mov eax, ecx
mov ecx, dword [ebx + 0x44]
sub eax, esi
cmp ecx, eax
jbe 0x522a3d
mov esi, dword [ebx + 0x34]
sub ecx, eax
cmp ecx, dword [ebx + 0x30]
jbe 0x522a2f
sub ecx, dword [ebx + 0x30]
add esi, dword [ebx + 0x28]
sub esi, ecx
jmp 0x522a34
sub esi, ecx
add esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x40]
cmp ecx, eax
jbe 0x522a47
jmp 0x522a45
mov esi, dword [ebp - 0x20]
mov eax, dword [ebx + 0x40]
sub esi, ecx
mov ecx, eax
cmp ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmova ecx, dword [ebp - 0x10]
sub dword [ebp - 0x10], ecx
sub eax, ecx
mov dword [ebx + 0x40], eax
sub esi, edx
mov al, byte [esi + edx]
mov byte [edx], al
inc edx
dec ecx
jne 0x522a5b
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 4]
cmp dword [ebx + 0x40], ecx
jne 0x5221f8
mov dword [ebx], 0x12
jmp 0x5221f8
cmp dword [ebp - 0x10], 0
je 0x522bf3
mov esi, dword [ebp - 0x20]
mov al, byte [ebx + 0x40]
inc dword [ebp - 0x20]
dec dword [ebp - 0x10]
mov byte [esi], al
jmp 0x522a73
cmp dword [ebx + 8], ecx
je 0x522b6e
cmp edi, 0x20
jae 0x522ad4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], edi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
cmp edi, 0x20
jb 0x522aa6
xor ecx, ecx
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x10]
add dword [esi + 0x14], eax
add dword [ebx + 0x1c], eax
mov dword [ebp - 0x24], eax
test eax, eax
je 0x522b1f
cmp dword [ebx + 0x10], ecx
je 0x522b07
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
jne 0x522af8
mov eax, ecx
jmp 0x522b19
push dword [ebp - 0x24]
mov ecx, dword [ebx + 0x18]
mov edx, eax
call fcn.0043344d
jmp 0x522b15
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebx + 0x18]
sub edx, eax
push eax
call fcn.004336ed
mov edx, dword [ebp - 4]
pop ecx
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x10]
mov ecx, edx
mov dword [ebp - 0x24], eax
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
cmp dword [ebx + 0x10], 0
cmovne ecx, edx
cmp ecx, dword [ebx + 0x18]
je 0x522b62
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x521b11
xor ecx, ecx
mov edx, ecx
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edi
mov dword [ebx], 0x19
cmp dword [ebx + 8], ecx
je 0x522be7
cmp dword [ebx + 0x10], ecx
je 0x522be7
cmp edi, 0x20
jae 0x522bad
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x522bf6
dec eax
mov ecx, edi
mov dword [ebp - 0xc], eax
add edi, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], edi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 4], edx
cmp edi, 0x20
jb 0x522b83
xor ecx, ecx
cmp edx, dword [ebx + 0x1c]
je 0x522be2
mov dword [esi + 0x18], str.incorrect_length_check
jmp 0x521b77
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
push 2
jmp 0x522208
mov dword [ebp - 4], ecx
mov edi, ecx
mov dword [ebx], 0x1a
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], edx
mov dword [esi], ecx
mov dword [ebx + 0x3c], edi
xor edi, edi
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x24]
cmp dword [ebx + 0x28], edi
jne 0x522c2a
cmp dword [ebx], 0x18
jge 0x522c4c
cmp eax, dword [esi + 0x10]
je 0x522c4c
mov edx, eax
mov ecx, esi
call fcn.005218f0
test eax, eax
je 0x522c49
mov dword [ebx], 0x1c
push 0xfffffffffffffffc
jmp 0x522208
push 0xfffffffffffffffd
pop eax
jmp 0x522bf0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [esi + 4]
sub eax, dword [esi + 0x10]
add dword [esi + 8], ecx
add dword [esi + 0x14], eax
add dword [ebx + 0x1c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], eax
cmp dword [ebx + 8], edi
je 0x522c98
test eax, eax
je 0x522c98
mov edx, dword [esi + 0xc]
cmp dword [ebx + 0x10], edi
je 0x522c84
sub edx, eax
je 0x522c92
mov ecx, dword [ebx + 0x18]
push eax
call fcn.0043344d
jmp 0x522c8f
mov ecx, dword [ebx + 0x18]
sub edx, eax
push eax
call fcn.004336ed
mov edi, eax
pop ecx
mov dword [ebx + 0x18], edi
mov dword [esi + 0x30], edi
mov ecx, dword [ebx + 4]
mov edx, 0x80
neg ecx
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebx], 0xb
cmove eax, edx
add ecx, eax
mov eax, dword [ebp - 0x38]
add ecx, dword [ebx + 0x3c]
test eax, eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x2c], ecx
jne 0x522209
cmp dword [ebp - 0x24], 0
jne 0x522209
push 0xfffffffffffffffb
test eax, eax
pop ecx
cmove eax, ecx
jmp 0x522209