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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x10], ebx
call fcn.0048dc41
test eax, eax
jne 0x48e4e0
cmp ebx, 5
ja 0x48e4e0
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
je 0x48e4d9
cmp dword [edi + 4], eax
je 0x48dd85
cmp dword [edi], eax
je 0x48e4d9
cmp dword [esi + 0x20], 0x29a
jne 0x48dd97
cmp ebx, 4
jne 0x48e4d9
cmp dword [edi + 0x10], 0
je 0x48de00
cmp dword [esi + 0x10], 0
mov edx, dword [esi + 0x24]
push 9
mov dword [esi + 0x24], ebx
pop ecx
je 0x48ddbf
mov ecx, edi
call fcn.0048dcff
cmp dword [edi + 0x10], 0
je 0x48e4d1
jmp 0x48ddea
cmp dword [edi + 4], 0
jne 0x48ddea
xor eax, eax
cmp edx, 4
push 9
cmovg eax, ecx
add edx, edx
sub edx, eax
xor ecx, ecx
cmp ebx, 4
pop eax
cmovg ecx, eax
lea eax, [ebx + ebx]
sub eax, ecx
cmp eax, edx
jg 0x48ddea
cmp ebx, 4
jne 0x48de00
cmp dword [esi + 0x20], 0x29a
push 0x1f
pop ebx
jne 0x48de0e
cmp dword [edi + 4], 0
je 0x48dee4
mov dword [edi + 0x18], str.buffer_error
push 0xfffffffffffffffb
jmp 0x48e4e2
cmp dword [esi + 0x20], 0x2a
jne 0x48dee4
cmp dword [esi + 0x14], 0
jne 0x48de2a
mov dword [esi + 0x20], 0x71
jmp 0x48dee4
mov ebx, dword [esi + 0x34]
shl ebx, 0xc
sub ebx, 0x7800
cmp dword [esi + 0x8c], 2
mov edx, ebx
jge 0x48de6e
mov eax, dword [esi + 0x88]
cmp eax, 2
jl 0x48de6e
cmp eax, 6
jge 0x48de58
push 0x40
pop eax
push 0x60
jmp 0x48de72
jne 0x48de64
mov eax, 0x80
lea ecx, [eax + 0x20]
jmp 0x48de73
mov eax, 0xc0
lea ecx, [eax + 0x20]
jmp 0x48de73
xor eax, eax
push 0x20
pop ecx
or ebx, eax
cmp dword [esi + 0x68], 0
je 0x48de7f
mov ebx, ecx
or ebx, edx
xor edx, edx
mov eax, ebx
push 0x1f
pop ecx
div ecx
mov eax, dword [esi + 0x10]
sub ecx, edx
add ebx, ecx
mov ecx, dword [esi + 4]
mov edx, ebx
shr edx, 8
mov byte [ecx + eax], dl
inc dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 4]
mov byte [ecx + eax], bl
mov edx, dword [esi + 0x10]
inc edx
cmp dword [esi + 0x68], 0
mov dword [esi + 0x10], edx
je 0x48dec2
mov ecx, dword [edi + 0x30]
mov eax, dword [esi + 4]
bswap ecx
mov dword [edx + eax], ecx
add dword [esi + 0x10], 4
mov dword [edi + 0x30], 1
mov ecx, edi
mov dword [esi + 0x20], 0x71
call fcn.0048dcff
cmp dword [esi + 0x10], 0
jne 0x48e4d1
push 0x1f
pop ebx
cmp dword [esi + 0x20], 0x39
jne 0x48e076
mov ecx, esi
call fcn.0048f6a9
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov byte [ecx + eax], bl
inc dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 4]
mov byte [ecx + eax], 0x8b
inc dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 4]
mov byte [ecx + eax], 8
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
inc ebx
mov dword [esi + 0x10], ebx
test edx, edx
jne 0x48df98
mov eax, dword [esi + 4]
and dword [ebx + eax], edx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 4]
add ecx, 4
mov dword [esi + 0x10], ecx
mov byte [ecx + eax], dl
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x88]
inc edx
mov dword [esi + 0x10], edx
cmp eax, 9
jne 0x48df51
mov cl, 2
jmp 0x48df65
cmp dword [esi + 0x8c], 2
jge 0x48df63
cmp eax, 2
jl 0x48df63
xor cl, cl
jmp 0x48df65
mov cl, 4
mov eax, dword [esi + 4]
mov byte [edx + eax], cl
inc dword [esi + 0x10]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 4]
mov byte [ecx + eax], 0xa
mov ecx, edi
inc dword [esi + 0x10]
mov dword [esi + 0x20], 0x71
call fcn.0048dcff
cmp dword [esi + 0x10], 0
jne 0x48e4d1
jmp 0x48e076
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 [esi + 4]
mov byte [ebx + eax], cl
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
inc edx
mov ecx, dword [esi + 4]
mov dword [esi + 0x10], edx
mov eax, dword [eax + 4]
mov dword [edx + ecx], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x88]
add edx, 4
mov dword [esi + 0x10], edx
cmp eax, 9
jne 0x48e004
mov cl, 2
jmp 0x48e018
cmp dword [esi + 0x8c], 2
jge 0x48e016
cmp eax, 2
jl 0x48e016
xor cl, cl
jmp 0x48e018
mov cl, 4
mov eax, dword [esi + 4]
mov byte [edx + eax], cl
inc dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov al, byte [eax + 0xc]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x10], edx
cmp dword [eax + 0x10], 0
je 0x48e052
mov ecx, dword [esi + 4]
mov ax, word [eax + 0x14]
mov word [edx + ecx], ax
add dword [esi + 0x10], 2
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x48e06b
mov ecx, dword [edi + 0x30]
push edx
mov edx, dword [esi + 4]
call fcn.0048f5cc
pop ecx
mov dword [edi + 0x30], eax
and dword [esi + 0x18], 0
mov dword [esi + 0x20], 0x45
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], ecx
cmp edx, 0x45
jne 0x48e191
mov eax, dword [ecx]
cmp dword [eax + 0x10], 0
je 0x48e188
movzx eax, word [eax + 0x14]
sub eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov dword [ebp - 8], eax
add eax, ebx
mov dword [ebp - 0x18], ebx
cmp eax, edx
jbe 0x48e139
mov eax, ebx
mov dword [ebp - 0xc], eax
jmp 0x48e0ba
mov eax, ebx
sub edx, eax
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x18]
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp - 0xc]
push eax
call fcn.006f6760
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x10], ecx
cmp dword [eax + 0x2c], 0
je 0x48e0ff
cmp ecx, ebx
jbe 0x48e0ff
mov edx, dword [esi + 4]
sub ecx, ebx
push ecx
mov ecx, dword [edi + 0x30]
add edx, ebx
call fcn.0048f5cc
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x14]
mov ecx, edi
add dword [esi + 0x18], eax
call fcn.0048dcff
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x48e4d1
mov eax, dword [ebp - 8]
xor ecx, ecx
sub eax, dword [ebp - 0x14]
xor ebx, ebx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0xc], ecx
lea ecx, [esi + 0x1c]
mov dword [ebp - 8], eax
cmp eax, edx
ja 0x48e0b8
lea ecx, [esi + 0x1c]
jmp 0x48e13c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x18]
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp - 0x18]
push eax
call fcn.006f6760
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x1c]
mov eax, dword [ecx]
add esp, 0xc
add edx, dword [ebp - 8]
mov dword [esi + 0x10], edx
cmp dword [eax + 0x2c], 0
je 0x48e184
cmp edx, ebx
jbe 0x48e184
mov ecx, dword [edi + 0x30]
sub edx, ebx
push edx
mov edx, dword [esi + 4]
add edx, ebx
call fcn.0048f5cc
pop ecx
mov dword [edi + 0x30], eax
lea ecx, [esi + 0x1c]
and dword [esi + 0x18], 0
mov dword [esi + 0x20], 0x49
jmp 0x48e19a
cmp edx, 0x49
jne 0x48e254
mov eax, dword [ecx]
cmp dword [eax + 0x1c], 0
je 0x48e243
mov edx, dword [esi + 0x10]
mov ebx, edx
mov dword [ebp - 8], edx
cmp ebx, dword [esi + 0xc]
jne 0x48e1ec
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x48e1d4
cmp ebx, edx
jbe 0x48e1d4
mov ecx, dword [edi + 0x30]
sub ebx, edx
mov edx, dword [esi + 4]
add edx, dword [ebp - 8]
push ebx
call fcn.0048f5cc
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.0048dcff
cmp dword [esi + 0x10], 0
jne 0x48e4d1
xor eax, eax
xor ebx, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x10]
inc ebx
mov dword [esi + 0x10], ebx
test dl, dl
je 0x48e219
mov edx, dword [ebp - 8]
jmp 0x48e1ae
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x48e23f
mov eax, dword [ebp - 8]
cmp ebx, eax
jbe 0x48e23f
mov edx, dword [esi + 4]
sub ebx, eax
mov ecx, dword [edi + 0x30]
add edx, eax
push ebx
call fcn.0048f5cc
pop ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 0x30], eax
and dword [esi + 0x18], 0
mov eax, esi
mov dword [esi + 0x20], 0x5b
lea ebx, [eax + 0xc]
mov dword [ebp - 0x18], ebx
jmp 0x48e263
lea ebx, [esi + 0xc]
mov dword [ebp - 0x18], ebx
cmp edx, 0x5b
jne 0x48e314
mov eax, dword [ecx]
cmp dword [eax + 0x24], 0
je 0x48e308
mov edx, dword [esi + 0x10]
mov ebx, edx
mov dword [ebp - 8], edx
cmp ebx, dword [esi + 0xc]
jne 0x48e2b5
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x48e29d
cmp ebx, edx
jbe 0x48e29d
mov ecx, dword [edi + 0x30]
sub ebx, edx
mov edx, dword [esi + 4]
add edx, dword [ebp - 8]
push ebx
call fcn.0048f5cc
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.0048dcff
cmp dword [esi + 0x10], 0
jne 0x48e4d1
xor eax, eax
xor ebx, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x10]
inc ebx
mov dword [esi + 0x10], ebx
test dl, dl
je 0x48e2e2
mov edx, dword [ebp - 8]
jmp 0x48e277
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x48e308
mov eax, dword [ebp - 8]
cmp ebx, eax
jbe 0x48e308
mov edx, dword [esi + 4]
sub ebx, eax
mov ecx, dword [edi + 0x30]
add edx, eax
push ebx
call fcn.0048f5cc
pop ecx
mov ecx, dword [ebp - 4]
mov dword [edi + 0x30], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi + 0x20], 0x67
jmp 0x48e319
cmp edx, 0x67
jne 0x48e36b
mov eax, dword [ecx]
cmp dword [eax + 0x2c], 0
je 0x48e353
mov edx, dword [esi + 0x10]
lea eax, [edx + 2]
cmp eax, dword [ebx]
jbe 0x48e33d
mov ecx, edi
call fcn.0048dcff
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x48e4d1
mov ecx, dword [esi + 4]
mov ax, word [edi + 0x30]
mov word [edx + ecx], ax
mov ecx, esi
add dword [esi + 0x10], 2
call fcn.0048f6a9
mov ecx, edi
mov dword [esi + 0x20], 0x71
call fcn.0048dcff
cmp dword [esi + 0x10], 0
jne 0x48e4d1
cmp dword [edi + 4], 0
mov ebx, dword [ebp - 0x10]
jne 0x48e38f
cmp dword [esi + 0x3c], 0
jne 0x48e38f
test ebx, ebx
je 0x48e4d5
cmp dword [esi + 0x20], 0x29a
je 0x48e454
mov ecx, dword [esi + 0x88]
test ecx, ecx
jne 0x48e3a2
push ebx
push esi
call fcn.0049253d
jmp 0x48e3d3
mov eax, dword [esi + 0x8c]
cmp eax, 2
jne 0x48e3b8
mov edx, ebx
mov ecx, esi
call fcn.00491cdb
jmp 0x48e3d5
cmp eax, 3
jne 0x48e3c8
mov edx, ebx
mov ecx, esi
call fcn.0048fabb
jmp 0x48e3d5
imul eax, ecx, 0xc
push ebx
push esi
call dword [eax + 0xcd03e0]
pop ecx
pop ecx
cmp eax, 2
je 0x48e3df
cmp eax, 3
jne 0x48e3e6
mov dword [esi + 0x20], 0x29a
test eax, eax
je 0x48e4cb
cmp eax, 2
je 0x48e4cb
cmp eax, 1
jne 0x48e454
cmp ebx, eax
jne 0x48e409
mov ecx, esi
call fcn.0049193e
jmp 0x48e447
cmp ebx, 5
je 0x48e447
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.004918dd
pop ecx
pop ecx
cmp ebx, 3
jne 0x48e447
push 0x20000
push 0
push dword [esi + 0x50]
call fcn.006f59b0
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x3c], eax
jne 0x48e447
mov dword [esi + 0x68], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x1708], eax
mov ecx, edi
call fcn.0048dcff
cmp dword [edi + 0x10], 0
je 0x48e4d1
cmp ebx, 4
jne 0x48e4d5
cmp dword [esi + 0x14], 2
jne 0x48e496
cmp dword [0xf0f6cc], 0
je 0x48e478
lea ecx, [esi + 0x98]
call fcn.00494c76
mov ecx, dword [esi]
mov dword [ecx + 0x30], eax
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x30]
mov dword [edx + ecx], eax
add dword [esi + 0x10], 4
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov eax, dword [edi + 8]
mov dword [edx + ecx], eax
jmp 0x48e4aa
cmp dword [esi + 0x14], 1
jne 0x48e4ae
mov edx, dword [edi + 0x30]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x10]
bswap edx
mov dword [ecx + eax], edx
add dword [esi + 0x10], 4
mov ecx, edi
call fcn.0048dcff
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x48e4c1
neg eax
mov dword [esi + 0x14], eax
xor eax, eax
cmp dword [esi + 0x10], eax
sete al
jmp 0x48e4e3
cmp dword [edi + 0x10], 0
jne 0x48e4d5
or dword [esi + 0x24], 0xffffffff
xor eax, eax
jmp 0x48e4e3
mov dword [edi + 0x18], str.stream_error
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret