Function at 0x4bcba0
Capabilities:
Compute adler32 checksum

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, ecx
mov rbx, rdx
mov qword [rsp + 0x90], r8
shr eax, 0x10
cmp r8, 1
movzx r15d, cx
mov dword [rsp + 0xc], eax
je 0x4bd0dd
test rdx, rdx
je 0x4bd115
cmp qword [rsp + 0x90], 0xf
ja 0x4bce09
cmp qword [rsp + 0x90], 0
je 0x4bcdc4
movzx eax, byte [rdx]
add r15d, eax
add dword [rsp + 0xc], r15d
cmp qword [rsp + 0x90], 1
mov edi, dword [rsp + 0xc]
je 0x4bcdc4
movzx eax, byte [rdx + 1]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 2
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 2]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 3
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 3]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 4
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 4]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 5
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 5]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 6
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 6]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 7
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 7]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 8
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 8]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 9
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 9]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 0xa
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 0xa]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 0xb
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 0xb]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 0xc
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 0xc]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 0xd
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 0xd]
add r15d, eax
mov eax, edi
add eax, r15d
cmp qword [rsp + 0x90], 0xe
mov edi, eax
mov dword [rsp + 0xc], eax
je 0x4bcdc4
movzx eax, byte [rdx + 0xe]
add r15d, eax
mov eax, edi
add eax, r15d
mov dword [rsp + 0xc], eax
lea eax, [r15 - 0xfff1]
cmp r15d, 0xfff1
mov edx, 0x80078071
mov edi, dword [rsp + 0xc]
cmovae r15d, eax
mov eax, dword [rsp + 0xc]
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, edi
shl eax, 0x10
or eax, r15d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [rsp + 0x90], 0x15af
jbe 0x4bd11f
mov rax, qword [rsp + 0x90]
sub rax, 0x15b0
mov qword [rsp + 0x18], rax
lea rax, [rbx + 0x15b0]
mov qword [rsp + 0x10], rax
nop word [rax + rax]
movzx eax, byte [rbx]
movzx r14d, byte [rbx + 1]
add rbx, 0x10
movzx r13d, byte [rbx - 0xe]
movzx r12d, byte [rbx - 0xd]
movzx ebp, byte [rbx - 0xc]
movzx edi, byte [rbx - 0xb]
movzx esi, byte [rbx - 0xa]
movzx r11d, byte [rbx - 9]
add eax, r15d
movzx r10d, byte [rbx - 6]
movzx r9d, byte [rbx - 5]
add r14d, eax
movzx r8d, byte [rbx - 4]
movzx r15d, byte [rbx - 1]
add r13d, r14d
add eax, r14d
add r12d, r13d
add eax, r13d
add ebp, r12d
add eax, r12d
add edi, ebp
add eax, ebp
add esi, edi
add edi, eax
lea edx, [r11 + rsi]
movzx r11d, byte [rbx - 8]
add esi, edi
mov dword [rsp + 4], edx
add esi, dword [rsp + 4]
add r11d, edx
movzx edx, byte [rbx - 2]
mov ecx, r11d
movzx r11d, byte [rbx - 7]
mov dword [rsp + 8], ecx
add esi, dword [rsp + 8]
add r11d, ecx
movzx ecx, byte [rbx - 3]
add r10d, r11d
add r11d, esi
add r9d, r10d
add r10d, r11d
add r8d, r9d
add r9d, r10d
add ecx, r8d
add r8d, r9d
add edx, ecx
add ecx, r8d
add r15d, edx
add edx, ecx
add edx, r15d
add dword [rsp + 0xc], edx
cmp rbx, qword [rsp + 0x10]
jne 0x4bce40
mov eax, 0x80078071
mov edi, dword [rsp + 0xc]
mul r15d
shr edx, 0xf
imul eax, edx, 0xfff1
sub r15d, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
cmp qword [rsp + 0x18], 0x15af
mov rax, qword [rsp + 0x18]
mov dword [rsp + 0xc], edi
jbe 0x4bcf4b
mov qword [rsp + 0x90], rax
jmp 0x4bce1b
test rax, rax
je 0x4bd0ce
cmp rax, 0xf
jbe 0x4bd12c
sub rax, 0x10
mov r8, rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x28], rax
shr rax, 4
mov qword [rsp + 0x20], rax
add rax, 1
shl rax, 4
add rax, rbx
mov qword [rsp + 0x10], rax
movzx eax, byte [r8]
movzx r14d, byte [r8 + 1]
movzx r13d, byte [r8 + 2]
movzx r12d, byte [r8 + 3]
movzx ebp, byte [r8 + 4]
movzx edi, byte [r8 + 5]
movzx esi, byte [r8 + 6]
movzx ebx, byte [r8 + 7]
add eax, r15d
movzx r11d, byte [r8 + 8]
movzx r10d, byte [r8 + 9]
add r14d, eax
movzx r9d, byte [r8 + 0xa]
movzx ecx, byte [r8 + 0xb]
add r13d, r14d
movzx edx, byte [r8 + 0xc]
add eax, r14d
add r12d, r13d
add eax, r13d
add ebp, r12d
add eax, r12d
add edi, ebp
add eax, ebp
add esi, edi
add eax, edi
add ebx, esi
add eax, esi
add r11d, ebx
add eax, ebx
add r10d, r11d
add eax, r11d
add r9d, r10d
add eax, r10d
add ecx, r9d
add eax, r9d
add edx, ecx
add eax, ecx
mov r15d, edx
movzx edx, byte [r8 + 0xd]
mov dword [rsp + 4], r15d
add eax, dword [rsp + 4]
add edx, r15d
mov r15d, edx
movzx edx, byte [r8 + 0xe]
mov dword [rsp + 8], r15d
add eax, dword [rsp + 8]
add edx, r15d
movzx r15d, byte [r8 + 0xf]
add eax, edx
add r15d, edx
add eax, r15d
add dword [rsp + 0xc], eax
add r8, 0x10
cmp r8, qword [rsp + 0x10]
jne 0x4bcf8b
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x18]
and rax, 0xfffffffffffffff0
lea rbx, [rbx + rax + 0x10]
mov rax, qword [rsp + 0x20]
neg rax
shl rax, 4
lea rax, [rdi + rax - 0x11]
and edi, 0xf
je 0x4bd0a3
lea rdx, [rbx + rax + 1]
mov eax, dword [rsp + 0xc]
add rbx, 1
movzx ecx, byte [rbx - 1]
add r15d, ecx
add eax, r15d
cmp rbx, rdx
jne 0x4bd08c
mov dword [rsp + 0xc], eax
mov eax, r15d
mov ecx, 0x80078071
mul ecx
mov eax, edx
shr eax, 0xf
imul eax, eax, 0xfff1
sub r15d, eax
mov eax, dword [rsp + 0xc]
mul ecx
shr edx, 0xf
imul eax, edx, 0xfff1
sub dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
shl eax, 0x10
or eax, r15d
jmp 0x4bcdf8
movzx eax, byte [rdx]
add r15d, eax
lea eax, [r15 - 0xfff1]
cmp r15d, 0xfff1
cmovae r15d, eax
mov eax, dword [rsp + 0xc]
add eax, r15d
lea edx, [rax - 0xfff1]
cmp eax, 0xfff1
cmovae eax, edx
shl eax, 0x10
or eax, r15d
jmp 0x4bcdf8
mov eax, 1
jmp 0x4bcdf8
mov rax, r8
mov qword [rsp + 0x18], r8
jmp 0x4bcf5e
mov rax, qword [rsp + 0x90]
sub rax, 0x15b1
jmp 0x4bd083
mov r8d, r8d
jmp 0x4bcba0