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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x54ca56
mov esi, dword [edi + 0x1c]
cmp esi, ebx
je 0x54ca56
mov ecx, dword [ebp + 0xc]
cmp ecx, 4
jg 0x54ca56
cmp ecx, ebx
jl 0x54ca56
cmp dword [edi + 0xc], ebx
je 0x54ca4e
cmp dword [edi], ebx
jne 0x54c315
cmp dword [edi + 4], ebx
jne 0x54ca4e
mov eax, dword [esi + 4]
cmp eax, 0x29a
jne 0x54c328
cmp ecx, 4
jne 0x54ca4e
cmp dword [edi + 0x10], ebx
je 0x54c8b3
mov edx, dword [esi + 0x28]
cmp eax, 0x2a
mov dword [esi], edi
mov dword [ebp - 8], edx
mov dword [esi + 0x28], ecx
jne 0x54c5cf
cmp dword [esi + 0x18], 2
jne 0x54c539
push ebx
push ebx
push ebx
call fcn.005427b4
mov dword [edi + 0x30], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
add esp, 0xc
mov byte [eax + ecx], 0x1f
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0x8b
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 8
mov eax, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
cmp eax, ebx
jne 0x54c414
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], bl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], bl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], bl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], bl
mov eax, dword [esi + 0x84]
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
cmp eax, 9
jne 0x54c3dd
push 2
jmp 0x54c3f1
cmp dword [esi + 0x88], 2
jge 0x54c3ef
cmp eax, 2
jl 0x54c3ef
xor eax, eax
jmp 0x54c3f2
push 4
pop eax
mov edx, dword [esi + 8]
mov byte [ecx + edx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0xb
inc dword [esi + 0x14]
mov dword [esi + 4], 0x71
jmp 0x54c5cf
cmp dword [eax + 0x24], ebx
sete dl
dec dl
and edx, 0x10
cmp dword [eax + 0x2c], ebx
sete bl
dec bl
and ebx, 2
add dl, bl
cmp dword [eax + 0x1c], 0
sete bl
dec bl
and ebx, 8
add dl, bl
cmp dword [eax + 0x10], 0
sete bl
dec bl
and ebx, 4
add dl, bl
xor ebx, ebx
cmp dword [eax], ebx
setne al
add dl, al
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 4]
mov byte [eax + edx], cl
mov ecx, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 5]
mov byte [eax + edx], cl
mov ecx, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 6]
mov byte [eax + edx], cl
mov ecx, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 7]
mov byte [eax + edx], cl
mov eax, dword [esi + 0x84]
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
cmp eax, 9
jne 0x54c4b4
push 2
jmp 0x54c4c8
cmp dword [esi + 0x88], 2
jge 0x54c4c6
cmp eax, 2
jl 0x54c4c6
xor eax, eax
jmp 0x54c4c9
push 4
pop eax
mov edx, dword [esi + 8]
mov byte [ecx + edx], al
mov ecx, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 0xc]
mov byte [eax + edx], cl
mov eax, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
cmp dword [eax + 0x10], ebx
je 0x54c510
mov edx, dword [esi + 8]
mov al, byte [eax + 0x14]
mov byte [ecx + edx], al
mov ecx, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 0x15]
mov byte [eax + edx], cl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x54c52a
push ecx
push dword [esi + 8]
push dword [edi + 0x30]
call fcn.005427b4
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x45
jmp 0x54c5cf
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
jge 0x54c571
mov eax, dword [esi + 0x84]
cmp eax, 2
jl 0x54c571
cmp eax, 6
jge 0x54c563
xor eax, eax
inc eax
jmp 0x54c573
xor edx, edx
cmp eax, 6
setne dl
inc edx
inc edx
mov eax, edx
jmp 0x54c573
xor eax, eax
shl eax, 6
or ecx, eax
cmp dword [esi + 0x6c], ebx
je 0x54c580
or ecx, 0x20
push 0x1f
mov eax, ecx
xor edx, edx
pop ebx
div ebx
mov dword [esi + 4], 0x71
sub ecx, edx
add ecx, ebx
push ecx
push esi
call fcn.0054ca5e
xor ebx, ebx
pop ecx
cmp dword [esi + 0x6c], ebx
pop ecx
je 0x54c5c1
movzx eax, word [edi + 0x32]
push eax
push esi
call fcn.0054ca5e
mov eax, dword [edi + 0x30]
and eax, 0xffff
push eax
push esi
call fcn.0054ca5e
add esp, 0x10
push ebx
push ebx
push ebx
call fcn.005506dc
add esp, 0xc
mov dword [edi + 0x30], eax
cmp dword [esi + 4], 0x45
jne 0x54c6a0
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x10], ebx
je 0x54c699
mov eax, dword [esi + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x14]
and eax, 0xffff
cmp dword [esi + 0x20], eax
jae 0x54c662
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x54c635
cmp dword [ecx + 0x2c], ebx
je 0x54c623
cmp eax, dword [ebp + 8]
jbe 0x54c623
sub eax, dword [ebp + 8]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
push eax
push dword [edi + 0x30]
call fcn.005427b4
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
call fcn.0054ca88
mov eax, dword [esi + 0x14]
pop ecx
cmp eax, dword [esi + 0xc]
mov dword [ebp + 8], eax
je 0x54c662
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov ebx, dword [esi + 8]
mov ecx, dword [ecx + 0x10]
mov cl, byte [ecx + edx]
mov byte [eax + ebx], cl
mov ecx, dword [esi + 0x1c]
inc dword [esi + 0x14]
inc dword [esi + 0x20]
mov edx, dword [ecx + 0x14]
mov eax, dword [esi + 0x20]
and edx, 0xffff
xor ebx, ebx
cmp eax, edx
jb 0x54c5f8
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x54c68b
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp + 8]
jbe 0x54c68b
sub eax, dword [ebp + 8]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
push eax
push dword [edi + 0x30]
call fcn.005427b4
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp ecx, dword [eax + 0x14]
jne 0x54c6a0
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x49
cmp dword [esi + 4], 0x49
jne 0x54c75e
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], ebx
je 0x54c757
mov eax, dword [esi + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x54c6fc
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x2c], ebx
je 0x54c6ea
cmp eax, dword [ebp + 8]
jbe 0x54c6ea
sub eax, dword [ebp + 8]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
push eax
push dword [edi + 0x30]
call fcn.005427b4
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
call fcn.0054ca88
mov eax, dword [esi + 0x14]
pop ecx
cmp eax, dword [esi + 0xc]
mov dword [ebp + 8], eax
je 0x54c71f
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx + 0x1c]
movzx edx, byte [edx + ecx]
inc ecx
mov dword [ebp - 4], edx
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 8]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
cmp edx, ebx
jne 0x54c6bc
jmp 0x54c726
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x54c74f
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp + 8]
jbe 0x54c74f
sub eax, dword [ebp + 8]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
push eax
push dword [edi + 0x30]
call fcn.005427b4
add esp, 0xc
mov dword [edi + 0x30], eax
cmp dword [ebp - 4], ebx
jne 0x54c75e
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x5b
cmp dword [esi + 4], 0x5b
jne 0x54c819
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], ebx
je 0x54c812
mov eax, dword [esi + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x54c7ba
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x2c], ebx
je 0x54c7a8
cmp eax, dword [ebp + 8]
jbe 0x54c7a8
sub eax, dword [ebp + 8]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
push eax
push dword [edi + 0x30]
call fcn.005427b4
add esp, 0xc
mov dword [edi + 0x30], eax
push edi
call fcn.0054ca88
mov eax, dword [esi + 0x14]
pop ecx
cmp eax, dword [esi + 0xc]
mov dword [ebp + 8], eax
je 0x54c7dd
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx + 0x24]
movzx edx, byte [edx + ecx]
inc ecx
mov dword [ebp - 4], edx
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 8]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
cmp edx, ebx
jne 0x54c77a
jmp 0x54c7e4
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x54c80d
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp + 8]
jbe 0x54c80d
sub eax, dword [ebp + 8]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 8]
push eax
push dword [edi + 0x30]
call fcn.005427b4
add esp, 0xc
mov dword [edi + 0x30], eax
cmp dword [ebp - 4], ebx
jne 0x54c819
mov dword [esi + 4], 0x67
cmp dword [esi + 4], 0x67
jne 0x54c873
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x54c86c
mov eax, dword [esi + 0x14]
inc eax
inc eax
cmp eax, dword [esi + 0xc]
jbe 0x54c838
push edi
call fcn.0054ca88
pop ecx
mov eax, dword [esi + 0x14]
lea ecx, [eax + 2]
cmp ecx, dword [esi + 0xc]
ja 0x54c873
mov ecx, dword [esi + 8]
mov dl, byte [edi + 0x30]
push ebx
push ebx
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov dl, byte [edi + 0x31]
push ebx
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
call fcn.005427b4
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esi + 4], 0x71
cmp dword [esi + 0x14], ebx
je 0x54c88d
push edi
call fcn.0054ca88
cmp dword [edi + 0x10], ebx
pop ecx
jne 0x54c8a1
or dword [esi + 0x28], 0xffffffff
jmp 0x54c971
cmp dword [edi + 4], ebx
jne 0x54c8a1
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 8]
jg 0x54c8a4
cmp ecx, 4
je 0x54c8a4
jmp 0x54c8b3
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
cmp eax, 0x29a
jne 0x54c8c2
cmp dword [edi + 4], ebx
je 0x54c8c7
mov eax, dword [str.buffer_error]
push 0xfffffffffffffffb
mov dword [edi + 0x18], eax
jmp 0x54ca58
cmp dword [edi + 4], ebx
jne 0x54c8df
cmp dword [esi + 0x74], ebx
jne 0x54c8df
cmp ecx, ebx
je 0x54c96b
cmp eax, 0x29a
je 0x54c96b
mov eax, dword [esi + 0x84]
push dword [ebp + 0xc]
lea eax, [eax + eax*2]
push esi
call dword [eax*4 + 0x6272b0]
pop ecx
cmp eax, 2
pop ecx
je 0x54c8ff
cmp eax, 3
jne 0x54c906
mov dword [esi + 4], 0x29a
cmp eax, ebx
je 0x54ca40
cmp eax, 2
je 0x54ca40
cmp eax, 1
jne 0x54c96b
cmp dword [ebp + 0xc], eax
jne 0x54c92a
push esi
call fcn.00551c1b
pop ecx
jmp 0x54c95b
push ebx
push ebx
push ebx
push esi
call fcn.00551b8d
add esp, 0x10
cmp dword [ebp + 0xc], 3
jne 0x54c95b
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
mov word [ecx + eax*2 - 2], bx
mov eax, dword [esi + 0x4c]
lea eax, [eax + eax - 2]
push eax
push ebx
push dword [esi + 0x44]
call fcn.005d2a00
add esp, 0xc
push edi
call fcn.0054ca88
cmp dword [edi + 0x10], ebx
pop ecx
je 0x54c884
cmp dword [ebp + 0xc], 4
je 0x54c978
xor eax, eax
jmp 0x54ca59
mov eax, dword [esi + 0x18]
cmp eax, ebx
jg 0x54c987
xor eax, eax
inc eax
jmp 0x54ca59
cmp eax, 2
jne 0x54ca06
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
mov dl, byte [edi + 0x30]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov dl, byte [edi + 0x31]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov dl, byte [edi + 0x32]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov dl, byte [edi + 0x33]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov dl, byte [edi + 8]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov dl, byte [edi + 9]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov dl, byte [edi + 0xa]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov dl, byte [edi + 0xb]
mov byte [eax + ecx], dl
inc dword [esi + 0x14]
jmp 0x54ca23
movzx eax, word [edi + 0x32]
push eax
push esi
call fcn.0054ca5e
mov eax, dword [edi + 0x30]
and eax, 0xffff
push eax
push esi
call fcn.0054ca5e
add esp, 0x10
push edi
call fcn.0054ca88
mov eax, dword [esi + 0x18]
pop ecx
cmp eax, ebx
jle 0x54ca36
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], ebx
sete al
jmp 0x54ca59
cmp dword [edi + 0x10], ebx
jne 0x54c971
jmp 0x54c884
mov eax, dword [str.stream_error]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret