[*] Binary protection state of suexec

  
  	Full RELRO     Canary found      NX disabled  PIE enabled  No RPATH     No RUNPATH   No Symbols


[*] Function fprintf tear down of suexec

    ; assembly                           | /* r2dec pseudo code output */
                                         | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/suexec @ 0x1030 */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) main ()                      | int32_t main () {
                                         |     /* [13] -r-x section size 3296 named .text */
    0x00001030 lui gp, 2                 |     
    0x00001034 addiu gp, gp, -0x6020     |     
    0x00001038 addu gp, gp, t9           |     gp += t9;
    0x0000103c lw v0, -0x7f54(gp)        |     v0 = *((gp - 8149));
    0x00001040 addiu sp, sp, -0x2188     |     
    0x00001044 lw t9, -0x7fb4(gp)        |     t9 = sym.imp.calloc;
    0x00001048 sw s3, 0x216c(sp)         |     *(arg_216ch) = s3;
    0x0000104c lw v0, (v0)               |     v0 = *(v0);
    0x00001050 lw s3, -0x7fa0(gp)        |     s3 = *((gp - 8168));
    0x00001054 sw gp, 0x18(sp)           |     *(arg_18h) = gp;
    0x00001058 sw v0, 0x215c(sp)         |     *(arg_215ch) = v0;
    0x0000105c addiu v0, sp, 0x38        |     v0 = sp + 0x38;
    0x00001060 sw s7, 0x217c(sp)         |     *(arg_217ch) = s7;
    0x00001064 sw s2, 0x2168(sp)         |     *(arg_2168h) = s2;
    0x00001068 sw ra, 0x2184(sp)         |     *(arg_2184h) = ra;
    0x0000106c sw fp, 0x2180(sp)         |     *(arg_2180h) = fp;
    0x00001070 sw s6, 0x2178(sp)         |     *(arg_2178h) = s6;
    0x00001074 sw s5, 0x2174(sp)         |     *(arg_2174h) = s5;
    0x00001078 sw s4, 0x2170(sp)         |     *(arg_2170h) = s4;
    0x0000107c sw s1, 0x2164(sp)         |     *(arg_2164h) = s1;
    0x00001080 sw s0, 0x2160(sp)         |     *(arg_2160h) = s0;
    0x00001084 sw a1, 0x34(sp)           |     *(arg_34h) = a1;
    0x00001088 lw s2, (s3)               |     s2 = *(s3);
    0x0000108c move s7, a0               |     s7 = a0;
    0x00001090 addiu a1, zero, 4         |     a1 = 4;
    0x00001094 addiu a0, zero, 0x100     |     a0 = 0x100;
    0x00001098 sw zero, 0x38(sp)         |     *(arg_38h) = 0;
    0x0000109c sw v0, (s3)               |     *(s3) = v0;
    0x000010a0 jalr t9                   |     t9 ();
    0x000010a4 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 == 0) {
    0x000010a8 beqz v0, 0x1874           |         goto label_10;
                                         |     }
    0x000010ac lw a0, -0x7fdc(gp)        |     a0 = *((gp - 8183));
    0x000010b0 lw t9, -0x7f50(gp)        |     t9 = sym.imp.strdup;
    0x000010b4 move s1, v0               |     s1 = v0;
    0x000010b8 addiu a0, a0, 0x1f10      |     a0 += str.PATH_usr_bin:_bin:_usr_sbin;
    0x000010bc jalr t9                   |     t9 ();
    0x000010c0 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x000010c4 sw v0, (s1)               |     *(s1) = v0;
                                         |     if (v0 == 0) {
    0x000010c8 beqz v0, 0x1880           |         goto label_11;
                                         |     }
    0x000010cc lw fp, (s2)               |     fp = *(s2);
    0x000010d0 addiu s0, zero, 1         |     s0 = 1;
                                         |     if (fp == 0) {
    0x000010d4 beqz fp, 0x11a8           |         goto label_12;
                                         |     }
    0x000010d8 lw s6, -0x7fd8(gp)        |     s6 = *((gp - 8182));
    0x000010dc lw s5, -0x7fdc(gp)        |     s5 = *((gp - 8183));
                                         |     /* esilref: '8 ' */
    0x000010e0 addiu v0, s6, 0x2b48      |     v0 = s6 + 0x2b48;
    0x000010e4 lw s4, -0x7fd8(gp)        |     s4 = *((gp - 8182));
    0x000010e8 sw v0, 0x2c(sp)           |     *(arg_2ch) = v0;
    0x000010ec addiu v0, s5, 0x1f08      |     v0 = s5 + str.HTTP_;
    0x000010f0 sw v0, 0x28(sp)           |     *(arg_28h) = v0;
                                         |     /* section..data.rel.ro */
    0x000010f4 addiu v0, s4, 0x2b40      |     v0 = s4 + 0x2b40;
    0x000010f8 sw v0, 0x30(sp)           |     *(arg_30h) = v0;
    0x000010fc lw s6, 0x2c(sp)           |     s6 = *(arg_2ch);
                                         | label_0:
    0x00001100 addiu s5, zero, 5         |     s5 = 5;
    0x00001104 move s4, zero             |     s4 = 0;
    0x00001108 lw a1, 0x28(sp)           |     a1 = *(arg_28h);
    0x0000110c b 0x113c                  |     
                                         |     while (v0 != 0) {
    0x00001110 addiu s6, s6, 8           |         s6 += 8;
    0x00001114 lw a1, -8(s6)             |         a1 = *((s6 - 2));
    0x00001118 addiu s4, s4, 1           |         s4++;
                                         |         if (a1 == 0) {
    0x0000111c beqz a1, 0x1190           |             goto label_13;
                                         |         }
    0x00001120 lw t9, -0x7f7c(gp)        |         t9 = sym.imp.strlen;
    0x00001124 move a0, a1               |         a0 = a1;
    0x00001128 sw a1, 0x24(sp)           |         *(arg_24h) = a1;
    0x0000112c jalr t9                   |         t9 ();
    0x00001130 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001134 lw a1, 0x24(sp)           |         a1 = *(arg_24h);
    0x00001138 move s5, v0               |         s5 = v0;
    0x0000113c lw t9, -0x7f9c(gp)        |         t9 = sym.imp.strncmp;
    0x00001140 move a2, s5               |         a2 = s5;
    0x00001144 move a0, fp               |         a0 = fp;
    0x00001148 jalr t9                   |         t9 ();
    0x0000114c lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001150 bnez v0, 0x1110           |         
                                         |     }
    0x00001154 lw v0, 0x30(sp)           |     v0 = *(arg_30h);
    0x00001158 sll v1, s4, 3             |     v1 = s4 << 3;
    0x0000115c addu v1, v0, v1           |     v1 = v0 + v1;
    0x00001160 lw v0, 4(v1)              |     v0 = *((v1 + 1));
    0x00001164 sll v0, s0, 2             |     v0 = s0 << 2;
                                         |     if (v0 != 0) {
    0x00001168 beqz v0, 0x1184           |         
    0x0000116c lw t9, -0x7f7c(gp)        |         t9 = sym.imp.strlen;
    0x00001170 move a0, fp               |         a0 = fp;
    0x00001174 jalr t9                   |         t9 ();
    0x00001178 lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (s5 == v0) {
    0x0000117c beq s5, v0, 0x1190        |             goto label_13;
                                         |         }
    0x00001180 sll v0, s0, 2             |         v0 = s0 << 2;
                                         |     }
    0x00001184 addu v0, s1, v0           |     v0 = s1 + v0;
    0x00001188 addiu s0, s0, 1           |     s0++;
    0x0000118c sw fp, (v0)               |     *(v0) = fp;
                                         | label_13:
    0x00001190 addiu s2, s2, 4           |     s2 += 4;
    0x00001194 lw fp, (s2)               |     fp = *(s2);
    0x00001198 addiu v0, zero, 0xff      |     v0 = 0xff;
                                         |     if (fp == 0) {
    0x0000119c beqz fp, 0x11a8           |         goto label_12;
                                         |     }
    0x000011a0 lw s6, 0x2c(sp)           |     s6 = *(arg_2ch);
                                         |     if (s0 == v0) {
    0x000011a4 bnel s0, v0, 0x1100       |         goto label_0;
                                         |     }
                                         | label_12:
    0x000011a8 sll s0, s0, 2             |     s0 <<= 2;
    0x000011ac addu s0, s1, s0           |     s0 = s1 + s0;
    0x000011b0 lw t9, -0x7f5c(gp)        |     t9 = sym.imp.getuid;
    0x000011b4 sw zero, (s0)             |     *(s0) = 0;
    0x000011b8 sw s1, (s3)               |     *(s3) = s1;
    0x000011bc jalr t9                   |     t9 ();
    0x000011c0 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x000011c4 move a0, v0               |     a0 = v0;
    0x000011c8 lw t9, -0x7f44(gp)        |     t9 = sym.imp.getpwuid;
    0x000011cc move s1, v0               |     s1 = v0;
    0x000011d0 jalr t9                   |     t9 ();
    0x000011d4 move s0, v0               |     s0 = v0;
    0x000011d8 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 == 0) {
    0x000011dc beqz v0, 0x150c           |         goto label_14;
                                         |     }
    0x000011e0 slti v0, s7, 2            |     v0 = (s7 < 2) ? 1 : 0;
    0x000011e4 lw v0, 0x34(sp)           |     v0 = *(arg_34h);
                                         |     if (v0 != 0) {
    0x000011e8 bnez v0, 0x1244           |         goto label_15;
                                         |     }
    0x000011ec lw a1, -0x7fdc(gp)        |     a1 = *((gp - 8183));
    0x000011f0 lw t9, -0x7f38(gp)        |     t9 = sym.imp.strcmp;
    0x000011f4 lw s2, 4(v0)              |     s2 = *((v0 + 1));
    0x000011f8 addiu a1, a1, 0x1f30      |     a1 += 0x1f30;
    0x000011fc move a0, s2               |     a0 = s2;
    0x00001200 jalr t9                   |     t9 ();
    0x00001204 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 != 0) {
    0x00001208 bnez v0, 0x1250           |         goto label_16;
                                         |     }
    0x0000120c lw t9, -0x7f38(gp)        |     t9 = sym.imp.strcmp;
                                         |     if (s1 == 0) {
    0x00001210 beqz s1, 0x13ec           |         goto label_17;
                                         |     }
    0x00001214 lw s1, -0x7fdc(gp)        |     s1 = *((gp - 8183));
    0x00001218 lw a1, (s0)               |     a1 = *(s0);
    0x0000121c addiu a0, s1, 0x1f34      |     a0 = s1 + 0x1f34;
    0x00001220 jalr t9                   |     t9 ();
    0x00001224 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 == 0) {
    0x00001228 beqz v0, 0x13f0           |         goto label_18;
                                         |     }
    0x0000122c slti s7, s7, 4            |     s7 = (s7 < 4) ? 1 : 0;
    0x00001230 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
                                         |     if (s7 != 0) {
    0x00001234 bnez s7, 0x1248           |         goto label_19;
                                         |     }
                                         | label_1:
    0x00001238 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x0000123c addiu a0, zero, 0x67      |     a0 = 0x67;
    0x00001240 jalr t9                   |     t9 ();
                                         |     do {
                                         | label_15:
    0x00001244 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
                                         | label_19:
    0x00001248 addiu a0, zero, 0x65      |         a0 = 0x65;
    0x0000124c jalr t9                   |         t9 ();
                                         | label_16:
    0x00001250 slti s7, s7, 4            |         s7 = (s7 < 4) ? 1 : 0;
    0x00001254 lw a0, -0x7fdc(gp)        |         a0 = *((gp - 8183));
    0x00001258 bnez s7, 0x1244           |         
                                         |     } while (s7 != 0);
    0x0000125c lw t9, -0x7f38(gp)        |     t9 = sym.imp.strcmp;
    0x00001260 lw a1, (s0)               |     a1 = *(s0);
    0x00001264 addiu a0, a0, 0x1f34      |     a0 += 0x1f34;
    0x00001268 jalr t9                   |     t9 ();
    0x0000126c move s1, v0               |     s1 = v0;
    0x00001270 lw v0, 0x34(sp)           |     v0 = *(arg_34h);
    0x00001274 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x00001278 lw s0, 0xc(v0)            |     s0 = *((v0 + 3));
                                         |     if (s1 != 0) {
    0x0000127c bnez s1, 0x1238           |         goto label_1;
                                         |     }
    0x00001280 lb v1, (s0)               |     v1 = *(s0);
    0x00001284 addiu v0, zero, 0x2f      |     v0 = 0x2f;
    0x00001288 lw a1, -0x7fdc(gp)        |     a1 = *((gp - 8183));
                                         |     if (v1 == v0) {
    0x0000128c beq v1, v0, 0x12ac        |         goto label_20;
                                         |     }
    0x00001290 lw t9, -0x7f9c(gp)        |     t9 = sym.imp.strncmp;
    0x00001294 addiu a2, zero, 3         |     a2 = 3;
    0x00001298 addiu a1, a1, 0x201c      |     a1 += 0x201c;
    0x0000129c move a0, s0               |     a0 = s0;
    0x000012a0 jalr t9                   |     t9 ();
    0x000012a4 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x000012a8 bnez v0, 0x12b8           |     
                                         |     while (v0 != 0) {
                                         | label_20:
    0x000012ac lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x000012b0 addiu a0, zero, 0x68      |         a0 = 0x68;
    0x000012b4 jalr t9                   |         t9 ();
    0x000012b8 lw a1, -0x7fdc(gp)        |         a1 = *((gp - 8183));
    0x000012bc lw t9, -0x7f34(gp)        |         t9 = sym.imp.strstr;
    0x000012c0 addiu a1, a1, 0x2020      |         a1 += str._.._;
    0x000012c4 move a0, s0               |         a0 = s0;
    0x000012c8 jalr t9                   |         t9 ();
    0x000012cc lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x000012d0 bnez v0, 0x12ac           |         
                                         |     }
    0x000012d4 lbu v1, (s2)              |     v1 = *(s2);
    0x000012d8 addiu v0, zero, 0x7e      |     v0 = 0x7e;
                                         |     if (v1 == v0) {
    0x000012dc beql v1, v0, 0x1518       |         goto label_21;
                                         |     }
    0x000012e0 addiu s2, s2, 1           |     s2++;
    0x000012e4 move s4, zero             |     s4 = 0;
                                         |     do {
    0x000012e8 lw s5, -0x7fdc(gp)        |         s5 = *((gp - 8183));
    0x000012ec lw t9, -0x7fac(gp)        |         t9 = sym.imp.strspn;
    0x000012f0 addiu a1, s5, 0x2028      |         a1 = s5 + str.1234567890;
    0x000012f4 move a0, s2               |         a0 = s2;
    0x000012f8 jalr t9                   |         t9 ();
    0x000012fc lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001300 move a0, s2               |         a0 = s2;
    0x00001304 lw t9, -0x7f7c(gp)        |         t9 = sym.imp.strlen;
    0x00001308 move s6, v0               |         s6 = v0;
    0x0000130c jalr t9                   |         t9 ();
    0x00001310 lw v1, 0x34(sp)           |         v1 = *(arg_34h);
    0x00001314 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001318 lw s3, 8(v1)              |         s3 = *((v1 + 2));
                                         |         if (s6 == v0) {
    0x0000131c beq s6, v0, 0x1520        |             goto label_22;
                                         |         }
    0x00001320 lw t9, -0x7f2c(gp)        |         t9 = sym.imp.getpwnam;
    0x00001324 move a0, s2               |         a0 = s2;
    0x00001328 jalr t9                   |         t9 ();
    0x0000132c move s6, v0               |         s6 = v0;
    0x00001330 lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (v0 == 0) {
    0x00001334 beqz v0, 0x15ac           |             goto label_23;
                                         |         }
                                         | label_2:
    0x00001338 lw t9, -0x7fac(gp)        |         t9 = sym.imp.strspn;
    0x0000133c addiu a1, s5, 0x2028      |         a1 = s5 + str.1234567890;
    0x00001340 move a0, s3               |         a0 = s3;
    0x00001344 jalr t9                   |         t9 ();
    0x00001348 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x0000134c move a0, s3               |         a0 = s3;
    0x00001350 lw t9, -0x7f7c(gp)        |         t9 = sym.imp.strlen;
    0x00001354 move s2, v0               |         s2 = v0;
    0x00001358 jalr t9                   |         t9 ();
    0x0000135c lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (s2 == v0) {
    0x00001360 beq s2, v0, 0x155c        |             goto label_24;
                                         |         }
    0x00001364 lw t9, -0x7fa8(gp)        |         t9 = sym.imp.getgrnam;
    0x00001368 move a0, s3               |         a0 = s3;
    0x0000136c jalr t9                   |         t9 ();
    0x00001370 lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (v0 == 0) {
    0x00001374 beqz v0, 0x1588           |             goto label_25;
                                         |         }
                                         | label_3:
    0x00001378 lw t9, -0x7f50(gp)        |         t9 = sym.imp.strdup;
    0x0000137c lw a0, (v0)               |         a0 = *(v0);
    0x00001380 lw s2, 8(v0)              |         s2 = *((v0 + 2));
    0x00001384 jalr t9                   |         t9 ();
    0x00001388 lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (v0 == 0) {
    0x0000138c beqz v0, 0x1594           |             goto label_26;
                                         |         }
    0x00001390 lw t9, -0x7f50(gp)        |         t9 = sym.imp.strdup;
    0x00001394 lw a0, (s6)               |         a0 = *(s6);
    0x00001398 lw s5, 8(s6)              |         s5 = *((s6 + 2));
    0x0000139c jalr t9                   |         t9 ();
    0x000013a0 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x000013a4 lw a0, 0x14(s6)           |         a0 = *((s6 + 5));
    0x000013a8 lw t9, -0x7f50(gp)        |         t9 = sym.imp.strdup;
    0x000013ac move s3, v0               |         s3 = v0;
    0x000013b0 jalr t9                   |         t9 ();
    0x000013b4 move s6, v0               |         s6 = v0;
    0x000013b8 lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (s3 == 0) {
    0x000013bc beqz s3, 0x15a0           |             goto label_27;
                                         |         }
    0x000013c0 addiu v0, s5, -0x97       |         v0 = s5 + -0x97;
                                         |         if (v0 == 0) {
    0x000013c4 beqz v0, 0x15a0           |             goto label_27;
                                         |         }
    0x000013c8 sltiu v0, v0, 0x10        |         v0 = (v0 < 0x10) ? 1 : 0;
    0x000013cc addiu v0, s2, -0x65       |         v0 = s2 + -0x65;
                                         |         if (v0 == 0) {
    0x000013d0 beqz v0, 0x15d4           |             goto label_28;
                                         |         }
    0x000013d4 sltiu v0, v0, 5           |         v0 = (v0 < 5) ? 1 : 0;
    0x000013d8 lw t9, -0x7f4c(gp)        |         t9 = sym.imp.basename;
                                         |         if (v0 != 0) {
    0x000013dc bnez v0, 0x15b8           |             goto label_29;
                                         |         }
    0x000013e0 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x000013e4 addiu a0, zero, 0x6c      |         a0 = 0x6c;
    0x000013e8 jalr t9                   |         t9 ();
                                         | label_17:
    0x000013ec lw s1, -0x7fdc(gp)        |         s1 = *((gp - 8183));
                                         | label_18:
    0x000013f0 lw s0, -0x7f48(gp)        |         s0 = *((gp - 8146));
    0x000013f4 lw a3, -0x7fdc(gp)        |         a3 = *((gp - 8183));
    0x000013f8 lw a2, -0x7fdc(gp)        |         a2 = *((gp - 8183));
    0x000013fc lw t9, -0x7f90(gp)        |         t9 = sym.imp.__fprintf_chk
    0x00001400 lw a0, (s0)               |         a0 = *(s0);
    0x00001404 addiu a3, a3, 0x1f38      |         a3 += str._usr_html_;
    0x00001408 addiu a2, a2, 0x1f44      |         a2 += str.__D_AP_DOC_ROOT__s__n;
    0x0000140c addiu a1, zero, 1         |         a1 = 1;
    0x00001410 jalr t9                   |         t9 ();
    0x00001414 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001418 lw a0, (s0)               |         a0 = *(s0);
    0x0000141c addiu a3, zero, 0x65      |         a3 = 0x65;
    0x00001420 lw a2, -0x7fdc(gp)        |         a2 = *((gp - 8183));
    0x00001424 lw t9, -0x7f90(gp)        |         t9 = sym.imp.__fprintf_chk
    0x00001428 addiu a2, a2, 0x1f5c      |         a2 += str.__D_AP_GID_MIN_d_n;
    0x0000142c addiu a1, zero, 1         |         a1 = 1;
    0x00001430 jalr t9                   |         t9 ();
    0x00001434 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001438 lw a0, (s0)               |         a0 = *(s0);
    0x0000143c addiu a3, s1, 0x1f34      |         a3 = s1 + 0x1f34;
    0x00001440 lw a2, -0x7fdc(gp)        |         a2 = *((gp - 8183));
    0x00001444 lw t9, -0x7f90(gp)        |         t9 = sym.imp.__fprintf_chk
    0x00001448 addiu a2, a2, 0x1f70      |         a2 += str.__D_AP_HTTPD_USER__s__n;
    0x0000144c addiu a1, zero, 1         |         a1 = 1;
    0x00001450 jalr t9                   |         t9 ();
    0x00001454 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001458 lw a0, (s0)               |         a0 = *(s0);
    0x0000145c addiu a1, zero, 1         |         a1 = 1;
    0x00001460 lw a3, -0x7fdc(gp)        |         a3 = *((gp - 8183));
    0x00001464 lw a2, -0x7fdc(gp)        |         a2 = *((gp - 8183));
    0x00001468 lw t9, -0x7f90(gp)        |         t9 = sym.imp.__fprintf_chk
    0x0000146c addiu a3, a3, 0x1f88      |         a3 += str._usr_bin:_bin:_usr_sbin;
    0x00001470 addiu a2, a2, 0x1fa0      |         a2 += str.__D_AP_SAFE_PATH__s__n;
    0x00001474 jalr t9                   |         t9 ();
    0x00001478 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x0000147c lw a0, (s0)               |         a0 = *(s0);
    0x00001480 addiu a3, zero, 0x97      |         a3 = 0x97;
    0x00001484 lw a2, -0x7fdc(gp)        |         a2 = *((gp - 8183));
    0x00001488 lw t9, -0x7f90(gp)        |         t9 = sym.imp.__fprintf_chk
    0x0000148c addiu a2, a2, 0x1fb8      |         a2 += str.__D_AP_UID_MIN_d_n;
    0x00001490 addiu a1, zero, 1         |         a1 = 1;
    0x00001494 jalr t9                   |         t9 ();
    0x00001498 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x0000149c lw a0, (s0)               |         a0 = *(s0);
    0x000014a0 addiu a1, zero, 1         |         a1 = 1;
    0x000014a4 lw a3, -0x7fdc(gp)        |         a3 = *((gp - 8183));
    0x000014a8 lw a2, -0x7fdc(gp)        |         a2 = *((gp - 8183));
    0x000014ac lw t9, -0x7f90(gp)        |         t9 = sym.imp.__fprintf_chk
    0x000014b0 addiu a3, a3, 0x1fcc      |         a3 += str._dev_null;
    0x000014b4 addiu a2, a2, 0x1fd8      |         a2 += str.__D_AP_USERDIR_SUFFIX__s__n;
    0x000014b8 jalr t9                   |         t9 ();
    0x000014bc lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x000014c0 lw a0, (s0)               |         a0 = *(s0);
    0x000014c4 addiu a3, zero, 0xa6      |         a3 = 0xa6;
    0x000014c8 lw a2, -0x7fdc(gp)        |         a2 = *((gp - 8183));
    0x000014cc lw t9, -0x7f90(gp)        |         t9 = sym.imp.__fprintf_chk
    0x000014d0 addiu a2, a2, 0x1ff4      |         a2 += str.__D_AP_UID_MAX_d_n;
    0x000014d4 addiu a1, zero, 1         |         a1 = 1;
    0x000014d8 jalr t9                   |         t9 ();
    0x000014dc lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x000014e0 lw a0, (s0)               |         a0 = *(s0);
    0x000014e4 addiu a3, zero, 0x69      |         a3 = 0x69;
    0x000014e8 lw a2, -0x7fdc(gp)        |         a2 = *((gp - 8183));
    0x000014ec lw t9, -0x7f90(gp)        |         t9 = sym.imp.__fprintf_chk
    0x000014f0 addiu a2, a2, 0x2008      |         a2 += str.__D_AP_GID_MAX_d_n;
    0x000014f4 addiu a1, zero, 1         |         a1 = 1;
    0x000014f8 jalr t9                   |         t9 ();
    0x000014fc lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001500 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x00001504 move a0, zero             |         a0 = 0;
    0x00001508 jalr t9                   |         t9 ();
                                         | label_14:
    0x0000150c lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x00001510 addiu a0, zero, 0x66      |         a0 = 0x66;
    0x00001514 jalr t9                   |         t9 ();
                                         | label_21:
    0x00001518 addiu s4, zero, 1         |         s4 = 1;
    0x0000151c b 0x12e8                  |         
                                         |     } while (1);
                                         | label_22:
    0x00001520 lw t9, -0x7fa4(gp)        |     t9 = sym.imp.strtol;
    0x00001524 addiu a2, zero, 0xa       |     a2 = 0xa;
    0x00001528 move a1, zero             |     a1 = 0;
    0x0000152c move a0, s2               |     a0 = s2;
    0x00001530 jalr t9                   |     t9 ();
    0x00001534 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x00001538 lw t9, -0x7f44(gp)        |     t9 = sym.imp.getpwuid;
    0x0000153c move a0, v0               |     a0 = v0;
    0x00001540 jalr t9                   |     t9 ();
    0x00001544 move s6, v0               |     s6 = v0;
    0x00001548 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 != 0) {
    0x0000154c bnez v0, 0x1338           |         goto label_2;
                                         |     }
                                         | label_8:
    0x00001550 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x00001554 addiu a0, zero, 0x79      |     a0 = 0x79;
    0x00001558 jalr t9                   |     t9 ();
                                         | label_24:
    0x0000155c lw t9, -0x7fa4(gp)        |     t9 = sym.imp.strtol;
    0x00001560 addiu a2, zero, 0xa       |     a2 = 0xa;
    0x00001564 move a1, zero             |     a1 = 0;
    0x00001568 move a0, s3               |     a0 = s3;
    0x0000156c jalr t9                   |     t9 ();
    0x00001570 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x00001574 lw t9, -0x7fb0(gp)        |     t9 = sym.imp.getgrgid;
    0x00001578 move a0, v0               |     a0 = v0;
    0x0000157c jalr t9                   |     t9 ();
    0x00001580 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 != 0) {
    0x00001584 bnez v0, 0x1378           |         goto label_3;
                                         |     }
                                         | label_25:
    0x00001588 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x0000158c addiu a0, zero, 0x6a      |     a0 = 0x6a;
    0x00001590 jalr t9                   |     t9 ();
                                         | label_26:
    0x00001594 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x00001598 addiu a0, zero, 0x7d      |     a0 = 0x7d;
    0x0000159c jalr t9                   |     t9 ();
                                         | label_27:
    0x000015a0 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x000015a4 addiu a0, zero, 0x7e      |     a0 = 0x7e;
    0x000015a8 jalr t9                   |     t9 ();
                                         | label_23:
    0x000015ac lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x000015b0 addiu a0, zero, 0x69      |     a0 = 0x69;
    0x000015b4 jalr t9                   |     t9 ();
                                         | label_29:
    0x000015b8 move a0, s0               |     a0 = s0;
    0x000015bc jalr t9                   |     t9 ();
    0x000015c0 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (s0 != v0) {
    0x000015c4 beq s0, v0, 0x15e0        |         
    0x000015c8 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x000015cc addiu a0, zero, 0x7f      |         a0 = 0x7f;
    0x000015d0 jalr t9                   |         t9 ();
                                         | label_28:
    0x000015d4 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x000015d8 addiu a0, zero, 0x6b      |         a0 = 0x6b;
    0x000015dc jalr t9                   |         t9 ();
                                         |     }
    0x000015e0 lw t9, -0x7f78(gp)        |     t9 = sym.imp.getcwd;
    0x000015e4 addiu v0, sp, 0x15c       |     v0 = sp + 0x15c;
    0x000015e8 sw v0, 0x28(sp)           |     *(arg_28h) = v0;
    0x000015ec addiu a1, zero, 0x1000    |     a1 = 0x1000;
    0x000015f0 move a0, v0               |     a0 = v0;
    0x000015f4 jalr t9                   |     t9 ();
    0x000015f8 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 == 0) {
    0x000015fc beqz v0, 0x188c           |         goto label_30;
                                         |     }
    0x00001600 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x00001604 move fp, zero             |     fp = 0;
                                         |     /* esilref: 'T#' */
    0x00001608 addiu v0, v0, 0x2cd8      |     v0 += 0x2cd8;
    0x0000160c sw v0, 0x2c(sp)           |     *(arg_2ch) = v0;
    0x00001610 move v1, v0               |     v1 = v0;
                                         |     do {
    0x00001614 lw s7, 4(v1)              |         s7 = *((v1 + 1));
    0x00001618 lw t9, -0x7f4c(gp)        |         t9 = sym.imp.basename;
                                         |         if (s7 == 0) {
    0x0000161c beqz s7, 0x1770           |             goto label_31;
                                         |         }
    0x00001620 sw v1, 0x24(sp)           |         *(arg_24h) = v1;
    0x00001624 move a0, s7               |         a0 = s7;
    0x00001628 jalr t9                   |         t9 ();
    0x0000162c lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001630 move a1, v0               |         a1 = v0;
    0x00001634 lw t9, -0x7f38(gp)        |         t9 = sym.imp.strcmp;
    0x00001638 move a0, s0               |         a0 = s0;
    0x0000163c jalr t9                   |         t9 ();
    0x00001640 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001644 lw v1, 0x24(sp)           |         v1 = *(arg_24h);
                                         |         if (v0 == 0) {
    0x00001648 bnez v0, 0x1668           |             
    0x0000164c lw t9, -0x7f38(gp)        |             t9 = sym.imp.strcmp;
    0x00001650 lw a1, (v1)               |             a1 = *(v1);
    0x00001654 lw a0, 0x28(sp)           |             a0 = *(arg_28h);
    0x00001658 jalr t9                   |             t9 ();
    0x0000165c lw gp, 0x18(sp)           |             gp = *(arg_18h);
    0x00001660 lw v1, 0x24(sp)           |             v1 = *(arg_24h);
                                         |             if (v0 == 0) {
    0x00001664 beqz v0, 0x1674           |                 goto label_32;
                                         |             }
                                         |         }
    0x00001668 addiu fp, fp, 1           |         fp++;
    0x0000166c addiu v1, v1, 0x18        |         v1 += 0x18;
    0x00001670 b 0x1614                  |         
                                         |     } while (1);
                                         | label_32:
    0x00001674 lw t9, -0x7fb4(gp)        |     t9 = sym.imp.calloc;
    0x00001678 addiu a1, zero, 0x10      |     a1 = 0x10;
    0x0000167c addiu a0, zero, 1         |     a0 = 1;
    0x00001680 jalr t9                   |     t9 ();
    0x00001684 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x00001688 addiu a1, zero, 0x10      |     a1 = 0x10;
    0x0000168c addiu a0, zero, 1         |     a0 = 1;
    0x00001690 lw t9, -0x7fb4(gp)        |     t9 = sym.imp.calloc;
    0x00001694 move s1, v0               |     s1 = v0;
    0x00001698 jalr t9                   |     t9 ();
    0x0000169c addiu v1, zero, 0x18      |     v1 = 0x18;
    0x000016a0 mul a1, fp, v1            |     __asm ("mul a1, fp, v1");
    0x000016a4 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x000016a8 lw a0, 0x2c(sp)           |     a0 = *(arg_2ch);
    0x000016ac addiu a3, zero, 0x10      |     a3 = 0x10;
    0x000016b0 lw s0, -0x7fdc(gp)        |     s0 = *((gp - 8183));
    0x000016b4 addu s3, a1, a0           |     s3 = a1 + a0;
    0x000016b8 lw t9, -0x7f30(gp)        |     t9 = sym.imp.__snprintf_chk;
    0x000016bc lw s5, 0xc(s3)            |     s5 = *((s3 + 3));
    0x000016c0 addiu s0, s0, 0x2034      |     s0 += 0x2034;
    0x000016c4 move a0, s1               |     a0 = s1;
    0x000016c8 addiu a2, zero, 1         |     a2 = 1;
    0x000016cc addiu a1, zero, 0x10      |     a1 = 0x10;
    0x000016d0 sw s0, 0x10(sp)           |     *(arg_10h) = s0;
    0x000016d4 sw s5, 0x14(sp)           |     *(arg_14h) = s5;
    0x000016d8 move s1, v0               |     s1 = v0;
    0x000016dc jalr t9                   |     t9 ();
    0x000016e0 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x000016e4 lw s2, 0x14(s3)           |     s2 = *((s3 + 5));
    0x000016e8 sw s0, 0x10(sp)           |     *(arg_10h) = s0;
    0x000016ec lw t9, -0x7f30(gp)        |     t9 = sym.imp.__snprintf_chk;
    0x000016f0 move a0, s1               |     a0 = s1;
    0x000016f4 sw s2, 0x14(sp)           |     *(arg_14h) = s2;
    0x000016f8 addiu a3, zero, 0x10      |     a3 = 0x10;
    0x000016fc addiu a2, zero, 1         |     a2 = 1;
    0x00001700 addiu a1, zero, 0x10      |     a1 = 0x10;
    0x00001704 jalr t9                   |     t9 ();
    0x00001708 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x0000170c lw s3, 8(s3)              |     s3 = *((s3 + 2));
    0x00001710 move s0, s7               |     s0 = s7;
    0x00001714 addiu s1, zero, 1         |     s1 = 1;
                                         |     do {
                                         | label_5:
    0x00001718 lw t9, -0x7f64(gp)        |         t9 = sym.imp.setgid;
    0x0000171c move a0, s2               |         a0 = s2;
    0x00001720 jalr t9                   |         t9 ();
    0x00001724 lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (v0 == 0) {
    0x00001728 bnez v0, 0x1744           |             
    0x0000172c lw t9, -0x7f60(gp)        |             t9 = sym.imp.initgroups;
    0x00001730 move a1, s2               |             a1 = s2;
    0x00001734 move a0, s3               |             a0 = s3;
    0x00001738 jalr t9                   |             t9 ();
    0x0000173c lw gp, 0x18(sp)           |             gp = *(arg_18h);
                                         |             if (v0 == 0) {
    0x00001740 beqz v0, 0x18a4           |                 goto label_33;
                                         |             }
                                         |         }
    0x00001744 lw t9, -0x7f88(gp)        |         t9 = sym.imp.__errno_location;
    0x00001748 jalr t9                   |         t9 ();
    0x0000174c nop                       |         
    0x00001750 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001754 lw t9, -0x7f68(gp)        |         t9 = sym.imp.strerror;
    0x00001758 lw a0, (v0)               |         a0 = *(v0);
    0x0000175c jalr t9                   |         t9 ();
    0x00001760 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001764 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x00001768 addiu a0, zero, 0x6d      |         a0 = 0x6d;
    0x0000176c jalr t9                   |         t9 ();
                                         | label_31:
    0x00001770 lw t9, -0x7f74(gp)        |         t9 = sym.imp.realpath;
    0x00001774 move a1, zero             |         a1 = 0;
    0x00001778 move a0, s0               |         a0 = s0;
    0x0000177c jalr t9                   |         t9 ();
    0x00001780 sw v0, 0x2c(sp)           |         *(arg_2ch) = v0;
    0x00001784 lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (v0 == 0) {
    0x00001788 beqz v0, 0x1898           |             goto label_34;
                                         |         }
    0x0000178c lw s7, -0x7fd8(gp)        |         s7 = *((gp - 8182));
    0x00001790 move a2, zero             |         a2 = 0;
                                         |         /* esilref: '/usr/html/axis-cgi/mediaclip.cgi' */
    0x00001794 addiu fp, s7, 0x2d80      |         fp = s7 + 0x2d80;
    0x00001798 b 0x17a0                  |         goto label_35;
                                         | label_4:
    0x0000179c addiu a2, a2, 1           |         a2++;
                                         | label_35:
    0x000017a0 addiu v0, zero, 0x14      |         v0 = 0x14;
    0x000017a4 mul v1, a2, v0            |         __asm ("mul v1, a2, v0");
    0x000017a8 addu v0, v1, fp           |         v0 = v1 + fp;
    0x000017ac sw v0, 0x30(sp)           |         *(arg_30h) = v0;
    0x000017b0 lw s7, (v0)               |         s7 = *(v0);
    0x000017b4 lw t9, -0x7f38(gp)        |         t9 = sym.imp.strcmp;
    0x000017b8 beqz s7, 0x1718           |         
                                         |     } while (s7 == 0);
    0x000017bc lw a0, 0x2c(sp)           |     a0 = *(arg_2ch);
    0x000017c0 sw a2, 0x24(sp)           |     *(arg_24h) = a2;
    0x000017c4 move a1, s7               |     a1 = s7;
    0x000017c8 jalr t9                   |     t9 ();
    0x000017cc lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x000017d0 lw a2, 0x24(sp)           |     a2 = *(arg_24h);
                                         |     if (v0 != 0) {
    0x000017d4 bnez v0, 0x179c           |         goto label_4;
                                         |     }
    0x000017d8 lw t9, -0x7fb4(gp)        |     t9 = sym.imp.calloc;
    0x000017dc addiu a1, zero, 0x10      |     a1 = 0x10;
    0x000017e0 addiu a0, zero, 1         |     a0 = 1;
    0x000017e4 jalr t9                   |     t9 ();
    0x000017e8 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x000017ec addiu a1, zero, 0x10      |     a1 = 0x10;
    0x000017f0 addiu a0, zero, 1         |     a0 = 1;
    0x000017f4 lw t9, -0x7fb4(gp)        |     t9 = sym.imp.calloc;
    0x000017f8 move s1, v0               |     s1 = v0;
    0x000017fc jalr t9                   |     t9 ();
    0x00001800 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x00001804 lw s3, 0x30(sp)           |     s3 = *(arg_30h);
    0x00001808 move a0, s1               |     a0 = s1;
    0x0000180c lw s0, -0x7fdc(gp)        |     s0 = *((gp - 8183));
    0x00001810 lw s5, 8(s3)              |     s5 = *((s3 + 2));
    0x00001814 lw t9, -0x7f30(gp)        |     t9 = sym.imp.__snprintf_chk;
    0x00001818 addiu s0, s0, 0x2034      |     s0 += 0x2034;
    0x0000181c addiu a3, zero, 0x10      |     a3 = 0x10;
    0x00001820 addiu a2, zero, 1         |     a2 = 1;
    0x00001824 addiu a1, zero, 0x10      |     a1 = 0x10;
    0x00001828 sw s0, 0x10(sp)           |     *(arg_10h) = s0;
    0x0000182c sw s5, 0x14(sp)           |     *(arg_14h) = s5;
    0x00001830 move s1, v0               |     s1 = v0;
    0x00001834 jalr t9                   |     t9 ();
    0x00001838 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x0000183c lw s2, 0x10(s3)           |     s2 = *((s3 + 4));
    0x00001840 sw s0, 0x10(sp)           |     *(arg_10h) = s0;
    0x00001844 lw t9, -0x7f30(gp)        |     t9 = sym.imp.__snprintf_chk;
    0x00001848 move a0, s1               |     a0 = s1;
    0x0000184c sw s2, 0x14(sp)           |     *(arg_14h) = s2;
    0x00001850 addiu a3, zero, 0x10      |     a3 = 0x10;
    0x00001854 addiu a2, zero, 1         |     a2 = 1;
    0x00001858 addiu a1, zero, 0x10      |     a1 = 0x10;
    0x0000185c jalr t9                   |     t9 ();
    0x00001860 move s1, zero             |     s1 = 0;
    0x00001864 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x00001868 lw s3, 4(s3)              |     s3 = *((s3 + 1));
    0x0000186c move s0, s7               |     s0 = s7;
    0x00001870 b 0x1718                  |     goto label_5;
                                         | label_10:
    0x00001874 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x00001878 addiu a0, zero, 0x7b      |     a0 = 0x7b;
    0x0000187c jalr t9                   |     t9 ();
                                         | label_11:
    0x00001880 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x00001884 addiu a0, zero, 0x7c      |     a0 = 0x7c;
    0x00001888 jalr t9                   |     t9 ();
                                         | label_30:
    0x0000188c lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x00001890 addiu a0, zero, 0x6f      |     a0 = 0x6f;
    0x00001894 jalr t9                   |     t9 ();
                                         | label_34:
    0x00001898 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x0000189c addiu a0, zero, 0x80      |     a0 = 0x80;
    0x000018a0 jalr t9                   |     t9 ();
                                         | label_33:
    0x000018a4 lw t9, -0x7f8c(gp)        |     t9 = sym.imp.setuid;
    0x000018a8 move a0, s5               |     a0 = s5;
    0x000018ac jalr t9                   |     t9 ();
    0x000018b0 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 != 0) {
    0x000018b4 bnez v0, 0x1970           |         goto label_36;
                                         |     }
    0x000018b8 lw t9, -0x7f58(gp)        |     t9 = sym.imp.chdir;
                                         |     if (s4 == 0) {
    0x000018bc beqz s4, 0x18f4           |         goto label_37;
                                         |     }
    0x000018c0 move a0, s6               |     a0 = s6;
    0x000018c4 jalr t9                   |     t9 ();
    0x000018c8 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 != 0) {
    0x000018cc bnez v0, 0x18e8           |         goto label_6;
                                         |     }
    0x000018d0 lw a0, -0x7fdc(gp)        |     a0 = *((gp - 8183));
    0x000018d4 lw t9, -0x7f58(gp)        |     t9 = sym.imp.chdir;
    0x000018d8 addiu a0, a0, 0x1fcc      |     a0 += str._dev_null;
    0x000018dc jalr t9                   |     t9 ();
    0x000018e0 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x000018e4 beqz v0, 0x199c           |     
                                         |     while (v0 == 0) {
                                         | label_6:
    0x000018e8 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x000018ec addiu a0, zero, 0x70      |         a0 = 0x70;
    0x000018f0 jalr t9                   |         t9 ();
                                         | label_37:
    0x000018f4 lw a0, -0x7fdc(gp)        |         a0 = *((gp - 8183));
    0x000018f8 addiu a0, a0, 0x1f38      |         a0 += str._usr_html_;
    0x000018fc jalr t9                   |         t9 ();
    0x00001900 lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (v0 != 0) {
    0x00001904 bnez v0, 0x1a10           |             goto label_38;
                                         |         }
    0x00001908 lw t9, -0x7f78(gp)        |         t9 = sym.imp.getcwd;
    0x0000190c addiu s2, sp, 0x115c      |         s2 = sp + 0x115c;
    0x00001910 addiu a1, zero, 0x1000    |         a1 = 0x1000;
    0x00001914 move a0, s2               |         a0 = s2;
    0x00001918 jalr t9                   |         t9 ();
    0x0000191c lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (v0 == 0) {
    0x00001920 beqz v0, 0x1a10           |             goto label_38;
                                         |         }
    0x00001924 lw t9, -0x7f58(gp)        |         t9 = sym.imp.chdir;
    0x00001928 lw a0, 0x28(sp)           |         a0 = *(arg_28h);
    0x0000192c jalr t9                   |         t9 ();
    0x00001930 lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (v0 != 0) {
    0x00001934 bnez v0, 0x1a10           |             goto label_38;
                                         |         }
    0x00001938 lw t9, -0x7f7c(gp)        |         t9 = sym.imp.strlen;
                                         | label_7:
    0x0000193c move a0, s2               |         a0 = s2;
    0x00001940 jalr t9                   |         t9 ();
    0x00001944 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001948 lw a0, 0x28(sp)           |         a0 = *(arg_28h);
    0x0000194c move a2, v0               |         a2 = v0;
    0x00001950 lw t9, -0x7f9c(gp)        |         t9 = sym.imp.strncmp;
    0x00001954 move a1, s2               |         a1 = s2;
    0x00001958 jalr t9                   |         t9 ();
    0x0000195c lw gp, 0x18(sp)           |         gp = *(arg_18h);
                                         |         if (v0 == 0) {
    0x00001960 beqz v0, 0x19d4           |             goto label_39;
                                         |         }
    0x00001964 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x00001968 addiu a0, zero, 0x72      |         a0 = 0x72;
    0x0000196c jalr t9                   |         t9 ();
                                         | label_36:
    0x00001970 lw t9, -0x7f88(gp)        |         t9 = sym.imp.__errno_location;
    0x00001974 jalr t9                   |         t9 ();
    0x00001978 nop                       |         
    0x0000197c lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001980 lw t9, -0x7f68(gp)        |         t9 = sym.imp.strerror;
    0x00001984 lw a0, (v0)               |         a0 = *(v0);
    0x00001988 jalr t9                   |         t9 ();
    0x0000198c lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x00001990 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x00001994 addiu a0, zero, 0x6e      |         a0 = 0x6e;
    0x00001998 jalr t9                   |         t9 ();
    0x0000199c lw t9, -0x7f78(gp)        |         t9 = sym.imp.getcwd;
    0x000019a0 addiu s2, sp, 0x115c      |         s2 = sp + 0x115c;
    0x000019a4 addiu a1, zero, 0x1000    |         a1 = 0x1000;
    0x000019a8 move a0, s2               |         a0 = s2;
    0x000019ac jalr t9                   |         t9 ();
    0x000019b0 lw gp, 0x18(sp)           |         gp = *(arg_18h);
    0x000019b4 beqz v0, 0x18e8           |         
                                         |     }
    0x000019b8 lw t9, -0x7f58(gp)        |     t9 = sym.imp.chdir;
    0x000019bc lw a0, 0x28(sp)           |     a0 = *(arg_28h);
    0x000019c0 jalr t9                   |     t9 ();
    0x000019c4 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 != 0) {
    0x000019c8 bnez v0, 0x18e8           |         goto label_6;
                                         |     }
    0x000019cc lw t9, -0x7f7c(gp)        |     t9 = sym.imp.strlen;
    0x000019d0 b 0x193c                  |     goto label_7;
                                         | label_39:
    0x000019d4 lw t9, -0x7f94(gp)        |     t9 = sym.imp.__lxstat;
    0x000019d8 lw a1, 0x28(sp)           |     a1 = *(arg_28h);
    0x000019dc addiu a2, sp, 0x3c        |     a2 = sp + 0x3c;
    0x000019e0 addiu a0, zero, 3         |     a0 = 3;
    0x000019e4 jalr t9                   |     t9 ();
    0x000019e8 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 == 0) {
    0x000019ec bnez v0, 0x1a04           |         
    0x000019f0 lw v0, 0x50(sp)           |         v0 = *(arg_50h);
    0x000019f4 addiu v1, zero, 0x4000    |         v1 = 0x4000;
    0x000019f8 andi a0, v0, 0xf000       |         a0 = v0 & 0xf000;
    0x000019fc andi v0, v0, 0x12         |         v0 &= 0x12;
                                         |         if (a0 == v1) {
    0x00001a00 beq a0, v1, 0x1a1c        |             goto label_40;
                                         |         }
                                         |     }
    0x00001a04 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x00001a08 addiu a0, zero, 0x73      |     a0 = 0x73;
    0x00001a0c jalr t9                   |     t9 ();
                                         | label_38:
    0x00001a10 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x00001a14 addiu a0, zero, 0x71      |     a0 = 0x71;
    0x00001a18 jalr t9                   |     t9 ();
                                         | label_40:
    0x00001a1c lw t9, -0x7f94(gp)        |     t9 = sym.imp.__lxstat;
                                         |     if (v0 != 0) {
    0x00001a20 beqz v0, 0x1a30           |         
    0x00001a24 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x00001a28 addiu a0, zero, 0x74      |         a0 = 0x74;
    0x00001a2c jalr t9                   |         t9 ();
                                         |     }
    0x00001a30 addiu a2, sp, 0xcc        |     a2 = sp + 0xcc;
    0x00001a34 move a1, s0               |     a1 = s0;
    0x00001a38 addiu a0, zero, 3         |     a0 = 3;
    0x00001a3c jalr t9                   |     t9 ();
    0x00001a40 lw gp, 0x18(sp)           |     gp = *(arg_18h);
                                         |     if (v0 != 0) {
    0x00001a44 bnez v0, 0x1abc           |         goto label_41;
                                         |     }
    0x00001a48 lw v0, 0xe0(sp)           |     v0 = *(arg_e0h);
    0x00001a4c ori a0, zero, 0xa000      |     a0 = 0xa000;
    0x00001a50 andi v1, v0, 0xf000       |     v1 = v0 & 0xf000;
                                         |     if (s1 == 0) {
    0x00001a54 beqz s1, 0x1ab4           |         goto label_42;
                                         |     }
    0x00001a58 andi v1, v0, 0x12         |     v1 = v0 & 0x12;
                                         |     if (v1 != a0) {
    0x00001a5c bne v1, a0, 0x1ad4        |         goto label_43;
                                         |     }
    0x00001a60 andi v1, v0, 0xc00        |     v1 = v0 & 0xc00;
                                         | label_9:
    0x00001a64 andi v0, v0, 0x40         |     v0 &= 0x40;
                                         |     if (v1 != 0) {
    0x00001a68 bnez v1, 0x1ac8           |         goto label_44;
                                         |     }
    0x00001a6c lw v0, 0x34(sp)           |     v0 = *(arg_34h);
                                         |     if (v0 == 0) {
    0x00001a70 beqz v0, 0x1550           |         goto label_8;
                                         |     }
    0x00001a74 lw t9, -0x7f84(gp)        |     t9 = sym.imp.execv;
    0x00001a78 addiu a1, v0, 0xc         |     a1 = v0 + 0xc;
    0x00001a7c move a0, s0               |     a0 = s0;
    0x00001a80 jalr t9                   |     t9 ();
    0x00001a84 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x00001a88 lw t9, -0x7f88(gp)        |     t9 = sym.imp.__errno_location;
    0x00001a8c jalr t9                   |     t9 ();
    0x00001a90 nop                       |     
    0x00001a94 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x00001a98 lw t9, -0x7f68(gp)        |     t9 = sym.imp.strerror;
    0x00001a9c lw a0, (v0)               |     a0 = *(v0);
    0x00001aa0 jalr t9                   |     t9 ();
    0x00001aa4 lw gp, 0x18(sp)           |     gp = *(arg_18h);
    0x00001aa8 lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x00001aac addiu a0, zero, 0xff      |     a0 = 0xff;
    0x00001ab0 jalr t9                   |     t9 ();
                                         | label_42:
    0x00001ab4 andi v1, v0, 0x12         |     v1 = v0 & 0x12;
                                         |     if (v1 == a0) {
    0x00001ab8 bne v1, a0, 0x1ad4        |         
                                         | label_41:
    0x00001abc lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x00001ac0 addiu a0, zero, 0x75      |         a0 = 0x75;
    0x00001ac4 jalr t9                   |         t9 ();
                                         | label_44:
    0x00001ac8 lw t9, -0x7f70(gp)        |         t9 = sym.imp.exit;
    0x00001acc addiu a0, zero, 0x77      |         a0 = 0x77;
    0x00001ad0 jalr t9                   |         t9 ();
                                         |     }
                                         | label_43:
    0x00001ad4 andi v1, v0, 0xc00        |     v1 = v0 & 0xc00;
                                         |     if (v1 == 0) {
    0x00001ad8 beqz v1, 0x1a64           |         goto label_9;
                                         |     }
    0x00001adc lw t9, -0x7f70(gp)        |     t9 = sym.imp.exit;
    0x00001ae0 addiu a0, zero, 0x76      |     a0 = 0x76;
    0x00001ae4 jalr t9                   |     t9 ();
    0x00001ae8 nop                       |     
    0x00001aec nop                       |     
                                         | }

[*] Function fprintf used 9 times suexec