Function at 0x140042240
Capabilities:
Compute adler32 checksum

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov r15d, dword [rdx]
xorps xmm0, xmm0
mov edx, dword [rsp + 0x100]
mov r14, r8
mov r13, rcx
movups xmmword [rax - 0x68], xmm0
movups xmmword [rax - 0x58], xmm0
test edx, edx
js 0x14004228e
mov ecx, 0xa
mov eax, edx
cmp edx, ecx
cmovg eax, ecx
jmp 0x140042293
mov eax, 6
mov r12, qword [rsp + 0x78]
lea r9, [0x140153948]
cmp edx, 3
mov ecx, 0x1000
mov r8d, 0x5000
mov rsi, r12
cmovle ecx, r8d
or ecx, dword [r9 + rax*4]
mov rax, qword [rsp + 0x70]
mov edi, ecx
bts edi, 0x13
test edx, edx
lea rdx, [0x140002fd0]
cmovne edi, ecx
xor ebp, ebp
bts edi, 0xd
mov dword [rsp + 0x20], ebp
test rax, rax
lea rcx, [0x140042220]
cmove rax, rcx
test r12, r12
jne 0x1400422f2
mov r12, rdx
mov rsi, rdx
cmp rax, rcx
jne 0x140042303
mov ecx, 0x4df78
call fcn.140123d84
jmp 0x140042318
mov rcx, qword [rsp + 0x80]
mov edx, 1
mov r8d, 0x4df78
call rax
mov rbx, rax
test rax, rax
jne 0x140042328
lea eax, [rbx - 4]
jmp 0x1400426f6
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400481a0
test eax, eax
je 0x140042371
lea rax, [0x140002fd0]
cmp rsi, rax
jne 0x14004235a
mov rcx, rbx
call fcn.140123d70
mov eax, 0xffffd8f0
jmp 0x1400426f6
mov rcx, qword [rsp + 0x80]
mov rdx, rbx
call rsi
mov eax, 0xffffd8f0
jmp 0x1400426f6
mov esi, 0xfffffffb
test r13, r13
je 0x1400426c6
test r15d, r15d
jne 0x14004238b
mov ebp, esi
jmp 0x1400426cb
cmp dword [rbx + 0x84], 1
je 0x14004268e
mov edi, dword [rsp + 0xf8]
mov r8, r13
nop dword [rax]
nop word [rax + rax]
mov eax, edi
mov qword [rsp + 0x28], rax
mov eax, r15d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rbx + 0x98], rax
lea rax, [rsp + 0x30]
mov qword [rbx + 0xa0], rax
mov qword [rbx + 0x88], r14
mov qword [rbx + 0x90], r8
mov qword [rbx + 0xb0], r14
mov rax, qword [rsp + 0x28]
mov qword [rbx + 0xb8], rax
mov qword [rbx + 0xc0], rbp
mov dword [rbx + 0xa8], 4
cmp qword [rbx], rbp
jne 0x140042621
cmp dword [rbx + 0x84], ebp
jne 0x140042621
cmp qword [rsp + 0x28], rbp
je 0x14004242e
test r14, r14
je 0x140042621
cmp qword [rsp + 0x30], rbp
je 0x14004243e
test r8, r8
je 0x140042621
or dword [rbx + 0x80], 1
cmp dword [rbx + 0x74], ebp
jne 0x14004260f
cmp dword [rbx + 0x78], ebp
jne 0x14004260f
mov ecx, dword [rbx + 0x10]
mov eax, ecx
and eax, 0xfff
cmp eax, 1
jne 0x14004248b
and ecx, 0xb4000
cmp ecx, 0x4000
jne 0x14004248b
mov rcx, rbx
call fcn.140046820
test eax, eax
jne 0x1400424a2
mov edx, dword [rbx + 0x84]
jmp 0x14004263a
mov rcx, rbx
call fcn.1400470c0
test eax, eax
jne 0x1400424a2
mov edx, dword [rbx + 0x84]
jmp 0x14004263a
test dword [rbx + 0x10], 0x3000
je 0x1400425dc
test r14, r14
je 0x1400425dc
mov rdi, qword [rbx + 0xb0]
movabs rax, 0x79baa6bb6398b6f7
mov r8d, dword [rbx + 0x20]
sub rdi, r14
mul rdi
mov rax, rdi
movzx ecx, r8w
sub rax, rdx
shr r8d, 0x10
shr rax, 1
mov r10, rdi
add rax, rdx
mov r9, r14
shr rax, 0xc
imul rax, rax, 0x15b0
sub r10, rax
test rdi, rdi
je 0x1400425ca
mov edx, ebp
cmp r10, 7
jbe 0x140042574
mov r11d, 7
movzx eax, byte [r9]
add r11d, 8
add ecx, eax
add edx, 8
movzx eax, byte [r9 + 1]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 2]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 3]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 4]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 5]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 6]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 7]
add r8d, ecx
add ecx, eax
add r9, 8
add r8d, ecx
mov eax, r11d
cmp rax, r10
jb 0x140042512
mov eax, edx
cmp rax, r10
jae 0x140042595
nop dword [rax + rax]
movzx eax, byte [r9]
inc edx
add ecx, eax
inc r9
add r8d, ecx
mov eax, edx
cmp rax, r10
jb 0x140042580
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r8d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r8d, eax
sub rdi, r10
mov r10d, 0x15b0
jne 0x140042504
mov edi, dword [rsp + 0xf8]
shl r8d, 0x10
lea eax, [r8 + rcx]
mov dword [rbx + 0x20], eax
cmp dword [rbx + 0x28], ebp
jne 0x14004260f
cmp qword [rbx + 0xb8], rbp
jne 0x14004260f
cmp dword [rbx + 0x74], ebp
jne 0x14004260f
mov edx, 4
mov rcx, rbx
call fcn.1400479c0
test eax, eax
jns 0x140042608
mov edx, dword [rbx + 0x84]
jmp 0x14004263a
mov dword [rbx + 0x78], 1
mov rcx, rbx
call fcn.1400480f0
mov edx, eax
mov dword [rbx + 0x84], eax
jmp 0x14004263a
mov qword [rsp + 0x28], rbp
mov edx, 0xfffffffe
mov qword [rsp + 0x30], rbp
mov dword [rbx + 0x84], 0xfffffffe
mov rcx, qword [rsp + 0x28]
mov eax, ecx
sub edi, ecx
mov rcx, qword [rsp + 0x30]
add r14, rax
mov eax, ecx
sub r15d, ecx
add r13, rax
mov dword [rsp + 0xf8], edi
mov eax, dword [rsp + 0x20]
mov r8, r13
add eax, ecx
mov dword [rsp + 0x20], eax
test edx, edx
js 0x140042682
cmp edx, 1
je 0x14004267b
test r15d, r15d
jne 0x1400423b0
jmp 0x140042687
mov ebp, 1
jmp 0x140042687
mov ebp, 0xfffffffe
cmp ebp, 1
jne 0x1400426cb
jmp 0x140042692
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xe8]
mov dword [rcx], eax
lea rax, [0x140002fd0]
cmp r12, rax
jne 0x1400426b4
mov rcx, rbx
call fcn.140123d70
xor eax, eax
jmp 0x1400426f6
mov rcx, qword [rsp + 0x80]
mov rdx, rbx
call r12
xor eax, eax
jmp 0x1400426f6
mov ebp, 0xfffffffe
lea rax, [0x140002fd0]
cmp r12, rax
jne 0x1400426e1
mov rcx, rbx
call fcn.140123d70
jmp 0x1400426ef
mov rcx, qword [rsp + 0x80]
mov rdx, rbx
call r12
test ebp, ebp
cmove ebp, esi
mov eax, ebp
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret