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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
test esi, esi
je 0x4098e7
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x4098e7
cmp dword [ebp + 0xc], 4
ja 0x4098e7
cmp dword [esi + 0xc], 0
je 0x409106
cmp dword [esi], 0
jne 0x4090f6
cmp dword [esi + 4], 0
jne 0x409106
mov eax, dword [ebx + 4]
cmp eax, 0x29a
jne 0x409113
cmp dword [ebp + 0xc], 4
je 0x409113
mov eax, dword [str.stream_error]
mov dword [esi + 0x18], eax
jmp 0x4098e7
cmp dword [esi + 0x10], 0
je 0x40972c
mov edi, dword [ebx + 0x28]
cmp eax, 0x2a
mov dword [ebx], esi
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x28], edi
jne 0x40942b
cmp dword [ebx + 0x18], 2
jne 0x40938a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00409f79
mov edx, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x14]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov byte [edx + eax], 0x1f
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov byte [edx + eax], 0x8b
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov byte [edx + eax], 8
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 0x14]
test eax, eax
mov dword [ebp - 0x1c], edi
jne 0x409238
lea eax, [ecx + 1]
mov dword [ebx + 0x14], eax
mov byte [edi + ecx], 0
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov byte [edx + eax], 0
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov byte [edx + eax], 0
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov byte [edx + eax], 0
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov byte [edx + eax], 0
mov eax, dword [ebx + 0x14]
lea edx, [eax + 1]
add eax, dword [ebx + 8]
mov dword [ebx + 0x14], edx
mov edx, eax
mov eax, dword [ebx + 0x84]
cmp eax, 9
je 0x409218
cmp dword [ebx + 0x88], 1
jle 0x409211
mov al, 4
jmp 0x40921a
dec eax
jle 0x40920d
xor eax, eax
jmp 0x40921a
mov al, 2
mov byte [edx], al
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov byte [edx + eax], 0xb
mov dword [ebx + 4], 0x71
jmp 0x40942b
cmp dword [eax], 0
lea edx, [ecx + 1]
mov dword [ebx + 0x14], edx
setne dl
cmp dword [eax + 0x2c], 1
mov edi, edx
sbb edx, edx
not edx
and edx, 2
add edi, edx
cmp dword [eax + 0x10], 1
sbb edx, edx
not edx
and edx, 4
add edi, edx
cmp dword [eax + 0x1c], 1
sbb edx, edx
not edx
and edx, 8
add edx, edi
cmp dword [eax + 0x24], 1
mov eax, dword [ebp - 0x1c]
sbb edi, edi
not edi
and edi, 0x10
add edx, edi
mov byte [eax + ecx], dl
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebx + 0x1c]
mov ecx, dword [ecx + 4]
mov byte [edx + eax], cl
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
lea eax, [edx + 1]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 4]
shr eax, 8
mov byte [ecx + edx], al
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebx + 0x1c]
movzx ecx, word [ecx + 6]
mov byte [edx + eax], cl
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebx + 0x1c]
movzx ecx, byte [ecx + 7]
mov byte [edx + eax], cl
mov eax, dword [ebx + 0x14]
lea edx, [eax + 1]
mov dword [ebx + 0x14], edx
add eax, dword [ebx + 8]
mov edx, eax
mov eax, dword [ebx + 0x84]
cmp eax, 9
je 0x409306
cmp dword [ebx + 0x88], 1
jle 0x4092ff
mov al, 4
jmp 0x409308
dec eax
jle 0x4092fb
xor eax, eax
jmp 0x409308
mov al, 2
mov byte [edx], al
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebx + 0x1c]
mov ecx, dword [ecx + 0xc]
mov byte [edx + eax], cl
mov edx, dword [ebx + 0x1c]
cmp dword [edx + 0x10], 0
je 0x409352
mov eax, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
mov edi, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
mov byte [edi + eax], dl
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
lea eax, [edx + 1]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x14]
shr eax, 8
mov byte [ecx + edx], al
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x409377
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call fcn.00409f79
mov dword [esi + 0x30], eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 4], 0x45
jmp 0x40942b
mov eax, dword [ebx + 0x30]
xor ecx, ecx
shl eax, 0xc
sub eax, 0x7800
cmp dword [ebx + 0x88], 1
jg 0x4093bd
mov edx, dword [ebx + 0x84]
cmp edx, 1
jle 0x4093bd
cmp edx, 5
mov cl, 1
jle 0x4093bd
xor ecx, ecx
cmp edx, 6
setne cl
add ecx, 2
shl ecx, 6
mov edi, 0x1f
or ecx, eax
mov eax, ecx
or eax, 0x20
cmp dword [ebx + 0x6c], 0
mov dword [ebx + 4], 0x71
cmovne ecx, eax
xor edx, edx
mov eax, ecx
div edi
mov eax, ebx
mov dword [ebp - 0x1c], edx
lea edx, [ecx + 0x1f]
sub edx, dword [ebp - 0x1c]
call fcn.004080c8
cmp dword [ebx + 0x6c], 0
je 0x40940c
movzx edx, word [esi + 0x32]
mov eax, ebx
call fcn.004080c8
movzx edx, word [esi + 0x30]
mov eax, ebx
call fcn.004080c8
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040a2a8
mov dword [esi + 0x30], eax
cmp dword [ebx + 4], 0x45
jne 0x4094f1
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x10], 0
je 0x4094ea
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x1c]
movzx edx, word [ecx + 0x14]
cmp dword [ebx + 0x20], edx
jae 0x4094ad
mov edx, dword [ebx + 0x14]
cmp edx, dword [ebx + 0xc]
jne 0x40948d
cmp dword [ecx + 0x2c], 0
je 0x40947e
cmp edx, eax
jbe 0x40947e
sub edx, eax
mov dword [esp + 8], edx
add eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call fcn.00409f79
mov dword [esi + 0x30], eax
mov eax, esi
call fcn.0040838b
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0xc]
je 0x4094ad
mov edx, dword [ebx + 0x14]
lea ecx, [edx + 1]
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebx + 0x1c]
mov edi, dword [ecx + 0x10]
mov ecx, dword [ebx + 0x20]
mov cl, byte [edi + ecx]
mov edi, dword [ebx + 8]
mov byte [edi + edx], cl
inc dword [ebx + 0x20]
jmp 0x409445
mov edx, dword [ebx + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x4094d8
mov edx, dword [ebx + 0x14]
cmp edx, eax
jbe 0x4094d8
sub edx, eax
mov dword [esp + 8], edx
add eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call fcn.00409f79
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x14]
cmp dword [ebx + 0x20], eax
jne 0x4094f1
mov dword [ebx + 0x20], 0
mov dword [ebx + 4], 0x49
cmp dword [ebx + 4], 0x49
jne 0x4095b9
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x1c], 0
je 0x4095b2
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0xc]
jne 0x40954c
mov edx, dword [ebx + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x40953d
cmp eax, ecx
jbe 0x40953d
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
add eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call fcn.00409f79
mov dword [esi + 0x30], eax
mov eax, esi
call fcn.0040838b
mov ecx, dword [ebx + 0x14]
cmp ecx, dword [ebx + 0xc]
je 0x409575
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebx + 0x20]
lea edi, [eax + 1]
mov dword [ebx + 0x20], edi
mov al, byte [edx + eax]
mov edx, dword [ebx + 0x14]
test al, al
lea edi, [edx + 1]
mov dword [ebx + 0x14], edi
mov edi, dword [ebx + 8]
mov byte [edi + edx], al
jne 0x40950b
xor edi, edi
jmp 0x40957a
mov edi, 1
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4095a7
mov eax, dword [ebx + 0x14]
cmp eax, ecx
jbe 0x4095a7
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
add eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call fcn.00409f79
mov dword [esi + 0x30], eax
test edi, edi
jne 0x4095b9
mov dword [ebx + 0x20], 0
mov dword [ebx + 4], 0x5b
cmp dword [ebx + 4], 0x5b
jne 0x40967a
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x24], 0
je 0x409673
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0xc]
jne 0x409614
mov edx, dword [ebx + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x409605
cmp eax, ecx
jbe 0x409605
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
add eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call fcn.00409f79
mov dword [esi + 0x30], eax
mov eax, esi
call fcn.0040838b
mov ecx, dword [ebx + 0x14]
cmp ecx, dword [ebx + 0xc]
je 0x40963d
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx + 0x20]
lea edi, [eax + 1]
mov dword [ebx + 0x20], edi
mov al, byte [edx + eax]
mov edx, dword [ebx + 0x14]
test al, al
lea edi, [edx + 1]
mov dword [ebx + 0x14], edi
mov edi, dword [ebx + 8]
mov byte [edi + edx], al
jne 0x4095d3
xor edi, edi
jmp 0x409642
mov edi, 1
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x40966f
mov eax, dword [ebx + 0x14]
cmp eax, ecx
jbe 0x40966f
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
add eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call fcn.00409f79
mov dword [esi + 0x30], eax
test edi, edi
jne 0x40967a
mov dword [ebx + 4], 0x67
cmp dword [ebx + 4], 0x67
jne 0x4096f0
mov eax, dword [ebx + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4096e9
mov eax, dword [ebx + 0x14]
add eax, 2
cmp eax, dword [ebx + 0xc]
jbe 0x40969b
mov eax, esi
call fcn.0040838b
mov eax, dword [ebx + 0x14]
lea edx, [eax + 2]
cmp edx, dword [ebx + 0xc]
ja 0x4096f0
lea edx, [eax + 1]
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x14], edx
mov edx, dword [esi + 0x30]
mov byte [ecx + eax], dl
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
lea eax, [edx + 1]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x30]
shr eax, 8
mov byte [ecx + edx], al
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00409f79
mov dword [esi + 0x30], eax
mov dword [ebx + 4], 0x71
cmp dword [ebx + 0x14], 0
je 0x409708
mov eax, esi
call fcn.0040838b
cmp dword [esi + 0x10], 0
jne 0x40971c
jmp 0x4097f0
cmp dword [esi + 4], 0
jne 0x40971c
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 0xc], eax
jg 0x40971c
cmp dword [ebp + 0xc], 4
jne 0x40972c
mov eax, dword [ebx + 4]
cmp eax, 0x29a
jne 0x40973e
cmp dword [esi + 4], 0
je 0x40973e
mov eax, dword [str.buffer_error]
mov dword [esi + 0x18], eax
mov eax, 0xfffffffb
jmp 0x4098f3
cmp dword [esi + 4], 0
jne 0x40975f
cmp dword [ebx + 0x74], 0
jne 0x40975f
cmp dword [ebp + 0xc], 0
je 0x4097f7
cmp eax, 0x29a
je 0x4097fe
imul eax, dword [ebx + 0x84], 0xc
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], edi
call dword [eax + 0x413f60]
lea edx, [eax - 2]
cmp edx, 1
ja 0x409785
mov dword [ebx + 4], 0x29a
test eax, 0xfffffffd
jne 0x409794
cmp dword [esi + 0x10], 0
jne 0x4097f7
jmp 0x4097f0
dec eax
jne 0x4097fe
cmp dword [ebp + 0xc], 1
jne 0x4097a7
mov dword [esp], ebx
call fcn.0040bfd9
jmp 0x4097e3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0040bec8
cmp dword [ebp + 0xc], 3
jne 0x4097e3
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x44]
lea ecx, [eax + eax - 2]
xor eax, eax
mov edi, edx
mov word [edx + ecx], 0
rep stosb byte es:[edi], al
mov eax, esi
call fcn.0040838b
cmp dword [esi + 0x10], 0
jne 0x4097fe
mov dword [ebx + 0x28], 0xffffffff
xor eax, eax
jmp 0x4098f3
cmp dword [ebp + 0xc], 4
jne 0x4097f7
mov eax, dword [ebx + 0x18]
test eax, eax
jle 0x4098ee
cmp eax, 2
mov edx, dword [esi + 0x30]
jne 0x4098b4
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
lea edi, [eax + 1]
mov dword [ebx + 0x14], edi
mov byte [ecx + eax], dl
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
lea eax, [edx + 1]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x30]
shr eax, 8
mov byte [ecx + edx], al
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
movzx ecx, word [esi + 0x32]
mov byte [edx + eax], cl
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
movzx ecx, byte [esi + 0x33]
mov byte [edx + eax], cl
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
lea edx, [eax + 1]
mov dword [ebx + 0x14], edx
mov edx, dword [esi + 8]
mov byte [ecx + eax], dl
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
lea eax, [edx + 1]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 8]
shr eax, 8
mov byte [ecx + edx], al
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
movzx ecx, word [esi + 0xa]
mov byte [edx + eax], cl
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 0x14], ecx
movzx ecx, byte [esi + 0xb]
mov byte [edx + eax], cl
jmp 0x4098c9
shr edx, 0x10
mov eax, ebx
call fcn.004080c8
movzx edx, word [esi + 0x30]
mov eax, ebx
call fcn.004080c8
mov eax, esi
call fcn.0040838b
mov eax, dword [ebx + 0x18]
test eax, eax
jle 0x4098dc
neg eax
mov dword [ebx + 0x18], eax
xor eax, eax
cmp dword [ebx + 0x14], 0
sete al
jmp 0x4098f3
mov eax, 0xfffffffe
jmp 0x4098f3
mov eax, 1
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret