Function at 0x408c07
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
cmp dword [ebp + 8], 0
je 0x408c37
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
je 0x408c37
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x408c37
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x408c41
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x408c41
mov eax, 0xfffffffe
jmp 0x40a337
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xb
jne 0x408c5b
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne 0x408c5b
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x1c
ja case.0x408cbe.1
mov ecx, dword [ebp - 0x40]
jmp dword [ecx*4 + 0x40a33c]
mov edx, dword [ebp - 0x18]
cmp dword [edx + 8], 0
jne 0x408cdc
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xc
jmp 0x40a1e0
cmp dword [ebp - 0x10], 0x10
jae 0x408d24
cmp dword [ebp - 0x28], 0
jne 0x408ced
jmp 0x40a1e5
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x38]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x10]
shl eax, cl
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x408ce2
jmp 0x408cdc
xor edx, edx
test edx, edx
jne 0x408cdc
mov eax, dword [ebp - 0x14]
and eax, 0xff
shl eax, 8
mov ecx, dword [ebp - 0x14]
shr ecx, 8
add eax, ecx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
je 0x408d62
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x1b
jmp 0x40a1e0
mov ecx, dword [ebp - 0x14]
and ecx, 0xf
cmp ecx, 8
je 0x408d85
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.unknown_compression_method
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x1b
jmp 0x40a1e0
mov ecx, dword [ebp - 0x14]
shr ecx, 4
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, 4
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x408d85
mov ecx, dword [ebp - 0x14]
and ecx, 0xf
add ecx, 8
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx + 0x24]
jbe 0x408dcc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_window_size
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x1b
jmp 0x40a1e0
mov eax, 1
mov ecx, dword [ebp - 0x30]
shl eax, cl
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], eax
push 0
push 0
push 0
call fcn.0040b9bc
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x14]
and eax, 0x200
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0xb
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor edx, edx
test edx, edx
jne 0x408e12
jmp 0x40a1e0
cmp dword [ebp - 0x10], 0x20
jae 0x408e73
cmp dword [ebp - 0x28], 0
jne 0x408e3c
jmp 0x40a1e5
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x408e31
jmp case.0x408cbe.9
xor ecx, ecx
test ecx, ecx
jne case.0x408cbe.9
mov edx, dword [ebp - 0x14]
shr edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x14]
shr eax, 8
and eax, 0xff00
add edx, eax
mov ecx, dword [ebp - 0x14]
and ecx, 0xff00
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x14]
and eax, 0xff
shl eax, 0x18
add edx, eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x18], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x30], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor edx, edx
test edx, edx
jne 0x408ebf
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xa
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0xc], 0
jne 0x408f2a
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x3c], ecx
xor edx, edx
test edx, edx
jne 0x408ee5
mov eax, 2
jmp 0x40a337
push 0
push 0
push 0
call fcn.0040b9bc
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx], 0xb
cmp dword [ebp + 0xc], 5
jne case.0x408cbe.12
jmp 0x40a1e5
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x408f97
mov ecx, dword [ebp - 0x10]
and ecx, 7
mov edx, dword [ebp - 0x14]
shr edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
and eax, 7
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne 0x408f67
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x18
jmp 0x40a1e0
cmp dword [ebp - 0x10], 3
jae 0x408fdf
cmp dword [ebp - 0x28], 0
jne 0x408fa8
jmp 0x40a1e5
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x38]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x10]
shl eax, cl
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x408f9d
jmp 0x408f97
xor edx, edx
test edx, edx
jne 0x408f97
mov eax, dword [ebp - 0x14]
and eax, 1
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x14]
shr edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x408ff1
mov edx, dword [ebp - 0x14]
and edx, 3
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 3
ja case.default.0x40901a
mov eax, dword [ebp - 0x44]
jmp dword [eax*4 + 0x40a3b0]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0xd
jmp case.default.0x40901a
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040a3c0
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x12
jmp case.default.0x40901a
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0xf
jmp case.default.0x40901a
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_block_type
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x1b
mov ecx, dword [ebp - 0x14]
shr ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, 2
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne case.default.0x40901a
jmp 0x40a1e0
mov ecx, dword [ebp - 0x10]
and ecx, 7
mov edx, dword [ebp - 0x14]
shr edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
and eax, 7
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne case.0x408cbe.13
cmp dword [ebp - 0x10], 0x20
jae 0x4090e8
cmp dword [ebp - 0x28], 0
jne 0x4090b1
jmp 0x40a1e5
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x4090a6
jmp 0x4090a0
xor ecx, ecx
test ecx, ecx
jne 0x4090a0
mov edx, dword [ebp - 0x14]
and edx, 0xffff
mov eax, dword [ebp - 0x14]
shr eax, 0x10
xor eax, 0xffff
cmp edx, eax
je 0x40911e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_stored_block_lengths
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x1b
jmp 0x40a1e0
mov eax, dword [ebp - 0x14]
and eax, 0xffff
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x40], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor edx, edx
test edx, edx
jne 0x40912c
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xe
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x4091cb
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x28]
jbe 0x409166
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x3c]
jbe 0x409174
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40917f
jmp 0x40a1e5
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040c630
add esp, 0xc
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 4]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x40]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x40], eax
jmp 0x40a1e0
mov edx, dword [ebp - 0x18]
mov dword [edx], 0xb
jmp 0x40a1e0
cmp dword [ebp - 0x10], 0xe
jae 0x409221
cmp dword [ebp - 0x28], 0
jne 0x4091ea
jmp 0x40a1e5
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x4091df
jmp case.0x408cbe.15
xor ecx, ecx
test ecx, ecx
jne case.0x408cbe.15
mov edx, dword [ebp - 0x14]
and edx, 0x1f
add edx, 0x101
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x60], edx
mov ecx, dword [ebp - 0x14]
shr ecx, 5
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, 5
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x409239
mov ecx, dword [ebp - 0x14]
and ecx, 0x1f
add ecx, 1
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x64], ecx
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 5
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne 0x409260
mov eax, dword [ebp - 0x14]
and eax, 0xf
add eax, 4
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 0x14]
shr edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 4
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x409287
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x60], 0x11e
ja 0x4092b4
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x64], 0x1e
jbe 0x4092cc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.too_many_length_or_distance_symbols
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x1b
jmp 0x40a1e0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x68], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0x10
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x68]
cmp ecx, dword [eax + 0x5c]
jae 0x40938b
cmp dword [ebp - 0x10], 3
jae 0x40933b
cmp dword [ebp - 0x28], 0
jne 0x409302
jmp 0x40a1e5
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x4092f7
jmp 0x4092f1
xor ecx, ecx
test ecx, ecx
jne 0x4092f1
mov edx, dword [ebp - 0x14]
and edx, 7
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
xor eax, eax
mov ax, word [ecx*2 + 0x4135b8]
mov ecx, dword [ebp - 0x18]
mov word [ecx + eax*2 + 0x70], dx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x68]
add eax, 1
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 0x14]
shr edx, 3
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 3
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x40936e
jmp case.0x408cbe.16
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x68], 0x13
jae 0x4093bf
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
xor edx, edx
mov dx, word [ecx*2 + 0x4135b8]
mov eax, dword [ebp - 0x18]
mov word [eax + edx*2 + 0x70], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x68]
add edx, 1
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x68], edx
jmp 0x40938b
mov ecx, dword [ebp - 0x18]
add ecx, 0x530
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x54], 7
mov ecx, dword [ebp - 0x18]
add ecx, 0x2f0
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x54
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x6c
push eax
push 0x13
mov ecx, dword [ebp - 0x18]
add ecx, 0x70
push ecx
push 0
call fcn.00407b12
add esp, 0x18
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x409430
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_code_lengths_set
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x1b
jmp 0x40a1e0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x68], 0
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x11
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0x18]
add ecx, dword [edx + 0x64]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x68], ecx
jae 0x409847
mov ecx, dword [ebp - 0x18]
mov edx, 1
mov ecx, dword [ecx + 0x54]
shl edx, cl
sub edx, 1
mov eax, dword [ebp - 0x14]
and eax, edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
cmp ecx, dword [ebp - 0x10]
ja 0x40948c
jmp 0x4094d0
cmp dword [ebp - 0x28], 0
jne 0x409497
jmp 0x40a1e5
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x40948c
jmp 0x40945b
mov ecx, dword [ebp - 0x32]
and ecx, 0xffff
cmp ecx, 0x10
jge 0x409585
mov edx, dword [ebp - 0x33]
and edx, 0xff
cmp dword [ebp - 0x10], edx
jae 0x409532
cmp dword [ebp - 0x28], 0
jne 0x4094fb
jmp 0x40a1e5
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x4094f0
jmp 0x4094e2
xor ecx, ecx
test ecx, ecx
jne 0x4094e2
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
shr edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x33]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne 0x409538
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp - 0x18]
mov ax, word [ebp - 0x32]
mov word [edx + ecx*2 + 0x70], ax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x68]
add edx, 1
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x68], edx
jmp 0x409842
mov ecx, dword [ebp - 0x32]
and ecx, 0xffff
cmp ecx, 0x10
jne 0x409674
mov edx, dword [ebp - 0x33]
and edx, 0xff
add edx, 2
cmp dword [ebp - 0x10], edx
jae 0x4095ea
cmp dword [ebp - 0x28], 0
jne 0x4095b3
jmp 0x40a1e5
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x4095a8
jmp 0x409597
xor ecx, ecx
test ecx, ecx
jne 0x409597
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
shr edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x33]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne 0x4095f0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x68], 0
jne 0x409638
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x417364
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x1b
jmp 0x409847
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + ecx*2 + 0x6e]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
and ecx, 3
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x14]
shr edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 2
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x409657
jmp 0x4097e1
mov edx, dword [ebp - 0x32]
and edx, 0xffff
cmp edx, 0x11
jne 0x409736
mov eax, dword [ebp - 0x33]
and eax, 0xff
add eax, 3
cmp dword [ebp - 0x10], eax
jae 0x4096d8
cmp dword [ebp - 0x28], 0
jne 0x4096a1
jmp 0x40a1e5
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x38]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x10]
shl eax, cl
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x409696
jmp 0x409686
xor edx, edx
test edx, edx
jne 0x409686
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
mov eax, dword [ebp - 0x14]
shr eax, cl
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x4096de
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x14]
and ecx, 7
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x14]
shr edx, 3
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 3
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x409719
jmp 0x4097e1
mov edx, dword [ebp - 0x33]
and edx, 0xff
add edx, 7
cmp dword [ebp - 0x10], edx
jae 0x409789
cmp dword [ebp - 0x28], 0
jne 0x409752
jmp 0x40a1e5
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x409747
jmp 0x409736
xor ecx, ecx
test ecx, ecx
jne 0x409736
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
shr edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x33]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne 0x40978f
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
and eax, 0x7f
add eax, 0xb
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
shr ecx, 7
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, 7
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x4097c9
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x68]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x60]
mov eax, dword [ebp - 0x18]
add ecx, dword [eax + 0x64]
cmp edx, ecx
jbe 0x40980f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x1b
jmp 0x409847
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
test eax, eax
je 0x409842
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x68]
mov ecx, dword [ebp - 0x18]
mov dx, word [ebp - 0x30]
mov word [ecx + eax*2 + 0x70], dx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x68]
add ecx, 1
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x68], ecx
jmp 0x40980f
jmp case.0x408cbe.17
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x1b
jne 0x409854
jmp 0x40a1e0
mov ecx, dword [ebp - 0x18]
add ecx, 0x530
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x54], 9
mov ecx, dword [ebp - 0x18]
add ecx, 0x2f0
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x54
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x6c
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x60]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x70
push eax
push 1
call fcn.00407b12
add esp, 0x18
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4098ca
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x1b
jmp 0x40a1e0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x58], 6
mov ecx, dword [ebp - 0x18]
add ecx, 0x2f0
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x58
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x6c
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x64]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0x18]
lea eax, [edx + ecx*2 + 0x70]
push eax
push 2
call fcn.00407b12
add esp, 0x18
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x409938
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_distances_set
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x1b
jmp 0x40a1e0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x12
cmp dword [ebp - 0x28], 6
jb 0x4099e3
cmp dword [ebp - 0x3c], 0x102
jb 0x4099e3
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x38], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x3c], eax
xor ecx, ecx
test ecx, ecx
jne 0x409958
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00408194
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x4099a3
jmp 0x40a1e0
mov edx, dword [ebp - 0x18]
mov eax, 1
mov ecx, dword [edx + 0x54]
shl eax, cl
sub eax, 1
mov ecx, dword [ebp - 0x14]
and ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x4c]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x33]
and edx, 0xff
cmp edx, dword [ebp - 0x10]
ja 0x409a14
jmp 0x409a56
cmp dword [ebp - 0x28], 0
jne 0x409a1f
jmp 0x40a1e5
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x409a14
jmp 0x4099e3
mov ecx, dword [ebp - 0x34]
and ecx, 0xff
test ecx, ecx
je 0x409b4e
mov edx, dword [ebp - 0x34]
and edx, 0xff
and edx, 0xf0
test edx, edx
jne 0x409b4e
mov eax, dword [ebp - 0x34]
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 - 0x14]
and esi, eax
mov ecx, dword [ebp - 7]
and ecx, 0xff
shr esi, cl
add edx, esi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x4c]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 7]
and edx, 0xff
mov eax, dword [ebp - 0x33]
and eax, 0xff
add edx, eax
cmp edx, dword [ebp - 0x10]
ja 0x409ae2
jmp 0x409b27
cmp dword [ebp - 0x28], 0
jne 0x409aed
jmp 0x40a1e5
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x38]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x10]
shl eax, cl
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x409ae2
jmp 0x409a84
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
shr edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 7]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne 0x409b27
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
mov eax, dword [ebp - 0x14]
shr eax, cl
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x409b4e
mov ecx, dword [ebp - 0x32]
and ecx, 0xffff
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x40], ecx
mov eax, dword [ebp - 0x34]
and eax, 0xff
test eax, eax
jne 0x409b9f
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0x17
jmp 0x40a1e0
mov edx, dword [ebp - 0x34]
and edx, 0xff
and edx, 0x20
test edx, edx
je 0x409bbd
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xb
jmp 0x40a1e0
mov ecx, dword [ebp - 0x34]
and ecx, 0xff
and ecx, 0x40
test ecx, ecx
je 0x409be5
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_literal_length_code
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x1b
jmp 0x40a1e0
mov ecx, dword [ebp - 0x34]
and ecx, 0xff
and ecx, 0xf
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x48], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x13
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x48], 0
je 0x409ca3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x48]
jae 0x409c5a
cmp dword [ebp - 0x28], 0
jne 0x409c23
jmp 0x40a1e5
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x38]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x10]
shl eax, cl
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x10], eax
xor ecx, ecx
test ecx, ecx
jne 0x409c18
jmp 0x409c0d
xor edx, edx
test edx, edx
jne 0x409c0d
mov eax, dword [ebp - 0x18]
mov edx, 1
mov ecx, dword [eax + 0x48]
shl edx, cl
sub edx, 1
mov eax, dword [ebp - 0x14]
and eax, edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
add edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x40], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x48]
shr edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax + 0x48]
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne 0x409c83
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x14
mov ecx, dword [ebp - 0x18]
mov edx, 1
mov ecx, dword [ecx + 0x58]
shl edx, cl
sub edx, 1
mov eax, dword [ebp - 0x14]
and eax, edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
cmp ecx, dword [ebp - 0x10]
ja 0x409cdd
jmp 0x409d21
cmp dword [ebp - 0x28], 0
jne 0x409ce8
jmp 0x40a1e5
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x409cdd
jmp case.0x408cbe.20
mov ecx, dword [ebp - 0x34]
and ecx, 0xff
and ecx, 0xf0
test ecx, ecx
jne 0x409e09
mov edx, dword [ebp - 0x34]
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 - 0x14]
and esi, edx
mov ecx, dword [ebp - 7]
and ecx, 0xff
shr esi, cl
add eax, esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 0x33]
and edx, 0xff
add ecx, edx
cmp ecx, dword [ebp - 0x10]
ja 0x409d9d
jmp 0x409de2
cmp dword [ebp - 0x28], 0
jne 0x409da8
jmp 0x40a1e5
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x409d9d
jmp 0x409d3e
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
shr edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 7]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
xor edx, edx
test edx, edx
jne 0x409de2
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
mov eax, dword [ebp - 0x14]
shr eax, cl
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x33]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x409e09
mov ecx, dword [ebp - 0x34]
and ecx, 0xff
and ecx, 0x40
test ecx, ecx
je 0x409e59
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_distance_code
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x1b
jmp 0x40a1e0
mov ecx, dword [ebp - 0x32]
and ecx, 0xffff
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 0x34]
and eax, 0xff
and eax, 0xf
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x15
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x48], 0
je 0x409f25
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x48]
jae 0x409edc
cmp dword [ebp - 0x28], 0
jne 0x409ea5
jmp 0x40a1e5
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x409e9a
jmp 0x409e8f
xor ecx, ecx
test ecx, ecx
jne 0x409e8f
mov edx, dword [ebp - 0x18]
mov eax, 1
mov ecx, dword [edx + 0x48]
shl eax, cl
sub eax, 1
mov ecx, dword [ebp - 0x14]
and ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x44]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx + 0x48]
shr eax, cl
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + 0x48]
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x409f05
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x2c]
add edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x44], edx
jbe 0x409f51
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_distance_too_far_back
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x1b
jmp 0x40a1e0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x16
cmp dword [ebp - 0x3c], 0
jne 0x409f65
jmp 0x40a1e5
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x44]
cmp eax, dword [ebp - 4]
jbe 0x409fdc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x44]
sub edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x30]
jbe 0x409fb2
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
sub eax, dword [edx + 0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x28]
sub edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x34]
add ecx, edx
mov dword [ebp - 0x2c], ecx
jmp 0x409fc6
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x30]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x34]
add edx, eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x40]
jbe 0x409fda
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x40]
mov dword [ebp - 4], eax
jmp 0x409ff1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
sub edx, dword [ecx + 0x44]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x3c]
jbe 0x409fff
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x40]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x40a017
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x40], 0
jne 0x40a054
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x12
jmp 0x40a1e0
cmp dword [ebp - 0x3c], 0
jne 0x40a064
jmp 0x40a1e5
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov al, byte [edx + 0x40]
mov byte [ecx], al
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x3c]
sub edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x12
jmp 0x40a1e0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 0
je 0x40a1b1
cmp dword [ebp - 0x10], 0x20
jae 0x40a0e6
cmp dword [ebp - 0x28], 0
jne 0x40a0ad
jmp 0x40a1e5
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x10]
shl edx, cl
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
xor eax, eax
test eax, eax
jne 0x40a0a2
jmp 0x40a09c
xor ecx, ecx
test ecx, ecx
jne 0x40a09c
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x3c]
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 - 0x18]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x1c], ecx
cmp dword [ebp - 0xc], 0
je 0x40a145
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x18]
push eax
call fcn.0040b9bc
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x14]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov edx, dword [ebp - 0x14]
and edx, 0xff00
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 0x18]
je 0x40a19d
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_data_check
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0x1b
jmp 0x40a1e0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor edx, edx
test edx, edx
jne 0x40a19d
mov eax, dword [ebp - 0x18]
mov dword [eax], 0x1a
mov dword [ebp - 0x1c], 1
jmp 0x40a1e5
mov dword [ebp - 0x1c], 0xfffffffd
jmp 0x40a1e5
mov eax, 0xfffffffc
jmp 0x40a337
mov eax, 0xfffffffe
jmp 0x40a337
jmp 0x408ca9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x38], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x3c], eax
xor ecx, ecx
test ecx, ecx
jne 0x40a1e5
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x28], 0
jne 0x40a23c
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x18
jge 0x40a263
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x10]
je 0x40a263
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a3ed
add esp, 8
test eax, eax
je 0x40a263
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x1c
mov eax, 0xfffffffc
jmp 0x40a337
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 0
je 0x40a2e6
cmp dword [ebp - 0xc], 0
je 0x40a2e6
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x18]
push eax
call fcn.0040b9bc
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
neg eax
sbb eax, eax
and eax, 0x40
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
add edx, eax
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax], 0xb
setne cl
dec ecx
and ecx, 0x80
add edx, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
cmp dword [ebp - 0x24], 0
jne 0x40a321
cmp dword [ebp - 0xc], 0
je 0x40a327
cmp dword [ebp + 0xc], 4
jne 0x40a334
cmp dword [ebp - 0x1c], 0
jne 0x40a334
mov dword [ebp - 0x1c], 0xfffffffb
mov eax, dword [ebp - 0x1c]
pop esi
mov esp, ebp
pop ebp
ret