Function at 0x4afbb0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
mov edx, eax
push esi
mov esi, dword [ebp + 0x10]
shr edx, 0x10
mov dword [esp + 0xc], edx
push edi
movzx edi, ax
cmp esi, 1
jne 0x4afc10
mov eax, dword [ebp + 0xc]
movzx esi, byte [eax]
mov eax, 0x80078071
add esi, edi
mul esi
mov eax, 0x80078071
shr edx, 0xf
imul ecx, edx, 0xffff000f
add esi, ecx
mov ecx, dword [esp + 0x10]
add ecx, esi
mul ecx
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, ecx
shl eax, 0x10
or eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4afc20
lea eax, [ecx + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x10
jb 0x4afe2b
mov eax, ecx
mov edx, 0x10
and eax, 0xf
xorps xmm7, xmm7
sub edx, eax
mov dword [esp + 0xc], edx
xor edx, edx
test eax, eax
je 0x4afce1
mov eax, dword [esp + 0xc]
add eax, 0x10
cmp esi, eax
jae 0x4afc6e
movups xmm1, xmmword [ecx]
sub esi, 0x10
movd xmm4, edi
xorps xmm3, xmm3
mov edi, dword [esp + 0x10]
movaps xmm2, xmm4
movd xmm5, edi
jmp 0x4afd9e
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
xor edx, edx
cmp eax, 2
jb 0x4afcb5
lea edx, [eax - 2]
shr edx, 1
inc edx
xor esi, esi
lea eax, [edx + edx]
mov dword [esp + 0x1c], eax
movzx eax, byte [ecx]
add edi, eax
movzx eax, byte [ecx + 1]
add esi, edi
add ecx, 2
add edi, eax
add dword [esp + 0x14], edi
sub edx, 1
jne 0x4afc90
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], esi
cmp edx, eax
mov edx, dword [esp + 0x10]
jae 0x4afcc5
movzx eax, byte [ecx]
add edi, eax
add edx, edi
inc ecx
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov esi, dword [ebp + 0x10]
add edx, eax
sub esi, dword [esp + 0xc]
mov eax, 0x15b0
sub eax, dword [esp + 0xc]
jmp 0x4afcea
mov edx, dword [esp + 0x10]
mov eax, 0x15b0
cmp esi, 0x10
jb 0x4afe2b
movd xmm1, edx
cmp esi, eax
mov edx, eax
movd xmm4, edi
cmovb edx, esi
movaps xmmword [esp + 0x20], xmm1
and edx, 0xfffffff0
movaps xmm6, xmm7
sub esi, edx
movaps xmm5, xmm7
cmp edx, 0x20
jb 0x4afd80
mov eax, edx
shr eax, 5
nop dword [eax]
movups xmm2, xmmword [ecx]
paddd xmm6, xmm4
movups xmm3, xmmword [ecx + 0x10]
movaps xmm1, xmm2
pmaddubsw xmm2, xmmword [0x4d68b0]
movaps xmm0, xmm3
pmaddubsw xmm3, xmmword [0x4d68a0]
add ecx, 0x20
psadbw xmm1, xmm7
sub edx, 0x20
psadbw xmm0, xmm7
pmaddwd xmm2, xmmword [0x4d6890]
pmaddwd xmm3, xmmword [0x4d6890]
paddd xmm4, xmm1
movaps xmm1, xmmword [esp + 0x20]
paddd xmm4, xmm0
paddd xmm1, xmm2
movaps xmmword [esp + 0x20], xmm1
paddd xmm5, xmm3
sub eax, 1
jne 0x4afd20
pslld xmm6, 5
paddd xmm5, xmm1
movaps xmm3, xmm7
movaps xmm2, xmm4
paddd xmm5, xmm6
cmp edx, 0x10
jb 0x4afdcd
movups xmm1, xmmword [ecx]
sub edx, 0x10
movaps xmm0, xmm1
paddd xmm3, xmm2
pmaddubsw xmm1, xmmword [0x4d68a0]
add ecx, 0x10
psadbw xmm0, xmm7
pmaddwd xmm1, xmmword [0x4d6890]
paddd xmm0, xmm4
movaps xmm4, xmm0
movaps xmm2, xmm0
paddd xmm5, xmm1
jmp 0x4afd93
movaps xmm0, xmm4
pslld xmm3, 4
psrldq xmm0, 8
mov eax, 0x80078071
paddd xmm0, xmm4
paddd xmm3, xmm5
movd edi, xmm0
movaps xmm1, xmm3
punpckhqdq xmm1, xmm3
paddd xmm1, xmm3
mul edi
pshufd xmm0, xmm1, 1
paddd xmm0, xmm1
shr edx, 0xf
imul eax, edx, 0xfff1
movd edx, xmm0
sub edi, eax
mov eax, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
movd edx, xmm0
sub edx, eax
jmp 0x4afce5
push edx
push esi
push ecx
push edi
call fcn.004ad3f0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret