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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c
test eax, eax
push ebp
push edi
je 0x402e5f
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x402e5f
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x402e5f
mov ebp, dword [eax]
test ebp, ebp
jne 0x401926
cmp dword [eax + 4], ebp
jne 0x402e5f
cmp dword [edi], 0xb
jne 0x401931
mov dword [edi], 0xc
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x10]
push ebx
mov ebx, dword [edi + 0x38]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [edi]
cmp ecx, 0x1c
push esi
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], 0
jbe switch.0x00401977
mov eax, 0xfffffffe
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
jmp dword [ecx*4 + 0x402e6c]
cmp dword [edi + 8], 0
jne 0x40198f
mov dword [edi], 0xc
jmp 0x402d1e
cmp esi, 0x10
jae 0x4019bc
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
jb 0x401994
test byte [edi + 8], 2
je 0x401a0d
cmp ebx, 0x8b1f
jne 0x401a0d
push 0
xor edx, edx
xor ecx, ecx
call fcn.00403ab0
add esp, 4
mov edx, 2
lea ecx, [esp + 0x20]
mov dword [edi + 0x18], eax
mov byte [esp + 0x20], 0x1f
mov byte [esp + 0x21], 0x8b
call fcn.00403ac0
mov edx, dword [esp + 0x10]
xor ebx, ebx
mov dword [edi + 0x18], eax
mov dword [esp + 0x14], ebx
xor esi, esi
mov dword [edi], 1
jmp 0x402d1e
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [edi + 0x10], 0
je 0x401a22
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x401ad0
movzx eax, bl
shl eax, 8
mov ecx, ebx
shr ecx, 8
add eax, ecx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
jne 0x401ad0
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x401a68
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x402d18
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
add ecx, 8
sub esi, 4
cmp ecx, dword [edi + 0x24]
mov dword [esp + 0x14], ebx
jbe 0x401a93
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], str.invalid_window_size
jmp 0x402d18
mov edx, 1
shl edx, cl
xor eax, eax
xor ecx, ecx
mov dword [edi + 0x14], edx
xor edx, edx
call fcn.00403440
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [edi], ebx
xor ebx, ebx
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [esp + 0x14], ebx
xor esi, esi
jmp 0x402d1e
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [esp + 0x10]
jmp 0x402d18
cmp esi, 0x10
jae 0x401b18
lea esp, [esp]
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
jb 0x401af0
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x401b30
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x402d18
test ebx, 0xe000
je 0x401b48
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x402d18
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401b59
mov ecx, ebx
shr ecx, 8
and ecx, 1
mov dword [eax], ecx
test dword [edi + 0x10], 0x200
je 0x401b85
mov eax, dword [edi + 0x18]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.00403ac0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x401b96
cmp esi, 0x20
jae 0x401bba
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
jb 0x401b96
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401bc4
mov dword [eax + 4], ebx
test dword [edi + 0x10], 0x200
je 0x401c02
mov eax, dword [edi + 0x18]
mov ecx, ebx
mov edx, ebx
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], cl
mov byte [esp + 0x22], dl
shr ebx, 0x18
mov edx, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x23], bl
call fcn.00403ac0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x401c13
cmp esi, 0x10
jae 0x401c37
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
jb 0x401c13
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401c54
mov ecx, ebx
and ecx, 0xff
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x20]
mov eax, ebx
shr eax, 8
mov dword [ecx + 0xc], eax
test dword [edi + 0x10], 0x200
je 0x401c80
mov eax, dword [edi + 0x18]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.00403ac0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
xor esi, esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x401d07
cmp esi, 0x10
jae 0x401cc4
lea esp, [esp]
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
jb 0x401ca0
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [edi + 0x40], ebx
je 0x401cd1
mov dword [eax + 0x14], ebx
test dword [edi + 0x10], 0x200
je 0x401cfd
mov eax, dword [edi + 0x18]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.00403ac0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
xor esi, esi
jmp 0x401d15
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401d15
mov dword [eax + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x401dc8
mov ecx, dword [edi + 0x40]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jbe 0x401d39
mov ecx, edx
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x401dbe
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401d89
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 0x34], eax
je 0x401d89
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x14]
sub eax, dword [edi + 0x40]
mov edx, dword [edi + 0x20]
mov edx, dword [edx + 0x18]
add ecx, eax
cmp ecx, edx
jbe 0x401d6c
sub edx, eax
jmp 0x401d70
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
push edx
add ecx, eax
push ebp
push ecx
call fcn.00406ce0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add esp, 0xc
test dword [edi + 0x10], 0x200
je 0x401db3
test ebp, ebp
mov eax, dword [edi + 0x18]
jne 0x401d9d
xor eax, eax
jmp 0x401db0
mov edx, dword [esp + 0x18]
mov ecx, ebp
call fcn.00403ac0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
sub edx, ecx
add ebp, ecx
sub dword [edi + 0x40], ecx
mov dword [esp + 0x10], edx
cmp dword [edi + 0x40], 0
jne 0x402d78
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x401e7a
test edx, edx
je 0x402d78
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + ebp]
add eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [esp + 0x2c], ecx
je 0x401e2c
mov ecx, dword [eax + 0x1c]
test ecx, ecx
mov dword [esp + 0x34], ecx
je 0x401e2c
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x401e2c
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x2c]
mov byte [edx + ecx], al
add dword [edi + 0x40], 1
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x18]
je 0x401e3b
cmp eax, edx
jb 0x401df0
test dword [edi + 0x10], 0x200
je 0x401e65
test ebp, ebp
mov eax, dword [edi + 0x18]
jne 0x401e4f
xor eax, eax
jmp 0x401e5e
mov edx, dword [esp + 0x18]
mov ecx, ebp
call fcn.00403ac0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x18]
sub edx, eax
add ebp, eax
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x10], edx
jne 0x402d78
jmp 0x401e88
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401e88
mov dword [eax + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x401f3a
test edx, edx
je 0x402d78
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + ebp]
add eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [esp + 0x2c], ecx
je 0x401eec
mov ecx, dword [eax + 0x24]
test ecx, ecx
mov dword [esp + 0x34], ecx
je 0x401eec
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x401eec
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x2c]
mov byte [edx + ecx], al
add dword [edi + 0x40], 1
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x18]
je 0x401efb
cmp eax, edx
jb 0x401eb0
test dword [edi + 0x10], 0x200
je 0x401f25
test ebp, ebp
mov eax, dword [edi + 0x18]
jne 0x401f0f
xor eax, eax
jmp 0x401f1e
mov edx, dword [esp + 0x18]
mov ecx, ebp
call fcn.00403ac0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x18]
sub edx, eax
add ebp, eax
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x10], edx
jne 0x402d78
jmp 0x401f48
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401f48
mov dword [eax + 0x24], 0
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x401fa8
cmp esi, 0x10
jae 0x401f88
lea esp, [esp]
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
jb 0x401f60
movzx ecx, word [edi + 0x18]
cmp ebx, ecx
je 0x401fa0
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x402d18
xor ebx, ebx
mov dword [esp + 0x14], ebx
xor esi, esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x401fc5
mov ecx, dword [edi + 0x10]
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov edx, dword [edi + 0x20]
mov dword [edx + 0x30], 1
push 0
xor edx, edx
xor ecx, ecx
call fcn.00403ab0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [edi], 0xb
jmp 0x402d1e
cmp esi, 0x20
jae 0x40201d
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
jb 0x401ff1
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], edx
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, ebx
and ecx, 0xff00
mov esi, ebx
shl esi, 0x10
add ecx, esi
shl ecx, 8
add ecx, edx
mov edx, dword [esp + 0x34]
shr ebx, 0x18
add ecx, ebx
xor ebx, ebx
mov dword [edi + 0x18], ecx
mov dword [eax + 0x30], ecx
xor esi, esi
mov dword [edi], 0xa
cmp dword [edi + 0xc], 0
je 0x402d36
xor eax, eax
xor edx, edx
xor ecx, ecx
call fcn.00403440
mov edx, dword [esp + 0x40]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x40209b
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
mov dword [esp + 0x14], ebx
jmp 0x402d1e
cmp esi, 3
jae 0x4020c4
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 3
mov dword [esp + 0x10], edx
jb 0x4020a0
mov ecx, ebx
shr ebx, 1
mov eax, ebx
and ecx, 1
and eax, 3
sub esi, 1
cmp eax, 3
mov dword [edi + 4], ecx
ja case.default.0x4020db
jmp dword [eax*4 + 0x402ee0]
shr ebx, 2
mov dword [edi], 0xd
mov dword [esp + 0x14], ebx
sub esi, 2
jmp 0x402d1e
shr ebx, 2
mov dword [edi + 0x4c], 0x40ca78
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x40d278
mov dword [edi + 0x58], 5
mov dword [edi], 0x12
mov dword [esp + 0x14], ebx
sub esi, 2
jmp 0x402d1e
shr ebx, 2
mov dword [edi], 0xf
mov dword [esp + 0x14], ebx
sub esi, 2
jmp 0x402d1e
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edi], 0x1b
shr ebx, 2
mov dword [esp + 0x14], ebx
sub esi, 2
jmp 0x402d1e
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
cmp esi, 0x20
mov dword [esp + 0x14], ebx
jae 0x402198
nop
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
jb 0x402170
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x4021ba
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x402d18
xor ebx, ebx
mov dword [edi + 0x40], eax
mov dword [esp + 0x14], ebx
xor esi, esi
mov dword [edi], 0xe
mov eax, dword [edi + 0x40]
test eax, eax
mov dword [esp + 0x18], eax
je 0x402879
cmp eax, edx
jbe 0x4021e4
mov eax, edx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x4021f2
mov eax, ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x402d78
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
call fcn.00406ce0
mov eax, dword [esp + 0x24]
sub dword [esp + 0x1c], eax
sub dword [esp + 0x28], eax
add dword [esp + 0x30], eax
mov edx, dword [esp + 0x1c]
add esp, 0xc
add ebp, eax
sub dword [edi + 0x40], eax
jmp 0x402d1e
cmp esi, 0xe
jae 0x402254
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0xe
mov dword [esp + 0x10], edx
jb 0x402230
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov eax, ebx
mov dword [edi + 0x60], ecx
shr ebx, 5
mov ecx, ebx
and eax, 0x1f
and ecx, 0xf
add eax, 1
add ecx, 4
shr ebx, 4
sub esi, 0xe
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x64], eax
mov dword [edi + 0x5c], ecx
mov dword [esp + 0x14], ebx
ja 0x402385
cmp eax, 0x1e
ja 0x402385
mov dword [edi + 0x68], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x68]
cmp ecx, dword [edi + 0x5c]
jae 0x402308
cmp esi, 3
jae 0x4022dc
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 3
mov dword [esp + 0x10], edx
jb 0x4022b8
mov eax, dword [edi + 0x68]
movzx eax, word [eax*2 + 0x40d2f8]
movzx ecx, bl
and ecx, 7
mov word [edi + eax*2 + 0x70], cx
add dword [edi + 0x68], 1
mov ecx, dword [edi + 0x68]
shr ebx, 3
sub esi, 3
cmp ecx, dword [edi + 0x5c]
mov dword [esp + 0x14], ebx
jb 0x4022b3
mov eax, 0x13
cmp dword [edi + 0x68], eax
jae 0x402339
xor ecx, ecx
jmp 0x402320
mov edx, dword [edi + 0x68]
movzx edx, word [edx*2 + 0x40d2f8]
mov word [edi + edx*2 + 0x70], cx
add dword [edi + 0x68], 1
cmp dword [edi + 0x68], eax
jb 0x402320
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea edx, [edi + 0x2f0]
push edx
lea eax, [edi + 0x54]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [edi + 0x70]
push eax
push 0
call fcn.00402f70
mov edx, dword [esp + 0x28]
add esp, 0x18
test eax, eax
mov dword [esp + 0x30], eax
je 0x402395
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_code_lengths_set
jmp 0x402d18
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x402d18
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jae 0x4025d6
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x18], eax
jbe 0x40241a
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x18], eax
ja 0x4023d6
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x40247b
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x40245a
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
mov eax, dword [esp + 0x18]
movzx ecx, ah
cmp esi, ecx
mov dword [esp + 0x10], edx
jb 0x402430
movzx ecx, ah
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
mov cx, word [esp + 0x1a]
mov word [edi + eax*2 + 0x70], cx
add dword [edi + 0x68], 1
mov dword [esp + 0x14], ebx
jmp 0x4025c7
mov cx, word [esp + 0x1a]
cmp cx, 0x10
jne 0x4024ed
movzx ecx, ah
lea eax, [ecx + 2]
cmp esi, eax
mov dword [esp + 0x2c], ecx
jae 0x4024be
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub edx, 1
add esi, 8
add ebx, eax
lea eax, [ecx + 2]
add ebp, 1
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x402494
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
test eax, eax
mov dword [esp + 0x14], ebx
je 0x40262d
movzx ecx, word [edi + eax*2 + 0x6e]
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
mov dword [esp + 0x2c], ecx
sub esi, 2
jmp 0x40258e
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x2c], ecx
jne 0x40253f
lea eax, [ecx + 3]
cmp esi, eax
jae 0x40252b
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub edx, 1
add esi, 8
add ebx, eax
lea eax, [ecx + 3]
add ebp, 1
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x402501
shr ebx, cl
mov edx, 0xfffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x402582
lea eax, [ecx + 7]
cmp esi, eax
jae 0x402570
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub edx, 1
add esi, 8
add ebx, eax
lea eax, [ecx + 7]
add ebp, 1
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x402546
shr ebx, cl
mov edx, 0xfffffff9
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
sub edx, ecx
add esi, edx
mov dword [esp + 0x2c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [edi + 0x68]
add ecx, dword [edi + 0x60]
add edx, eax
cmp edx, ecx
mov dword [esp + 0x14], ebx
ja 0x40263d
test eax, eax
je 0x4025c3
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx]
mov edx, dword [edi + 0x68]
sub eax, 1
mov word [edi + edx*2 + 0x70], cx
add dword [edi + 0x68], 1
test eax, eax
jne 0x4025b0
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jb 0x4023b1
cmp dword [edi], 0x1b
je 0x402d1e
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea edx, [edi + 0x2f0]
push edx
lea eax, [edi + 0x54]
push eax
push ecx
mov dword [eax], 9
mov eax, dword [edi + 0x60]
push eax
lea ecx, [edi + 0x70]
push ecx
push 1
call fcn.00402f70
add esp, 0x18
test eax, eax
mov dword [esp + 0x30], eax
je 0x402651
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x402d18
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x402d18
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_bit_length_repeat
mov edx, dword [esp + 0x10]
jmp 0x402d18
mov eax, dword [edi + 0x6c]
lea ecx, [edi + 0x6c]
mov dword [edi + 0x50], eax
lea edx, [edi + 0x2f0]
push edx
mov edx, dword [edi + 0x60]
lea eax, [edi + 0x58]
push eax
push ecx
mov ecx, dword [edi + 0x64]
mov dword [eax], 6
push ecx
lea eax, [edi + edx*2 + 0x70]
push eax
push 2
call fcn.00402f70
mov edx, dword [esp + 0x28]
add esp, 0x18
test eax, eax
mov dword [esp + 0x30], eax
je 0x40269e
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_distances_set
jmp 0x402d18
mov dword [edi], 0x12
cmp edx, 6
jb 0x40270c
cmp dword [esp + 0x1c], 0x102
jb 0x40270c
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x10]
push ecx
push eax
mov dword [eax], ebp
mov dword [eax + 4], edx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
call fcn.004036c0
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov ebx, dword [edi + 0x38]
mov ebp, dword [eax]
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
jmp 0x402d1e
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x18], eax
jbe 0x402777
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x18], eax
ja 0x402733
test al, al
je 0x40284a
test al, 0xf0
jne 0x40284a
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x2c], ecx
movzx ecx, al
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub eax, 1
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x18]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x18], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x40283d
lea ebx, [ebx]
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x14]
sub edx, 1
add esi, 8
add ebx, eax
movzx eax, ch
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x16]
add eax, ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x18], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x2c]
cmp eax, esi
ja 0x4027e0
movzx ecx, byte [esp + 0x15]
mov eax, dword [esp + 0x18]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x2c], ecx
mov ecx, eax
shr ecx, 0x10
test al, al
mov dword [esp + 0x14], ebx
mov dword [edi + 0x40], ecx
jne 0x402875
mov dword [edi], 0x17
jmp 0x402d1e
test al, 0x20
je 0x402884
mov dword [edi], 0xb
jmp 0x402d1e
test al, 0x40
je 0x402898
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x402d18
and eax, 0xf
mov dword [edi + 0x48], eax
mov dword [edi], 0x13
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4028ea
cmp esi, eax
jae 0x4028d4
nop
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, dword [edi + 0x48]
mov dword [esp + 0x10], edx
jb 0x4028b0
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
add dword [edi + 0x40], eax
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x14
mov ecx, dword [edi + 0x58]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x18], eax
jbe 0x40295b
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x58]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x18], eax
ja 0x402917
test al, 0xf0
jne 0x402a20
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x2c], ecx
movzx ecx, al
add ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
sub eax, 1
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x18]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x18], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x402a13
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x14]
sub edx, 1
add esi, 8
add ebx, eax
movzx eax, ch
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x16]
add eax, ecx
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x18], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x2c]
cmp eax, esi
ja 0x4029b6
movzx ecx, byte [esp + 0x15]
mov eax, dword [esp + 0x18]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
test al, 0x40
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ebx
je 0x402a48
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x402d18
mov ecx, eax
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 0x44], ecx
mov dword [edi], 0x15
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x402ab2
cmp esi, ecx
jae 0x402a94
jmp 0x402a70
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, dword [edi + 0x48]
mov dword [esp + 0x10], edx
jb 0x402a70
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
add dword [edi + 0x44], eax
mov eax, dword [esp + 0x40]
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + 0x44]
cmp ecx, dword [edi + 0x14]
jbe 0x402ac6
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x402d18
mov eax, dword [edi + 0x2c]
sub eax, dword [esp + 0x1c]
add eax, dword [esp + 0x28]
cmp ecx, eax
jbe 0x402ae5
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_distance_too_far_back
jmp 0x402d18
mov dword [edi], 0x16
cmp dword [esp + 0x1c], 0
je 0x402d78
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x44]
cmp eax, ecx
jbe 0x402b41
sub eax, ecx
mov ecx, dword [edi + 0x30]
cmp eax, ecx
mov dword [esp + 0x18], eax
jbe 0x402b22
sub eax, ecx
mov ecx, dword [edi + 0x34]
add ecx, dword [edi + 0x28]
mov dword [esp + 0x18], eax
sub ecx, eax
jmp 0x402b2e
mov ecx, dword [edi + 0x34]
sub ecx, eax
add ecx, dword [edi + 0x30]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x40]
cmp eax, ecx
mov dword [esp + 0x34], ecx
jbe 0x402b56
mov eax, ecx
jmp 0x402b52
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x402b64
mov eax, ecx
mov dword [esp + 0x18], eax
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x40], ecx
jmp 0x402b80
mov ecx, dword [esp + 0x2c]
mov cl, byte [ecx]
add dword [esp + 0x2c], 1
mov byte [eax], cl
add eax, 1
sub dword [esp + 0x18], 1
jne 0x402b80
cmp dword [edi + 0x40], 0
mov dword [esp + 0x24], eax
jne 0x402d1e
mov dword [edi], 0x12
jmp 0x402d1e
cmp dword [esp + 0x1c], 0
je 0x402d78
mov eax, dword [esp + 0x24]
mov cl, byte [edi + 0x40]
mov byte [eax], cl
add eax, 1
sub dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
mov dword [edi], 0x12
jmp 0x402d1e
cmp dword [edi + 8], 0
je 0x402cba
cmp esi, 0x20
jae 0x402c18
lea ebx, [ebx]
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
jb 0x402bf0
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add dword [ecx + 0x14], eax
add dword [edi + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], eax
je 0x402c72
cmp dword [edi + 0x10], 0
je 0x402c52
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [edi + 0x18]
jne 0x402c47
xor eax, eax
jmp 0x402c68
mov edx, dword [esp + 0x28]
call fcn.00403ac0
jmp 0x402c64
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x18]
sub edx, eax
call fcn.00403440
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
cmp dword [edi + 0x10], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, ebx
jne 0x402ca0
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [edi + 0x18]
je 0x402cb2
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x402d18
xor ebx, ebx
mov dword [esp + 0x14], ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x402d60
cmp dword [edi + 0x10], 0
je 0x402d60
cmp esi, 0x20
jae 0x402d08
lea esp, [esp]
test edx, edx
je 0x402d78
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
jb 0x402ce0
cmp ebx, dword [edi + 0x1c]
je 0x402d5c
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1b
mov ecx, dword [edi]
cmp ecx, 0x1c
jbe 0x401973
pop esi
pop ebx
pop edi
mov eax, 0xfffffffe
pop ebp
add esp, 0x2c
ret
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x3c], esi
pop esi
mov dword [edi + 0x38], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
pop ebx
mov dword [eax], ebp
pop edi
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov eax, 2
pop ebp
add esp, 0x2c
ret
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1a
mov dword [esp + 0x30], 1
jmp 0x402d78
mov dword [esp + 0x30], 0xfffffffd
cmp dword [edi + 0x28], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov dword [eax], ebp
mov dword [eax + 4], edx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
jne 0x402da8
cmp dword [edi], 0x18
jge 0x402dcc
mov edx, ecx
cmp dword [esp + 0x28], edx
je 0x402dcc
push eax
mov eax, dword [esp + 0x2c]
call fcn.00401800
add esp, 4
test eax, eax
je 0x402dcc
mov dword [edi], 0x1c
pop esi
pop ebx
pop edi
mov eax, 0xfffffffc
pop ebp
add esp, 0x2c
ret
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
sub eax, dword [esi + 0x10]
sub ecx, dword [esi + 4]
add dword [esi + 0x14], eax
add dword [esi + 8], ecx
add dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x402e23
test eax, eax
je 0x402e23
cmp dword [edi + 0x10], 0
je 0x402e10
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov ebx, dword [edi + 0x18]
jne 0x402e05
xor eax, eax
jmp 0x402e1d
mov edx, eax
mov eax, ebx
call fcn.00403ac0
jmp 0x402e1d
mov edx, dword [esi + 0xc]
mov ecx, dword [edi + 0x18]
sub edx, eax
call fcn.00403440
mov dword [edi + 0x18], eax
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x30]
neg ecx
sbb ecx, ecx
and ecx, 0x40
xor edx, edx
cmp dword [edi], 0xb
setne dl
sub edx, 1
and edx, 0x80
add ecx, edx
add ecx, dword [edi + 0x3c]
test eax, eax
mov dword [esi + 0x2c], ecx
jne 0x40196b
pop esi
pop ebx
pop edi
mov eax, 0xfffffffb
pop ebp
add esp, 0x2c
ret
pop edi
mov eax, 0xfffffffe
pop ebp
add esp, 0x2c
ret