Function at 0x42f620
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push esi
mov esi, edx
test ebx, ebx
jne 0x42f654
mov eax, dword [ebp + 8]
test eax, eax
je 0x42f63c
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42f649
mov dword [eax], 0
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], edx
mov dword [ebx + 0x84], esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x74], edi
test ecx, ecx
je 0x42f678
mov eax, dword [ecx]
jmp 0x42f67a
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x80], eax
test edi, edi
jne 0x42f69e
mov dword [ebp - 0x14], edi
test edx, edx
je 0x42f6a5
mov dword [ebp - 0x14], 1
xor eax, eax
cmp dword [ebx], eax
setne al
cmp eax, dword [ebp - 0x14]
je 0x42f916
cmp dword [ebx + 0x6c], 0
jne 0x42f916
cmp dword [ebx + 0x68], 0
mov eax, dword [ebp + 0x14]
je 0x42f6d1
cmp eax, 4
jne 0x42f916
test ecx, ecx
je 0x42f6e2
cmp dword [ecx], 0
je 0x42f6e2
test esi, esi
je 0x42f916
test edx, edx
je 0x42f6f3
cmp dword [edx], 0
je 0x42f6f3
test edi, edi
je 0x42f916
xor ecx, ecx
cmp eax, 4
sete cl
mov eax, ecx
mov dword [ebp - 0x1c], ecx
or dword [ebx + 0x68], eax
cmp dword [ebx + 0x5c], 0
jne 0x42f905
cmp dword [ebx + 0x60], 0
jne 0x42f905
mov ecx, dword [ebx + 8]
mov eax, ecx
and eax, 0xfff
cmp eax, 1
jne 0x42f749
and ecx, 0xb4000
cmp ecx, 0x4000
jne 0x42f749
mov ecx, ebx
call fcn.004302d0
test eax, eax
jne 0x42f754
mov eax, dword [ebx + 0x6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0042f9c0
test eax, eax
je 0x42f73f
test dword [ebx + 8], 0x3000
je 0x42f8b0
test esi, esi
je 0x42f8b0
mov edx, dword [ebx + 0x84]
mov eax, 0x5e6ea9af
mov edi, dword [ebx + 0x18]
sub edx, esi
mov dword [ebp - 0xc], edx
mul edx
movzx ecx, di
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, dword [ebp - 0xc]
shr edi, 0x10
mov dword [ebp - 0x14], edi
sub edx, eax
cmp dword [ebp - 0xc], 0
mov dword [ebp - 4], edx
je 0x42f8a7
mov ebx, edx
xor edx, edx
mov dword [ebp - 8], edx
cmp ebx, 7
jbe 0x42f80c
mov eax, 7
sub eax, esi
mov dword [ebp - 0x14], eax
movzx eax, byte [esi]
add edx, 8
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add edi, ecx
add esi, 8
add ecx, eax
mov eax, dword [ebp - 0x14]
add eax, esi
add edi, ecx
cmp eax, ebx
jb 0x42f7b8
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp edx, eax
jae 0x42f869
sub eax, edx
cmp eax, 2
jb 0x42f855
mov eax, dword [ebp - 8]
mov edi, ebx
mov edx, dword [ebp - 4]
sub edx, eax
sub edx, 2
shr edx, 1
inc edx
lea eax, [eax + edx*2]
mov dword [ebp - 8], eax
movzx eax, byte [esi]
add ecx, eax
movzx eax, byte [esi + 1]
add ebx, ecx
add esi, 2
add ecx, eax
add edi, ecx
sub edx, 1
jne 0x42f835
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
jae 0x42f862
movzx eax, byte [esi]
add ecx, eax
add edi, ecx
inc esi
mov eax, dword [ebp - 0x10]
add eax, ebx
add edi, eax
mov eax, 0x80078071
mov ebx, dword [ebp - 4]
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
sub dword [ebp - 0xc], ebx
mov ebx, 0x15b0
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
jne 0x42f7a4
mov ebx, dword [ebp - 0x18]
shl edi, 0x10
lea eax, [edi + ecx]
mov dword [ebx + 0x18], eax
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x42f905
cmp dword [ebx + 0x20], 0
jne 0x42f905
cmp dword [ebx + 0x88], 0
jne 0x42f905
cmp dword [ebx + 0x5c], 0
jne 0x42f905
mov edx, esi
mov ecx, ebx
call fcn.004309d0
test eax, eax
js 0x42f73f
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x60], eax
cmp esi, 3
jne 0x42f905
push 0x20000
lea eax, [ebx + 0x19272]
push 0
push eax
call fcn.00405490
add esp, 0xc
mov dword [ebx + 0x24], 0
mov ecx, ebx
call fcn.0042f940
pop edi
pop esi
mov dword [ebx + 0x6c], eax
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x42f920
mov dword [ecx], 0
test edx, edx
je 0x42f92a
mov dword [edx], 0
pop edi
pop esi
mov dword [ebx + 0x6c], 0xfffffffe
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret