On square $ABCD$, points $E,F,G$, and $H$ lie on sides $\overline{AB},\overline{BC},\overline{CD},$ and $\overline{DA},$ respectively, so that $\overline{EG} \perp \overline{FH}$ and $EG=FH = 34$. Segments $\overline{EG}$ and $\overline{FH}$ intersect at a point $P$, and the areas of the quadrilaterals $AEPH, BFPE, CGPF,$ and $DHPG$ are in the ratio $269:275:405:411.$ Find the area of square $ABCD$.
[asy] pair A = (0,sqrt(850)); pair B = (0,0); pair C = (sqrt(850),0); pair D = (sqrt(850),sqrt(850)); draw(A--B--C--D--cycle); dotfactor = 3; dot("$A$",A,dir(135)); dot("$B$",B,dir(215)); dot("$C$",C,dir(305)); dot("$D$",D,dir(45)); pair H = ((2sqrt(850)-sqrt(306))/6,sqrt(850)); pair F = ((2sqrt(850)+sqrt(306)+7)/6,0); dot("$H$",H,dir(90)); dot("$F$",F,dir(270)); draw(H--F); pair E = (0,(sqrt(850)-6)/2); pair G = (sqrt(850),(sqrt(850)+sqrt(100))/2); dot("$E$",E,dir(180)); dot("$G$",G,dir(0)); draw(E--G); pair P = extension(H,F,E,G); dot("$P$",P,dir(60)); label("$w$", intersectionpoint( A--P, E--H )); label("$x$", intersectionpoint( B--P, E--F )); label("$y$", intersectionpoint( C--P, G--F )); label("$z$", intersectionpoint( D--P, G--H ));[/asy]
$269+275+405+411=1360$, a multiple of $17$. In addition, $EG=FH=34$, which is $17\cdot 2$. Therefore, we suspect the square of the "hypotenuse" of a right triangle, corresponding to $EG$ and $FH$  must be a multiple of $17$. All of these triples are primitive: \[17=1^2+4^2\] \[34=3^2+5^2\] \[51=\emptyset\] \[68=\emptyset\text{ others}\] \[85=2^2+9^2=6^2+7^2\] \[102=\emptyset\] \[119=\emptyset \dots\] The sides of the square can only equal the longer leg, or else the lines would have to extend outside of the square. Substituting $EG=FH=34$: \[\sqrt{17}\rightarrow 34\implies 8\sqrt{17}\implies A=\textcolor{red}{1088}\] \[\sqrt{34}\rightarrow 34\implies 5\sqrt{34}\implies A=850\] \[\sqrt{85}\rightarrow 34\implies \{18\sqrt{85}/5,14\sqrt{85}/5\}\implies A=\textcolor{red}{1101.6,666.4}\] Thus, $\fbox{850}$ is the only valid answer.