It appears that $I(m,n) = f(m) + g(m,r)/(mn)$, where $f(m) = 0$ if $m$ is even, $1/2$ if $m$ is odd and $r = n$ mod $2m$.
(Note that I have not proved this, only observed it.)
Here are some of the values of $g$:
\begin{eqnarray*}
g(1,r) & = & (0, 0) \\
g(2,r) & = & (0, 1, 0, -1) \\
g(3,r) & = & (0, 0, -4, 0, 4, 0) \\
g(4,r) & = & (0, 2, 0, 10, 0, -10, 0, -2) \\
g(5,r) & = & (0, 0, -4, 0, -20, 0, 20, 0, 4, 0) \\
g(6,r) & = & (0, 3, 0, 9, 0, 35, 0, -35, 0, -9, 0, -3) \\
g(7,r) & = & (0, 0, -8, 0, -16, 0, -56, 0, 56, 0, 16, 0, 8, 0) \\
g(8,r) & = & (0, 4, 0, 8, 0, 24, 0, 84, 0, -84, 0, -24, 0, -8, 0, -4) \\
g(9,r) & = & (0, 0, -8, 0, -16, 0, -36, 0, -120, 0, 120, 0, 36, 0, 16, 0, 8, 0) \\
g(10,r) & = & (0, 5, 0, 19, 0, 25, 0, 51, 0, 165, 0, -165, 0, -51, 0, -25, 0, -19, 0, -5) \\
g(11,r) & = & (0, 0, -12, 0, -12, 0, -36, 0, -68, 0, -220, 0, 220, 0, 68, 0, 36, 0, 12, 0, 12, 0) \\
g(12,r) & = & (0, 6, 0, 18, 0, 26, 0, 50, 0, 90, 0, 286, 0, -286, 0, -90, 0, -50, 0, -26, 0, -18, 0, -6)
\end{eqnarray*}
So "all" that remains is to derive a formula for $g$ (and to prove that $I$ has this form). Note that there is an observed symmetry, $g(m,r) = -g(m,2m-r)$.
Here are some further observations about $g$:
Let $l = 2ki + j$, where $0 \leq j < 2k$. Then we know:
\begin{eqnarray*}
g(2k,2l+1)/((2k)(2l+1)) & = & f(2k,2l+1) \\
& = & f(2l+1,2k) \\
& = & 1/2 + g(2l+1,2k)/((2k)(2l+1))
\end{eqnarray*}
So, when $r=2j+1$ is odd and $r < 4k$,
$g(2k,r) = k(4ki+r) + g(4ki+r,2k)$.
This means that we can derive the odd rows of $g$ from the even rows (or vice versa):
$g(2t+1,2k) = g(2k,(2t+1 \ {\rm mod} \ 4k)) - k(2t+1)$.
E.g.,
$g(11,8) = g(8,11) - 4 \cdot 11$,
$-68 = -24 - 44$,
or
$g(11,4) = g(4,3) - 2 \cdot 11$,
$-12 = 10 - 22$.
If we also use the relation
$g(2t+1,2k) = -g(2t+1,4t+2-2k)$,
$g(2k,(2t+1 \ {\rm mod} \ 4k)) - k(2t+1) = -g(4t+2-2k,(2t+1 \ {\rm mod} \ 8t+4-4k)) + (2t+1-k)(2t+1)$.
Then this gives us relations between even rows of $g$:
$g(2k,(2t+1 \ {\rm mod} \ 4k)) = (2t+1)^2 - g(4t+2-2k,(2t+1 \ {\rm mod} \ 8t+4-4k))$
E.g., when $k=6$ and $t=3$:
$g(12,7 \ {\rm mod} \ 24) = 7^2 - g(2,7 \ {\rm mod} 4)$,
$50 = 49 - (-1)$.
Or when $k=6$ and $t=4$:
$g(12,9 \ {\rm mod} \ 24) = 9^2 - g(6,9 \ {\rm mod} \ 12)$,
$90 = 81 - (-9)$.
This might give us an effective way to compute $g$ recursively. E.g., once we have
$g(12,9) = 81 - g(6,9)$
we can then continue to observe that
$g(6,9) = -g(6,3)$,
$g(6,3) = g(0,3 \ {\rm mod} \ 0) + 3^2$
to finally conclude
$g(12,9) = 81 - (- (0 + 9)) = 90$.