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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
push esi
test eax, eax
je 0x404ab3
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x404ab3
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x404ab3
mov edx, dword [eax]
test edx, edx
jne 0x4036a7
cmp dword [eax + 4], edx
jne 0x404ab3
cmp dword [esi], 0xb
jne 0x4036b2
mov dword [esi], 0xc
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [esi + 0x38]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov eax, dword [esi]
push edi
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], 0
cmp eax, 0x1e
ja case.default.0x4036e4
jmp dword [eax*4 + 0x404ac0]
cmp dword [esi + 8], 0
jne 0x4036fc
mov dword [esi], 0xc
jmp 0x404957
cmp edi, 0x10
jae 0x403723
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x10
jb 0x403701
test byte [esi + 8], 2
je 0x403768
cmp ebx, 0x8b1f
jne 0x403768
push 0
xor edx, edx
xor ecx, ecx
call fcn.00405220
add esp, 4
mov edx, 2
lea ecx, [ebp - 0x18]
mov dword [esi + 0x18], eax
mov word [ebp - 0x18], bx
call fcn.00405240
mov edx, dword [ebp - 8]
xor ebx, ebx
mov dword [esi + 0x18], eax
xor edi, edi
mov dword [esi], 1
jmp 0x404957
mov eax, dword [esi + 0x20]
mov dword [esi + 0x10], 0
test eax, eax
je 0x40377d
mov dword [eax + 0x30], 0xffffffff
test byte [esi + 8], 1
je 0x403826
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 0x403826
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x4037c1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x404951
mov eax, dword [esi + 0x24]
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
sub edi, 4
add ecx, 8
test eax, eax
jne 0x403810
mov dword [esi + 0x24], ecx
mov edx, 1
shl edx, cl
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x14], edx
xor edx, edx
call fcn.00404ba0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [esi], ebx
xor ebx, ebx
mov dword [esi + 0x18], eax
mov dword [ecx + 0x30], eax
xor edi, edi
jmp 0x404957
cmp ecx, eax
jbe 0x4037d9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x18], str.invalid_window_size
jmp 0x404951
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [ebp - 8]
jmp 0x404951
cmp edi, 0x10
jae 0x403862
lea ecx, [ecx]
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x10
jb 0x403840
mov dword [esi + 0x10], ebx
cmp bl, 8
je 0x403879
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x404951
test ebx, 0xe000
je 0x403890
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x404951
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4038a1
mov ecx, ebx
shr ecx, 8
and ecx, 1
mov dword [eax], ecx
test dword [esi + 0x10], 0x200
je 0x4038c9
mov eax, dword [esi + 0x18]
mov byte [ebp - 0x18], bl
shr ebx, 8
mov edx, 2
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x17], bl
call fcn.00405240
mov edx, dword [ebp - 8]
mov dword [esi + 0x18], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 2
jmp 0x4038e0
cmp edi, 0x20
jae 0x403902
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x20
jb 0x4038e0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x40390c
mov dword [eax + 4], ebx
test dword [esi + 0x10], 0x200
je 0x403944
mov eax, dword [esi + 0x18]
mov ecx, ebx
mov edx, ebx
shr ecx, 8
shr edx, 0x10
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], cl
mov byte [ebp - 0x16], dl
shr ebx, 0x18
mov edx, 4
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x15], bl
call fcn.00405240
mov edx, dword [ebp - 8]
mov dword [esi + 0x18], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 3
jmp 0x403955
cmp edi, 0x10
jae 0x403977
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x10
jb 0x403955
mov eax, dword [esi + 0x20]
test eax, eax
je 0x403994
mov ecx, ebx
and ecx, 0xff
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x20]
mov eax, ebx
shr eax, 8
mov dword [ecx + 0xc], eax
test dword [esi + 0x10], 0x200
je 0x4039bc
mov eax, dword [esi + 0x18]
mov byte [ebp - 0x18], bl
shr ebx, 8
mov edx, 2
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x17], bl
call fcn.00405240
mov edx, dword [ebp - 8]
mov dword [esi + 0x18], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 4
test dword [esi + 0x10], 0x400
je 0x403a31
cmp edi, 0x10
jae 0x4039f6
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x10
jb 0x4039d4
mov eax, dword [esi + 0x20]
mov dword [esi + 0x40], ebx
test eax, eax
je 0x403a03
mov dword [eax + 0x14], ebx
test dword [esi + 0x10], 0x200
je 0x403a2b
mov eax, dword [esi + 0x18]
mov byte [ebp - 0x18], bl
shr ebx, 8
mov edx, 2
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x17], bl
call fcn.00405240
mov edx, dword [ebp - 8]
mov dword [esi + 0x18], eax
xor ebx, ebx
xor edi, edi
jmp 0x403a3f
mov eax, dword [esi + 0x20]
test eax, eax
je 0x403a3f
mov dword [eax + 0x10], 0
mov dword [esi], 5
test dword [esi + 0x10], 0x400
je 0x403ae8
mov ecx, dword [esi + 0x40]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
cmp ecx, eax
jbe 0x403a64
mov ecx, eax
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x403ade
mov eax, dword [esi + 0x20]
test eax, eax
je 0x403aab
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x403aab
mov edx, dword [esi + 0x20]
mov eax, dword [edx + 0x14]
sub eax, dword [esi + 0x40]
mov edx, dword [edx + 0x18]
add ecx, eax
cmp ecx, edx
jbe 0x403a8f
sub edx, eax
jmp 0x403a92
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0x2c]
push ecx
add edx, eax
push edx
call fcn.0040ff80
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
add esp, 0xc
test dword [esi + 0x10], 0x200
je 0x403ad3
mov eax, dword [esi + 0x18]
test edx, edx
jne 0x403abf
xor eax, eax
jmp 0x403ad0
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.00405240
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [esi + 0x18], eax
sub dword [ebp - 4], ecx
add edx, ecx
sub dword [esi + 0x40], ecx
mov dword [ebp - 8], edx
cmp dword [esi + 0x40], 0
jne 0x4049b1
mov dword [esi + 0x40], 0
mov dword [esi], 6
test dword [esi + 0x10], 0x800
je 0x403b8d
cmp dword [ebp - 4], 0
je 0x4049b1
xor eax, eax
mov edi, edi
movzx ecx, byte [eax + edx]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x403b43
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x403b43
mov ecx, dword [esi + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x403b43
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp - 0x1c]
mov byte [edx + ecx], al
inc dword [esi + 0x40]
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc]
je 0x403b51
cmp eax, dword [ebp - 4]
jb 0x403b10
test dword [esi + 0x10], 0x200
je 0x403b79
mov eax, dword [esi + 0x18]
test edx, edx
jne 0x403b65
xor eax, eax
jmp 0x403b73
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.00405240
mov edx, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add edx, eax
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 8], edx
jne 0x4049b1
jmp 0x403b9b
mov eax, dword [esi + 0x20]
test eax, eax
je 0x403b9b
mov dword [eax + 0x1c], 0
mov dword [esi + 0x40], 0
mov dword [esi], 7
test dword [esi + 0x10], 0x1000
je 0x403c3e
cmp dword [ebp - 4], 0
je 0x4049b1
xor eax, eax
movzx ecx, byte [eax + edx]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x403bf4
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x403bf4
mov ecx, dword [esi + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x403bf4
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp - 0x1c]
mov byte [edx + ecx], al
inc dword [esi + 0x40]
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc]
je 0x403c02
cmp eax, dword [ebp - 4]
jb 0x403bc1
test dword [esi + 0x10], 0x200
je 0x403c2a
mov eax, dword [esi + 0x18]
test edx, edx
jne 0x403c16
xor eax, eax
jmp 0x403c24
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.00405240
mov edx, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add edx, eax
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 8], edx
jne 0x4049b1
jmp 0x403c4c
mov eax, dword [esi + 0x20]
test eax, eax
je 0x403c4c
mov dword [eax + 0x24], 0
mov dword [esi], 8
test dword [esi + 0x10], 0x200
je 0x403c9d
cmp edi, 0x10
jae 0x403c82
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x10
jb 0x403c60
movzx ecx, word [esi + 0x18]
cmp ebx, ecx
je 0x403c99
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x404951
xor ebx, ebx
xor edi, edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x403cba
mov ecx, dword [esi + 0x10]
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov edx, dword [esi + 0x20]
mov dword [edx + 0x30], 1
push 0
xor edx, edx
xor ecx, ecx
call fcn.00405220
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
add esp, 4
mov dword [esi + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [esi], 0xb
jmp 0x404957
cmp edi, 0x20
jae 0x403d06
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x20
jb 0x403ce4
mov ecx, ebx
mov eax, ebx
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, ebx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add eax, ecx
mov ecx, dword [ebp + 8]
shr ebx, 0x18
add eax, ebx
xor ebx, ebx
mov dword [esi + 0x18], eax
mov dword [ecx + 0x30], eax
xor edi, edi
mov dword [esi], 0xa
cmp dword [esi + 0xc], 0
je 0x40496e
xor eax, eax
xor edx, edx
xor ecx, ecx
call fcn.00404ba0
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], eax
mov edx, dword [ebp - 8]
mov dword [esi + 0x18], eax
mov dword [esi], 0xb
cmp dword [esi + 4], 0
je 0x403d7d
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x1a
jmp 0x404957
cmp edi, 3
jae 0x403da4
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 3
jb 0x403d82
mov ecx, ebx
shr ebx, 1
mov eax, ebx
and ecx, 1
and eax, 3
mov dword [esi + 4], ecx
cmp eax, 3
ja case.default.0x403db8
jmp dword [eax*4 + 0x404b3c]
shr ebx, 2
mov dword [esi], 0xd
sub edi, 3
jmp 0x404957
shr ebx, 2
mov dword [esi + 0x4c], 0x4561c8
mov dword [esi + 0x54], 9
mov dword [esi + 0x50], 0x4569c8
mov dword [esi + 0x58], 5
mov dword [esi], 0x13
sub edi, 3
jmp 0x404957
shr ebx, 2
mov dword [esi], 0x10
sub edi, 3
jmp 0x404957
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [esi], 0x1d
shr ebx, 2
sub edi, 3
jmp 0x404957
mov ecx, edi
and ecx, 7
sub edi, ecx
shr ebx, cl
cmp edi, 0x20
jae 0x403e62
jmp 0x403e40
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x20
jb 0x403e40
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x403e83
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x404951
xor ebx, ebx
mov dword [esi + 0x40], eax
xor edi, edi
mov dword [esi], 0xe
mov dword [esi], 0xf
mov eax, dword [esi + 0x40]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404511
mov ecx, dword [ebp - 4]
cmp eax, ecx
jbe 0x403eb0
mov eax, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jbe 0x403ebc
mov eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4049b1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
call fcn.0040ff80
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
sub dword [ebp - 4], eax
sub dword [ebp - 0x10], eax
add dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
add esp, 0xc
sub dword [esi + 0x40], eax
jmp 0x404957
cmp edi, 0xe
jae 0x403f22
jmp 0x403f00
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0xe
jb 0x403f00
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov eax, ebx
mov dword [esi + 0x60], ecx
shr ebx, 5
mov ecx, ebx
and eax, 0x1f
and ecx, 0xf
inc eax
add ecx, 4
shr ebx, 4
sub edi, 0xe
cmp dword [esi + 0x60], 0x11e
mov dword [esi + 0x64], eax
mov dword [esi + 0x5c], ecx
ja 0x404042
cmp eax, 0x1e
ja 0x404042
mov dword [esi + 0x68], 0
mov dword [esi], 0x11
mov ecx, dword [esi + 0x68]
cmp ecx, dword [esi + 0x5c]
jae 0x403fcd
jmp 0x403f80
cmp edi, 3
jae 0x403fa7
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 3
jb 0x403f85
mov eax, dword [esi + 0x68]
movzx eax, word [eax*2 + 0x456a48]
mov ecx, ebx
and ecx, 7
mov word [esi + eax*2 + 0x70], cx
inc dword [esi + 0x68]
mov ecx, dword [esi + 0x68]
shr ebx, 3
sub edi, 3
cmp ecx, dword [esi + 0x5c]
jb 0x403f80
cmp dword [esi + 0x68], 0x13
jae 0x403ffb
mov eax, 1
jmp 0x403fe0
mov edx, dword [esi + 0x68]
movzx ecx, word [edx*2 + 0x456a48]
xor edx, edx
mov word [esi + ecx*2 + 0x70], dx
add dword [esi + 0x68], eax
cmp dword [esi + 0x68], 0x13
jb 0x403fe0
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
lea edx, [esi + 0x2f0]
push edx
mov dword [ecx], eax
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x54]
push eax
push 0x13
lea edx, [esi + 0x70]
push 0
mov dword [eax], 7
call fcn.00405540
mov edx, dword [ebp - 8]
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x404051
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x404951
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x404951
mov dword [esi + 0x68], 0
mov dword [esi], 0x12
mov ecx, dword [esi + 0x64]
add ecx, dword [esi + 0x60]
cmp dword [esi + 0x68], ecx
jae 0x404253
lea ecx, [ecx]
mov ecx, dword [esi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0x4c]
dec eax
and eax, ebx
mov ecx, dword [ecx + eax*4]
mov eax, ecx
shr eax, 8
movzx eax, al
mov dword [ebp - 0xc], ecx
cmp eax, edi
jbe 0x4040d1
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x54]
inc edx
add edi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 8], edx
dec eax
and eax, ebx
mov ecx, dword [ecx + eax*4]
mov eax, ecx
shr eax, 8
movzx eax, al
mov dword [ebp - 0xc], ecx
cmp eax, edi
ja 0x404092
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x2c], eax
cmp ax, 0x10
jae 0x4040f9
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub edi, ecx
mov ecx, dword [esi + 0x68]
mov word [esi + ecx*2 + 0x70], ax
inc dword [esi + 0x68]
jmp 0x404244
jne 0x40416a
mov eax, ecx
shr eax, 8
movzx eax, al
add eax, 2
cmp edi, eax
jae 0x40413a
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0xc]
inc edx
add edi, 8
add ebx, eax
movzx eax, ch
add eax, 2
mov dword [ebp - 8], edx
cmp edi, eax
jb 0x404110
mov eax, dword [esi + 0x68]
movzx ecx, ch
shr ebx, cl
sub edi, ecx
test eax, eax
je 0x404275
movzx ecx, word [esi + eax*2 + 0x6e]
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], eax
sub edi, 2
jmp 0x40420f
cmp word [ebp - 0xa], 0x11
movzx ecx, ch
mov dword [ebp - 0x24], ecx
jne 0x4041be
lea eax, [ecx + 3]
cmp edi, eax
jae 0x4041a7
mov edi, edi
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x24]
inc edx
add edi, 8
add ebx, eax
lea eax, [ecx + 3]
mov dword [ebp - 8], edx
cmp edi, eax
jb 0x404180
shr ebx, cl
mov eax, ebx
and eax, 7
add eax, 3
mov dword [ebp - 0xc], eax
shr ebx, 3
mov eax, 0xfffffffd
jmp 0x404201
lea eax, [ecx + 7]
cmp edi, eax
jae 0x4041ec
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x24]
inc edx
add edi, 8
add ebx, eax
lea eax, [ecx + 7]
mov dword [ebp - 8], edx
cmp edi, eax
jb 0x4041c5
shr ebx, cl
mov eax, ebx
and eax, 0x7f
add eax, 0xb
mov dword [ebp - 0xc], eax
shr ebx, 7
mov eax, 0xfffffff9
sub eax, ecx
add edi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], 0
mov ecx, dword [esi + 0x68]
add ecx, eax
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
cmp ecx, eax
ja 0x404284
cmp dword [ebp - 0xc], 0
je 0x404244
mov eax, dword [ebp - 0x1c]
jmp 0x404230
mov ecx, dword [esi + 0x68]
dec dword [ebp - 0xc]
mov word [esi + ecx*2 + 0x70], ax
inc dword [esi + 0x68]
cmp dword [ebp - 0xc], 0
jne 0x404230
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
cmp dword [esi + 0x68], eax
jb 0x404070
cmp dword [esi], 0x1d
je 0x404957
cmp word [esi + 0x270], 0
jne 0x404293
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_code____missing_end_of_block
jmp 0x404951
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x404951
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x404951
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
lea edx, [esi + 0x2f0]
push edx
mov edx, dword [esi + 0x60]
mov dword [ecx], eax
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x54]
push eax
push edx
lea edx, [esi + 0x70]
push 1
mov dword [eax], 9
call fcn.00405540
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4042dc
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x404951
mov edx, dword [esi + 0x6c]
lea ecx, [esi + 0x6c]
mov dword [esi + 0x50], edx
lea edx, [esi + 0x2f0]
push edx
mov edx, dword [esi + 0x60]
lea eax, [esi + 0x58]
push eax
mov dword [eax], 6
mov eax, dword [esi + 0x64]
push eax
lea edx, [esi + edx*2 + 0x70]
push 2
call fcn.00405540
mov edx, dword [ebp - 8]
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x404324
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x404951
mov dword [esi], 0x13
mov dword [esi], 0x14
cmp dword [ebp - 4], 6
jb 0x4043a4
cmp dword [ebp - 0x10], 0x102
jb 0x4043a4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 4]
push ecx
push eax
mov dword [eax + 4], edx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
call fcn.00404e10
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0x14], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
add esp, 8
cmp dword [esi], 0xb
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
jne 0x404957
mov dword [esi + 0x1bc4], 0xffffffff
jmp 0x404957
mov ecx, dword [esi + 0x54]
mov eax, 1
shl eax, cl
mov dword [esi + 0x1bc4], 0
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, edi
jbe 0x404411
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x54]
inc edx
add edi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 8], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, edi
ja 0x4043d2
test al, al
je 0x4044d7
test al, 0xf0
jne 0x4044d7
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, cl
mov dword [ebp - 0x1c], ecx
movzx ecx, al
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x1c]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [ebp - 0x2c]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, edi
jbe 0x4044c6
lea ebx, [ebx]
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x24]
dec dword [ebp - 4]
inc edx
add ebx, eax
movzx eax, ch
mov dword [ebp - 0x1c], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x1c]
add edi, 8
mov dword [ebp - 8], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x22]
add eax, ecx
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, dword [ebp - 0x1c]
cmp eax, edi
ja 0x404470
movzx ecx, byte [ebp - 0x23]
mov eax, dword [ebp - 0xc]
shr ebx, cl
sub edi, ecx
mov dword [esi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [esi + 0x1bc4], ecx
shr ebx, cl
sub edi, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [esi + 0x40], ecx
test al, al
jne 0x404503
mov dword [esi], 0x19
jmp 0x404957
test al, 0x20
je 0x40451c
mov dword [esi + 0x1bc4], 0xffffffff
mov dword [esi], 0xb
jmp 0x404957
test al, 0x40
je 0x40452f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x404951
movzx ecx, al
and ecx, 0xf
mov dword [esi + 0x48], ecx
mov dword [esi], 0x15
mov eax, dword [esi + 0x48]
test eax, eax
je 0x40458c
cmp edi, eax
jae 0x404572
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, dword [esi + 0x48]
jb 0x404550
mov ecx, dword [esi + 0x48]
mov eax, 1
shl eax, cl
sub edi, ecx
dec eax
and eax, ebx
add dword [esi + 0x40], eax
shr ebx, cl
add dword [esi + 0x1bc4], ecx
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x1bc8], ecx
mov dword [esi], 0x16
mov ecx, dword [esi + 0x58]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [esi + 0x50]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, edi
jbe 0x4045ff
nop
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x58]
inc edx
add edi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 0x50]
mov dword [ebp - 8], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, edi
ja 0x4045c0
test al, 0xf0
jne 0x4046b7
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, cl
mov dword [ebp - 0x1c], ecx
movzx ecx, al
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x1c]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [esi + 0x50]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [ebp - 0x2c]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, edi
jbe 0x4046a6
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x24]
dec dword [ebp - 4]
inc edx
add ebx, eax
movzx eax, ch
mov dword [ebp - 0x1c], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x1c]
add edi, 8
mov dword [ebp - 8], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x22]
add eax, ecx
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, dword [ebp - 0x1c]
cmp eax, edi
ja 0x404650
movzx ecx, byte [ebp - 0x23]
mov eax, dword [ebp - 0xc]
shr ebx, cl
sub edi, ecx
add dword [esi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [esi + 0x1bc4], ecx
shr ebx, cl
sub edi, ecx
mov dword [ebp - 0x1c], ecx
test al, 0x40
je 0x4046df
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x404951
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov dword [esi], 0x17
mov eax, dword [esi + 0x48]
test eax, eax
je 0x40473d
cmp edi, eax
jae 0x404723
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, dword [esi + 0x48]
jb 0x404701
mov ecx, dword [esi + 0x48]
mov eax, 1
shl eax, cl
sub edi, ecx
dec eax
and eax, ebx
add dword [esi + 0x44], eax
shr ebx, cl
add dword [esi + 0x1bc4], ecx
mov dword [esi], 0x18
cmp dword [ebp - 0x10], 0
je 0x4049b1
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x44]
cmp eax, ecx
jbe 0x4047ae
sub eax, ecx
mov dword [ebp - 0xc], eax
cmp eax, dword [esi + 0x2c]
jbe 0x40477c
cmp dword [esi + 0x1bc0], 0
je 0x40477c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_distance_too_far_back
jmp 0x404951
mov ecx, dword [esi + 0x30]
cmp eax, ecx
jbe 0x404792
sub eax, ecx
mov ecx, dword [esi + 0x34]
add ecx, dword [esi + 0x28]
mov dword [ebp - 0xc], eax
sub ecx, eax
jmp 0x40479d
mov ecx, dword [esi + 0x34]
sub ecx, eax
add ecx, dword [esi + 0x30]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x24], ecx
cmp eax, ecx
jbe 0x4047bf
mov eax, ecx
jmp 0x4047bc
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jbe 0x4047cb
mov eax, ecx
mov dword [ebp - 0xc], eax
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x14]
mov dword [esi + 0x40], ecx
mov dword [ebp - 0x2c], eax
jmp 0x4047e6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov cl, byte [eax + ecx]
mov eax, dword [ebp - 0x14]
mov byte [eax], cl
inc eax
dec dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
jne 0x4047e3
cmp dword [esi + 0x40], 0
jne 0x404957
mov dword [esi], 0x14
jmp 0x404957
cmp dword [ebp - 0x10], 0
je 0x4049b1
mov eax, dword [ebp - 0x14]
mov cl, byte [esi + 0x40]
mov byte [eax], cl
inc eax
dec dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [esi], 0x14
jmp 0x404957
cmp dword [esi + 8], 0
je 0x4048fa
cmp edi, 0x20
jae 0x404864
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x20
jb 0x404842
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add dword [ecx + 0x14], eax
add dword [esi + 0x1c], eax
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4048b4
cmp dword [esi + 0x10], 0
je 0x404898
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [esi + 0x18]
jne 0x40488e
xor eax, eax
jmp 0x4048ab
mov edx, dword [ebp - 0x20]
call fcn.00405240
jmp 0x4048a8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x18]
sub edx, eax
call fcn.00404ba0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov dword [ecx + 0x30], eax
cmp dword [esi + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, ebx
jne 0x4048e5
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
mov ecx, ebx
shr ecx, 8
and ecx, 0xff00
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [esi + 0x18]
je 0x4048f6
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x404951
xor ebx, ebx
xor edi, edi
mov dword [esi], 0x1b
cmp dword [esi + 8], 0
je 0x40499b
cmp dword [esi + 0x10], 0
je 0x40499b
cmp edi, 0x20
jae 0x404942
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x4049b1
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
inc edx
add edi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp edi, 0x20
jb 0x404920
cmp ebx, dword [esi + 0x1c]
je 0x404997
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [esi], 0x1d
mov eax, dword [esi]
cmp eax, 0x1e
jbe switch.0x004036e4
mov eax, 0xfffffffe
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x3c], edi
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 4]
pop edi
mov dword [esi + 0x38], ebx
pop ebx
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
xor ebx, ebx
xor edi, edi
mov dword [esi], 0x1c
mov dword [ebp - 0x28], 1
jmp 0x4049b1
mov dword [ebp - 0x28], 0xfffffffd
cmp dword [esi + 0x28], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
jne 0x4049e5
cmp dword [ebp - 0x20], ecx
je 0x404a10
mov eax, dword [esi]
cmp eax, 0x1d
jge 0x404a10
cmp eax, 0x1a
jge 0x404a10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
call fcn.00403580
add esp, 4
test eax, eax
je 0x404a10
mov dword [esi], 0x1e
pop edi
pop ebx
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
sub eax, dword [edi + 0x10]
sub ecx, dword [edi + 4]
add dword [edi + 0x14], eax
add dword [edi + 8], ecx
add dword [esi + 0x1c], eax
cmp dword [esi + 8], 0
je 0x404a64
test eax, eax
je 0x404a64
cmp dword [esi + 0x10], 0
je 0x404a51
mov ecx, dword [edi + 0xc]
sub ecx, eax
mov ebx, dword [esi + 0x18]
jne 0x404a46
xor eax, eax
jmp 0x404a5e
mov edx, eax
mov eax, ebx
call fcn.00405240
jmp 0x404a5e
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 0x18]
sub edx, eax
call fcn.00404ba0
mov dword [esi + 0x18], eax
mov dword [edi + 0x30], eax
mov eax, dword [esi]
cmp eax, 0x13
je 0x404a74
cmp eax, 0xe
je 0x404a74
xor ecx, ecx
jmp 0x404a79
mov ecx, 0x100
mov edx, dword [esi + 4]
neg edx
sbb edx, edx
xor ebx, ebx
and edx, 0x40
cmp eax, 0xb
mov eax, dword [ebp - 0x28]
setne bl
add edx, ecx
dec ebx
and ebx, 0x80
add ebx, edx
add ebx, dword [esi + 0x3c]
mov dword [edi + 0x2c], ebx
test eax, eax
jne 0x404967
pop edi
pop ebx
mov eax, 0xfffffffb
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret