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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0a6cd050
pop ecx
test eax, eax
jne 0xa6cccd4
mov ebx, dword [ebp + 0xc]
cmp ebx, 5
ja 0xa6cccd4
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
je 0xa6ccccc
cmp dword [edi + 4], eax
je 0xa6cc487
cmp dword [edi], eax
je 0xa6ccccc
cmp dword [esi + 4], 0x29a
jne 0xa6cc499
cmp ebx, 4
jne 0xa6ccccc
cmp dword [edi + 0x10], 0
je 0xa6cc50b
cmp dword [esi + 0x14], 0
mov edx, dword [esi + 0x28]
push 9
mov dword [esi + 0x28], ebx
pop ecx
je 0xa6cc4c6
push edi
call fcn.0a6cd671
cmp dword [edi + 0x10], 0
pop ecx
jne 0xa6cc4f1
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0xa6cccd7
cmp dword [edi + 4], 0
jne 0xa6cc4f1
xor eax, eax
cmp edx, 4
push 9
cmovg eax, ecx
add edx, edx
sub edx, eax
xor ecx, ecx
cmp ebx, 4
pop eax
cmovg ecx, eax
lea eax, [ebx + ebx]
sub eax, ecx
cmp eax, edx
jg 0xa6cc4f1
cmp ebx, 4
jne 0xa6cc50b
cmp dword [esi + 4], 0x29a
mov dword [ebp - 0xc], 0x1f
jne 0xa6cc51a
cmp dword [edi + 4], 0
je 0xa6cc5eb
mov eax, dword [0xa5ec704]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffb
jmp 0xa6cccd6
cmp dword [esi + 4], 0x2a
jne 0xa6cc5eb
cmp dword [esi + 0x18], 0
jne 0xa6cc536
mov dword [esi + 4], 0x71
jmp 0xa6cc5eb
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
mov dword [ebp - 0x10], ecx
jge 0xa6cc57b
mov eax, dword [esi + 0x84]
cmp eax, 2
jl 0xa6cc57b
cmp eax, 6
jge 0xa6cc565
push 0x40
pop eax
push 0x60
jmp 0xa6cc57f
jne 0xa6cc571
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0xa6cc580
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0xa6cc580
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0xa6cc58d
mov ecx, edx
or ecx, dword [ebp - 0x10]
mov eax, ecx
xor edx, edx
div dword [ebp - 0xc]
push 0x1f
pop eax
sub ecx, edx
add ecx, eax
push ecx
push esi
call fcn.0a6cd8a0
cmp dword [esi + 0x6c], 0
pop ecx
pop ecx
je 0xa6cc5c3
movzx eax, word [edi + 0x32]
push eax
push esi
call fcn.0a6cd8a0
movzx eax, word [edi + 0x30]
push eax
push esi
call fcn.0a6cd8a0
add esp, 0x10
push 0
push 0
push 0
call fcn.0a6cac06
mov dword [edi + 0x30], eax
push edi
mov dword [esi + 4], 0x71
call fcn.0a6cd671
add esp, 0x10
cmp dword [esi + 0x14], 0
jne 0xa6cc4bb
cmp dword [esi + 4], 0x39
jne 0xa6cc80d
push 0
push 0
push 0
call fcn.0a6cae50
mov dword [edi + 0x30], eax
add esp, 0xc
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
push 0x1f
pop edx
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
inc ecx
mov dword [esi + 0x14], ecx
mov byte [ecx + eax], 0x8b
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
inc ecx
mov dword [esi + 0x14], ecx
mov byte [ecx + eax], 8
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x14], edx
test eax, eax
jne 0xa6cc6db
mov eax, dword [esi + 8]
mov byte [edx + eax], 0
xor edx, edx
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
inc ecx
mov dword [esi + 0x14], ecx
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
inc ecx
mov dword [esi + 0x14], ecx
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
inc ecx
mov dword [esi + 0x14], ecx
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
inc ecx
mov dword [esi + 0x14], ecx
mov byte [ecx + eax], dl
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x84]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0xa6cc693
mov cl, 2
jmp 0xa6cc6a7
cmp dword [esi + 0x88], 2
jge 0xa6cc6a5
cmp eax, 2
jl 0xa6cc6a5
xor cl, cl
jmp 0xa6cc6a7
mov cl, 4
mov eax, dword [esi + 8]
push edi
mov byte [edx + eax], cl
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
inc ecx
mov dword [esi + 0x14], ecx
mov byte [ecx + eax], 0xa
inc dword [esi + 0x14]
mov dword [esi + 4], 0x71
call fcn.0a6cd671
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa6cc4bb
jmp 0xa6cc80d
cmp dword [eax + 0x24], 0
sete cl
dec cl
and cl, 0x10
cmp dword [eax + 0x2c], 0
sete al
dec al
and al, 2
add cl, al
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], 0
sete al
dec al
and al, 8
add cl, al
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
sete al
dec al
and al, 4
add cl, al
mov eax, dword [esi + 0x1c]
cmp dword [eax], 0
setne al
add cl, al
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], edx
mov al, byte [eax + 4]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], edx
mov al, byte [eax + 5]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], edx
mov al, byte [eax + 6]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], edx
mov al, byte [eax + 7]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x84]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0xa6cc787
mov cl, 2
jmp 0xa6cc79b
cmp dword [esi + 0x88], 2
jge 0xa6cc799
cmp eax, 2
jl 0xa6cc799
xor cl, cl
jmp 0xa6cc79b
mov cl, 4
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], edx
mov al, byte [eax + 0xc]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x14], edx
cmp dword [eax + 0x10], 0
je 0xa6cc7e7
mov ecx, dword [esi + 8]
mov al, byte [eax + 0x14]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], edx
mov al, byte [eax + 0x15]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
inc edx
mov dword [esi + 0x14], edx
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cc802
push edx
push dword [esi + 8]
push dword [edi + 0x30]
call fcn.0a6cae50
add esp, 0xc
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x45
mov eax, dword [esi + 4]
cmp eax, 0x45
jne 0xa6cc912
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0xa6cc909
movzx ecx, word [eax + 0x14]
sub ecx, dword [esi + 0x20]
mov ebx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ebx
lea eax, [ebx + ecx]
cmp eax, edx
jbe 0xa6cc8be
mov eax, ebx
mov dword [ebp - 0xc], ebx
sub edx, eax
mov eax, dword [esi + 0x1c]
push edx
mov dword [ebp - 8], edx
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x20]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp - 0xc]
push eax
call fcn.0a709750
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0xa6cc88e
cmp ecx, ebx
jbe 0xa6cc88e
mov eax, dword [esi + 8]
sub ecx, ebx
push ecx
add eax, ebx
push eax
push dword [edi + 0x30]
call fcn.0a6cae50
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
add dword [esi + 0x20], eax
push edi
call fcn.0a6cd671
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0xa6cc4bb
mov ecx, dword [ebp - 4]
xor ebx, ebx
sub ecx, dword [ebp - 8]
mov edx, dword [esi + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
cmp ecx, edx
ja 0xa6cc845
mov eax, dword [esi + 0x1c]
push ecx
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x20]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp - 0x10]
push eax
call fcn.0a709750
mov ecx, dword [esi + 0x14]
add esp, 0xc
mov eax, dword [esi + 0x1c]
add ecx, dword [ebp - 4]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0xa6cc905
cmp ecx, ebx
jbe 0xa6cc905
mov eax, dword [esi + 8]
sub ecx, ebx
push ecx
add eax, ebx
push eax
push dword [edi + 0x30]
call fcn.0a6cae50
add esp, 0xc
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x49
jmp 0xa6cc91b
cmp eax, 0x49
jne 0xa6cc9cc
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], 0
je 0xa6cc9c3
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0xa6cc970
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cc959
cmp ebx, ecx
jbe 0xa6cc959
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a6cae50
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
call fcn.0a6cd671
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa6cc4bb
and dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x1c]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x14]
inc ebx
mov dword [esi + 0x14], ebx
test dl, dl
je 0xa6cc998
mov ecx, dword [ebp - 4]
jmp 0xa6cc930
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cc9bf
mov ecx, dword [ebp - 4]
cmp ebx, ecx
jbe 0xa6cc9bf
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a6cae50
add esp, 0xc
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x5b
jmp 0xa6cc9d5
cmp eax, 0x5b
jne 0xa6cca85
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], 0
je 0xa6cca79
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0xa6cca2a
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cca13
cmp ebx, ecx
jbe 0xa6cca13
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a6cae50
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
call fcn.0a6cd671
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa6cc4bb
and dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x24]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x14]
inc ebx
mov dword [esi + 0x14], ebx
test dl, dl
je 0xa6cca52
mov ecx, dword [ebp - 4]
jmp 0xa6cc9ea
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cca79
mov ecx, dword [ebp - 4]
cmp ebx, ecx
jbe 0xa6cca79
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a6cae50
add esp, 0xc
mov dword [edi + 0x30], eax
mov ebx, dword [ebp + 0xc]
mov dword [esi + 4], 0x67
jmp 0xa6cca8a
cmp eax, 0x67
jne 0xa6ccaf4
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6ccadc
mov edx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, dword [esi + 0xc]
jbe 0xa6ccab0
push edi
call fcn.0a6cd671
mov edx, dword [esi + 0x14]
pop ecx
test edx, edx
jne 0xa6cc4bb
mov ecx, dword [esi + 8]
mov al, byte [edi + 0x30]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
inc edx
mov dword [esi + 0x14], edx
mov al, byte [edi + 0x31]
mov byte [edx + ecx], al
xor eax, eax
inc dword [esi + 0x14]
push eax
push eax
push eax
call fcn.0a6cae50
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
mov dword [esi + 4], 0x71
call fcn.0a6cd671
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa6cc4bb
cmp dword [edi + 4], 0
jne 0xa6ccb15
cmp dword [esi + 0x74], 0
jne 0xa6ccb15
test ebx, ebx
je 0xa6cc4bf
cmp dword [esi + 4], 0x29a
je 0xa6ccbe5
mov ecx, dword [esi + 0x84]
push ebx
push esi
test ecx, ecx
jne 0xa6ccb28
call fcn.0a6cb8f6
jmp 0xa6ccb4f
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0xa6ccb3a
call fcn.0a6cd0a7
jmp 0xa6ccb4f
cmp eax, 3
jne 0xa6ccb46
call fcn.0a6cd20c
jmp 0xa6ccb4f
imul eax, ecx, 0xc
call dword [eax + 0xa5ec918]
pop ecx
pop ecx
cmp eax, 2
je 0xa6ccb5b
cmp eax, 3
jne 0xa6ccb62
mov dword [esi + 4], 0x29a
test eax, eax
je 0xa6cccbd
cmp eax, 2
je 0xa6cccbd
cmp eax, 1
jne 0xa6ccbe5
cmp ebx, eax
jne 0xa6ccb85
push esi
call fcn.0a6cd9b7
pop ecx
jmp 0xa6ccbd4
cmp ebx, 5
je 0xa6ccbd4
xor eax, eax
push eax
push eax
push eax
push esi
call fcn.0a6cdcfc
add esp, 0x10
cmp ebx, 3
jne 0xa6ccbd4
mov eax, dword [esi + 0x44]
xor edx, edx
mov ecx, dword [esi + 0x4c]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0a709cd0
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x74], eax
jne 0xa6ccbd4
mov dword [esi + 0x6c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x16b4], eax
push edi
call fcn.0a6cd671
cmp dword [edi + 0x10], 0
pop ecx
je 0xa6cc4bb
cmp ebx, 4
jne 0xa6cc4bf
cmp dword [esi + 0x18], 0
jg 0xa6ccbfc
xor eax, eax
inc eax
jmp 0xa6cccd7
cmp dword [esi + 0x18], 2
jne 0xa6ccc87
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x30]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
inc edx
mov dword [esi + 0x14], edx
mov al, byte [edi + 0x31]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
inc edx
mov dword [esi + 0x14], edx
mov al, byte [edi + 0x32]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
inc edx
mov dword [esi + 0x14], edx
mov al, byte [edi + 0x33]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
inc edx
mov dword [esi + 0x14], edx
mov al, byte [edi + 8]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
inc edx
mov dword [esi + 0x14], edx
mov al, byte [edi + 9]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
inc edx
mov dword [esi + 0x14], edx
mov al, byte [edi + 0xa]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
inc edx
mov dword [esi + 0x14], edx
mov al, byte [edi + 0xb]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
jmp 0xa6ccca0
movzx eax, word [edi + 0x32]
push eax
push esi
call fcn.0a6cd8a0
movzx eax, word [edi + 0x30]
push eax
push esi
call fcn.0a6cd8a0
add esp, 0x10
push edi
call fcn.0a6cd671
mov eax, dword [esi + 0x18]
pop ecx
test eax, eax
jle 0xa6cccb3
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
sete al
jmp 0xa6cccd7
cmp dword [edi + 0x10], 0
jne 0xa6cc4bf
jmp 0xa6cc4bb
mov eax, dword [0xa5ec6f8]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret