Function at 0x495e00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
cmp dword [ebp + 8], 0
je 0x495e31
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
je 0x495e31
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x495e31
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x495e3b
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x495e3b
mov eax, 0xfffffffe
jmp 0x497ec6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0xb
jne 0x495e55
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x495e55
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x1c
ja case.default.0x495eb8
mov ecx, dword [ebp - 0x44]
jmp dword [ecx*4 + 0x497ecc]
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 8], 0
jne 0x495ed6
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0xc
jmp 0x497d41
cmp dword [ebp - 0x14], 0x10
jae 0x495f1e
cmp dword [ebp - 0x2c], 0
jne 0x495ee7
jmp 0x497d46
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x495edc
jmp 0x495ed6
xor edx, edx
test edx, edx
jne 0x495ed6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
and ecx, 2
test ecx, ecx
je 0x495fa0
cmp dword [ebp - 0x18], 0x8b1f
jne 0x495fa0
push 0
push 0
push 0
call fcn.00498770
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x10], al
mov ecx, dword [ebp - 0x18]
shr ecx, 8
mov byte [ebp - 0xf], cl
push 2
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00498770
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
xor eax, eax
test eax, eax
jne 0x495f4e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor ecx, ecx
test ecx, ecx
jne 0x495f7e
mov edx, dword [ebp - 0x1c]
mov dword [edx], 1
jmp 0x497d41
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x20], 0
je 0x495fc0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
mov dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
and edx, 1
test edx, edx
je 0x495fed
mov eax, dword [ebp - 0x18]
and eax, 0xff
shl eax, 8
mov ecx, dword [ebp - 0x18]
shr ecx, 8
add eax, ecx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
je 0x496005
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x1b
jmp 0x497d41
mov ecx, dword [ebp - 0x18]
and ecx, 0xf
cmp ecx, 8
je 0x496028
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.unknown_compression_method
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x1b
jmp 0x497d41
mov ecx, dword [ebp - 0x18]
shr ecx, 4
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 4
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x496028
mov ecx, dword [ebp - 0x18]
and ecx, 0xf
add ecx, 8
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx + 0x24]
jbe 0x49606f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_window_size
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x497d41
mov eax, 1
mov ecx, dword [ebp - 0x34]
shl eax, cl
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], eax
push 0
push 0
push 0
call fcn.0049a3e0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x18]
and eax, 0x200
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0xb
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor edx, edx
test edx, edx
jne 0x4960b5
jmp 0x497d41
cmp dword [ebp - 0x14], 0x10
jae 0x496116
cmp dword [ebp - 0x2c], 0
jne 0x4960df
jmp 0x497d46
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x4960d4
jmp case.0x495eb8.1
xor ecx, ecx
test ecx, ecx
jne case.0x495eb8.1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
and edx, 0xff
cmp edx, 8
je 0x49614e
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0x1b
jmp 0x497d41
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
and eax, 0xe000
test eax, eax
je 0x496175
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.unknown_header_flags_set
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x497d41
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x20], 0
je 0x49618f
mov ecx, dword [ebp - 0x18]
shr ecx, 8
and ecx, 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
and edx, 0x200
test edx, edx
je 0x4961cf
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x10], al
mov ecx, dword [ebp - 0x18]
shr ecx, 8
mov byte [ebp - 0xf], cl
push 2
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00498770
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
xor eax, eax
test eax, eax
jne 0x49619f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor ecx, ecx
test ecx, ecx
jne 0x4961cf
mov edx, dword [ebp - 0x1c]
mov dword [edx], 2
cmp dword [ebp - 0x14], 0x20
jae 0x496234
cmp dword [ebp - 0x2c], 0
jne 0x4961fd
jmp 0x497d46
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x4961f2
jmp case.0x495eb8.2
xor ecx, ecx
test ecx, ecx
jne case.0x495eb8.2
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x20], 0
je 0x49624f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
and ecx, 0x200
test ecx, ecx
je 0x4962a1
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 0x18]
shr eax, 8
mov byte [ebp - 0xf], al
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
mov byte [ebp - 0xe], cl
mov edx, dword [ebp - 0x18]
shr edx, 0x18
mov byte [ebp - 0xd], dl
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
push edx
call fcn.00498770
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
xor edx, edx
test edx, edx
jne 0x49625f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x4962a1
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 3
cmp dword [ebp - 0x14], 0x10
jae 0x496308
cmp dword [ebp - 0x2c], 0
jne 0x4962cf
jmp 0x497d46
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x4962c4
jmp case.0x495eb8.3
xor ecx, ecx
test ecx, ecx
jne case.0x495eb8.3
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x20], 0
je 0x496337
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x18]
shr eax, 8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
and ecx, 0x200
test ecx, ecx
je 0x496377
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 0x18]
shr eax, 8
mov byte [ebp - 0xf], al
push 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x18]
push eax
call fcn.00498770
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
xor edx, edx
test edx, edx
jne 0x496347
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x496377
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
and eax, 0x400
test eax, eax
je 0x496469
cmp dword [ebp - 0x14], 0x10
jae 0x4963ef
cmp dword [ebp - 0x2c], 0
jne 0x4963b8
jmp 0x497d46
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x4963ad
jmp 0x4963a7
xor edx, edx
test edx, edx
jne 0x4963a7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x40], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x20], 0
je 0x496413
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
and ecx, 0x200
test ecx, ecx
je 0x496453
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 0x18]
shr eax, 8
mov byte [ebp - 0xf], al
push 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x18]
push eax
call fcn.00498770
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
xor edx, edx
test edx, edx
jne 0x496423
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x496453
jmp 0x49647f
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x20], 0
je 0x49647f
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 5
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
and eax, 0x400
test eax, eax
je 0x496587
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x2c]
jbe 0x4964b2
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x496579
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x20], 0
je 0x49652b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
cmp dword [ecx + 0x10], 0
je 0x49652b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0x40]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
cmp eax, dword [edx + 0x18]
jbe 0x496505
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x18]
sub edx, dword [ebp - 0x34]
mov dword [ebp - 0x48], edx
jmp 0x49650b
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
mov edi, dword [eax + 0x10]
add edi, dword [ebp - 0x34]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
and ecx, 0x200
test ecx, ecx
je 0x496558
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
push edx
call fcn.00498770
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x40], edx
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x40], 0
je 0x496587
jmp 0x497d46
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x40], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax], 6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
and edx, 0x800
test edx, edx
je 0x49667a
cmp dword [ebp - 0x2c], 0
jne 0x4965b9
jmp 0x497d46
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x20], 0
je 0x496620
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
cmp dword [edx + 0x1c], 0
je 0x496620
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x40]
cmp eax, dword [ecx + 0x20]
jae 0x496620
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x40]
mov cl, byte [ebp - 0x34]
mov byte [eax + edx], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x40]
add eax, 1
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x40], eax
cmp dword [ebp - 0x34], 0
je 0x49662e
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x2c]
jb 0x4965c0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
and ecx, 0x200
test ecx, ecx
je 0x49665b
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
push edx
call fcn.00498770
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x34], 0
je 0x496678
jmp 0x497d46
jmp 0x496690
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x20], 0
je 0x496690
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx], 7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
and ecx, 0x1000
test ecx, ecx
je 0x496782
cmp dword [ebp - 0x2c], 0
jne 0x4966c2
jmp 0x497d46
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x20], 0
je 0x496729
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
cmp dword [ecx + 0x24], 0
je 0x496729
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x40]
cmp edx, dword [eax + 0x28]
jae 0x496729
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x40]
mov al, byte [ebp - 0x34]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x40]
add edx, 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x40], edx
cmp dword [ebp - 0x34], 0
je 0x496737
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x2c]
jb 0x4966c9
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
and eax, 0x200
test eax, eax
je 0x496763
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00498770
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x34], 0
je 0x496780
jmp 0x497d46
jmp 0x496798
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x20], 0
je 0x496798
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx], 8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
and ecx, 0x200
test ecx, ecx
je 0x496841
cmp dword [ebp - 0x14], 0x10
jae 0x4967ff
cmp dword [ebp - 0x2c], 0
jne 0x4967c6
jmp 0x497d46
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x4967bb
jmp 0x4967b5
xor ecx, ecx
test ecx, ecx
jne 0x4967b5
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x18]
and eax, 0xffff
cmp dword [ebp - 0x18], eax
je 0x49682d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.header_crc_mismatch
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x497d41
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x49682d
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x20], 0
je 0x49686c
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
sar eax, 9
and eax, 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov dword [ecx + 0x30], 1
push 0
push 0
push 0
call fcn.00498770
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0xb
jmp 0x497d41
cmp dword [ebp - 0x14], 0x20
jae 0x4968e2
cmp dword [ebp - 0x2c], 0
jne 0x4968ab
jmp 0x497d46
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x4968a0
jmp case.0x495eb8.9
xor edx, edx
test edx, edx
jne case.0x495eb8.9
mov eax, dword [ebp - 0x18]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x18]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov edx, dword [ebp - 0x18]
and edx, 0xff00
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x30], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x49692f
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0xa
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0xc], 0
jne 0x49699a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x38], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x3c], edx
xor eax, eax
test eax, eax
jne 0x496955
mov eax, 2
jmp 0x497ec6
push 0
push 0
push 0
call fcn.0049a3e0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0xb
cmp dword [ebp + 0xc], 5
jne case.0x495eb8.12
jmp 0x497d46
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
je 0x496a07
mov ecx, dword [ebp - 0x14]
and ecx, 7
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
and eax, 7
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x4969d7
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x18
jmp 0x497d41
cmp dword [ebp - 0x14], 3
jae 0x496a4f
cmp dword [ebp - 0x2c], 0
jne 0x496a18
jmp 0x497d46
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x496a0d
jmp 0x496a07
xor edx, edx
test edx, edx
jne 0x496a07
mov eax, dword [ebp - 0x18]
and eax, 1
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
shr edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x496a61
mov edx, dword [ebp - 0x18]
and edx, 3
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 3
ja case.default.0x496a8a
mov eax, dword [ebp - 0x4c]
jmp dword [eax*4 + 0x497f40]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0xd
jmp case.default.0x496a8a
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00497f50
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x12
jmp case.default.0x496a8a
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0xf
jmp case.default.0x496a8a
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_block_type
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x1b
mov ecx, dword [ebp - 0x18]
shr ecx, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 2
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne case.default.0x496a8a
jmp 0x497d41
mov ecx, dword [ebp - 0x14]
and ecx, 7
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
and eax, 7
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne case.0x495eb8.13
cmp dword [ebp - 0x14], 0x20
jae 0x496b58
cmp dword [ebp - 0x2c], 0
jne 0x496b21
jmp 0x497d46
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x496b16
jmp 0x496b10
xor ecx, ecx
test ecx, ecx
jne 0x496b10
mov edx, dword [ebp - 0x18]
and edx, 0xffff
mov eax, dword [ebp - 0x18]
shr eax, 0x10
xor eax, 0xffff
cmp edx, eax
je 0x496b8e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_stored_block_lengths
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x497d41
mov eax, dword [ebp - 0x18]
and eax, 0xffff
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x40], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor edx, edx
test edx, edx
jne 0x496b9c
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0xe
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x496c3e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x2c]
jbe 0x496bd6
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x40]
jbe 0x496be4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x496bef
jmp 0x497d46
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x24]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x40], edx
jmp 0x497d41
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0xb
jmp 0x497d41
cmp dword [ebp - 0x14], 0xe
jae 0x496c96
cmp dword [ebp - 0x2c], 0
jne 0x496c5d
jmp 0x497d46
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x496c52
jmp case.0x495eb8.15
xor ecx, ecx
test ecx, ecx
jne case.0x495eb8.15
mov edx, dword [ebp - 0x18]
and edx, 0x1f
add edx, 0x101
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x60], edx
mov ecx, dword [ebp - 0x18]
shr ecx, 5
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 5
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x496cae
mov ecx, dword [ebp - 0x18]
and ecx, 0x1f
add ecx, 1
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x64], ecx
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 5
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x496cd5
mov eax, dword [ebp - 0x18]
and eax, 0xf
add eax, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 0x18]
shr edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 4
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x496cfc
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x60], 0x11e
ja 0x496d29
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x64], 0x1e
jbe 0x496d41
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.too_many_length_or_distance_symbols
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x497d41
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x68], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0x10
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x68]
cmp ecx, dword [eax + 0x5c]
jae 0x496e00
cmp dword [ebp - 0x14], 3
jae 0x496db0
cmp dword [ebp - 0x2c], 0
jne 0x496d77
jmp 0x497d46
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x496d6c
jmp 0x496d66
xor ecx, ecx
test ecx, ecx
jne 0x496d66
mov edx, dword [ebp - 0x18]
and edx, 7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x68]
xor eax, eax
mov ax, word [ecx*2 + 0x4d7558]
mov ecx, dword [ebp - 0x1c]
mov word [ecx + eax*2 + 0x70], dx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x68]
add eax, 1
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 0x18]
shr edx, 3
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 3
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x496de3
jmp case.0x495eb8.16
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x68], 0x13
jae 0x496e34
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x68]
xor edx, edx
mov dx, word [ecx*2 + 0x4d7558]
mov eax, dword [ebp - 0x1c]
mov word [eax + edx*2 + 0x70], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x68]
add edx, 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x68], edx
jmp 0x496e00
mov ecx, dword [ebp - 0x1c]
add ecx, 0x530
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x54], 7
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2f0
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x54
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x6c
push eax
push 0x13
mov ecx, dword [ebp - 0x1c]
add ecx, 0x70
push ecx
push 0
call fcn.00499d50
add esp, 0x18
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x496ea5
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_code_lengths_set
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x1b
jmp 0x497d41
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x68], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x11
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0x1c]
add ecx, dword [edx + 0x64]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x68], ecx
jae 0x4972bc
mov ecx, dword [ebp - 0x1c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
shl edx, cl
sub edx, 1
mov eax, dword [ebp - 0x18]
and eax, edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
cmp ecx, dword [ebp - 0x14]
ja 0x496f01
jmp 0x496f45
cmp dword [ebp - 0x2c], 0
jne 0x496f0c
jmp 0x497d46
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x496f01
jmp 0x496ed0
mov ecx, dword [ebp - 0x36]
and ecx, 0xffff
cmp ecx, 0x10
jge 0x496ffa
mov edx, dword [ebp - 0x37]
and edx, 0xff
cmp dword [ebp - 0x14], edx
jae 0x496fa7
cmp dword [ebp - 0x2c], 0
jne 0x496f70
jmp 0x497d46
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x496f65
jmp 0x496f57
xor ecx, ecx
test ecx, ecx
jne 0x496f57
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x37]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x496fad
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp - 0x1c]
mov ax, word [ebp - 0x36]
mov word [edx + ecx*2 + 0x70], ax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x68]
add edx, 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x68], edx
jmp 0x4972b7
mov ecx, dword [ebp - 0x36]
and ecx, 0xffff
cmp ecx, 0x10
jne 0x4970e9
mov edx, dword [ebp - 0x37]
and edx, 0xff
add edx, 2
cmp dword [ebp - 0x14], edx
jae 0x49705f
cmp dword [ebp - 0x2c], 0
jne 0x497028
jmp 0x497d46
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x49701d
jmp 0x49700c
xor ecx, ecx
test ecx, ecx
jne 0x49700c
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x37]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x497065
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x68], 0
jne 0x4970ad
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x4972bc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov ax, word [edx + ecx*2 + 0x6e]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x18]
and ecx, 3
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
shr edx, 2
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 2
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x4970cc
jmp 0x497256
mov edx, dword [ebp - 0x36]
and edx, 0xffff
cmp edx, 0x11
jne 0x4971ab
mov eax, dword [ebp - 0x37]
and eax, 0xff
add eax, 3
cmp dword [ebp - 0x14], eax
jae 0x49714d
cmp dword [ebp - 0x2c], 0
jne 0x497116
jmp 0x497d46
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x49710b
jmp 0x4970fb
xor edx, edx
test edx, edx
jne 0x4970fb
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
mov eax, dword [ebp - 0x18]
shr eax, cl
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
sub edx, ecx
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x497153
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x18]
and ecx, 7
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
shr edx, 3
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 3
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x49718e
jmp 0x497256
mov edx, dword [ebp - 0x37]
and edx, 0xff
add edx, 7
cmp dword [ebp - 0x14], edx
jae 0x4971fe
cmp dword [ebp - 0x2c], 0
jne 0x4971c7
jmp 0x497d46
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x4971bc
jmp 0x4971ab
xor ecx, ecx
test ecx, ecx
jne 0x4971ab
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x37]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x497204
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x18]
and eax, 0x7f
add eax, 0xb
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
shr ecx, 7
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 7
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x49723e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x68]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x60]
mov eax, dword [ebp - 0x1c]
add ecx, dword [eax + 0x64]
cmp edx, ecx
jbe 0x497284
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x4972bc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
test eax, eax
je 0x4972b7
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x68]
mov ecx, dword [ebp - 0x1c]
mov dx, word [ebp - 0x34]
mov word [ecx + eax*2 + 0x70], dx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x68]
add ecx, 1
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x68], ecx
jmp 0x497284
jmp case.0x495eb8.17
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x1b
jne 0x4972c9
jmp 0x497d41
mov ecx, dword [ebp - 0x1c]
add ecx, 0x530
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x54], 9
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2f0
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x54
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x6c
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x60]
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x70
push eax
push 1
call fcn.00499d50
add esp, 0x18
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x49733f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x497d41
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x58], 6
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2f0
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x58
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x6c
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x64]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx*2 + 0x70]
push eax
push 2
call fcn.00499d50
add esp, 0x18
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4973ad
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_distances_set
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x497d41
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x12
cmp dword [ebp - 0x2c], 6
jb 0x497458
cmp dword [ebp - 0x40], 0x102
jb 0x497458
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x38], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x3c], eax
xor ecx, ecx
test ecx, ecx
jne 0x4973cd
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00499580
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x497418
jmp 0x497d41
mov edx, dword [ebp - 0x1c]
mov eax, 1
mov ecx, dword [edx + 0x54]
shl eax, cl
sub eax, 1
mov ecx, dword [ebp - 0x18]
and ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x4c]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x37]
and edx, 0xff
cmp edx, dword [ebp - 0x14]
ja 0x497489
jmp 0x4974cb
cmp dword [ebp - 0x2c], 0
jne 0x497494
jmp 0x497d46
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x497489
jmp 0x497458
mov ecx, dword [ebp - 0x38]
and ecx, 0xff
test ecx, ecx
je 0x4975c3
mov edx, dword [ebp - 0x38]
and edx, 0xff
and edx, 0xf0
test edx, edx
jne 0x4975c3
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 6]
and edx, 0xffff
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov eax, dword [ebp - 8]
and eax, 0xff
add ecx, eax
mov eax, 1
shl eax, cl
sub eax, 1
mov esi, dword [ebp - 0x18]
and esi, eax
mov ecx, dword [ebp - 7]
and ecx, 0xff
shr esi, cl
add edx, esi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x4c]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 7]
and edx, 0xff
mov eax, dword [ebp - 0x37]
and eax, 0xff
add edx, eax
cmp edx, dword [ebp - 0x14]
ja 0x497557
jmp 0x49759c
cmp dword [ebp - 0x2c], 0
jne 0x497562
jmp 0x497d46
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x497557
jmp 0x4974f9
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 7]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x49759c
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
mov eax, dword [ebp - 0x18]
shr eax, cl
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
sub edx, ecx
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x4975c3
mov ecx, dword [ebp - 0x36]
and ecx, 0xffff
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x40], ecx
mov eax, dword [ebp - 0x38]
and eax, 0xff
test eax, eax
jne 0x497614
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0x17
jmp 0x497d41
mov edx, dword [ebp - 0x38]
and edx, 0xff
and edx, 0x20
test edx, edx
je 0x497632
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0xb
jmp 0x497d41
mov ecx, dword [ebp - 0x38]
and ecx, 0xff
and ecx, 0x40
test ecx, ecx
je 0x49765a
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_literal_length_code
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x1b
jmp 0x497d41
mov ecx, dword [ebp - 0x38]
and ecx, 0xff
and ecx, 0xf
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x48], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x13
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x48], 0
je 0x497718
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x48]
jae 0x4976cf
cmp dword [ebp - 0x2c], 0
jne 0x497698
jmp 0x497d46
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x49768d
jmp 0x497682
xor edx, edx
test edx, edx
jne 0x497682
mov eax, dword [ebp - 0x1c]
mov edx, 1
mov ecx, dword [eax + 0x48]
shl edx, cl
sub edx, 1
mov eax, dword [ebp - 0x18]
and eax, edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x40]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x40], edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x48]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax + 0x48]
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x4976f8
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x14
mov ecx, dword [ebp - 0x1c]
mov edx, 1
mov ecx, dword [ecx + 0x58]
shl edx, cl
sub edx, 1
mov eax, dword [ebp - 0x18]
and eax, edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
cmp ecx, dword [ebp - 0x14]
ja 0x497752
jmp 0x497796
cmp dword [ebp - 0x2c], 0
jne 0x49775d
jmp 0x497d46
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x497752
jmp case.0x495eb8.20
mov ecx, dword [ebp - 0x38]
and ecx, 0xff
and ecx, 0xf0
test ecx, ecx
jne 0x49787e
mov edx, dword [ebp - 0x38]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 6]
and eax, 0xffff
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 8]
and edx, 0xff
add ecx, edx
mov edx, 1
shl edx, cl
sub edx, 1
mov esi, dword [ebp - 0x18]
and esi, edx
mov ecx, dword [ebp - 7]
and ecx, 0xff
shr esi, cl
add eax, esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 0x37]
and edx, 0xff
add ecx, edx
cmp ecx, dword [ebp - 0x14]
ja 0x497812
jmp 0x497857
cmp dword [ebp - 0x2c], 0
jne 0x49781d
jmp 0x497d46
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x497812
jmp 0x4977b3
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 7]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x497857
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
mov eax, dword [ebp - 0x18]
shr eax, cl
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x37]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
sub edx, ecx
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x49787e
mov ecx, dword [ebp - 0x38]
and ecx, 0xff
and ecx, 0x40
test ecx, ecx
je 0x4978ce
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_distance_code
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x1b
jmp 0x497d41
mov ecx, dword [ebp - 0x36]
and ecx, 0xffff
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 0x38]
and eax, 0xff
and eax, 0xf
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x15
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x48], 0
je 0x49799a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x48]
jae 0x497951
cmp dword [ebp - 0x2c], 0
jne 0x49791a
jmp 0x497d46
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x49790f
jmp 0x497904
xor ecx, ecx
test ecx, ecx
jne 0x497904
mov edx, dword [ebp - 0x1c]
mov eax, 1
mov ecx, dword [edx + 0x48]
shl eax, cl
sub eax, 1
mov ecx, dword [ebp - 0x18]
and ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x44]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x48]
shr eax, cl
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
sub edx, dword [ecx + 0x48]
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x49797a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x2c]
add edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x44], edx
jbe 0x4979c6
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_distance_too_far_back
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x497d41
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x16
cmp dword [ebp - 0x40], 0
jne 0x4979da
jmp 0x497d46
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x44]
cmp eax, dword [ebp - 4]
jbe 0x497a51
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x44]
sub edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x30]
jbe 0x497a27
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
sub eax, dword [edx + 0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x28]
sub edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x34]
add ecx, edx
mov dword [ebp - 0x30], ecx
jmp 0x497a3b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x34]
add edx, eax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x40]
jbe 0x497a4f
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x40]
mov dword [ebp - 4], eax
jmp 0x497a66
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
sub edx, dword [ecx + 0x44]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x40]
jbe 0x497a74
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x40]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x497a8c
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x40], 0
jne 0x497ac9
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x12
jmp 0x497d41
cmp dword [ebp - 0x40], 0
jne 0x497ad9
jmp 0x497d46
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov al, byte [edx + 0x40]
mov byte [ecx], al
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x40]
sub edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x12
jmp 0x497d41
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 8], 0
je 0x497c6b
cmp dword [ebp - 0x14], 0x20
jae 0x497b5b
cmp dword [ebp - 0x2c], 0
jne 0x497b22
jmp 0x497d46
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x497b17
jmp 0x497b11
xor ecx, ecx
test ecx, ecx
jne 0x497b11
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x40]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], ecx
cmp dword [ebp - 0xc], 0
je 0x497be5
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0
je 0x497bb6
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00498770
add esp, 0xc
mov dword [ebp - 0x50], eax
jmp 0x497bd3
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
push edx
call fcn.0049a3e0
add esp, 0xc
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x10], 0
je 0x497bfc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x497c34
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, 8
and edx, 0xff00
add ecx, edx
mov eax, dword [ebp - 0x18]
and eax, 0xff00
shl eax, 8
add ecx, eax
mov edx, dword [ebp - 0x18]
and edx, 0xff
shl edx, 0x18
add ecx, edx
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [eax + 0x18]
je 0x497c57
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_data_check
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x1b
jmp 0x497d41
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor ecx, ecx
test ecx, ecx
jne 0x497c57
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x19
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 8], 0
je 0x497d12
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x10], 0
je 0x497d12
cmp dword [ebp - 0x14], 0x20
jae 0x497cd8
cmp dword [ebp - 0x2c], 0
jne 0x497c9f
jmp 0x497d46
mov edx, dword [ebp - 0x2c]
sub edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x497c94
jmp 0x497c8e
xor ecx, ecx
test ecx, ecx
jne 0x497c8e
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x1c]
je 0x497cfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.incorrect_length_check
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0x1b
jmp 0x497d41
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x497cfe
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0x1a
mov dword [ebp - 0x20], 1
jmp 0x497d46
mov dword [ebp - 0x20], 0xfffffffd
jmp 0x497d46
mov eax, 0xfffffffc
jmp 0x497ec6
mov eax, 0xfffffffe
jmp 0x497ec6
jmp 0x495ea3
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x40]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x3c], ecx
xor edx, edx
test edx, edx
jne 0x497d46
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x28], 0
jne 0x497d9d
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0x18
jge 0x497dc4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x10]
je 0x497dc4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00497f80
add esp, 8
test eax, eax
je 0x497dc4
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0x1c
mov eax, 0xfffffffc
jmp 0x497ec6
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
sub edx, dword [ecx + 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 8], 0
je 0x497e75
cmp dword [ebp - 0xc], 0
je 0x497e75
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0
je 0x497e43
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
push edx
call fcn.00498770
add esp, 0xc
mov dword [ebp - 0x58], eax
jmp 0x497e63
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.0049a3e0
add esp, 0xc
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x58]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
neg ecx
sbb ecx, ecx
and ecx, 0x40
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x3c]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
xor edx, edx
cmp dword [ecx], 0xb
setne dl
dec edx
and edx, 0x80
add eax, edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
cmp dword [ebp - 0x28], 0
jne 0x497eb0
cmp dword [ebp - 0xc], 0
je 0x497eb6
cmp dword [ebp + 0xc], 4
jne 0x497ec3
cmp dword [ebp - 0x20], 0
jne 0x497ec3
mov dword [ebp - 0x20], 0xfffffffb
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov esp, ebp
pop ebp
ret