Function at 0x4824a0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movzx esi, cx
shr ecx, 0x10
cmp ebx, 1
jne 0x48216f
movzx eax, byte [edi]
lea edx, [esi + eax]
cmp edx, 0xfff0
lea eax, [esi + eax - 0xfff1]
cmovbe eax, edx
add ecx, eax
mov edx, ecx
shl edx, 0x10
cmp ecx, 0xfff0
lea ecx, [edx + 0xf0000]
cmovbe ecx, edx
or ecx, eax
jmp 0x482492
test edi, edi
je 0x482217
cmp ebx, 0x10
jae 0x482221
test ebx, ebx
je 0x4821ea
lea eax, [ebx - 1]
mov ebp, ebx
and ebp, 3
je 0x4821b6
mov dword [esp], eax
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax]
movzx eax, byte [edi + edx]
add esi, eax
add ecx, esi
add edx, 1
cmp ebp, edx
jne 0x4821a0
sub ebx, edx
add edi, edx
mov eax, dword [esp]
cmp eax, 3
jb 0x4821ea
xor eax, eax
nop dword [eax]
movzx edx, byte [edi + eax]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 1]
add esi, edx
add ecx, esi
movzx edx, byte [edi + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 3]
add esi, edx
add ecx, esi
add eax, 4
cmp ebx, eax
jne 0x4821c0
lea edi, [esi - 0xfff1]
cmp esi, 0xfff0
cmovbe edi, esi
mov edx, 0x80078071
mov eax, ecx
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
shl ecx, 0x10
or ecx, edi
jmp 0x482492
mov ecx, 1
jmp 0x482492
cmp ebx, 0x15b0
jb 0x482370
mov ebp, 0x80078071
jmp 0x482270
mov eax, esi
mul ebp
add edi, 0x15b0
shr edx, 0xf
imul eax, edx, 0xfff1
sub esi, eax
mov eax, ecx
mul ebp
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
cmp ebx, 0x15af
jbe 0x482350
add ebx, 0xffffea50
mov eax, 0xffffea60
nop dword [eax + eax]
movzx edx, byte [edi + eax + 0x15a0]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 0x15a1]
add esi, edx
add ecx, esi
movzx edx, byte [edi + eax + 0x15a2]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 0x15a3]
add esi, edx
add ecx, esi
movzx edx, byte [edi + eax + 0x15a4]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 0x15a5]
add esi, edx
add ecx, esi
movzx edx, byte [edi + eax + 0x15a6]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 0x15a7]
add esi, edx
add ecx, esi
movzx edx, byte [edi + eax + 0x15a8]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 0x15a9]
add esi, edx
add ecx, esi
movzx edx, byte [edi + eax + 0x15aa]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 0x15ab]
add esi, edx
add ecx, esi
movzx edx, byte [edi + eax + 0x15ac]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 0x15ad]
add esi, edx
add ecx, esi
movzx edx, byte [edi + eax + 0x15ae]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 0x15af]
add esi, edx
add ecx, esi
test eax, eax
je 0x482240
add eax, 0x10
jmp 0x482280
test ebx, ebx
je 0x48248d
cmp ebx, 0x10
jb 0x482402
nop word cs:[eax + eax]
nop dword [eax + eax]
add ebx, 0xfffffff0
movzx eax, byte [edi]
add eax, esi
add ecx, eax
movzx edx, byte [edi + 1]
add edx, eax
add ecx, edx
movzx eax, byte [edi + 2]
add eax, edx
add ecx, eax
movzx edx, byte [edi + 3]
add edx, eax
add ecx, edx
movzx eax, byte [edi + 4]
add eax, edx
add ecx, eax
movzx edx, byte [edi + 5]
add edx, eax
add ecx, edx
movzx eax, byte [edi + 6]
add eax, edx
add ecx, eax
movzx edx, byte [edi + 7]
add edx, eax
add ecx, edx
movzx eax, byte [edi + 8]
add eax, edx
add ecx, eax
movzx edx, byte [edi + 9]
add edx, eax
add ecx, edx
movzx eax, byte [edi + 0xa]
add eax, edx
add ecx, eax
movzx edx, byte [edi + 0xb]
add edx, eax
add ecx, edx
movzx eax, byte [edi + 0xc]
add eax, edx
add ecx, eax
movzx edx, byte [edi + 0xd]
add edx, eax
add ecx, edx
movzx eax, byte [edi + 0xe]
add eax, edx
add ecx, eax
movzx esi, byte [edi + 0xf]
add esi, eax
add ecx, esi
add edi, 0x10
cmp ebx, 0xf
ja 0x482370
test ebx, ebx
je 0x48246a
lea eax, [ebx - 1]
mov ebp, ebx
and ebp, 3
je 0x482436
mov dword [esp], eax
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx eax, byte [edi + edx]
add esi, eax
add ecx, esi
add edx, 1
cmp ebp, edx
jne 0x482420
sub ebx, edx
add edi, edx
mov eax, dword [esp]
cmp eax, 3
jb 0x48246a
xor eax, eax
nop dword [eax]
movzx edx, byte [edi + eax]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 1]
add esi, edx
add ecx, esi
movzx edx, byte [edi + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [edi + eax + 3]
add esi, edx
add ecx, esi
add eax, 4
cmp ebx, eax
jne 0x482440
mov edi, 0x80078071
mov eax, esi
mul edi
shr edx, 0xf
imul ebx, edx, 0xfff1
mov eax, ecx
mul edi
sub esi, ebx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
shl ecx, 0x10
or ecx, esi
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x482120