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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x34
test ecx, ecx
je 0x53ab89
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0xc], edx
test edx, edx
je 0x53ab89
mov dword [ecx + 0x18], 0
push ebx
mov dword [edx + 4], 0x3f3f
mov dword [edx + 8], 0
mov dword [edx + 0x30], 0
mov eax, dword [ecx]
mov dword [ebp - 4], eax
push esi
push edi
test eax, eax
je 0x539dcc
mov esi, dword [ecx + 4]
jmp 0x539dce
xor esi, esi
mov eax, dword [edx + 0x38]
xor edi, edi
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
sub eax, 0x3f3f
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
cmp eax, 0x12
ja case.0x539dff.16192
mov ecx, dword [ebp + 0x10]
movzx eax, byte [eax + 0x53abb0]
jmp dword [eax*4 + 0x53ab94]
cmp dword [edx + 8], 0
je 0x539e27
mov ecx, ebx
mov dword [edx + 4], 0x3f50
and ecx, 7
shr edi, cl
sub ebx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
jmp 0x53aad0
cmp ebx, 3
jae 0x539e67
nop dword [eax]
test esi, esi
jne 0x539e49
lea eax, [ebp - 4]
push eax
push ecx
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov eax, dword [ebp - 4]
mov ecx, ebx
add ebx, 8
dec esi
movzx eax, byte [eax]
inc dword [ebp - 4]
shl eax, cl
mov ecx, dword [ebp + 0x10]
add edi, eax
cmp ebx, 3
jb case.default.0x539e76
mov edx, dword [ebp - 0xc]
mov eax, edi
shr edi, 1
and eax, 1
mov dword [edx + 8], eax
mov eax, edi
and eax, 3
jmp dword [eax*4 + 0x53abc4]
shr edi, 2
sub ebx, 3
mov dword [edx + 4], 0x3f41
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
jmp 0x53aad0
shr edi, 2
sub ebx, 3
mov dword [edx + 0x50], 0x5d6708
mov dword [edx + 0x58], 9
mov dword [edx + 0x54], 0x5d6f08
mov dword [edx + 0x5c], 5
mov dword [edx + 4], 0x3f48
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
jmp 0x53aad0
shr edi, 2
sub ebx, 3
mov dword [edx + 4], 0x3f44
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
jmp 0x53aad0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edx + 4], 0x3f51
shr edi, 2
sub ebx, 3
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
jmp 0x53aad0
mov ecx, ebx
and ecx, 7
sub ebx, ecx
shr edi, cl
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
cmp ebx, 0x20
jae 0x539f53
test esi, esi
jne 0x539f32
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov eax, dword [ebp - 4]
mov ecx, ebx
add ebx, 8
dec esi
mov dword [ebp - 0x10], ebx
movzx eax, byte [eax]
inc dword [ebp - 4]
shl eax, cl
add edi, eax
mov dword [ebp - 8], edi
cmp ebx, 0x20
jb 0x539f17
mov edx, dword [ebp - 0xc]
mov eax, edi
movzx ecx, di
not eax
mov dword [ebp - 0x24], ecx
shr eax, 0x10
cmp ecx, eax
je 0x539f7a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
xor edi, edi
mov dword [edx + 0x44], ecx
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
test ecx, ecx
je 0x53a021
mov eax, dword [ebp - 0x14]
test esi, esi
jne 0x539fb3
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53ab1a
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x539fd9
mov ecx, dword [edx + 0x2c]
mov eax, dword [edx + 0x38]
push ecx
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [edx + 0x30], ecx
call dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x53ab01
cmp dword [ebp - 0x24], esi
mov eax, esi
mov edi, dword [ebp - 0x14]
cmovbe eax, dword [ebp - 0x24]
cmp eax, edi
cmovbe edi, eax
mov eax, dword [ebp - 0x18]
push edi
push dword [ebp - 4]
push eax
call fcn.005478f0
mov edx, dword [ebp - 0xc]
add esp, 0xc
add dword [ebp - 4], edi
sub esi, edi
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], edi
sub eax, edi
mov ecx, dword [edx + 0x44]
sub ecx, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
mov dword [edx + 0x44], ecx
jne 0x539f92
mov edi, dword [ebp - 8]
mov dword [edx + 4], 0x3f3f
jmp 0x53aad0
cmp ebx, 0xe
jae 0x53a069
test esi, esi
jne 0x53a04b
lea eax, [ebp - 4]
push eax
push ecx
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov eax, dword [ebp - 4]
mov ecx, ebx
add ebx, 8
dec esi
movzx eax, byte [eax]
inc dword [ebp - 4]
shl eax, cl
mov ecx, dword [ebp + 0x10]
add edi, eax
cmp ebx, 0xe
jb 0x53a032
mov edx, dword [ebp - 0xc]
mov ecx, edi
sub ebx, 0xe
shr edi, 5
and ecx, 0x1f
mov eax, edi
mov dword [ebp - 0x10], ebx
and eax, 0x1f
shr edi, 5
inc eax
add ecx, 0x101
mov dword [ebp - 0x34], eax
mov dword [edx + 0x68], eax
mov eax, edi
and eax, 0xf
shr edi, 4
add eax, 4
mov dword [edx + 0x64], ecx
mov dword [ebp - 0x30], eax
mov dword [edx + 0x60], eax
mov dword [ebp - 8], edi
cmp ecx, 0x11e
ja 0x53a5bd
cmp dword [ebp - 0x34], 0x1e
ja 0x53a5bd
xor eax, eax
mov dword [edx + 0x6c], 0
cmp dword [ebp - 0x30], eax
jbe 0x53a133
cmp ebx, 3
jae 0x53a107
mov edx, dword [ebp - 4]
nop
test esi, esi
jne 0x53a0ee
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, ebx
shl eax, cl
inc edx
add ebx, 8
mov dword [ebp - 4], edx
dec esi
add edi, eax
cmp ebx, 3
jb 0x53a0d0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x6c]
mov ecx, edi
and ecx, 7
shr edi, 3
sub ebx, 3
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
movzx eax, word [eax*2 + 0x5d6f88]
mov word [edx + eax*2 + 0x74], cx
inc dword [edx + 0x6c]
mov eax, dword [edx + 0x6c]
cmp eax, dword [edx + 0x60]
jb 0x53a0c7
cmp eax, 0x13
jae 0x53a15b
nop dword [eax + eax]
mov eax, dword [edx + 0x6c]
xor ecx, ecx
movzx eax, word [eax*2 + 0x5d6f88]
mov word [edx + eax*2 + 0x74], cx
inc dword [edx + 0x6c]
cmp dword [edx + 0x6c], 0x13
jb 0x53a140
lea eax, [edx + 0x534]
mov dword [edx + 0x58], 7
lea ecx, [edx + 0x70]
mov dword [edx + 0x50], eax
mov dword [ecx], eax
lea eax, [edx + 0x58]
mov dword [ebp - 0x34], ecx
lea ecx, [edx + 0x2f4]
push ecx
push eax
mov dword [ebp - 0x24], ecx
add edx, 0x74
mov ecx, dword [ebp - 0x34]
push ecx
push 0x13
push edx
push 0
mov dword [ebp - 0x28], eax
call fcn.00540ab0
mov edx, dword [ebp - 0xc]
add esp, 0x18
test eax, eax
je 0x53a1b5
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code_lengths_set
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
mov eax, dword [edx + 0x68]
mov dword [edx + 0x6c], 0
add eax, dword [edx + 0x64]
je 0x53a45a
nop dword [eax + eax]
mov eax, dword [ebp - 0x28]
mov edx, 1
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, edi
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edx*4]
mov edx, eax
shr edx, 8
mov edi, eax
shr edi, 0x10
movzx ecx, dl
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], edi
cmp ecx, ebx
jbe 0x53a26a
mov edi, dword [ebp - 4]
test esi, esi
jne 0x53a220
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edi, dword [ebp - 4]
movzx eax, byte [edi]
mov ecx, ebx
shl eax, cl
inc edi
add dword [ebp - 8], eax
mov edx, 1
mov eax, dword [ebp - 0x28]
add ebx, 8
mov dword [ebp - 4], edi
dec esi
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
shl edx, cl
dec edx
and edx, dword [ebp - 8]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 0x10
mov edx, eax
shr edx, 8
mov dword [ebp - 0x10], ecx
movzx ecx, dl
mov dword [ebp - 0x1c], eax
cmp ecx, ebx
ja 0x53a202
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
jmp 0x53a273
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 4]
movzx ecx, cx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
cmp ecx, 0x10
jae 0x53a2ac
mov edi, dword [ebp - 8]
mov cl, dl
movzx edx, dl
sub ebx, edx
shr edi, cl
mov edx, dword [ebp - 0xc]
shr eax, 0x10
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
mov ecx, dword [edx + 0x6c]
mov word [edx + ecx*2 + 0x74], ax
inc dword [edx + 0x6c]
mov ecx, dword [edx + 0x6c]
jmp 0x53a44c
cmp word [ebp - 0x20], 0x10
jne 0x53a33b
mov eax, dword [ebp - 0x2c]
movzx eax, al
add eax, 2
mov dword [ebp - 0x30], eax
cmp ebx, eax
jae 0x53a2fc
test esi, esi
jne 0x53a2e5
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edi, dword [ebp - 4]
movzx eax, byte [edi]
mov ecx, ebx
shl eax, cl
inc edi
add dword [ebp - 8], eax
add ebx, 8
dec esi
mov dword [ebp - 4], edi
cmp ebx, dword [ebp - 0x30]
jb 0x53a2c7
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 8]
movzx ecx, ah
mov eax, dword [edx + 0x6c]
sub ebx, ecx
shr edi, cl
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x53a487
movzx eax, word [edx + eax*2 + 0x72]
mov ecx, edi
and ecx, 3
shr edi, 2
add ecx, 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
sub ebx, 2
jmp 0x53a411
mov eax, dword [ebp - 0x30]
movzx eax, al
cmp ecx, 0x11
jne 0x53a3a5
add eax, 3
mov dword [ebp - 0x30], eax
cmp ebx, eax
jae 0x53a385
test esi, esi
jne 0x53a36e
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edi, dword [ebp - 4]
movzx eax, byte [edi]
mov ecx, ebx
shl eax, cl
inc edi
add dword [ebp - 8], eax
add ebx, 8
dec esi
mov dword [ebp - 4], edi
cmp ebx, dword [ebp - 0x30]
jb 0x53a350
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 8]
movzx ecx, ah
shr edi, cl
mov eax, edi
and eax, 7
add eax, 3
shr edi, 3
mov dword [ebp - 0x1c], eax
mov eax, 0xfffffffd
jmp 0x53a403
add eax, 7
mov dword [ebp - 0x30], eax
cmp ebx, eax
jae 0x53a3e5
nop
test esi, esi
jne 0x53a3ce
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edi, dword [ebp - 4]
movzx eax, byte [edi]
mov ecx, ebx
shl eax, cl
inc edi
add dword [ebp - 8], eax
add ebx, 8
dec esi
mov dword [ebp - 4], edi
cmp ebx, dword [ebp - 0x30]
jb 0x53a3b0
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 8]
movzx ecx, ah
shr edi, cl
mov eax, edi
and eax, 0x7f
add eax, 0xb
shr edi, 7
mov dword [ebp - 0x1c], eax
mov eax, 0xfffffff9
mov edx, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebp - 0x20], 0
add ebx, eax
mov ecx, dword [edx + 0x6c]
mov eax, dword [edx + 0x68]
add ecx, dword [ebp - 0x1c]
add eax, dword [edx + 0x64]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
cmp ecx, eax
ja 0x53a487
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
nop dword [eax]
mov eax, dword [edx + 0x6c]
mov word [edx + eax*2 + 0x74], bx
mov ecx, dword [edx + 0x6c]
lea ecx, [ecx + 1]
mov dword [edx + 0x6c], ecx
sub edi, 1
jne 0x53a430
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov eax, dword [edx + 0x68]
add eax, dword [edx + 0x64]
cmp ecx, eax
jb 0x53a1d0
cmp dword [edx + 4], 0x3f51
je 0x53aad0
cmp word [edx + 0x274], 0
jne 0x53a49d
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
push dword [ebp - 0x24]
lea eax, [edx + 0x534]
mov dword [edx + 0x58], 9
lea ecx, [edx + 0x70]
mov dword [edx + 0x50], eax
mov dword [ecx], eax
lea eax, [edx + 0x58]
push eax
push ecx
push dword [edx + 0x64]
lea eax, [edx + 0x74]
push eax
push 1
call fcn.00540ab0
add esp, 0x18
test eax, eax
je 0x53a4e8
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
push dword [ebp - 0x24]
mov dword [ecx + 0x5c], 6
mov eax, dword [edx]
mov dword [ecx + 0x54], eax
lea eax, [ecx + 0x5c]
push eax
mov eax, dword [ecx + 0x64]
push edx
push dword [ecx + 0x68]
add ecx, 0x74
lea eax, [ecx + eax*2]
push eax
push 2
call fcn.00540ab0
mov edx, dword [ebp - 0xc]
add esp, 0x18
test eax, eax
je 0x53a536
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
mov dword [edx + 4], 0x3f48
cmp esi, 6
jb 0x53a5d3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x102
jb 0x53a5d3
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0xc], eax
mov eax, edx
mov dword [eax + 0x10], ecx
mov ecx, edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov ecx, dword [edx + 0x2c]
mov dword [edx + 0x3c], edi
mov dword [edx + 0x40], ebx
cmp dword [edx + 0x30], ecx
jae 0x53a586
mov eax, ecx
sub eax, dword [ebp - 0x14]
mov dword [edx + 0x30], eax
push ecx
push dword [ebp + 8]
call fcn.00540f30
mov ecx, dword [ebp + 8]
add esp, 8
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov edi, dword [edx + 0x3c]
mov ebx, dword [edx + 0x40]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
jmp 0x53aad0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
mov eax, dword [edx + 0x50]
mov ecx, dword [edx + 0x58]
mov dword [ebp - 0x34], eax
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x50]
dec eax
and eax, edi
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x53a654
test esi, esi
jne 0x53a616
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, ebx
add ebx, 8
dec esi
mov dword [ebp - 0x10], ebx
movzx eax, byte [eax]
inc dword [ebp - 4]
shl eax, cl
mov ecx, dword [edx + 0x58]
add edi, eax
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x34], eax
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x50]
dec eax
and eax, edi
mov dword [ebp - 8], edi
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x53a5f8
test al, al
je 0x53a729
test al, 0xf0
jne 0x53a729
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [ebp - 0x30], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [ebp - 0x1c], edx
and ebx, dword [ebp - 8]
shr ebx, cl
mov ecx, dword [ebp - 0x34]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
mov ebx, dword [ebp - 0x10]
shr ecx, 8
movzx edi, cl
mov ecx, dword [ebp - 0x30]
movzx ecx, cl
add edi, ecx
cmp edi, ebx
jbe 0x53a71c
nop word [eax + eax]
test esi, esi
jne 0x53a6ce
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, ebx
add ebx, 8
mov edi, 1
mov dword [ebp - 0x10], ebx
dec esi
movzx ebx, dh
movzx eax, byte [eax]
inc dword [ebp - 4]
shl eax, cl
add dword [ebp - 8], eax
movzx eax, word [ebp - 0x1a]
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 8]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
mov ebx, dword [ebp - 0x10]
cmp ecx, ebx
ja 0x53a6b0
mov edi, dword [ebp - 8]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edi, cl
sub ebx, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edi, cl
sub ebx, ecx
mov ecx, eax
mov dword [ebp - 8], edi
shr ecx, 0x10
mov dword [ebp - 0x10], ebx
mov dword [edx + 0x44], ecx
test al, al
jne 0x53a78d
cmp dword [ebp - 0x14], 0
jne 0x53a772
mov ecx, dword [edx + 0x2c]
mov eax, dword [edx + 0x38]
push ecx
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [edx + 0x30], ecx
call dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x53ab01
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov al, byte [edx + 0x44]
mov byte [ecx], al
inc ecx
dec dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov dword [edx + 4], 0x3f48
jmp 0x53aad0
test al, 0x20
je 0x53a79d
mov dword [edx + 4], 0x3f3f
jmp 0x53aad0
test al, 0x40
je 0x53a7b7
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_length_code
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
movzx ecx, al
and ecx, 0xf
mov dword [edx + 0x4c], ecx
je 0x53a823
cmp ebx, ecx
jae 0x53a80c
mov eax, dword [ebp - 4]
nop dword [eax]
test esi, esi
jne 0x53a7f1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
add ebx, 8
add edi, eax
dec esi
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [edx + 0x4c]
cmp ebx, ecx
jb 0x53a7d0
mov eax, 1
shl eax, cl
dec eax
and eax, edi
shr edi, cl
add dword [edx + 0x44], eax
sub ebx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
mov eax, dword [edx + 0x54]
mov ecx, dword [edx + 0x5c]
mov dword [ebp - 0x34], eax
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x54]
dec eax
and eax, edi
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x53a8a4
test esi, esi
jne 0x53a866
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, ebx
add ebx, 8
dec esi
mov dword [ebp - 0x10], ebx
movzx eax, byte [eax]
inc dword [ebp - 4]
shl eax, cl
mov ecx, dword [edx + 0x5c]
add edi, eax
mov eax, dword [edx + 0x54]
mov dword [ebp - 0x34], eax
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x54]
dec eax
and eax, edi
mov dword [ebp - 8], edi
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x53a848
test al, 0xf0
jne 0x53a96c
mov ecx, eax
mov ebx, 1
shr ecx, 8
mov edx, eax
movzx edi, cl
mov dword [ebp - 0x30], ecx
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl ebx, cl
mov ecx, edi
dec ebx
mov dword [ebp - 0x1c], edx
and ebx, dword [ebp - 8]
shr ebx, cl
mov ecx, dword [ebp - 0x34]
add ebx, eax
mov eax, dword [ecx + ebx*4]
mov ecx, eax
mov ebx, dword [ebp - 0x10]
shr ecx, 8
movzx edi, cl
mov ecx, dword [ebp - 0x30]
movzx ecx, cl
add edi, ecx
cmp edi, ebx
jbe 0x53a95f
test esi, esi
jne 0x53a910
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
mov ecx, ebx
add ebx, 8
dec esi
mov dword [ebp - 0x10], ebx
movzx ebx, dh
movzx eax, byte [edi]
inc edi
shl eax, cl
add dword [ebp - 8], eax
movzx eax, word [ebp - 0x1a]
mov dword [ebp - 4], edi
mov edi, 1
movzx ecx, dl
add ecx, ebx
shl edi, cl
mov ecx, ebx
dec edi
and edi, dword [ebp - 8]
shr edi, cl
add edi, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + edi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, ebx
mov ebx, dword [ebp - 0x10]
cmp ecx, ebx
ja 0x53a8f2
mov edi, dword [ebp - 8]
movzx ecx, dh
mov edx, dword [ebp - 0xc]
shr edi, cl
sub ebx, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edi, cl
sub ebx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
test al, 0x40
je 0x53a998
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_code
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x34], ecx
mov dword [edx + 0x48], ecx
movzx ecx, al
and ecx, 0xf
mov dword [edx + 0x4c], ecx
je 0x53aa0e
cmp ebx, ecx
jae 0x53a9f1
mov eax, dword [ebp - 4]
test esi, esi
jne 0x53a9d6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call dword [ebp + 0xc]
mov esi, eax
add esp, 8
test esi, esi
je 0x53aafa
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov ecx, ebx
shl eax, cl
add ebx, 8
add edi, eax
dec esi
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [edx + 0x4c]
cmp ebx, ecx
jb 0x53a9b5
mov eax, 1
shl eax, cl
dec eax
and eax, edi
shr edi, cl
add dword [edx + 0x48], eax
sub ebx, ecx
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x34], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
mov ecx, dword [edx + 0x2c]
cmp dword [edx + 0x30], ecx
sbb eax, eax
and eax, dword [ebp - 0x14]
sub ecx, eax
cmp dword [ebp - 0x34], ecx
jbe 0x53aa36
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
mov dword [edx + 4], 0x3f51
jmp 0x53aad0
cmp dword [ebp - 0x14], 0
jne 0x53aa61
mov ecx, dword [edx + 0x2c]
mov eax, dword [edx + 0x38]
push ecx
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [edx + 0x30], ecx
call dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x53ab01
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x48]
mov edx, dword [edx + 0x2c]
mov edi, dword [ebp - 0x18]
sub edx, eax
mov ecx, edi
sub ecx, eax
cmp edx, dword [ebp - 0x14]
lea eax, [edx + edi]
cmovae eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
sub ecx, edx
cmp edx, eax
mov edx, dword [ebp - 0xc]
cmovae ecx, eax
mov eax, dword [edx + 0x44]
cmp ecx, eax
mov edx, eax
cmovbe edx, ecx
mov ecx, dword [ebp - 0x30]
sub eax, edx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x44], eax
mov edx, dword [ebp - 0x34]
sub dword [ebp - 0x14], edx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi], al
inc edi
sub edx, 1
jne 0x53aab0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 8]
cmp dword [edx + 0x44], 0
jne 0x53aa36
mov eax, dword [edx + 4]
sub eax, 0x3f3f
cmp eax, 0x12
jbe 0x539df5
mov edi, 0xfffffffe
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov edi, 0xfffffffb
mov ecx, dword [ebp - 4]
mov dword [eax + 4], esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, ebx
mov edi, 0xfffffffb
mov dword [ebp - 4], ebx
mov dword [eax + 4], esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
mov edi, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jae 0x53aae6
sub eax, ecx
push eax
push dword [edx + 0x38]
push dword [ebp + 0x18]
call dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x53aae6
mov eax, dword [ebp + 8]
mov edi, 0xfffffffb
mov ecx, dword [ebp - 4]
mov dword [eax + 4], esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edi, 0xfffffffd
mov ecx, dword [ebp - 4]
mov dword [eax + 4], esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret