Function at 0xa514e5a
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.0a515a65
pop ecx
test eax, eax
jne 0xa5156e7
mov ebx, dword [ebp + 0xc]
cmp ebx, 5
ja 0xa5156e7
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
je 0xa5156df
cmp dword [edi + 4], eax
je 0xa514e9a
cmp dword [edi], eax
je 0xa5156df
cmp dword [esi + 4], 0x29a
jne 0xa514eac
cmp ebx, 4
jne 0xa5156df
cmp dword [edi + 0x10], 0
je 0xa514f1e
cmp dword [esi + 0x14], 0
mov edx, dword [esi + 0x28]
push 9
mov dword [esi + 0x28], ebx
pop ecx
je 0xa514ed9
push edi
call fcn.0a516062
cmp dword [edi + 0x10], 0
pop ecx
jne 0xa514f04
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0xa5156ea
cmp dword [edi + 4], 0
jne 0xa514f04
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 0xa514f04
cmp ebx, 4
jne 0xa514f1e
cmp dword [esi + 4], 0x29a
mov dword [ebp - 0xc], 0x1f
jne 0xa514f2d
cmp dword [edi + 4], 0
je 0xa514ffe
mov eax, dword [0xa478b6c]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffb
jmp 0xa5156e9
cmp dword [esi + 4], 0x2a
jne 0xa514ffe
cmp dword [esi + 0x18], 0
jne 0xa514f49
mov dword [esi + 4], 0x71
jmp 0xa514ffe
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
mov dword [ebp - 0x10], ecx
jge 0xa514f8e
mov eax, dword [esi + 0x84]
cmp eax, 2
jl 0xa514f8e
cmp eax, 6
jge 0xa514f78
push 0x40
pop eax
push 0x60
jmp 0xa514f92
jne 0xa514f84
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0xa514f93
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0xa514f93
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0xa514fa0
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.0a516291
cmp dword [esi + 0x6c], 0
pop ecx
pop ecx
je 0xa514fd6
movzx eax, word [edi + 0x32]
push eax
push esi
call fcn.0a516291
movzx eax, word [edi + 0x30]
push eax
push esi
call fcn.0a516291
add esp, 0x10
push 0
push 0
push 0
call fcn.0a513629
mov dword [edi + 0x30], eax
push edi
mov dword [esi + 4], 0x71
call fcn.0a516062
add esp, 0x10
cmp dword [esi + 0x14], 0
jne 0xa514ece
cmp dword [esi + 4], 0x39
jne 0xa515220
push 0
push 0
push 0
call fcn.0a513873
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 0xa5150ee
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 0xa5150a6
mov cl, 2
jmp 0xa5150ba
cmp dword [esi + 0x88], 2
jge 0xa5150b8
cmp eax, 2
jl 0xa5150b8
xor cl, cl
jmp 0xa5150ba
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.0a516062
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa514ece
jmp 0xa515220
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 0xa51519a
mov cl, 2
jmp 0xa5151ae
cmp dword [esi + 0x88], 2
jge 0xa5151ac
cmp eax, 2
jl 0xa5151ac
xor cl, cl
jmp 0xa5151ae
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 0xa5151fa
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 0xa515215
push edx
push dword [esi + 8]
push dword [edi + 0x30]
call fcn.0a513873
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 0xa515325
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0xa51531c
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 0xa5152d1
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.0a553d90
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0xa5152a1
cmp ecx, ebx
jbe 0xa5152a1
mov eax, dword [esi + 8]
sub ecx, ebx
push ecx
add eax, ebx
push eax
push dword [edi + 0x30]
call fcn.0a513873
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
add dword [esi + 0x20], eax
push edi
call fcn.0a516062
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0xa514ece
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 0xa515258
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.0a553d90
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [esi + 0x1c]
add ecx, dword [esi + 0x14]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0xa515318
cmp ecx, ebx
jbe 0xa515318
mov eax, dword [esi + 8]
sub ecx, ebx
push ecx
add eax, ebx
push eax
push dword [edi + 0x30]
call fcn.0a513873
add esp, 0xc
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x49
jmp 0xa51532e
cmp eax, 0x49
jne 0xa5153df
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], 0
je 0xa5153d6
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0xa515383
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa51536c
cmp ebx, ecx
jbe 0xa51536c
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a513873
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
call fcn.0a516062
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa514ece
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 0xa5153ab
mov ecx, dword [ebp - 4]
jmp 0xa515343
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa5153d2
mov ecx, dword [ebp - 4]
cmp ebx, ecx
jbe 0xa5153d2
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a513873
add esp, 0xc
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x5b
jmp 0xa5153e8
cmp eax, 0x5b
jne 0xa515498
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], 0
je 0xa51548c
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0xa51543d
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa515426
cmp ebx, ecx
jbe 0xa515426
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a513873
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
call fcn.0a516062
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa514ece
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 0xa515465
mov ecx, dword [ebp - 4]
jmp 0xa5153fd
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa51548c
mov ecx, dword [ebp - 4]
cmp ebx, ecx
jbe 0xa51548c
mov eax, dword [esi + 8]
sub ebx, ecx
push ebx
add eax, ecx
push eax
push dword [edi + 0x30]
call fcn.0a513873
add esp, 0xc
mov dword [edi + 0x30], eax
mov ebx, dword [ebp + 0xc]
mov dword [esi + 4], 0x67
jmp 0xa51549d
cmp eax, 0x67
jne 0xa515507
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0xa5154ef
mov edx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, dword [esi + 0xc]
jbe 0xa5154c3
push edi
call fcn.0a516062
mov edx, dword [esi + 0x14]
pop ecx
test edx, edx
jne 0xa514ece
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.0a513873
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
mov dword [esi + 4], 0x71
call fcn.0a516062
cmp dword [esi + 0x14], 0
pop ecx
jne 0xa514ece
cmp dword [edi + 4], 0
jne 0xa515528
cmp dword [esi + 0x74], 0
jne 0xa515528
test ebx, ebx
je 0xa514ed2
cmp dword [esi + 4], 0x29a
je 0xa5155f8
mov ecx, dword [esi + 0x84]
push ebx
push esi
test ecx, ecx
jne 0xa51553b
call fcn.0a514330
jmp 0xa515562
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0xa51554d
call fcn.0a515abc
jmp 0xa515562
cmp eax, 3
jne 0xa515559
call fcn.0a515c21
jmp 0xa515562
imul eax, ecx, 0xc
call dword [eax + 0xa478d80]
pop ecx
pop ecx
cmp eax, 2
je 0xa51556e
cmp eax, 3
jne 0xa515575
mov dword [esi + 4], 0x29a
test eax, eax
je 0xa5156d0
cmp eax, 2
je 0xa5156d0
cmp eax, 1
jne 0xa5155f8
cmp ebx, eax
jne 0xa515598
push esi
call fcn.0a5163a8
pop ecx
jmp 0xa5155e7
cmp ebx, 5
je 0xa5155e7
xor eax, eax
push eax
push eax
push eax
push esi
call fcn.0a5166e0
add esp, 0x10
cmp ebx, 3
jne 0xa5155e7
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.0a554310
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x74], eax
jne 0xa5155e7
mov dword [esi + 0x6c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x16b4], eax
push edi
call fcn.0a516062
cmp dword [edi + 0x10], 0
pop ecx
je 0xa514ece
cmp ebx, 4
jne 0xa514ed2
cmp dword [esi + 0x18], 0
jg 0xa51560f
xor eax, eax
inc eax
jmp 0xa5156ea
cmp dword [esi + 0x18], 2
jne 0xa51569a
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 0xa5156b3
movzx eax, word [edi + 0x32]
push eax
push esi
call fcn.0a516291
movzx eax, word [edi + 0x30]
push eax
push esi
call fcn.0a516291
add esp, 0x10
push edi
call fcn.0a516062
mov eax, dword [esi + 0x18]
pop ecx
test eax, eax
jle 0xa5156c6
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
sete al
jmp 0xa5156ea
cmp dword [edi + 0x10], 0
jne 0xa514ed2
jmp 0xa514ece
mov eax, dword [0xa478b60]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret