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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x10], ebx
call fcn.18144269
test eax, eax
jne 0x18144cbe
cmp ebx, 5
ja 0x18144cbe
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
je 0x18144cb7
cmp dword [edi + 4], eax
je 0x1814449a
cmp dword [edi], eax
je 0x18144cb7
cmp dword [esi + 4], 0x29a
jne 0x181444ac
cmp ebx, 4
jne 0x18144cb7
cmp dword [edi + 0x10], 0
je 0x18144519
cmp dword [esi + 0x14], 0
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], ebx
je 0x181444d0
mov ecx, edi
call fcn.18144413
cmp dword [edi + 0x10], 0
jne 0x18144500
jmp 0x18144caf
cmp dword [edi + 4], 0
jne 0x18144500
cmp ebx, 4
jle 0x181444e0
push 9
pop edx
jmp 0x181444e2
xor edx, edx
cmp ecx, 4
jle 0x181444ec
push 9
pop eax
jmp 0x181444ee
xor eax, eax
add ecx, ecx
sub ecx, eax
lea eax, [ebx + ebx]
sub eax, edx
cmp eax, ecx
jg 0x18144500
cmp ebx, 4
jne 0x18144519
cmp dword [esi + 4], 0x29a
push 0x1f
pop edx
mov dword [ebp - 8], edx
jne 0x18144527
cmp dword [edi + 4], 0
je 0x181445dc
mov dword [edi + 0x18], str.buffer_error
push 0xfffffffffffffffb
jmp 0x18144cc0
cmp dword [esi + 4], 0x2a
jne 0x181445dc
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
mov dword [ebp - 0xc], ecx
jge 0x18144576
mov eax, dword [esi + 0x84]
cmp eax, 2
jl 0x18144576
cmp eax, 6
jge 0x18144560
push 0x40
pop eax
push 0x60
jmp 0x1814457a
jne 0x1814456c
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0x1814457b
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0x1814457b
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0x18144588
mov ecx, edx
or ecx, dword [ebp - 0xc]
mov eax, ecx
xor edx, edx
div dword [ebp - 8]
push 0x1f
sub ecx, edx
pop eax
lea edx, [eax + ecx]
mov ecx, esi
call fcn.181443ef
cmp dword [esi + 0x6c], 0
je 0x181445ba
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.181443ef
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.181443ef
mov dword [edi + 0x30], 1
mov ecx, edi
mov dword [esi + 4], 0x71
call fcn.18144413
cmp dword [esi + 0x14], 0
jne 0x18144caf
push 0x1f
pop edx
mov eax, dword [esi + 4]
cmp eax, 0x39
jne 0x181446b5
and dword [edi + 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 eax, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x14], edx
test eax, eax
jne 0x18144739
mov eax, dword [esi + 8]
mov byte [edx + eax], 0
xor edx, edx
inc dword [esi + 0x14]
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], dl
inc dword [esi + 0x14]
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], dl
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x84]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0x18144670
mov cl, 2
jmp 0x18144684
cmp dword [esi + 0x88], 2
jge 0x18144682
cmp eax, 2
jl 0x18144682
xor cl, cl
jmp 0x18144684
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.18144413
cmp dword [esi + 0x14], 0
jne 0x18144caf
mov eax, dword [esi + 4]
cmp eax, 0x45
jne 0x18144902
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x181448f9
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 0x181448aa
mov eax, ebx
mov dword [ebp - 0xc], ebx
sub ecx, eax
mov eax, dword [esi + 0x1c]
push ecx
mov dword [ebp - 8], ecx
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.18161b60
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x18144878
cmp ecx, ebx
jbe 0x18144878
mov edx, dword [esi + 8]
sub ecx, ebx
add edx, ebx
jne 0x1814486b
xor eax, eax
jmp 0x18144875
cmp dword [eax + 0x24], 0
mov ebx, dword [esi + 0x1c]
sete cl
dec cl
and cl, 0x10
cmp dword [eax + 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 + 0x84]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0x181447db
mov cl, 2
jmp 0x181447ef
cmp dword [esi + 0x88], 2
jge 0x181447ed
cmp eax, 2
jl 0x181447ed
xor cl, cl
jmp 0x181447ef
mov cl, 4
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], 0
je 0x1814483b
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], 0
je 0x1814485b
cmp dword [esi + 8], 0
jne 0x1814484b
xor eax, eax
jmp 0x18144858
mov ecx, dword [edi + 0x30]
push edx
mov edx, dword [esi + 8]
call fcn.18148c45
pop ecx
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x45
jmp 0x181446be
push ecx
mov ecx, dword [edi + 0x30]
call fcn.18148c45
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
mov ecx, edi
add dword [esi + 0x20], eax
call fcn.18144413
cmp dword [esi + 0x14], 0
jne 0x18144caf
mov edx, dword [ebp - 4]
xor eax, eax
sub edx, dword [ebp - 8]
xor ebx, ebx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
cmp edx, ecx
ja 0x181446eb
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.18161b60
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 0x181448f5
cmp ecx, ebx
jbe 0x181448f5
mov edx, dword [esi + 8]
sub ecx, ebx
add edx, ebx
jne 0x181448e8
xor eax, eax
jmp 0x181448f2
push ecx
mov ecx, dword [edi + 0x30]
call fcn.18148c45
pop ecx
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x49
jmp 0x1814490b
cmp eax, 0x49
jne 0x181449c2
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], 0
je 0x181449b9
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0x18144963
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1814494c
cmp ebx, ecx
jbe 0x1814494c
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x1814493f
xor eax, eax
jmp 0x18144949
mov ecx, dword [edi + 0x30]
push ebx
call fcn.18148c45
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.18144413
cmp dword [esi + 0x14], 0
jne 0x18144caf
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 0x1814498b
mov ecx, dword [ebp - 4]
jmp 0x18144920
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x181449b5
mov eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x181449b5
mov edx, dword [esi + 8]
sub ebx, eax
add edx, eax
jne 0x181449a8
xor eax, eax
jmp 0x181449b2
mov ecx, dword [edi + 0x30]
push ebx
call fcn.18148c45
pop ecx
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x5b
jmp 0x181449cb
cmp eax, 0x5b
jne 0x18144a81
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], 0
je 0x18144a75
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0x18144a23
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x18144a0c
cmp ebx, ecx
jbe 0x18144a0c
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x181449ff
xor eax, eax
jmp 0x18144a09
mov ecx, dword [edi + 0x30]
push ebx
call fcn.18148c45
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.18144413
cmp dword [esi + 0x14], 0
jne 0x18144caf
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 0x18144a4b
mov ecx, dword [ebp - 4]
jmp 0x181449e0
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x18144a75
mov eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x18144a75
mov edx, dword [esi + 8]
sub ebx, eax
add edx, eax
jne 0x18144a68
xor eax, eax
jmp 0x18144a72
mov ecx, dword [edi + 0x30]
push ebx
call fcn.18148c45
pop ecx
mov dword [edi + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi + 4], 0x67
jmp 0x18144a86
cmp eax, 0x67
jne 0x18144ae3
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x18144acb
mov edx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, dword [esi + 0xc]
jbe 0x18144aac
mov ecx, edi
call fcn.18144413
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x18144caf
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]
and dword [edi + 0x30], 0
mov ecx, edi
mov dword [esi + 4], 0x71
call fcn.18144413
cmp dword [esi + 0x14], 0
jne 0x18144caf
cmp dword [edi + 4], 0
jne 0x18144b04
cmp dword [esi + 0x74], 0
jne 0x18144b04
test ebx, ebx
je 0x18144cb3
cmp dword [esi + 4], 0x29a
je 0x18144bdf
mov ecx, dword [esi + 0x84]
test ecx, ecx
jne 0x18144b17
push ebx
push esi
call fcn.18145139
jmp 0x18144b48
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0x18144b2d
mov edx, ebx
mov ecx, esi
call fcn.18145dd4
jmp 0x18144b4a
cmp eax, 3
jne 0x18144b3d
mov edx, ebx
mov ecx, esi
call fcn.18145b78
jmp 0x18144b4a
imul eax, ecx, 0xc
push ebx
push esi
call dword [eax + 0x181d6100]
pop ecx
pop ecx
cmp eax, 2
je 0x18144b54
cmp eax, 3
jne 0x18144b5b
mov dword [esi + 4], 0x29a
test eax, eax
je 0x18144ca9
cmp eax, 2
je 0x18144ca9
cmp eax, 1
jne 0x18144bdf
cmp ebx, eax
jne 0x18144b7e
mov ecx, esi
call fcn.18148242
jmp 0x18144bce
cmp ebx, 5
je 0x18144bce
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.18148151
pop ecx
pop ecx
cmp ebx, 3
jne 0x18144bce
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.181620e0
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x74], eax
jne 0x18144bce
mov dword [esi + 0x6c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x16b4], eax
mov ecx, edi
call fcn.18144413
cmp dword [edi + 0x10], 0
je 0x18144caf
cmp ebx, 4
jne 0x18144cb3
cmp dword [esi + 0x18], 0
jg 0x18144bf6
xor eax, eax
inc eax
jmp 0x18144cc1
cmp dword [esi + 0x18], 2
jne 0x18144c76
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 0x18144c8c
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.181443ef
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.181443ef
mov ecx, edi
call fcn.18144413
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x18144c9f
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
sete al
jmp 0x18144cc1
cmp dword [edi + 0x10], 0
jne 0x18144cb3
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0x18144cc1
mov dword [edi + 0x18], str.stream_error
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret