Function at 0x477070
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 0x478446
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x478446
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x478446
mov ebp, dword [eax]
test ebp, ebp
jne 0x4770a6
cmp dword [eax + 4], ebp
jne 0x478446
cmp dword [edi], 0xb
jne 0x4770b1
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.0x4770f0
lea ebx, [ebx]
jmp dword [eax*4 + 0x478454]
cmp dword [edi + 8], 0
jne 0x477108
mov dword [edi], 0xc
jmp 0x478306
cmp esi, 0x10
jae 0x477138
lea ecx, [ecx]
test edx, edx
je 0x478364
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 0x477110
mov eax, dword [edi + 8]
test al, 2
je 0x47718a
cmp ebx, 0x8b1f
jne 0x47718a
push 0
xor edx, edx
xor ecx, ecx
call fcn.00479020
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.00479030
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 0x478306
test al, 1
mov dword [edi + 0x10], 0
je 0x47722f
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 0x47722f
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x4771d1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x478300
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 0x4771fc
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_window_size
mov edx, dword [esp + 0x10]
jmp 0x478300
xor eax, eax
xor ecx, ecx
xor edx, edx
call fcn.00478a30
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 0x478306
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [esp + 0x10]
jmp 0x478300
cmp esi, 0x10
jae 0x477270
test edx, edx
je 0x478364
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 0x477248
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x477288
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x478300
test ebx, 0xe000
je 0x4772a0
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x478300
test ebx, 0x200
je 0x4772cb
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.00479030
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x4772e0
cmp esi, 0x20
jae 0x477304
lea esp, [esp]
test edx, edx
je 0x478364
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 0x4772e0
test dword [edi + 0x10], 0x200
je 0x477342
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.00479030
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x477353
cmp esi, 0x10
jae 0x477377
test edx, edx
je 0x478364
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 0x477353
test dword [edi + 0x10], 0x200
je 0x4773a3
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.00479030
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 0x47741b
cmp esi, 0x10
jae 0x4773e4
nop
test edx, edx
je 0x478364
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 0x4773c0
test dword [edi + 0x10], 0x200
mov dword [edi + 0x38], ebx
je 0x477413
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.00479030
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 0x477482
mov ecx, dword [edi + 0x38]
cmp ecx, edx
mov dword [esp + 0x14], ecx
jbe 0x47743c
mov ecx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x477478
test eax, 0x200
je 0x477468
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x477452
xor eax, eax
jmp 0x477465
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.00479030
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 0x478364
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x4774f4
test edx, edx
je 0x478364
xor ecx, ecx
jmp 0x4774a0
movzx eax, byte [ecx + ebp]
add ecx, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4774b3
cmp ecx, edx
jb 0x4774a0
test dword [edi + 0x10], 0x2000
mov dword [esp + 0x14], ecx
je 0x4774e1
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x4774cb
xor eax, eax
jmp 0x4774de
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.00479030
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 0x478364
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x477564
test edx, edx
je 0x478364
xor ecx, ecx
lea ecx, [ecx]
movzx eax, byte [ecx + ebp]
add ecx, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x477523
cmp ecx, edx
jb 0x477510
test dword [edi + 0x10], 0x2000
mov dword [esp + 0x14], ecx
je 0x477551
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x47753b
xor eax, eax
jmp 0x47754e
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.00479030
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 0x478364
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x4775c0
cmp esi, 0x10
jae 0x4775a0
test edx, edx
je 0x478364
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 0x477578
movzx ecx, word [edi + 0x14]
cmp ebx, ecx
je 0x4775b8
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x478300
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
push 0
xor edx, edx
xor ecx, ecx
call fcn.00479020
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 0x478306
cmp esi, 0x20
jae 0x477618
lea esp, [esp]
test edx, edx
je 0x478364
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 0x4775f0
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 0x47831e
xor eax, eax
xor ecx, ecx
xor edx, edx
call fcn.00478a30
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 0x477693
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
mov dword [esp + 0x18], ebx
jmp 0x478306
cmp esi, 3
jae 0x4776bc
test edx, edx
je 0x478364
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 0x477698
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.0x4776d3
jmp dword [eax*4 + 0x4784c8]
shr ebx, 2
mov dword [edi], 0xd
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x478306
shr ebx, 2
mov dword [edi + 0x44], 0x4c4388
mov dword [edi + 0x4c], 9
mov dword [edi + 0x48], 0x4c4b88
mov dword [edi + 0x50], 5
mov dword [edi], 0x12
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x478306
shr ebx, 2
mov dword [edi], 0xf
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x478306
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 0x478306
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
cmp esi, 0x20
mov dword [esp + 0x18], ebx
jae 0x47778f
test edx, edx
je 0x478364
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 0x477767
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x4777b1
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x478300
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 0x477e99
cmp eax, edx
jbe 0x4777db
mov eax, edx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x4777e9
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x478364
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
call fcn.0049a4c0
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 0x478306
cmp esi, 0xe
jae 0x47784b
test edx, edx
je 0x478364
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 0x477827
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 0x477987
cmp eax, 0x1e
ja 0x477987
mov dword [edi + 0x60], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x60]
cmp ecx, dword [edi + 0x54]
jae 0x477905
lea ebx, [ebx]
cmp esi, 3
jae 0x4778d9
test edx, edx
je 0x478364
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 0x4778b5
mov eax, dword [edi + 0x60]
movzx eax, word [eax*2 + 0x4c4c08]
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 0x4778b0
mov eax, 0x13
cmp dword [edi + 0x60], eax
jae 0x477939
xor ecx, ecx
jmp 0x477920
mov edx, dword [edi + 0x60]
movzx edx, word [edx*2 + 0x4c4c08]
mov word [edi + edx*2 + 0x68], cx
add dword [edi + 0x60], 1
cmp dword [edi + 0x60], eax
jb 0x477920
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.00478530
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x477997
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_code_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x478300
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x478300
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 0x477bf9
jmp 0x4779c0
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 0x477a29
test edx, edx
je 0x478364
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 0x4779e5
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x477a8b
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x477a6a
nop
test edx, edx
je 0x478364
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 0x477a40
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 0x477bea
mov cx, word [esp + 0x16]
cmp cx, 0x10
jne 0x477b01
movzx ecx, ah
lea eax, [ecx + 2]
cmp esi, eax
mov dword [esp + 0x2c], ecx
jae 0x477ace
test edx, edx
je 0x478364
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 0x477aa4
mov eax, dword [edi + 0x60]
shr ebx, cl
sub esi, ecx
test eax, eax
mov dword [esp + 0x18], ebx
je 0x477c4e
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 0x477bb0
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x2c], ecx
jne 0x477b57
lea eax, [ecx + 3]
cmp esi, eax
jae 0x477b3f
test edx, edx
je 0x478364
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 0x477b15
shr ebx, cl
mov eax, ebx
and eax, 7
add eax, 3
mov dword [esp + 0x14], eax
shr ebx, 3
mov eax, 0xfffffffd
jmp 0x477ba0
lea eax, [ecx + 7]
cmp esi, eax
jae 0x477b8a
mov edi, edi
test edx, edx
je 0x478364
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 0x477b60
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 0x477c5e
cmp dword [esp + 0x14], 0
je 0x477bea
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 0x477bd2
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
cmp dword [edi + 0x60], eax
jb 0x4779c0
cmp dword [edi], 0x1b
je 0x478306
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.00478530
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x477c6e
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x478300
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x478300
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x478300
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.00478530
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x477cb9
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_distances_set
mov edx, dword [esp + 0x10]
jmp 0x478300
mov edx, dword [esp + 0x10]
mov dword [edi], 0x12
cmp edx, 6
jb 0x477d2d
cmp dword [esp + 0x1c], 0x102
jb 0x477d2d
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.00478b60
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 0x478306
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 0x477d98
test edx, edx
je 0x478364
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 0x477d54
test al, al
je 0x477e6a
test al, 0xf0
jne 0x477e6a
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 0x477e5d
jmp 0x477e00
test edx, edx
je 0x478364
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 0x477e00
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 0x477e95
mov dword [edi], 0x17
jmp 0x478306
test al, 0x20
je 0x477ea4
mov dword [edi], 0xb
jmp 0x478306
test al, 0x40
je 0x477eb8
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x478300
and eax, 0xf
mov dword [edi + 0x40], eax
mov dword [edi], 0x13
mov eax, dword [edi + 0x40]
test eax, eax
je 0x477f0a
cmp esi, eax
jae 0x477ef4
nop
test edx, edx
je 0x478364
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 0x477ed0
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 0x477f7b
test edx, edx
je 0x478364
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 0x477f37
test al, 0xf0
jne 0x478040
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 0x478033
test edx, edx
je 0x478364
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 0x477fd6
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 0x478068
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x478300
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 0x4780c5
cmp esi, eax
jae 0x4780ab
test edx, edx
je 0x478364
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 0x478087
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 0x4780e5
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x478300
mov dword [edi], 0x16
cmp dword [esp + 0x1c], 0
je 0x478364
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x3c]
cmp eax, ecx
jbe 0x478141
sub eax, ecx
mov ecx, dword [edi + 0x28]
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x478122
sub eax, ecx
mov ecx, dword [edi + 0x2c]
add ecx, dword [edi + 0x20]
mov dword [esp + 0x14], eax
sub ecx, eax
jmp 0x47812e
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 0x478156
mov eax, ecx
jmp 0x478152
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 0x478164
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 0x478173
cmp dword [edi + 0x38], 0
jne 0x478306
mov dword [edi], 0x12
jmp 0x478306
cmp dword [esp + 0x1c], 0
je 0x478364
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 0x478306
cmp dword [edi + 8], 0
je 0x4782a9
cmp esi, 0x20
jae 0x47820b
test edx, edx
je 0x478364
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 0x4781e3
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 0x478261
cmp dword [edi + 0x10], 0
mov ecx, dword [esp + 0x24]
je 0x478245
sub ecx, eax
mov eax, dword [edi + 0x14]
jne 0x47823a
xor eax, eax
jmp 0x478257
mov edx, dword [esp + 0x28]
call fcn.00479030
jmp 0x478253
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 0x14]
sub ecx, eax
call fcn.00478a30
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 0x47828f
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 0x4782a1
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x478300
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x47834c
cmp dword [edi + 0x10], 0
je 0x47834c
cmp esi, 0x20
jae 0x4782f0
test edx, edx
je 0x478364
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 0x4782c8
cmp ebx, dword [edi + 0x18]
je 0x478348
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.0x004770f0
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 0x478364
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 0x478394
cmp dword [edi], 0x18
jge 0x4783b8
mov edx, ecx
cmp dword [esp + 0x28], edx
je 0x4783b8
push eax
mov eax, dword [esp + 0x2c]
call fcn.00476f80
add esp, 4
test eax, eax
je 0x4783b8
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 0x47840a
test edx, edx
je 0x47840a
cmp dword [edi + 0x10], 0
mov ecx, dword [esi + 0xc]
je 0x4783f8
sub ecx, edx
mov eax, dword [edi + 0x14]
jne 0x4783f1
xor eax, eax
jmp 0x478404
call fcn.00479030
jmp 0x478404
sub ecx, edx
mov eax, edx
mov edx, dword [edi + 0x14]
call fcn.00478a30
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 0x478316
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