Function at 0x401250
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 0x402626
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x402626
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x402626
mov ebp, dword [eax]
test ebp, ebp
jne 0x401286
cmp dword [eax + 4], ebp
jne 0x402626
cmp dword [edi], 0xb
jne 0x401291
mov dword [edi], 0xc
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [edi]
cmp eax, 0x1c
push ebx
mov ebx, dword [edi + 0x30]
push esi
mov esi, dword [edi + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], 0
ja case.default.0x4012d0
lea ebx, [ebx]
jmp dword [eax*4 + 0x402634]
cmp dword [edi + 8], 0
jne 0x4012e8
mov dword [edi], 0xc
jmp 0x4024e6
cmp esi, 0x10
jae 0x401318
lea ecx, [ecx]
test edx, edx
je 0x402544
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 + 0x18], ebx
jb 0x4012f0
mov eax, dword [edi + 8]
test al, 2
je 0x40136a
cmp ebx, 0x8b1f
jne 0x40136a
push 0
xor edx, edx
xor ecx, ecx
call fcn.00402d00
add esp, 4
mov edx, 2
lea ecx, [esp + 0x20]
mov dword [edi + 0x14], eax
mov byte [esp + 0x20], 0x1f
mov byte [esp + 0x21], 0x8b
call fcn.00402d10
mov edx, dword [esp + 0x10]
xor ebx, ebx
mov dword [edi + 0x14], eax
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 1
jmp 0x4024e6
test al, 1
mov dword [edi + 0x10], 0
je 0x40140f
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 0x40140f
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x4013b1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x4024e0
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
add ecx, 8
sub esi, 4
cmp ecx, dword [edi + 0x1c]
mov dword [esp + 0x18], ebx
jbe 0x4013dc
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_window_size
mov edx, dword [esp + 0x10]
jmp 0x4024e0
xor eax, eax
xor ecx, ecx
xor edx, edx
call fcn.00402710
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 + 0x14], eax
mov dword [ecx + 0x30], eax
mov dword [esp + 0x18], ebx
xor esi, esi
jmp 0x4024e6
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [esp + 0x10]
jmp 0x4024e0
cmp esi, 0x10
jae 0x401450
test edx, edx
je 0x402544
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 + 0x18], ebx
jb 0x401428
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x401468
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x4024e0
test ebx, 0xe000
je 0x401480
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x4024e0
test ebx, 0x200
je 0x4014ab
mov eax, dword [edi + 0x14]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.00402d10
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x4014c0
cmp esi, 0x20
jae 0x4014e4
lea esp, [esp]
test edx, edx
je 0x402544
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 0x4014c0
test dword [edi + 0x10], 0x200
je 0x401522
mov eax, dword [edi + 0x14]
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.00402d10
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x401533
cmp esi, 0x10
jae 0x401557
test edx, edx
je 0x402544
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 0x401533
test dword [edi + 0x10], 0x200
je 0x401583
mov eax, dword [edi + 0x14]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.00402d10
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x4015fb
cmp esi, 0x10
jae 0x4015c4
nop
test edx, edx
je 0x402544
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 0x4015a0
test dword [edi + 0x10], 0x200
mov dword [edi + 0x38], ebx
je 0x4015f3
mov eax, dword [edi + 0x14]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.00402d10
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 5
mov eax, dword [edi + 0x10]
test eax, 0x400
je 0x401662
mov ecx, dword [edi + 0x38]
cmp ecx, edx
mov dword [esp + 0x14], ecx
jbe 0x40161c
mov ecx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x401658
test eax, 0x200
je 0x401648
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x401632
xor eax, eax
jmp 0x401645
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.00402d10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x38]
sub edx, ecx
add ebp, ecx
sub eax, ecx
mov dword [esp + 0x10], edx
mov dword [edi + 0x38], eax
cmp dword [edi + 0x38], 0
jne 0x402544
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x4016d4
test edx, edx
je 0x402544
xor ecx, ecx
jmp 0x401680
movzx eax, byte [ecx + ebp]
add ecx, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x401693
cmp ecx, edx
jb 0x401680
test dword [edi + 0x10], 0x2000
mov dword [esp + 0x14], ecx
je 0x4016c1
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x4016ab
xor eax, eax
jmp 0x4016be
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.00402d10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
sub edx, ecx
add ebp, ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x10], edx
jne 0x402544
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x401744
test edx, edx
je 0x402544
xor ecx, ecx
lea ecx, [ecx]
movzx eax, byte [ecx + ebp]
add ecx, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x401703
cmp ecx, edx
jb 0x4016f0
test dword [edi + 0x10], 0x2000
mov dword [esp + 0x14], ecx
je 0x401731
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x40171b
xor eax, eax
jmp 0x40172e
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.00402d10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
sub edx, ecx
add ebp, ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x10], edx
jne 0x402544
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x4017a0
cmp esi, 0x10
jae 0x401780
test edx, edx
je 0x402544
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 + 0x18], ebx
jb 0x401758
movzx ecx, word [edi + 0x14]
cmp ebx, ecx
je 0x401798
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x4024e0
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
push 0
xor edx, edx
xor ecx, ecx
call fcn.00402d00
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
mov dword [edi], 0xb
jmp 0x4024e6
cmp esi, 0x20
jae 0x4017f8
lea esp, [esp]
test edx, edx
je 0x402544
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 + 0x18], ebx
jb 0x4017d0
mov ecx, ebx
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
add ecx, eax
xor eax, eax
mov ah, byte [esp + 0x1a]
shl ecx, 8
shr ebx, 0x18
mov dword [edi], 0xa
add ecx, eax
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x40]
xor ebx, ebx
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
xor esi, esi
cmp dword [edi + 0xc], 0
je 0x4024fe
xor eax, eax
xor ecx, ecx
xor edx, edx
call fcn.00402710
mov edx, dword [esp + 0x40]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x401873
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
mov dword [esp + 0x18], ebx
jmp 0x4024e6
cmp esi, 3
jae 0x40189c
test edx, edx
je 0x402544
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 0x401878
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.0x4018b3
jmp dword [eax*4 + 0x4026a8]
shr ebx, 2
mov dword [edi], 0xd
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x4024e6
shr ebx, 2
mov dword [edi + 0x44], 0x428e70
mov dword [edi + 0x4c], 9
mov dword [edi + 0x48], 0x429670
mov dword [edi + 0x50], 5
mov dword [edi], 0x12
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x4024e6
shr ebx, 2
mov dword [edi], 0xf
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x4024e6
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edi], 0x1b
shr ebx, 2
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x4024e6
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
cmp esi, 0x20
mov dword [esp + 0x18], ebx
jae 0x40196f
test edx, edx
je 0x402544
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 + 0x18], ebx
jb 0x401947
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x401991
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x4024e0
xor ebx, ebx
mov dword [edi + 0x38], eax
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 0xe
mov eax, dword [edi + 0x38]
test eax, eax
mov dword [esp + 0x14], eax
je 0x402079
cmp eax, edx
jbe 0x4019bb
mov eax, edx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x4019c9
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x402544
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
call fcn.00415df0
mov eax, dword [esp + 0x20]
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 + 0x38], eax
jmp 0x4024e6
cmp esi, 0xe
jae 0x401a2b
test edx, edx
je 0x402544
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 0x401a07
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov eax, ebx
mov dword [edi + 0x58], 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 + 0x58], 0x11e
mov dword [edi + 0x5c], eax
mov dword [edi + 0x54], ecx
mov dword [esp + 0x18], ebx
ja 0x401b67
cmp eax, 0x1e
ja 0x401b67
mov dword [edi + 0x60], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x60]
cmp ecx, dword [edi + 0x54]
jae 0x401ae5
lea ebx, [ebx]
cmp esi, 3
jae 0x401ab9
test edx, edx
je 0x402544
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 0x401a95
mov eax, dword [edi + 0x60]
movzx eax, word [eax*2 + 0x4296f0]
movzx ecx, bl
and ecx, 7
mov word [edi + eax*2 + 0x68], cx
add dword [edi + 0x60], 1
mov ecx, dword [edi + 0x60]
shr ebx, 3
sub esi, 3
cmp ecx, dword [edi + 0x54]
mov dword [esp + 0x18], ebx
jb 0x401a90
mov eax, 0x13
cmp dword [edi + 0x60], eax
jae 0x401b19
xor ecx, ecx
jmp 0x401b00
mov edx, dword [edi + 0x60]
movzx edx, word [edx*2 + 0x4296f0]
mov word [edi + edx*2 + 0x68], cx
add dword [edi + 0x60], 1
cmp dword [edi + 0x60], eax
jb 0x401b00
lea eax, [edi + 0x528]
lea ecx, [edi + 0x64]
mov dword [ecx], eax
mov dword [edi + 0x44], eax
lea eax, [edi + 0x2e8]
push eax
push ecx
lea ecx, [edi + 0x68]
push ecx
lea edx, [edi + 0x4c]
push 0
mov ecx, 0x13
mov dword [edx], 7
call fcn.00402fe0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x401b77
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_code_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x4024e0
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x4024e0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x60], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
cmp dword [edi + 0x60], eax
jae 0x401dd9
jmp 0x401ba0
mov ecx, dword [edi + 0x4c]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x44]
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 + 0x14], eax
jbe 0x401c09
test edx, edx
je 0x402544
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x4c]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x44]
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 + 0x14], eax
ja 0x401bc5
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x401c6b
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x401c4a
nop
test edx, edx
je 0x402544
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 + 0x14]
movzx ecx, ah
cmp esi, ecx
mov dword [esp + 0x10], edx
jb 0x401c20
movzx ecx, ah
mov eax, dword [edi + 0x60]
shr ebx, cl
sub esi, ecx
mov cx, word [esp + 0x16]
mov word [edi + eax*2 + 0x68], cx
add dword [edi + 0x60], 1
mov dword [esp + 0x18], ebx
jmp 0x401dca
mov cx, word [esp + 0x16]
cmp cx, 0x10
jne 0x401ce1
movzx ecx, ah
lea eax, [ecx + 2]
cmp esi, eax
mov dword [esp + 0x2c], ecx
jae 0x401cae
test edx, edx
je 0x402544
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 0x401c84
mov eax, dword [edi + 0x60]
shr ebx, cl
sub esi, ecx
test eax, eax
mov dword [esp + 0x18], ebx
je 0x401e2e
movzx ecx, word [edi + eax*2 + 0x66]
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
sub esi, 2
jmp 0x401d90
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x2c], ecx
jne 0x401d37
lea eax, [ecx + 3]
cmp esi, eax
jae 0x401d1f
test edx, edx
je 0x402544
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 0x401cf5
shr ebx, cl
mov eax, ebx
and eax, 7
add eax, 3
mov dword [esp + 0x14], eax
shr ebx, 3
mov eax, 0xfffffffd
jmp 0x401d80
lea eax, [ecx + 7]
cmp esi, eax
jae 0x401d6a
mov edi, edi
test edx, edx
je 0x402544
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 0x401d40
shr ebx, cl
mov eax, ebx
and eax, 0x7f
add eax, 0xb
mov dword [esp + 0x14], eax
shr ebx, 7
mov eax, 0xfffffff9
sub eax, ecx
add esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
mov ecx, dword [edi + 0x60]
add ecx, eax
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
mov dword [esp + 0x18], ebx
cmp ecx, eax
ja 0x401e3e
cmp dword [esp + 0x14], 0
je 0x401dca
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x60]
sub dword [esp + 0x14], 1
mov word [edi + ecx*2 + 0x68], ax
add dword [edi + 0x60], 1
cmp dword [esp + 0x14], 0
jne 0x401db2
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
cmp dword [edi + 0x60], eax
jb 0x401ba0
cmp dword [edi], 0x1b
je 0x4024e6
lea eax, [edi + 0x528]
lea ecx, [edi + 0x64]
mov dword [ecx], eax
mov dword [edi + 0x44], eax
lea eax, [edi + 0x2e8]
push eax
push ecx
lea ecx, [edi + 0x68]
push ecx
mov ecx, dword [edi + 0x58]
lea edx, [edi + 0x4c]
push 1
mov dword [edx], 9
call fcn.00402fe0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x401e4e
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x4024e0
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x4024e0
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x4024e0
mov ecx, dword [edi + 0x64]
lea eax, [edi + 0x64]
mov dword [edi + 0x48], ecx
lea ecx, [edi + 0x2e8]
push ecx
push eax
mov eax, dword [edi + 0x58]
lea ecx, [edi + eax*2 + 0x68]
push ecx
mov ecx, dword [edi + 0x5c]
lea edx, [edi + 0x50]
push 2
mov dword [edx], 6
call fcn.00402fe0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x401e99
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_distances_set
mov edx, dword [esp + 0x10]
jmp 0x4024e0
mov edx, dword [esp + 0x10]
mov dword [edi], 0x12
cmp edx, 6
jb 0x401f0d
cmp dword [esp + 0x1c], 0x102
jb 0x401f0d
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], esi
call fcn.00402840
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [edi + 0x30]
mov esi, dword [edi + 0x34]
mov dword [esp + 0x24], edx
add esp, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebx
mov edx, eax
jmp 0x4024e6
mov ecx, dword [edi + 0x4c]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x44]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
jbe 0x401f78
test edx, edx
je 0x402544
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x4c]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x44]
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 + 0x14], eax
ja 0x401f34
test al, al
je 0x40204a
test al, 0xf0
jne 0x40204a
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 + 0x18], 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 + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x44]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x40203d
jmp 0x401fe0
test edx, edx
je 0x402544
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x18]
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 + 0x1a]
add eax, ecx
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x2c]
cmp eax, esi
ja 0x401fe0
movzx ecx, byte [esp + 0x19]
mov eax, dword [esp + 0x14]
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 + 0x18], ebx
mov dword [edi + 0x38], ecx
jne 0x402075
mov dword [edi], 0x17
jmp 0x4024e6
test al, 0x20
je 0x402084
mov dword [edi], 0xb
jmp 0x4024e6
test al, 0x40
je 0x402098
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x4024e0
and eax, 0xf
mov dword [edi + 0x40], eax
mov dword [edi], 0x13
mov eax, dword [edi + 0x40]
test eax, eax
je 0x4020ea
cmp esi, eax
jae 0x4020d4
nop
test edx, edx
je 0x402544
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 + 0x40]
mov dword [esp + 0x10], edx
jb 0x4020b0
mov ecx, dword [edi + 0x40]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
add dword [edi + 0x38], eax
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x14
mov ecx, dword [edi + 0x50]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x48]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
jbe 0x40215b
test edx, edx
je 0x402544
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x50]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x48]
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 + 0x14], eax
ja 0x402117
test al, 0xf0
jne 0x402220
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 + 0x18], 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 + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x48]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x402213
test edx, edx
je 0x402544
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x18]
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 + 0x1a]
add eax, ecx
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x2c]
cmp eax, esi
ja 0x4021b6
movzx ecx, byte [esp + 0x19]
mov eax, dword [esp + 0x14]
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 + 0x18], ebx
je 0x402248
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x4024e0
mov ecx, eax
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], eax
mov dword [edi], 0x15
mov eax, dword [edi + 0x40]
test eax, eax
je 0x4022a5
cmp esi, eax
jae 0x40228b
test edx, edx
je 0x402544
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 + 0x40]
mov dword [esp + 0x10], edx
jb 0x402267
mov ecx, dword [edi + 0x40]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
add dword [edi + 0x3c], eax
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x18], ebx
mov ecx, dword [edi + 0x24]
sub ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x28]
cmp dword [edi + 0x3c], ecx
jbe 0x4022c5
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x4024e0
mov dword [edi], 0x16
cmp dword [esp + 0x1c], 0
je 0x402544
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x3c]
cmp eax, ecx
jbe 0x402321
sub eax, ecx
mov ecx, dword [edi + 0x28]
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x402302
sub eax, ecx
mov ecx, dword [edi + 0x2c]
add ecx, dword [edi + 0x20]
mov dword [esp + 0x14], eax
sub ecx, eax
jmp 0x40230e
mov ecx, dword [edi + 0x2c]
sub ecx, eax
add ecx, dword [edi + 0x28]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x38]
cmp eax, ecx
mov dword [esp + 0x34], ecx
jbe 0x402336
mov eax, ecx
jmp 0x402332
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x402344
mov eax, ecx
mov dword [esp + 0x14], eax
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov dword [edi + 0x38], ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov cl, byte [ecx]
mov byte [eax], cl
mov ecx, 1
add dword [esp + 0x2c], ecx
add eax, ecx
sub dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jne 0x402353
cmp dword [edi + 0x38], 0
jne 0x4024e6
mov dword [edi], 0x12
jmp 0x4024e6
cmp dword [esp + 0x1c], 0
je 0x402544
mov eax, dword [esp + 0x24]
mov cl, byte [edi + 0x38]
mov byte [eax], cl
add eax, 1
sub dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
mov dword [edi], 0x12
jmp 0x4024e6
cmp dword [edi + 8], 0
je 0x402489
cmp esi, 0x20
jae 0x4023eb
test edx, edx
je 0x402544
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 + 0x18], ebx
jb 0x4023c3
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add dword [ecx + 0x14], eax
add dword [edi + 0x18], eax
test eax, eax
mov dword [esp + 0x28], eax
je 0x402441
cmp dword [edi + 0x10], 0
mov ecx, dword [esp + 0x24]
je 0x402425
sub ecx, eax
mov eax, dword [edi + 0x14]
jne 0x40241a
xor eax, eax
jmp 0x402437
mov edx, dword [esp + 0x28]
call fcn.00402d10
jmp 0x402433
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 0x14]
sub ecx, eax
call fcn.00402710
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x14], 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 0x40246f
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [edi + 0x14]
je 0x402481
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x4024e0
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x40252c
cmp dword [edi + 0x10], 0
je 0x40252c
cmp esi, 0x20
jae 0x4024d0
test edx, edx
je 0x402544
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 + 0x18], ebx
jb 0x4024a8
cmp ebx, dword [edi + 0x18]
je 0x402528
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1b
mov eax, dword [edi]
cmp eax, 0x1c
jbe switch.0x004012d0
mov eax, 0xfffffffe
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x34], esi
pop esi
mov dword [edi + 0x30], 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 0x402544
mov dword [esp + 0x30], 0xfffffffd
cmp dword [edi + 0x20], 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 + 0x30], ebx
mov dword [edi + 0x34], esi
jne 0x402574
cmp dword [edi], 0x18
jge 0x402598
mov edx, ecx
cmp dword [esp + 0x28], edx
je 0x402598
push eax
mov eax, dword [esp + 0x2c]
call fcn.00401150
add esp, 4
test eax, eax
je 0x402598
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 eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
sub edx, dword [esi + 0x10]
sub eax, dword [esi + 4]
add dword [esi + 0x14], edx
add dword [esi + 8], eax
add dword [edi + 0x18], edx
cmp dword [edi + 8], 0
je 0x4025ea
test edx, edx
je 0x4025ea
cmp dword [edi + 0x10], 0
mov ecx, dword [esi + 0xc]
je 0x4025d8
sub ecx, edx
mov eax, dword [edi + 0x14]
jne 0x4025d1
xor eax, eax
jmp 0x4025e4
call fcn.00402d10
jmp 0x4025e4
sub ecx, edx
mov eax, edx
mov edx, dword [edi + 0x14]
call fcn.00402710
mov dword [edi + 0x14], 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 + 0x34]
test eax, eax
mov dword [esi + 0x2c], ecx
jne 0x4024f6
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