Function at 0xa6cb143
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.0a6cbd4e
pop ecx
test eax, eax
jne 0xa6cb9d0
mov ebx, dword [ebp + 0xc]
cmp ebx, 5
ja 0xa6cb9d0
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
je 0xa6cb9c8
cmp dword [edi + 4], eax
je 0xa6cb183
cmp dword [edi], eax
je 0xa6cb9c8
cmp dword [esi + 4], 0x29a
jne 0xa6cb195
cmp ebx, 4
jne 0xa6cb9c8
cmp dword [edi + 0x10], 0
je 0xa6cb207
cmp dword [esi + 0x14], 0
mov edx, dword [esi + 0x28]
push 9
mov dword [esi + 0x28], ebx
pop ecx
je 0xa6cb1c2
push edi
call fcn.0a6cc36c
cmp dword [edi + 0x10], 0
pop ecx
jne 0xa6cb1ed
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0xa6cb9d3
cmp dword [edi + 4], 0
jne 0xa6cb1ed
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 0xa6cb1ed
cmp ebx, 4
jne 0xa6cb207
cmp dword [esi + 4], 0x29a
mov dword [ebp - 0xc], 0x1f
jne 0xa6cb216
cmp dword [edi + 4], 0
je 0xa6cb2e7
mov eax, dword [0xa5ec4d4]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffb
jmp 0xa6cb9d2
cmp dword [esi + 4], 0x2a
jne 0xa6cb2e7
cmp dword [esi + 0x18], 0
jne 0xa6cb232
mov dword [esi + 4], 0x71
jmp 0xa6cb2e7
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
mov dword [ebp - 0x10], ecx
jge 0xa6cb277
mov eax, dword [esi + 0x84]
cmp eax, 2
jl 0xa6cb277
cmp eax, 6
jge 0xa6cb261
push 0x40
pop eax
push 0x60
jmp 0xa6cb27b
jne 0xa6cb26d
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0xa6cb27c
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0xa6cb27c
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0xa6cb289
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.0a6cc59b
cmp dword [esi + 0x6c], 0
pop ecx
pop ecx
je 0xa6cb2bf
movzx eax, word [edi + 0x32]
push eax
push esi
call fcn.0a6cc59b
movzx eax, word [edi + 0x30]
push eax
push esi
call fcn.0a6cc59b
add esp, 0x10
push 0
push 0
push 0
call fcn.0a6c9907
mov dword [edi + 0x30], eax
push edi
mov dword [esi + 4], 0x71
call fcn.0a6cc36c
add esp, 0x10
cmp dword [esi + 0x14], 0
jne 0xa6cb1b7
cmp dword [esi + 4], 0x39
jne 0xa6cb509
push 0
push 0
push 0
call fcn.0a6c9b51
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 0xa6cb3d7
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 0xa6cb38f
mov cl, 2
jmp 0xa6cb3a3
cmp dword [esi + 0x88], 2
jge 0xa6cb3a1
cmp eax, 2
jl 0xa6cb3a1
xor cl, cl
jmp 0xa6cb3a3
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.0a6cc36c
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa6cb1b7
jmp 0xa6cb509
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 0xa6cb483
mov cl, 2
jmp 0xa6cb497
cmp dword [esi + 0x88], 2
jge 0xa6cb495
cmp eax, 2
jl 0xa6cb495
xor cl, cl
jmp 0xa6cb497
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 0xa6cb4e3
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 0xa6cb4fe
push edx
push dword [esi + 8]
push dword [edi + 0x30]
call fcn.0a6c9b51
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 0xa6cb60e
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0xa6cb605
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 0xa6cb5ba
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.0a708490
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0xa6cb58a
cmp ecx, ebx
jbe 0xa6cb58a
mov eax, dword [esi + 8]
sub ecx, ebx
push ecx
add eax, ebx
push eax
push dword [edi + 0x30]
call fcn.0a6c9b51
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
add dword [esi + 0x20], eax
push edi
call fcn.0a6cc36c
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0xa6cb1b7
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 0xa6cb541
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.0a708490
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 0xa6cb601
cmp ecx, ebx
jbe 0xa6cb601
mov eax, dword [esi + 8]
sub ecx, ebx
push ecx
add eax, ebx
push eax
push dword [edi + 0x30]
call fcn.0a6c9b51
add esp, 0xc
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x49
jmp 0xa6cb617
cmp eax, 0x49
jne 0xa6cb6c8
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], 0
je 0xa6cb6bf
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0xa6cb66c
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cb655
cmp ebx, ecx
jbe 0xa6cb655
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a6c9b51
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
call fcn.0a6cc36c
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa6cb1b7
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 0xa6cb694
mov ecx, dword [ebp - 4]
jmp 0xa6cb62c
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cb6bb
mov ecx, dword [ebp - 4]
cmp ebx, ecx
jbe 0xa6cb6bb
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a6c9b51
add esp, 0xc
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x5b
jmp 0xa6cb6d1
cmp eax, 0x5b
jne 0xa6cb781
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], 0
je 0xa6cb775
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0xa6cb726
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cb70f
cmp ebx, ecx
jbe 0xa6cb70f
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a6c9b51
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
call fcn.0a6cc36c
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa6cb1b7
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 0xa6cb74e
mov ecx, dword [ebp - 4]
jmp 0xa6cb6e6
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cb775
mov ecx, dword [ebp - 4]
cmp ebx, ecx
jbe 0xa6cb775
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a6c9b51
add esp, 0xc
mov dword [edi + 0x30], eax
mov ebx, dword [ebp + 0xc]
mov dword [esi + 4], 0x67
jmp 0xa6cb786
cmp eax, 0x67
jne 0xa6cb7f0
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa6cb7d8
mov edx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, dword [esi + 0xc]
jbe 0xa6cb7ac
push edi
call fcn.0a6cc36c
mov edx, dword [esi + 0x14]
pop ecx
test edx, edx
jne 0xa6cb1b7
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.0a6c9b51
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
mov dword [esi + 4], 0x71
call fcn.0a6cc36c
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa6cb1b7
cmp dword [edi + 4], 0
jne 0xa6cb811
cmp dword [esi + 0x74], 0
jne 0xa6cb811
test ebx, ebx
je 0xa6cb1bb
cmp dword [esi + 4], 0x29a
je 0xa6cb8e1
mov ecx, dword [esi + 0x84]
push ebx
push esi
test ecx, ecx
jne 0xa6cb824
call fcn.0a6ca5f4
jmp 0xa6cb84b
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0xa6cb836
call fcn.0a6cbda5
jmp 0xa6cb84b
cmp eax, 3
jne 0xa6cb842
call fcn.0a6cbf0a
jmp 0xa6cb84b
imul eax, ecx, 0xc
call dword [eax + 0xa5ec6e8]
pop ecx
pop ecx
cmp eax, 2
je 0xa6cb857
cmp eax, 3
jne 0xa6cb85e
mov dword [esi + 4], 0x29a
test eax, eax
je 0xa6cb9b9
cmp eax, 2
je 0xa6cb9b9
cmp eax, 1
jne 0xa6cb8e1
cmp ebx, eax
jne 0xa6cb881
push esi
call fcn.0a6cc6b2
pop ecx
jmp 0xa6cb8d0
cmp ebx, 5
je 0xa6cb8d0
xor eax, eax
push eax
push eax
push eax
push esi
call fcn.0a6cc9f4
add esp, 0x10
cmp ebx, 3
jne 0xa6cb8d0
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.0a708a10
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x74], eax
jne 0xa6cb8d0
mov dword [esi + 0x6c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x16b4], eax
push edi
call fcn.0a6cc36c
cmp dword [edi + 0x10], 0
pop ecx
je 0xa6cb1b7
cmp ebx, 4
jne 0xa6cb1bb
cmp dword [esi + 0x18], 0
jg 0xa6cb8f8
xor eax, eax
inc eax
jmp 0xa6cb9d3
cmp dword [esi + 0x18], 2
jne 0xa6cb983
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 0xa6cb99c
movzx eax, word [edi + 0x32]
push eax
push esi
call fcn.0a6cc59b
movzx eax, word [edi + 0x30]
push eax
push esi
call fcn.0a6cc59b
add esp, 0x10
push edi
call fcn.0a6cc36c
mov eax, dword [esi + 0x18]
pop ecx
test eax, eax
jle 0xa6cb9af
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
sete al
jmp 0xa6cb9d3
cmp dword [edi + 0x10], 0
jne 0xa6cb1bb
jmp 0xa6cb1b7
mov eax, dword [0xa5ec4c8]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret