Function at 0x4217e0
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 0x421814
mov eax, dword [ebp + 8]
test eax, eax
je 0x4217fc
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x421809
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 0x421838
mov eax, dword [ecx]
jmp 0x42183a
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 0x42185e
mov dword [ebp - 0x14], edi
test edx, edx
je 0x421865
mov dword [ebp - 0x14], 1
xor eax, eax
cmp dword [ebx], eax
setne al
cmp eax, dword [ebp - 0x14]
je 0x421ab7
cmp dword [ebx + 0x6c], 0
jne 0x421ab7
cmp dword [ebx + 0x68], 0
mov eax, dword [ebp + 0x14]
je 0x421891
cmp eax, 4
jne 0x421ab7
test ecx, ecx
je 0x4218a2
cmp dword [ecx], 0
je 0x4218a2
test esi, esi
je 0x421ab7
test edx, edx
je 0x4218b3
cmp dword [edx], 0
je 0x4218b3
test edi, edi
je 0x421ab7
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 0x421aa6
cmp dword [ebx + 0x60], 0
jne 0x421aa6
mov ecx, ebx
call fcn.00420eb0
test eax, eax
je 0x421a74
test dword [ebx + 8], 0x3000
je 0x421a4b
test esi, esi
je 0x421a4b
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 0x421a42
mov ebx, edx
xor edx, edx
mov dword [ebp - 8], edx
cmp ebx, 7
jbe 0x4219a4
mov eax, 7
sub eax, esi
mov dword [ebp - 0x14], eax
nop word [eax + 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 0x421950
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 0x421a04
sub eax, edx
cmp eax, 2
jb 0x4219f0
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
nop dword [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 0x4219d0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
jae 0x4219fd
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 0x421936
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 0x421aa6
cmp dword [ebx + 0x20], 0
jne 0x421aa6
cmp dword [ebx + 0x88], 0
jne 0x421aa6
cmp dword [ebx + 0x5c], 0
jne 0x421aa6
mov edx, esi
mov ecx, ebx
call fcn.004208e0
test eax, eax
jns 0x421a7e
mov eax, dword [ebx + 0x6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x60], eax
cmp esi, 3
jne 0x421aa6
push 0x20000
lea eax, [ebx + 0x19272]
push 0
push eax
call fcn.00443a00
add esp, 0xc
mov dword [ebx + 0x24], 0
mov ecx, ebx
call fcn.00421760
pop edi
pop esi
mov dword [ebx + 0x6c], eax
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x421ac1
mov dword [ecx], 0
test edx, edx
je 0x421acb
mov dword [edx], 0
pop edi
pop esi
mov dword [ebx + 0x6c], 0xfffffffe
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret