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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, ecx
call fcn.004a1023
test eax, eax
jne 0x4a1b50
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
je 0x4a1b49
cmp dword [edi + 4], eax
je 0x4a13a4
cmp dword [edi], eax
je 0x4a1b49
mov ebx, dword [esi + 4]
cmp ebx, 0x29a
jne 0x4a13b8
cmp edx, 4
jne 0x4a1b49
cmp dword [edi + 0x10], eax
je 0x4a141c
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], edx
mov dword [ebp - 0xc], 9
cmp dword [esi + 0x14], eax
je 0x4a13e6
mov ecx, edi
call fcn.004a0f2d
xor ebx, ebx
cmp dword [edi + 0x10], ebx
je 0x4a1b41
mov edx, dword [esi + 4]
jmp 0x4a140b
mov edx, ebx
cmp dword [edi + 4], eax
jne 0x4a1409
xor eax, eax
cmp ecx, 4
cmovg eax, dword [ebp - 0xc]
add ecx, ecx
sub ecx, eax
mov eax, dword [ebp - 4]
add eax, eax
cmp eax, ecx
jg 0x4a1409
cmp dword [ebp - 4], 4
jne 0x4a141c
xor ebx, ebx
cmp edx, 0x29a
jne 0x4a142a
cmp dword [edi + 4], ebx
je 0x4a14d8
mov dword [edi + 0x18], 0x4fabc0
push 0xfffffffffffffffb
jmp 0x4a1b52
cmp edx, 0x2a
jne 0x4a14d8
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
mov ebx, ecx
jge 0x4a1477
mov eax, dword [esi + 0x84]
cmp eax, 2
jl 0x4a1477
cmp eax, 6
jge 0x4a1461
push 0x40
pop eax
push 0x60
jmp 0x4a147b
jne 0x4a146d
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0x4a147c
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0x4a147c
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0x4a1488
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.004a0f74
xor ebx, ebx
cmp dword [esi + 0x6c], ebx
je 0x4a14ba
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.004a0f74
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.004a0f74
mov dword [edi + 0x30], 1
mov ecx, edi
mov dword [esi + 4], 0x71
call fcn.004a0f2d
cmp dword [esi + 0x14], ebx
jne 0x4a1b41
mov eax, dword [esi + 4]
cmp eax, 0x39
jne 0x4a15ad
mov dword [edi + 0x30], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [ecx + eax], 0x1f
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
inc dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
test edx, edx
jne 0x4a162b
mov eax, dword [esi + 8]
push 9
mov byte [ebx + eax], dl
xor ebx, ebx
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
inc dword [esi + 0x14]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x14]
pop ecx
cmp eax, ecx
jne 0x4a156b
mov cl, 2
jmp 0x4a157d
cmp dword [esi + 0x88], 2
jge 0x4a157b
mov cl, bl
cmp eax, 2
jge 0x4a157d
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.004a0f2d
cmp dword [esi + 0x14], ebx
jne 0x4a1b41
mov eax, dword [esi + 4]
cmp eax, 0x45
jne 0x4a17e5
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], ebx
je 0x4a17dc
movzx eax, word [eax + 0x14]
sub eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x14]
mov ecx, ebx
mov dword [ebp - 8], eax
add eax, ebx
mov edx, dword [esi + 0xc]
cmp eax, edx
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x10]
jbe 0x4a1790
add eax, dword [esi + 0x20]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 8]
add eax, ecx
mov dword [ebp - 0xc], edx
push eax
call fcn.00437d90
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x4a1766
cmp ecx, ebx
jbe 0x4a1766
mov edx, dword [esi + 8]
sub ecx, ebx
add edx, ebx
jne 0x4a1759
xor eax, eax
jmp 0x4a1763
cmp dword [edx + 0x24], 0
push 9
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 + 8]
mov byte [ebx + 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
inc dword [esi + 0x14]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x14]
pop ecx
cmp eax, ecx
jne 0x4a16cb
mov cl, 2
jmp 0x4a16df
cmp dword [esi + 0x88], 2
jge 0x4a16dd
cmp eax, 2
jl 0x4a16dd
xor cl, cl
jmp 0x4a16df
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 eax, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov ebx, dword [esi + 0x14]
cmp dword [eax + 0x10], 0
je 0x4a172a
mov al, byte [eax + 0x14]
mov ecx, dword [esi + 8]
mov byte [ebx + 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 ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4a1748
mov edx, dword [esi + 8]
test edx, edx
jne 0x4a173b
xor eax, eax
jmp 0x4a1745
mov ecx, dword [edi + 0x30]
push ebx
call fcn.0049fad8
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
mov dword [esi + 4], 0x45
mov dword [esi + 0x20], ebx
jmp 0x4a15b6
push ecx
mov ecx, dword [edi + 0x30]
call fcn.0049fad8
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, edi
add dword [esi + 0x20], eax
call fcn.004a0f2d
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x4a1b41
mov eax, dword [ebp - 8]
xor ebx, ebx
sub eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
add eax, ecx
jmp 0x4a15d3
mov edx, dword [esi + 0x20]
add eax, edx
push dword [ebp - 8]
push eax
mov eax, dword [esi + 8]
add eax, ecx
push eax
call fcn.00437d90
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [esi + 0x14], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
cmp dword [eax + 0x2c], 0
je 0x4a17d7
cmp ecx, ebx
jbe 0x4a17d7
mov edx, dword [esi + 8]
sub ecx, ebx
add edx, ebx
jne 0x4a17ca
xor eax, eax
jmp 0x4a17d4
push ecx
mov ecx, dword [edi + 0x30]
call fcn.0049fad8
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x49
jmp 0x4a17ee
cmp eax, 0x49
jne 0x4a18a3
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], ebx
je 0x4a189a
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 8], ecx
cmp ebx, dword [esi + 0xc]
jne 0x4a1843
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4a182e
cmp ebx, ecx
jbe 0x4a182e
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x4a1821
xor eax, eax
jmp 0x4a182b
mov ecx, dword [edi + 0x30]
push ebx
call fcn.0049fad8
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.004a0f2d
mov ebx, dword [esi + 0x14]
test ebx, ebx
jne 0x4a1b41
and dword [ebp - 8], 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 0x4a186b
mov ecx, dword [ebp - 8]
jmp 0x4a1802
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4a1895
mov eax, dword [ebp - 8]
cmp ebx, eax
jbe 0x4a1895
mov edx, dword [esi + 8]
sub ebx, eax
add edx, eax
jne 0x4a1888
xor eax, eax
jmp 0x4a1892
mov ecx, dword [edi + 0x30]
push ebx
call fcn.0049fad8
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x5b
jmp 0x4a18ac
cmp eax, 0x5b
jne 0x4a195e
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], ebx
je 0x4a1955
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 8], ecx
cmp ebx, dword [esi + 0xc]
jne 0x4a1901
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4a18ec
cmp ebx, ecx
jbe 0x4a18ec
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x4a18df
xor eax, eax
jmp 0x4a18e9
mov ecx, dword [edi + 0x30]
push ebx
call fcn.0049fad8
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.004a0f2d
mov ebx, dword [esi + 0x14]
test ebx, ebx
jne 0x4a1b41
and dword [ebp - 8], 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 0x4a1929
mov ecx, dword [ebp - 8]
jmp 0x4a18c0
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4a1953
mov eax, dword [ebp - 8]
cmp ebx, eax
jbe 0x4a1953
mov edx, dword [esi + 8]
sub ebx, eax
add edx, eax
jne 0x4a1946
xor eax, eax
jmp 0x4a1950
mov ecx, dword [edi + 0x30]
push ebx
call fcn.0049fad8
pop ecx
mov dword [edi + 0x30], eax
xor ebx, ebx
mov dword [esi + 4], 0x67
jmp 0x4a1963
cmp eax, 0x67
jne 0x4a19bd
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x4a19a6
mov edx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, dword [esi + 0xc]
jbe 0x4a1988
mov ecx, edi
call fcn.004a0f2d
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x4a1b41
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.004a0f2d
cmp dword [esi + 0x14], ebx
jne 0x4a1b41
cmp dword [edi + 4], ebx
jne 0x4a19e1
cmp dword [esi + 0x74], ebx
mov ebx, dword [ebp - 4]
jne 0x4a19e4
test ebx, ebx
je 0x4a1b45
cmp dword [esi + 4], 0x29a
je 0x4a1a71
jmp 0x4a19e4
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x84]
test ecx, ecx
jne 0x4a19f7
push ebx
push esi
call fcn.004a07f8
jmp 0x4a1a28
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0x4a1a0d
mov edx, ebx
mov ecx, esi
call fcn.0049fd86
jmp 0x4a1a2a
cmp eax, 3
jne 0x4a1a1d
mov edx, ebx
mov ecx, esi
call fcn.0049fecc
jmp 0x4a1a2a
imul eax, ecx, 0xc
push ebx
push esi
call dword [eax + 0x4ecd98]
pop ecx
pop ecx
cmp eax, 2
je 0x4a1a34
cmp eax, 3
jne 0x4a1a3b
mov dword [esi + 4], 0x29a
test eax, eax
je 0x4a1b3b
cmp eax, 2
je 0x4a1b3b
cmp eax, 1
jne 0x4a1a71
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.004a5726
pop ecx
pop ecx
mov ecx, edi
call fcn.004a0f2d
cmp dword [edi + 0x10], 0
je 0x4a1b41
cmp ebx, 4
jne 0x4a1b45
cmp dword [esi + 0x18], 0
jg 0x4a1a88
xor eax, eax
inc eax
jmp 0x4a1b53
cmp dword [esi + 0x18], 2
jne 0x4a1b08
mov ecx, dword [esi + 0x14]
mov al, byte [edi + 0x30]
mov edx, 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 0x4a1b1e
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.004a0f74
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.004a0f74
mov ecx, edi
call fcn.004a0f2d
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x4a1b31
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
sete al
jmp 0x4a1b53
cmp dword [edi + 0x10], 0
jne 0x4a1b45
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0x4a1b53
mov dword [edi + 0x18], 0x4fab90
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret