Function at 0x4589d0
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 0x459da6
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x459da6
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x459da6
mov ebp, dword [eax]
test ebp, ebp
jne 0x458a06
cmp dword [eax + 4], ebp
jne 0x459da6
cmp dword [edi], 0xb
jne 0x458a11
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.0x458a50
lea ebx, [ebx]
jmp dword [eax*4 + 0x459db4]
cmp dword [edi + 8], 0
jne 0x458a68
mov dword [edi], 0xc
jmp 0x459c66
cmp esi, 0x10
jae 0x458a98
lea ecx, [ecx]
test edx, edx
je 0x459cc4
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 0x458a70
mov eax, dword [edi + 8]
test al, 2
je 0x458aea
cmp ebx, 0x8b1f
jne 0x458aea
push 0
xor edx, edx
xor ecx, ecx
call fcn.0045bda0
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.0045bdb0
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 0x459c66
test al, 1
mov dword [edi + 0x10], 0
je 0x458b8f
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 0x458b8f
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x458b31
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x459c60
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 0x458b5c
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_window_size
mov edx, dword [esp + 0x10]
jmp 0x459c60
xor eax, eax
xor ecx, ecx
xor edx, edx
call fcn.0045b7b0
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 0x459c66
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [esp + 0x10]
jmp 0x459c60
cmp esi, 0x10
jae 0x458bd0
test edx, edx
je 0x459cc4
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 0x458ba8
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x458be8
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x459c60
test ebx, 0xe000
je 0x458c00
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x459c60
test ebx, 0x200
je 0x458c2b
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.0045bdb0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x458c40
cmp esi, 0x20
jae 0x458c64
lea esp, [esp]
test edx, edx
je 0x459cc4
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 0x458c40
test dword [edi + 0x10], 0x200
je 0x458ca2
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.0045bdb0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x458cb3
cmp esi, 0x10
jae 0x458cd7
test edx, edx
je 0x459cc4
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 0x458cb3
test dword [edi + 0x10], 0x200
je 0x458d03
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.0045bdb0
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 0x458d7b
cmp esi, 0x10
jae 0x458d44
nop
test edx, edx
je 0x459cc4
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 0x458d20
test dword [edi + 0x10], 0x200
mov dword [edi + 0x38], ebx
je 0x458d73
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.0045bdb0
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 0x458de2
mov ecx, dword [edi + 0x38]
cmp ecx, edx
mov dword [esp + 0x14], ecx
jbe 0x458d9c
mov ecx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x458dd8
test eax, 0x200
je 0x458dc8
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x458db2
xor eax, eax
jmp 0x458dc5
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.0045bdb0
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 0x459cc4
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x458e54
test edx, edx
je 0x459cc4
xor ecx, ecx
jmp 0x458e00
movzx eax, byte [ecx + ebp]
add ecx, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x458e13
cmp ecx, edx
jb 0x458e00
test dword [edi + 0x10], 0x2000
mov dword [esp + 0x14], ecx
je 0x458e41
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x458e2b
xor eax, eax
jmp 0x458e3e
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.0045bdb0
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 0x459cc4
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x458ec4
test edx, edx
je 0x459cc4
xor ecx, ecx
lea ecx, [ecx]
movzx eax, byte [ecx + ebp]
add ecx, 1
test eax, eax
mov dword [esp + 0x2c], eax
je 0x458e83
cmp ecx, edx
jb 0x458e70
test dword [edi + 0x10], 0x2000
mov dword [esp + 0x14], ecx
je 0x458eb1
test ebp, ebp
mov eax, dword [edi + 0x14]
jne 0x458e9b
xor eax, eax
jmp 0x458eae
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.0045bdb0
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 0x459cc4
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x458f20
cmp esi, 0x10
jae 0x458f00
test edx, edx
je 0x459cc4
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 0x458ed8
movzx ecx, word [edi + 0x14]
cmp ebx, ecx
je 0x458f18
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x459c60
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
push 0
xor edx, edx
xor ecx, ecx
call fcn.0045bda0
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 0x459c66
cmp esi, 0x20
jae 0x458f78
lea esp, [esp]
test edx, edx
je 0x459cc4
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 0x458f50
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 0x459c7e
xor eax, eax
xor ecx, ecx
xor edx, edx
call fcn.0045b7b0
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 0x458ff3
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
mov dword [esp + 0x18], ebx
jmp 0x459c66
cmp esi, 3
jae 0x45901c
test edx, edx
je 0x459cc4
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 0x458ff8
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.0x459033
jmp dword [eax*4 + 0x459e28]
shr ebx, 2
mov dword [edi], 0xd
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x459c66
shr ebx, 2
mov dword [edi + 0x44], 0x4b0ee0
mov dword [edi + 0x4c], 9
mov dword [edi + 0x48], 0x4b16e0
mov dword [edi + 0x50], 5
mov dword [edi], 0x12
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x459c66
shr ebx, 2
mov dword [edi], 0xf
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x459c66
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 0x459c66
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
cmp esi, 0x20
mov dword [esp + 0x18], ebx
jae 0x4590ef
test edx, edx
je 0x459cc4
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 0x4590c7
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x459111
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x459c60
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 0x4597f9
cmp eax, edx
jbe 0x45913b
mov eax, edx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x459149
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x459cc4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
call fcn.0047f590
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 0x459c66
cmp esi, 0xe
jae 0x4591ab
test edx, edx
je 0x459cc4
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 0x459187
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 0x4592e7
cmp eax, 0x1e
ja 0x4592e7
mov dword [edi + 0x60], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x60]
cmp ecx, dword [edi + 0x54]
jae 0x459265
lea ebx, [ebx]
cmp esi, 3
jae 0x459239
test edx, edx
je 0x459cc4
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 0x459215
mov eax, dword [edi + 0x60]
movzx eax, word [eax*2 + 0x4b1760]
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 0x459210
mov eax, 0x13
cmp dword [edi + 0x60], eax
jae 0x459299
xor ecx, ecx
jmp 0x459280
mov edx, dword [edi + 0x60]
movzx edx, word [edx*2 + 0x4b1760]
mov word [edi + edx*2 + 0x68], cx
add dword [edi + 0x60], 1
cmp dword [edi + 0x60], eax
jb 0x459280
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.0045b2a0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x4592f7
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_code_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x459c60
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x459c60
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 0x459559
jmp 0x459320
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 0x459389
test edx, edx
je 0x459cc4
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 0x459345
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x4593eb
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x4593ca
nop
test edx, edx
je 0x459cc4
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 0x4593a0
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 0x45954a
mov cx, word [esp + 0x16]
cmp cx, 0x10
jne 0x459461
movzx ecx, ah
lea eax, [ecx + 2]
cmp esi, eax
mov dword [esp + 0x2c], ecx
jae 0x45942e
test edx, edx
je 0x459cc4
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 0x459404
mov eax, dword [edi + 0x60]
shr ebx, cl
sub esi, ecx
test eax, eax
mov dword [esp + 0x18], ebx
je 0x4595ae
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 0x459510
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x2c], ecx
jne 0x4594b7
lea eax, [ecx + 3]
cmp esi, eax
jae 0x45949f
test edx, edx
je 0x459cc4
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 0x459475
shr ebx, cl
mov eax, ebx
and eax, 7
add eax, 3
mov dword [esp + 0x14], eax
shr ebx, 3
mov eax, 0xfffffffd
jmp 0x459500
lea eax, [ecx + 7]
cmp esi, eax
jae 0x4594ea
mov edi, edi
test edx, edx
je 0x459cc4
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 0x4594c0
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 0x4595be
cmp dword [esp + 0x14], 0
je 0x45954a
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 0x459532
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
cmp dword [edi + 0x60], eax
jb 0x459320
cmp dword [edi], 0x1b
je 0x459c66
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.0045b2a0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x4595ce
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov edx, dword [esp + 0x10]
jmp 0x459c60
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x459c60
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x459c60
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.0045b2a0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x459619
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_distances_set
mov edx, dword [esp + 0x10]
jmp 0x459c60
mov edx, dword [esp + 0x10]
mov dword [edi], 0x12
cmp edx, 6
jb 0x45968d
cmp dword [esp + 0x1c], 0x102
jb 0x45968d
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.0045b8e0
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 0x459c66
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 0x4596f8
test edx, edx
je 0x459cc4
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 0x4596b4
test al, al
je 0x4597ca
test al, 0xf0
jne 0x4597ca
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 0x4597bd
jmp 0x459760
test edx, edx
je 0x459cc4
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 0x459760
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 0x4597f5
mov dword [edi], 0x17
jmp 0x459c66
test al, 0x20
je 0x459804
mov dword [edi], 0xb
jmp 0x459c66
test al, 0x40
je 0x459818
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x459c60
and eax, 0xf
mov dword [edi + 0x40], eax
mov dword [edi], 0x13
mov eax, dword [edi + 0x40]
test eax, eax
je 0x45986a
cmp esi, eax
jae 0x459854
nop
test edx, edx
je 0x459cc4
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 0x459830
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 0x4598db
test edx, edx
je 0x459cc4
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 0x459897
test al, 0xf0
jne 0x4599a0
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 0x459993
test edx, edx
je 0x459cc4
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 0x459936
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 0x4599c8
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x459c60
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 0x459a25
cmp esi, eax
jae 0x459a0b
test edx, edx
je 0x459cc4
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 0x4599e7
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 0x459a45
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x459c60
mov dword [edi], 0x16
cmp dword [esp + 0x1c], 0
je 0x459cc4
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x3c]
cmp eax, ecx
jbe 0x459aa1
sub eax, ecx
mov ecx, dword [edi + 0x28]
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x459a82
sub eax, ecx
mov ecx, dword [edi + 0x2c]
add ecx, dword [edi + 0x20]
mov dword [esp + 0x14], eax
sub ecx, eax
jmp 0x459a8e
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 0x459ab6
mov eax, ecx
jmp 0x459ab2
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 0x459ac4
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 0x459ad3
cmp dword [edi + 0x38], 0
jne 0x459c66
mov dword [edi], 0x12
jmp 0x459c66
cmp dword [esp + 0x1c], 0
je 0x459cc4
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 0x459c66
cmp dword [edi + 8], 0
je 0x459c09
cmp esi, 0x20
jae 0x459b6b
test edx, edx
je 0x459cc4
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 0x459b43
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 0x459bc1
cmp dword [edi + 0x10], 0
mov ecx, dword [esp + 0x24]
je 0x459ba5
sub ecx, eax
mov eax, dword [edi + 0x14]
jne 0x459b9a
xor eax, eax
jmp 0x459bb7
mov edx, dword [esp + 0x28]
call fcn.0045bdb0
jmp 0x459bb3
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 0x14]
sub ecx, eax
call fcn.0045b7b0
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 0x459bef
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 0x459c01
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x459c60
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x459cac
cmp dword [edi + 0x10], 0
je 0x459cac
cmp esi, 0x20
jae 0x459c50
test edx, edx
je 0x459cc4
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 0x459c28
cmp ebx, dword [edi + 0x18]
je 0x459ca8
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.0x00458a50
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 0x459cc4
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 0x459cf4
cmp dword [edi], 0x18
jge 0x459d18
mov edx, ecx
cmp dword [esp + 0x28], edx
je 0x459d18
push eax
mov eax, dword [esp + 0x2c]
call fcn.004588e0
add esp, 4
test eax, eax
je 0x459d18
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 0x459d6a
test edx, edx
je 0x459d6a
cmp dword [edi + 0x10], 0
mov ecx, dword [esi + 0xc]
je 0x459d58
sub ecx, edx
mov eax, dword [edi + 0x14]
jne 0x459d51
xor eax, eax
jmp 0x459d64
call fcn.0045bdb0
jmp 0x459d64
sub ecx, edx
mov eax, edx
mov edx, dword [edi + 0x14]
call fcn.0045b7b0
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 0x459c76
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