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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov edi, ecx
call fcn.1813c76b
test eax, eax
jne 0x1813d0f8
cmp edx, 5
ja 0x1813d0f8
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
je 0x1813d0f0
cmp dword [edi + 4], eax
je 0x1813c8d7
cmp dword [edi], eax
je 0x1813d0f0
cmp dword [esi + 4], 0x29a
jne 0x1813c8e9
cmp edx, 4
jne 0x1813d0f0
cmp dword [edi + 0x10], 0
je 0x1813d0e4
cmp dword [esi + 0x14], 0
mov ecx, dword [esi + 0x28]
push 9
mov dword [esi + 0x28], edx
pop eax
je 0x1813c918
mov ecx, edi
call fcn.1813c852
cmp dword [edi + 0x10], 0
je 0x1813d0dc
mov ebx, dword [esi + 4]
jmp 0x1813c950
cmp dword [edi + 4], 0
mov ebx, dword [esi + 4]
jne 0x1813c950
cmp edx, 4
jle 0x1813c92b
mov dword [ebp - 4], eax
jmp 0x1813c92f
and dword [ebp - 4], 0
cmp ecx, 4
jg 0x1813c936
xor eax, eax
mov ebx, dword [esi + 4]
add ecx, ecx
sub ecx, eax
lea eax, [edx + edx]
sub eax, dword [ebp - 4]
cmp eax, ecx
jg 0x1813c950
cmp edx, 4
jne 0x1813d0e4
cmp ebx, 0x29a
jne 0x1813c962
cmp dword [edi + 4], 0
jne 0x1813d0e4
push 0x1f
pop edx
cmp ebx, 0x2a
jne 0x1813ca31
cmp dword [esi + 0x18], 0
jne 0x1813c980
mov dword [esi + 4], 0x71
jmp 0x1813ca31
mov ecx, dword [esi + 0x80]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0xd8], 2
mov ebx, ecx
jge 0x1813c9c7
mov eax, dword [esi + 0xd4]
cmp eax, 2
jl 0x1813c9c7
cmp eax, 6
jge 0x1813c9b1
push 0x40
pop eax
push 0x60
jmp 0x1813c9cb
jne 0x1813c9bd
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0x1813c9cc
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0x1813c9cc
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [esi + 0xbc], 0
je 0x1813c9db
mov ecx, ebx
or ecx, edx
mov eax, ecx
xor edx, edx
push 0x1f
pop ebx
div ebx
sub ecx, edx
lea edx, [ebx + ecx]
mov ecx, esi
call fcn.1813c82e
cmp dword [esi + 0xbc], 0
je 0x1813ca0f
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.1813c82e
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.1813c82e
mov dword [edi + 0x30], 1
mov ecx, edi
mov dword [esi + 4], 0x71
call fcn.1813c852
cmp dword [esi + 0x14], 0
jne 0x1813d0dc
push 0x1f
pop edx
mov eax, dword [esi + 4]
cmp eax, 0x39
jne 0x1813cc2d
mov eax, dword [esi]
and dword [eax + 0x30], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0x8b
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 8
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x14], edx
test ebx, ebx
jne 0x1813cb0b
mov eax, dword [esi + 8]
mov byte [edx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xd4]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0x1813cac4
mov cl, 2
jmp 0x1813cad6
cmp dword [esi + 0xd8], 2
jge 0x1813cad4
mov cl, bl
cmp eax, 2
jge 0x1813cad6
mov cl, 4
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0xa
mov ecx, edi
inc dword [esi + 0x14]
mov dword [esi + 4], 0x71
call fcn.1813c852
cmp dword [esi + 0x14], ebx
jne 0x1813d0dc
mov eax, dword [esi + 4]
jmp 0x1813cc2f
cmp dword [ebx + 0x24], 0
sete cl
dec cl
and cl, 0x10
cmp dword [ebx + 0x2c], 0
sete al
dec al
and al, 2
add cl, al
cmp dword [ebx + 0x1c], 0
sete al
dec al
and al, 8
add cl, al
cmp dword [ebx + 0x10], 0
sete al
dec al
and al, 4
add cl, al
cmp dword [ebx], 0
setne al
add cl, al
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov al, byte [eax + 4]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov al, byte [eax + 5]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 6]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 7]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xd4]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0x1813cbaa
mov cl, 2
jmp 0x1813cbc0
cmp dword [esi + 0xd8], 2
jge 0x1813cbbe
cmp eax, 2
jl 0x1813cbbe
xor ebx, ebx
mov cl, bl
jmp 0x1813cbc2
mov cl, 4
xor ebx, ebx
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
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], ebx
je 0x1813cc0d
mov al, byte [eax + 0x14]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 0x15]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x1813cc22
mov ecx, dword [edi + 0x30]
push edx
mov edx, dword [esi + 8]
call fcn.18138fce
pop ecx
mov dword [edi + 0x30], eax
push 0x45
pop eax
mov dword [esi + 0x20], ebx
mov dword [esi + 4], eax
jmp 0x1813cc2f
xor ebx, ebx
cmp eax, 0x45
jne 0x1813cd28
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], ebx
je 0x1813cd1e
movzx edx, word [eax + 0x14]
sub edx, dword [esi + 0x20]
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], edx
lea eax, [ebx + edx]
cmp eax, ecx
jbe 0x1813ccd4
mov eax, ebx
mov dword [ebp - 0x10], ebx
sub ecx, eax
mov eax, dword [esi + 0x1c]
push ecx
mov dword [ebp - 0xc], 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.18144bc0
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x1813cca6
cmp ecx, ebx
jbe 0x1813cca6
mov edx, dword [esi + 8]
sub ecx, ebx
push ecx
mov ecx, dword [edi + 0x30]
add edx, ebx
call fcn.18138fce
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, edi
add dword [esi + 0x20], eax
call fcn.1813c852
cmp dword [esi + 0x14], 0
jne 0x1813d0dc
mov edx, dword [ebp - 4]
xor eax, eax
sub edx, dword [ebp - 0xc]
xor ebx, ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
cmp edx, ecx
ja 0x1813cc60
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push edx
mov eax, dword [eax + 0x10]
add eax, ecx
push eax
mov eax, dword [esi + 8]
add eax, ebx
push eax
call fcn.18144bc0
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 0x1813cd19
cmp ecx, ebx
jbe 0x1813cd19
mov edx, dword [esi + 8]
sub ecx, ebx
push ecx
mov ecx, dword [edi + 0x30]
add edx, ebx
call fcn.18138fce
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
mov dword [esi + 0x20], ebx
push 0x49
mov dword [esi + 4], 0x49
pop eax
cmp eax, 0x49
jne 0x1813cddd
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], ebx
je 0x1813cdd3
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0x1813cd82
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1813cd6b
cmp ebx, ecx
jbe 0x1813cd6b
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
mov ecx, dword [edi + 0x30]
push ebx
call fcn.18138fce
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.1813c852
cmp dword [esi + 0x14], 0
jne 0x1813d0dc
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 0x1813cdaa
mov ecx, dword [ebp - 4]
jmp 0x1813cd45
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1813cdce
mov eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x1813cdce
mov edx, dword [esi + 8]
sub ebx, eax
mov ecx, dword [edi + 0x30]
add edx, eax
push ebx
call fcn.18138fce
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
mov dword [esi + 0x20], ebx
push 0x5b
mov dword [esi + 4], 0x5b
pop eax
cmp eax, 0x5b
jne 0x1813ce8f
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], ebx
je 0x1813ce85
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0x1813ce37
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1813ce20
cmp ebx, ecx
jbe 0x1813ce20
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
mov ecx, dword [edi + 0x30]
push ebx
call fcn.18138fce
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.1813c852
cmp dword [esi + 0x14], 0
jne 0x1813d0dc
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 0x1813ce5f
mov ecx, dword [ebp - 4]
jmp 0x1813cdfa
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1813ce83
mov eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x1813ce83
mov edx, dword [esi + 8]
sub ebx, eax
mov ecx, dword [edi + 0x30]
add edx, eax
push ebx
call fcn.18138fce
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
push 0x67
mov dword [esi + 4], 0x67
pop eax
cmp eax, 0x67
jne 0x1813ceee
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x1813ced7
mov edx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, dword [esi + 0xc]
jbe 0x1813ceb9
mov ecx, edi
call fcn.1813c852
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x1813d0dc
mov ecx, dword [esi + 8]
mov al, byte [edi + 0x30]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0x31]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov dword [edi + 0x30], ebx
mov ecx, edi
mov dword [esi + 4], 0x71
call fcn.1813c852
cmp dword [esi + 0x14], ebx
jne 0x1813d0dc
cmp dword [edi + 4], ebx
jne 0x1813cf15
cmp dword [esi + 0xc4], ebx
mov ebx, dword [ebp - 8]
jne 0x1813cf18
test ebx, ebx
je 0x1813d00c
cmp dword [esi + 4], 0x29a
je 0x1813d00c
jmp 0x1813cf18
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x1813cf2b
push ebx
push esi
call fcn.1813d68e
jmp 0x1813cf5c
mov eax, dword [esi + 0xd8]
cmp eax, 2
jne 0x1813cf41
mov edx, ebx
mov ecx, esi
call fcn.1813e535
jmp 0x1813cf5e
cmp eax, 3
jne 0x1813cf51
mov edx, ebx
mov ecx, esi
call fcn.1813e246
jmp 0x1813cf5e
imul eax, ecx, 0xc
push ebx
push esi
call dword [eax + 0x181a1500]
pop ecx
pop ecx
cmp eax, 2
je 0x1813cf68
cmp eax, 3
jne 0x1813cf6f
mov dword [esi + 4], 0x29a
test eax, eax
je 0x1813d0d6
cmp eax, 2
je 0x1813d0d6
cmp eax, 1
jne 0x1813d00c
cmp ebx, eax
jne 0x1813cf96
mov ecx, esi
call fcn.18140de9
jmp 0x1813cffb
cmp ebx, 5
je 0x1813cffb
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.18140ce8
pop ecx
pop ecx
cmp ebx, 3
jne 0x1813cffb
mov eax, dword [esi + 0x94]
xor edx, edx
mov ecx, dword [esi + 0x9c]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x9c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x94]
call fcn.18144340
xor eax, eax
add esp, 0xc
cmp dword [esi + 0xc4], eax
jne 0x1813cffb
mov dword [esi + 0xbc], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0x1704], eax
mov ecx, edi
call fcn.1813c852
cmp dword [edi + 0x10], 0
je 0x1813d0dc
cmp ebx, 4
jne 0x1813d0e0
cmp dword [esi + 0x18], 0
jg 0x1813d023
xor eax, eax
inc eax
jmp 0x1813d0fb
cmp dword [esi + 0x18], 2
jne 0x1813d0a3
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x30]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x31]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x32]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x33]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 8]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 9]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0xa]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0xb]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
jmp 0x1813d0b9
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.1813c82e
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.1813c82e
mov ecx, edi
call fcn.1813c852
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x1813d0cc
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
sete al
jmp 0x1813d0fb
cmp dword [edi + 0x10], 0
jne 0x1813d0e0
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0x1813d0fb
mov eax, dword [str.buffer_error]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffb
jmp 0x1813d0fa
mov eax, dword [str.stream_error]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret