Function at 0x529d10
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [ebp + 0x10]
push esi
shr ecx, 0x10
mov dword [esp + 8], ecx
push edi
movzx edi, ax
cmp edx, 1
jne 0x529d70
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 + 0xc]
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 esi, dword [ebp + 0xc]
test esi, esi
jne 0x529d80
lea eax, [esi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, 0x10
jb 0x529f9f
mov ecx, 0x15b0
mov dword [esp + 0x1c], 0xfff1
mov dword [esp + 0x10], ecx
mov eax, 0x10
mov ecx, esi
xorps xmm7, xmm7
and ecx, 0xf
sub eax, ecx
mov dword [esp + 8], eax
xor eax, eax
test ecx, ecx
je 0x529e59
mov ecx, dword [esp + 8]
add ecx, 0x10
cmp edx, ecx
jae 0x529de2
mov ecx, dword [esp + 0xc]
sub edx, 0x10
movups xmm1, xmmword [esi]
mov dword [ebp + 0x10], edx
movd xmm4, edi
xorps xmm3, xmm3
movd xmm5, ecx
movaps xmm2, xmm4
jmp 0x529f1e
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
cmp eax, 2
jb 0x529e29
lea ecx, [eax - 2]
shr ecx, 1
inc ecx
xor edx, edx
lea eax, [ecx + ecx]
mov dword [esp + 0x18], eax
movzx eax, byte [esi]
add edi, eax
movzx eax, byte [esi + 1]
add edx, edi
add esi, 2
add edi, eax
add dword [esp + 0x10], edi
sub ecx, 1
jne 0x529e04
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp ecx, eax
mov ecx, dword [esp + 0xc]
jae 0x529e39
movzx eax, byte [esi]
add edi, eax
add ecx, edi
inc esi
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
add ecx, eax
sub edx, dword [esp + 8]
mov eax, 0x15b0
sub eax, dword [esp + 8]
mov dword [esp + 0x10], eax
jmp 0x529e62
mov ecx, dword [esp + 0xc]
mov eax, 0x15b0
cmp edx, 0x10
jb 0x529f9f
cmp edx, dword [esp + 0x10]
movaps xmm6, xmm7
movd xmm0, ecx
movaps xmm5, xmm7
cmovb eax, edx
movd xmm4, edi
and eax, 0xfffffff0
movaps xmmword [esp + 0x20], xmm0
sub edx, eax
mov dword [ebp + 0x10], edx
cmp eax, 0x20
jb 0x529f00
mov ecx, eax
shr ecx, 5
nop word [eax + eax]
movups xmm2, xmmword [esi]
paddd xmm6, xmm4
movups xmm3, xmmword [esi + 0x10]
movaps xmm1, xmm2
pmaddubsw xmm2, xmmword [0x5a0200]
movaps xmm0, xmm3
pmaddubsw xmm3, xmmword [0x5a01f0]
add esi, 0x20
psadbw xmm1, xmm7
sub eax, 0x20
psadbw xmm0, xmm7
pmaddwd xmm2, xmmword [0x586e90]
pmaddwd xmm3, xmmword [0x586e90]
paddd xmm4, xmm1
paddd xmm4, xmm0
movaps xmm0, xmmword [esp + 0x20]
paddd xmm0, xmm2
movaps xmmword [esp + 0x20], xmm0
paddd xmm5, xmm3
sub ecx, 1
jne 0x529ea0
pslld xmm6, 5
paddd xmm5, xmm0
movaps xmm3, xmm7
movaps xmm2, xmm4
paddd xmm5, xmm6
cmp eax, 0x10
jb 0x529f4d
movups xmm1, xmmword [esi]
sub eax, 0x10
movaps xmm0, xmm1
paddd xmm3, xmm2
pmaddubsw xmm1, xmmword [0x5a01f0]
add esi, 0x10
psadbw xmm0, xmm7
pmaddwd xmm1, xmmword [0x586e90]
paddd xmm0, xmm4
movaps xmm4, xmm0
movaps xmm2, xmm0
paddd xmm5, xmm1
jmp 0x529f13
movaps xmm0, xmm4
pslld xmm3, 4
psrldq xmm0, 8
xor edx, edx
paddd xmm0, xmm4
paddd xmm3, xmm5
movd eax, xmm0
movaps xmm1, xmm3
punpckhqdq xmm1, xmm3
paddd xmm1, xmm3
div dword [esp + 0x1c]
pshufd xmm0, xmm1, 1
paddd xmm0, xmm1
mov edi, edx
movd eax, xmm0
xor edx, edx
div dword [esp + 0x1c]
mov eax, 0x15b0
mov ecx, edx
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x10]
jmp 0x529e62
push ecx
push edx
push esi
push edi
call fcn.00529cb0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret