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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x489e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0042a39d
test eax, eax
jne 0x42ac13
mov edi, dword [ebx + 0x1c]
cmp dword [ebx + 0xc], eax
je 0x42ac0b
cmp dword [ebx + 4], eax
je 0x42a510
cmp dword [ebx], eax
je 0x42ac0b
cmp dword [ebx + 0x10], 0
jne 0x42a525
mov eax, dword [str.buffer_error]
mov dword [ebx + 0x18], eax
push 0xfffffffffffffffb
jmp 0x42ac15
cmp dword [edi + 0x14], 0
mov dword [edi + 0x28], 4
je 0x42a548
call fcn.0042a48e
cmp dword [ebx + 0x10], 0
jne 0x42a548
or dword [edi + 0x28], 0xffffffff
xor eax, eax
jmp 0x42ac16
cmp dword [edi + 4], 0x29a
jne 0x42a557
cmp dword [ebx + 4], 0
jne 0x42a516
cmp dword [edi + 4], 0x2a
push 0x1f
pop edx
jne 0x42a603
mov ecx, dword [edi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [edi + 0x88], 2
jge 0x42a596
mov edx, dword [edi + 0x84]
cmp edx, 2
jl 0x42a596
xor eax, eax
cmp edx, 6
jge 0x42a58e
inc eax
jmp 0x42a598
setne al
add eax, 2
jmp 0x42a598
xor eax, eax
shl eax, 6
or eax, ecx
mov ecx, eax
or ecx, 0x20
cmp dword [edi + 0x6c], 0
push 0x1f
cmove ecx, eax
xor edx, edx
mov eax, ecx
pop esi
div esi
sub ecx, edx
lea edx, [esi + ecx]
mov ecx, edi
call fcn.0042a46a
cmp dword [edi + 0x6c], 0
je 0x42a5da
movzx edx, word [ebx + 0x32]
mov ecx, edi
call fcn.0042a46a
movzx edx, word [ebx + 0x30]
mov ecx, edi
call fcn.0042a46a
push 0
xor edx, edx
xor ecx, ecx
call fcn.0042c0be
mov dword [ebx + 0x30], eax
mov ecx, ebx
mov dword [edi + 4], 0x71
call fcn.0042a48e
cmp dword [edi + 0x14], 0
jne 0x42a53d
push 0x1f
pop edx
cmp dword [edi + 4], 0x39
jne 0x42a7f6
and dword [ebx + 0x30], 0
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], dl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], 0x8b
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], 8
inc dword [edi + 0x14]
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x14]
test edx, edx
jne 0x42a6d8
mov eax, dword [edi + 8]
mov byte [esi + eax], dl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], dl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], dl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], dl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], dl
inc dword [edi + 0x14]
mov eax, dword [edi + 0x84]
mov edx, dword [edi + 0x14]
cmp eax, 9
jne 0x42a690
push 2
jmp 0x42a6a4
cmp dword [edi + 0x88], 2
jge 0x42a6a2
cmp eax, 2
jl 0x42a6a2
xor ecx, ecx
jmp 0x42a6a5
push 4
pop ecx
mov eax, dword [edi + 8]
mov byte [edx + eax], cl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov byte [ecx + eax], 0xa
mov ecx, ebx
inc dword [edi + 0x14]
mov dword [edi + 4], 0x71
call fcn.0042a48e
cmp dword [edi + 0x14], 0
je 0x42a7f6
jmp 0x42a53d
cmp dword [edx + 0x24], 0
sete cl
dec cl
and cl, 0x10
cmp dword [edx + 0x2c], 0
sete al
dec al
and al, 2
add cl, al
cmp dword [edx + 0x1c], 0
sete al
dec al
and al, 8
add cl, al
cmp dword [edx + 0x10], 0
sete al
dec al
and al, 4
add cl, al
cmp dword [edx], 0
setne al
add cl, al
mov eax, dword [edi + 8]
mov byte [esi + eax], cl
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 8]
mov al, byte [eax + 4]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 8]
mov al, byte [eax + 5]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [eax + 6]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [eax + 7]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov eax, dword [edi + 0x84]
mov edx, dword [edi + 0x14]
cmp eax, 9
jne 0x42a776
push 2
jmp 0x42a78a
cmp dword [edi + 0x88], 2
jge 0x42a788
cmp eax, 2
jl 0x42a788
xor ecx, ecx
jmp 0x42a78b
push 4
pop ecx
mov eax, dword [edi + 8]
mov byte [edx + eax], cl
inc dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [eax + 0xc]
mov byte [edx + ecx], al
mov eax, dword [edi + 0x1c]
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
cmp dword [eax + 0x10], 0
je 0x42a7d3
mov ecx, dword [edi + 8]
mov al, byte [eax + 0x14]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [eax + 0x15]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x42a7eb
mov ecx, dword [ebx + 0x30]
push edx
mov edx, dword [edi + 8]
call fcn.0042bded
mov dword [ebx + 0x30], eax
and dword [edi + 0x20], 0
mov dword [edi + 4], 0x45
cmp dword [edi + 4], 0x45
jne 0x42a8dc
mov ecx, dword [edi + 0x1c]
cmp dword [ecx + 0x10], 0
je 0x42a8d5
movzx esi, word [ecx + 0x14]
mov eax, dword [edi + 0x14]
sub esi, dword [edi + 0x20]
jmp 0x42a881
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 0x14]
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x10]
add eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 8]
add eax, dword [edi + 0x14]
push eax
call fcn.0043e3a0
mov eax, dword [edi + 0x1c]
add esp, 0xc
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x42a865
mov eax, dword [ebp - 8]
cmp ecx, eax
jbe 0x42a865
mov edx, dword [edi + 8]
sub ecx, eax
push ecx
mov ecx, dword [ebx + 0x30]
add edx, eax
call fcn.0042bded
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, ebx
add dword [edi + 0x20], eax
call fcn.0042a48e
cmp dword [edi + 0x14], 0
jne 0x42a53d
xor eax, eax
sub esi, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x14]
add eax, esi
cmp eax, dword [edi + 0xc]
ja 0x42a819
mov eax, dword [edi + 0x1c]
push esi
mov eax, dword [eax + 0x10]
add eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x14]
add eax, dword [edi + 8]
push eax
call fcn.0043e3a0
mov eax, dword [edi + 0x1c]
add esp, 0xc
add dword [edi + 0x14], esi
mov ecx, dword [edi + 0x14]
cmp dword [eax + 0x2c], 0
je 0x42a8d1
mov eax, dword [ebp - 8]
cmp ecx, eax
jbe 0x42a8d1
mov edx, dword [edi + 8]
sub ecx, eax
push ecx
mov ecx, dword [ebx + 0x30]
add edx, eax
call fcn.0042bded
mov dword [ebx + 0x30], eax
and dword [edi + 0x20], 0
mov dword [edi + 4], 0x49
cmp dword [edi + 4], 0x49
jne 0x42a984
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x1c], 0
je 0x42a97d
mov esi, dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0xc]
jne 0x42a934
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x42a921
mov eax, dword [edi + 0x14]
cmp eax, esi
jbe 0x42a921
mov edx, dword [edi + 8]
sub eax, esi
mov ecx, dword [ebx + 0x30]
add edx, esi
push eax
call fcn.0042bded
mov dword [ebx + 0x30], eax
mov ecx, ebx
call fcn.0042a48e
cmp dword [edi + 0x14], 0
jne 0x42a53d
xor esi, esi
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + 0x1c]
movzx edx, byte [eax + ecx]
lea eax, [ecx + 1]
mov ecx, dword [edi + 8]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x14]
mov byte [ecx + eax], dl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
test edx, edx
jne 0x42a8f6
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x2c], edx
je 0x42a979
cmp ecx, esi
jbe 0x42a979
mov edx, dword [edi + 8]
sub ecx, esi
push ecx
mov ecx, dword [ebx + 0x30]
add edx, esi
call fcn.0042bded
mov dword [ebx + 0x30], eax
and dword [edi + 0x20], 0
mov dword [edi + 4], 0x5b
cmp dword [edi + 4], 0x5b
jne 0x42aa28
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x24], 0
je 0x42aa21
mov esi, dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0xc]
jne 0x42a9dc
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x42a9c9
mov eax, dword [edi + 0x14]
cmp eax, esi
jbe 0x42a9c9
mov edx, dword [edi + 8]
sub eax, esi
mov ecx, dword [ebx + 0x30]
add edx, esi
push eax
call fcn.0042bded
mov dword [ebx + 0x30], eax
mov ecx, ebx
call fcn.0042a48e
cmp dword [edi + 0x14], 0
jne 0x42a53d
xor esi, esi
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + 0x24]
movzx edx, byte [eax + ecx]
lea eax, [ecx + 1]
mov ecx, dword [edi + 8]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x14]
mov byte [ecx + eax], dl
inc dword [edi + 0x14]
mov ecx, dword [edi + 0x14]
test edx, edx
jne 0x42a99e
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x2c], edx
je 0x42aa21
cmp ecx, esi
jbe 0x42aa21
mov edx, dword [edi + 8]
sub ecx, esi
push ecx
mov ecx, dword [ebx + 0x30]
add edx, esi
call fcn.0042bded
mov dword [ebx + 0x30], eax
mov dword [edi + 4], 0x67
cmp dword [edi + 4], 0x67
jne 0x42aa8d
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x42aa75
mov eax, dword [edi + 0x14]
add eax, 2
cmp eax, dword [edi + 0xc]
jbe 0x42aa53
mov ecx, ebx
call fcn.0042a48e
cmp dword [edi + 0x14], 0
jne 0x42a53d
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [ebx + 0x30]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [ebx + 0x31]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
and dword [ebx + 0x30], 0
mov ecx, ebx
mov dword [edi + 4], 0x71
call fcn.0042a48e
cmp dword [edi + 0x14], 0
jne 0x42a53d
cmp dword [ebx + 4], 0
jne 0x42aaa6
cmp dword [edi + 0x74], 0
jne 0x42aaa6
cmp dword [edi + 4], 0x29a
je 0x42ab3b
mov ecx, dword [edi + 0x84]
test ecx, ecx
jne 0x42aaba
push 4
push edi
call fcn.0042b0e0
jmp 0x42aaf2
mov eax, dword [edi + 0x88]
cmp eax, 2
jne 0x42aace
mov ecx, edi
call fcn.0042bcfd
jmp 0x42aaf4
cmp eax, 3
jne 0x42aadc
mov ecx, edi
call fcn.0042baf9
jmp 0x42aaf4
imul eax, ecx, 0xc
push 4
push edi
mov esi, dword [eax + 0x475c30]
mov ecx, esi
call dword [0x463290]
call esi
pop ecx
pop ecx
cmp eax, 2
je 0x42aafe
cmp eax, 3
jne 0x42ab05
mov dword [edi + 4], 0x29a
test eax, eax
je 0x42abfc
cmp eax, 2
je 0x42abfc
cmp eax, 1
jne 0x42ab3b
push 0
push 0
xor edx, edx
mov ecx, edi
call fcn.0042d13f
pop ecx
pop ecx
mov ecx, ebx
call fcn.0042a48e
cmp dword [ebx + 0x10], 0
je 0x42a53d
cmp dword [edi + 0x18], 0
jg 0x42ab49
xor eax, eax
inc eax
jmp 0x42ac16
cmp dword [edi + 0x18], 2
jne 0x42abc9
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 0x30]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 0x31]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 0x32]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 0x33]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov al, byte [ebx + 8]
mov ecx, dword [edi + 8]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [ebx + 9]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [ebx + 0xa]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 8]
mov al, byte [ebx + 0xb]
mov byte [edx + ecx], al
inc dword [edi + 0x14]
jmp 0x42abdf
movzx edx, word [ebx + 0x32]
mov ecx, edi
call fcn.0042a46a
movzx edx, word [ebx + 0x30]
mov ecx, edi
call fcn.0042a46a
mov ecx, ebx
call fcn.0042a48e
mov eax, dword [edi + 0x18]
test eax, eax
jle 0x42abf2
neg eax
mov dword [edi + 0x18], eax
xor eax, eax
cmp dword [edi + 0x14], eax
sete al
jmp 0x42ac16
cmp dword [ebx + 0x10], 0
jne 0x42a541
jmp 0x42a53d
mov eax, dword [str.stream_error]
mov dword [ebx + 0x18], eax
push 0xfffffffffffffffe
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b9f3
mov esp, ebp
pop ebp
ret