[*] Binary protection state of ptzaurus

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


[*] Function strcpy tear down of ptzaurus

    ; assembly                                                   | /* r2dec pseudo code output */
                                                                 | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/ptzaurus @ 0x1cabc */
                                                                 | #include <stdint.h>
                                                                 |  
    ; (fcn) sym.ptz_preset_handler_config_set_preset ()          | void ptz_preset_handler_config_set_preset () {
    0x0001cabc lui gp, 0xb                                       |     
    0x0001cac0 addiu gp, gp, 0x6d34                              |     
    0x0001cac4 addu gp, gp, t9                                   |     gp += t9;
    0x0001cac8 addiu sp, sp, -0x68                               |     
    0x0001cacc sw s5, 0x54(sp)                                   |     *(var_54h) = s5;
    0x0001cad0 lw s5, -0x73dc(gp)                                |     s5 = *((gp - 7415));
    0x0001cad4 sw gp, 0x18(sp)                                   |     *(var_18h_2) = gp;
    0x0001cad8 sw s7, 0x5c(sp)                                   |     *(var_5ch) = s7;
    0x0001cadc lw v0, (s5)                                       |     v0 = *(s5);
    0x0001cae0 sw ra, 0x64(sp)                                   |     *(var_64h) = ra;
    0x0001cae4 sw fp, 0x60(sp)                                   |     *(var_60h) = fp;
    0x0001cae8 sw s6, 0x58(sp)                                   |     *(var_58h) = s6;
    0x0001caec sw s4, 0x50(sp)                                   |     *(var_50h) = s4;
    0x0001caf0 sw s3, 0x4c(sp)                                   |     *(var_4ch_2) = s3;
    0x0001caf4 sw s2, 0x48(sp)                                   |     *(var_48h_2) = s2;
    0x0001caf8 sw s1, 0x44(sp)                                   |     *(var_44h_2) = s1;
    0x0001cafc sw s0, 0x40(sp)                                   |     *(var_40h_2) = s0;
    0x0001cb00 lw s7, 0x78(sp)                                   |     s7 = *(var_10h);
    0x0001cb04 sw v0, 0x3c(sp)                                   |     *(var_3ch_2) = v0;
    0x0001cb08 addiu v0, a1, -1                                  |     v0 = a1 + -1;
                                                                 |     if (a2 == 0) {
    0x0001cb0c beqz a2, 0x1cc78                                  |         goto label_4;
                                                                 |     }
    0x0001cb10 sltiu v0, v0, 0x3e7                               |     v0 = (v0 < 0x3e7) ? 1 : 0;
    0x0001cb14 move s1, a1                                       |     s1 = a1;
                                                                 |     if (v0 != 0) {
    0x0001cb18 bnez v0, 0x1cb5c                                  |         goto label_5;
                                                                 |     }
    0x0001cb1c move v0, zero                                     |     v0 = 0;
                                                                 |     do {
                                                                 | label_0:
    0x0001cb20 lw a0, 0x3c(sp)                                   |         a0 = *(var_3ch_2);
    0x0001cb24 lw v1, (s5)                                       |         v1 = *(s5);
    0x0001cb28 lw ra, 0x64(sp)                                   |         ra = *(var_64h);
                                                                 |         if (a0 != v1) {
    0x0001cb2c bne a0, v1, 0x1cde4                               |             goto label_6;
                                                                 |         }
    0x0001cb30 lw fp, 0x60(sp)                                   |         fp = *(var_60h);
    0x0001cb34 lw s7, 0x5c(sp)                                   |         s7 = *(var_5ch);
    0x0001cb38 lw s6, 0x58(sp)                                   |         s6 = *(var_58h);
    0x0001cb3c lw s5, 0x54(sp)                                   |         s5 = *(var_54h);
    0x0001cb40 lw s4, 0x50(sp)                                   |         s4 = *(var_50h);
    0x0001cb44 lw s3, 0x4c(sp)                                   |         s3 = *(var_4ch_2);
    0x0001cb48 lw s2, 0x48(sp)                                   |         s2 = *(var_48h_2);
    0x0001cb4c lw s1, 0x44(sp)                                   |         s1 = *(var_44h_2);
    0x0001cb50 lw s0, 0x40(sp)                                   |         s0 = *(var_40h_2);
    0x0001cb54 addiu sp, sp, 0x68                                |         
    0x0001cb58 jr ra                                             |         return v0;
                                                                 | label_5:
    0x0001cb5c lw s6, -0x7f88(gp)                                |         s6 = *(gp);
    0x0001cb60 lw t9, -0x762c(gp)                                |         t9 = sym.imp.__sprintf_chk;
    0x0001cb64 addiu s4, sp, 0x2c                                |         s4 = sp + 0x2c;
    0x0001cb68 move s2, a0                                       |         s2 = a0;
    0x0001cb6c move s0, a2                                       |         s0 = a2;
    0x0001cb70 addiu a1, zero, 1                                 |         a1 = 1;
    0x0001cb74 addiu a2, zero, 0x10                              |         a2 = 0x10;
    0x0001cb78 move a0, s4                                       |         a0 = s4;
    0x0001cb7c move s3, a3                                       |         s3 = a3;
    0x0001cb80 sw s1, 0x10(sp)                                   |         *(var_60h) = s1;
                                                                 |         /* str.Preset_03u */
    0x0001cb84 addiu a3, s6, -0x7518                             |         a3 = s6 + -0x7518;
    0x0001cb88 jalr t9                                           |         t9 ();
    0x0001cb8c lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
    0x0001cb90 lw a0, 8(s2)                                      |         a0 = *((s2 + 2));
    0x0001cb94 lw t9, -0x71b4(gp)                                |         t9 = sym.imp.g_key_file_has_group;
    0x0001cb98 move a1, s4                                       |         a1 = s4;
    0x0001cb9c jalr t9                                           |         t9 ();
    0x0001cba0 lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
    0x0001cba4 lw a0, 8(s2)                                      |         a0 = *((s2 + 2));
    0x0001cba8 move a3, s0                                       |         a3 = s0;
    0x0001cbac lw a2, -0x7f88(gp)                                |         a2 = *(gp);
    0x0001cbb0 lw t9, -0x70e0(gp)                                |         t9 = sym.imp.g_key_file_set_string;
                                                                 |         /* esilref: 'Name' */
    0x0001cbb4 addiu a2, a2, 0x1814                              |         a2 += 0x1814;
    0x0001cbb8 move a1, s4                                       |         a1 = s4;
    0x0001cbbc move fp, v0                                       |         fp = v0;
    0x0001cbc0 jalr t9                                           |         t9 ();
    0x0001cbc4 lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
    0x0001cbc8 lw a0, 8(s2)                                      |         a0 = *((s2 + 2));
    0x0001cbcc lw t9, -0x70e0(gp)                                |         t9 = sym.imp.g_key_file_set_string;
                                                                 |         if (s3 == 0) {
    0x0001cbd0 beqz s3, 0x1cda0                                  |             goto label_7;
                                                                 |         }
    0x0001cbd4 lw a2, -0x7f88(gp)                                |         a2 = *(gp);
    0x0001cbd8 move a3, s3                                       |         a3 = s3;
                                                                 |         /* esilref: 'Pub' */
    0x0001cbdc addiu a2, a2, -0x7ac8                             |         a2 += -0x7ac8;
    0x0001cbe0 move a1, s4                                       |         a1 = s4;
    0x0001cbe4 jalr t9                                           |         t9 ();
    0x0001cbe8 lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
    0x0001cbec lw a0, 8(s2)                                      |         a0 = *((s2 + 2));
                                                                 |         if (s7 == 0) {
    0x0001cbf0 beqz s7, 0x1cdc4                                  |             goto label_8;
                                                                 |         }
                                                                 | label_2:
    0x0001cbf4 lw a2, -0x7f88(gp)                                |         a2 = *(gp);
    0x0001cbf8 lw t9, -0x70e0(gp)                                |         t9 = sym.imp.g_key_file_set_string;
    0x0001cbfc move a3, s7                                       |         a3 = s7;
                                                                 |         /* str.Extra */
    0x0001cc00 addiu a2, a2, -0x7ac4                             |         a2 += -0x7ac4;
    0x0001cc04 move a1, s4                                       |         a1 = s4;
    0x0001cc08 jalr t9                                           |         t9 ();
    0x0001cc0c lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
                                                                 | label_3:
    0x0001cc10 addiu v0, zero, 1                                 |         v0 = 1;
    0x0001cc14 sw v0, 0xc(s2)                                    |         *((s2 + 3)) = v0;
    0x0001cc18 lw v0, 0x7c(sp)                                   |         v0 = *(var_7ch);
    0x0001cc1c beql v0, zero, 0x1cb20                            |         
                                                                 |     } while (v0 == 0);
    0x0001cc20 addiu v0, zero, 1                                 |     v0 = 1;
    0x0001cc24 lw v0, -0x7f88(gp)                                |     v0 = *(gp);
                                                                 |     if (fp == 0) {
    0x0001cc28 beqz fp, 0x1cca4                                  |         goto label_9;
                                                                 |     }
    0x0001cc2c lw s4, 0x18(s2)                                   |     s4 = *((s2 + 6));
    0x0001cc30 lw t9, -0x7ee4(gp)                                |     t9 = *(gp);
                                                                 |     if (s4 == 0) {
    0x0001cc34 beqz s4, 0x1cc64                                  |         goto label_10;
                                                                 |     }
                                                                 |     do {
    0x0001cc38 lw v0, (s4)                                       |         v0 = *(s4);
    0x0001cc3c move a3, s3                                       |         a3 = s3;
    0x0001cc40 move a2, s0                                       |         a2 = s0;
    0x0001cc44 lw t9, (v0)                                       |         t9 = *(v0);
    0x0001cc48 lw a0, 4(v0)                                      |         a0 = *((v0 + 1));
    0x0001cc4c move a1, s1                                       |         a1 = s1;
    0x0001cc50 jalr t9                                           |         t9 ();
    0x0001cc54 lw s4, 4(s4)                                      |         s4 = *((s4 + 1));
    0x0001cc58 lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
    0x0001cc5c bnez s4, 0x1cc38                                  |         
                                                                 |     } while (s4 != 0);
    0x0001cc60 lw t9, -0x7ee4(gp)                                |     t9 = *(gp);
                                                                 |     do {
                                                                 |         /* fcn.0001c1d0 */
                                                                 | label_10:
    0x0001cc64 addiu t9, t9, -0x3e30                             |         t9 += -0x3e30;
    0x0001cc68 move a0, s2                                       |         a0 = s2;
    0x0001cc6c bal 0x1c1d0                                       |         fcn_0001c1d0 ();
    0x0001cc70 lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
    0x0001cc74 b 0x1cb20                                         |         goto label_0;
                                                                 | label_4:
    0x0001cc78 lw v0, -0x7f88(gp)                                |         v0 = *(gp);
    0x0001cc7c lw a3, -0x7f88(gp)                                |         a3 = *(gp);
    0x0001cc80 lw a1, -0x7f88(gp)                                |         a1 = *(gp);
                                                                 |         /* str.name___NULL */
    0x0001cc84 addiu v0, v0, -0x74f0                             |         v0 += -0x74f0;
    0x0001cc88 lw t9, -0x7214(gp)                                |         t9 = sym.imp.g_assertion_message_expr;
    0x0001cc8c sw v0, 0x10(sp)                                   |         *(var_60h) = v0;
                                                                 |         /* str.ptz_preset_handler_config_set_preset */
    0x0001cc90 addiu a3, a3, -0x74d0                             |         a3 += -0x74d0;
    0x0001cc94 addiu a2, zero, 0x137                             |         a2 = 0x137;
                                                                 |         /* str.ptz_preset_handler_config.c */
    0x0001cc98 addiu a1, a1, -0x750c                             |         a1 += -0x750c;
    0x0001cc9c move a0, zero                                     |         a0 = 0;
    0x0001cca0 jalr t9                                           |         t9 ();
                                                                 | label_9:
    0x0001cca4 lw v1, -0x7f88(gp)                                |         v1 = *(gp);
    0x0001cca8 lw t9, -0x7278(gp)                                |         t9 = sym.imp.g_key_file_get_integer;
    0x0001ccac lw a0, 8(s2)                                      |         a0 = *((s2 + 2));
    0x0001ccb0 sw v0, 0x20(sp)                                   |         *(var_20h) = v0;
    0x0001ccb4 sw v1, 0x24(sp)                                   |         *(var_24h) = v1;
    0x0001ccb8 move a3, zero                                     |         a3 = 0;
    0x0001ccbc addiu a2, v0, -0x74e0                             |         a2 = v0 + -0x74e0;
                                                                 |         /* str.Generic */
    0x0001ccc0 addiu a1, v1, -0x74d8                             |         a1 = v1 + -0x74d8;
    0x0001ccc4 jalr t9                                           |         t9 ();
    0x0001ccc8 move fp, v0                                       |         fp = v0;
    0x0001cccc lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
                                                                 |         if (v0 <= 0) {
    0x0001ccd0 blez v0, 0x1cd28                                  |             goto label_11;
                                                                 |         }
                                                                 |         if (s1 == v0) {
    0x0001ccd4 beql s1, v0, 0x1cd2c                              |             goto label_12;
                                                                 |         }
    0x0001ccd8 addiu s6, s6, -0x7518                             |         s6 += -0x7518;
                                                                 | label_1:
    0x0001ccdc lw s4, 0x10(s2)                                   |         s4 = *((s2 + 4));
    0x0001cce0 lw t9, -0x7ee4(gp)                                |         t9 = *(gp);
    0x0001cce4 beqz s4, 0x1cc64                                  |         
                                                                 |     } while (s4 == 0);
                                                                 |     do {
    0x0001cce8 lw v0, (s4)                                       |         v0 = *(s4);
    0x0001ccec move a3, s3                                       |         a3 = s3;
    0x0001ccf0 move a2, s0                                       |         a2 = s0;
    0x0001ccf4 lw t9, (v0)                                       |         t9 = *(v0);
    0x0001ccf8 lw a0, 4(v0)                                      |         a0 = *((v0 + 1));
    0x0001ccfc move a1, s1                                       |         a1 = s1;
    0x0001cd00 jalr t9                                           |         t9 ();
    0x0001cd04 lw s4, 4(s4)                                      |         s4 = *((s4 + 1));
    0x0001cd08 lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
    0x0001cd0c bnez s4, 0x1cce8                                  |         
                                                                 |     } while (s4 != 0);
    0x0001cd10 lw t9, -0x7ee4(gp)                                |     t9 = *(gp);
                                                                 |     /* fcn.0001c1d0 */
    0x0001cd14 addiu t9, t9, -0x3e30                             |     t9 += -0x3e30;
    0x0001cd18 move a0, s2                                       |     a0 = s2;
    0x0001cd1c bal 0x1c1d0                                       |     fcn_0001c1d0 ();
    0x0001cd20 lw gp, 0x18(sp)                                   |     gp = *(var_18h_2);
    0x0001cd24 b 0x1cb20                                         |     goto label_0;
                                                                 | label_11:
    0x0001cd28 addiu s6, s6, -0x7518                             |     s6 += -0x7518;
                                                                 | label_12:
    0x0001cd2c addiu s7, zero, 0x3e8                             |     s7 = aav.0x000003e8;
    0x0001cd30 b 0x1cd4c                                         |     
                                                                 |     while (fp != s7) {
    0x0001cd34 lw t9, -0x71b4(gp)                                |         t9 = sym.imp.g_key_file_has_group;
    0x0001cd38 lw a0, 8(s2)                                      |         a0 = *((s2 + 2));
    0x0001cd3c move a1, s4                                       |         a1 = s4;
    0x0001cd40 jalr t9                                           |         t9 ();
    0x0001cd44 lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
                                                                 |         if (v0 == 0) {
    0x0001cd48 beqz v0, 0x1cd78                                  |             goto label_13;
                                                                 |         }
    0x0001cd4c lw t9, -0x762c(gp)                                |         t9 = sym.imp.__sprintf_chk;
    0x0001cd50 addiu fp, fp, 1                                   |         fp++;
    0x0001cd54 sw fp, 0x10(sp)                                   |         *(var_60h) = fp;
    0x0001cd58 move a3, s6                                       |         a3 = s6;
    0x0001cd5c addiu a2, zero, 0x10                              |         a2 = 0x10;
    0x0001cd60 addiu a1, zero, 1                                 |         a1 = 1;
    0x0001cd64 move a0, s4                                       |         a0 = s4;
    0x0001cd68 jalr t9                                           |         t9 ();
    0x0001cd6c lw gp, 0x18(sp)                                   |         gp = *(var_18h_2);
    0x0001cd70 bne fp, s7, 0x1cd34                               |         
                                                                 |     }
    0x0001cd74 addiu fp, zero, -1                                |     fp = -1;
                                                                 | label_13:
    0x0001cd78 lw v0, 0x20(sp)                                   |     v0 = *(var_20h);
    0x0001cd7c lw t9, -0x75dc(gp)                                |     t9 = sym.imp.g_key_file_set_integer;
    0x0001cd80 addiu a2, v0, -0x74e0                             |     a2 = v0 + -0x74e0;
    0x0001cd84 lw v0, 0x24(sp)                                   |     v0 = *(var_24h);
    0x0001cd88 lw a0, 8(s2)                                      |     a0 = *((s2 + 2));
    0x0001cd8c move a3, fp                                       |     a3 = fp;
    0x0001cd90 addiu a1, v0, -0x74d8                             |     a1 = v0 + -0x74d8;
    0x0001cd94 jalr t9                                           |     t9 ();
    0x0001cd98 lw gp, 0x18(sp)                                   |     gp = *(var_18h_2);
    0x0001cd9c b 0x1ccdc                                         |     goto label_1;
                                                                 | label_7:
    0x0001cda0 lw a3, -0x7f88(gp)                                |     a3 = *(gp);
    0x0001cda4 lw a2, -0x7f88(gp)                                |     a2 = *(gp);
    0x0001cda8 addiu a3, a3, 0xd4c                               |     a3 += 0xd4c;
                                                                 |     /* esilref: 'Pub' */
    0x0001cdac addiu a2, a2, -0x7ac8                             |     a2 += -0x7ac8;
    0x0001cdb0 move a1, s4                                       |     a1 = s4;
    0x0001cdb4 jalr t9                                           |     t9 ();
    0x0001cdb8 lw gp, 0x18(sp)                                   |     gp = *(var_18h_2);
    0x0001cdbc lw a0, 8(s2)                                      |     a0 = *((s2 + 2));
                                                                 |     if (s7 != 0) {
    0x0001cdc0 bnez s7, 0x1cbf4                                  |         goto label_2;
                                                                 |     }
                                                                 | label_8:
    0x0001cdc4 lw a2, -0x7f88(gp)                                |     a2 = *(gp);
    0x0001cdc8 lw t9, -0x70f4(gp)                                |     t9 = sym.imp.g_key_file_remove_key;
    0x0001cdcc move a3, zero                                     |     a3 = 0;
                                                                 |     /* str.Extra */
    0x0001cdd0 addiu a2, a2, -0x7ac4                             |     a2 += -0x7ac4;
    0x0001cdd4 move a1, s4                                       |     a1 = s4;
    0x0001cdd8 jalr t9                                           |     t9 ();
    0x0001cddc lw gp, 0x18(sp)                                   |     gp = *(var_18h_2);
    0x0001cde0 b 0x1cc10                                         |     goto label_3;
                                                                 | label_6:
    0x0001cde4 lw t9, -0x74ec(gp)                                |     t9 = sym.imp.__stack_chk_fail;
    0x0001cde8 jalr t9                                           |     t9 ();
    0x0001cdec nop                                               |     
                                                                 | }
    ; assembly                                                   | /* r2dec pseudo code output */
                                                                 | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/ptzaurus @ 0x23c90 */
                                                                 | #include <stdint.h>
                                                                 |  
    ; (fcn) sym.ptz_video_channel_config_remove_driver ()        | void ptz_video_channel_config_remove_driver () {
    0x00023c90 lui gp, 0xb                                       |     
    0x00023c94 addiu gp, gp, -0x4a0                              |     
    0x00023c98 addu gp, gp, t9                                   |     gp += t9;
    0x00023c9c addiu sp, sp, -0xa0                               |     
    0x00023ca0 sw s4, 0x88(sp)                                   |     *(var_88h) = s4;
    0x00023ca4 lw s4, -0x73dc(gp)                                |     s4 = *((gp - 7415));
    0x00023ca8 sw gp, 0x10(sp)                                   |     *(var_10h_2) = gp;
    0x00023cac sw ra, 0x9c(sp)                                   |     *(var_9ch) = ra;
    0x00023cb0 lw v0, (s4)                                       |     v0 = *(s4);
    0x00023cb4 sw fp, 0x98(sp)                                   |     *(var_98h) = fp;
    0x00023cb8 sw s7, 0x94(sp)                                   |     *(var_94h) = s7;
    0x00023cbc sw s6, 0x90(sp)                                   |     *(var_90h) = s6;
    0x00023cc0 sw s5, 0x8c(sp)                                   |     *(var_8ch) = s5;
    0x00023cc4 sw s3, 0x84(sp)                                   |     *(var_84h) = s3;
    0x00023cc8 sw s2, 0x80(sp)                                   |     *(var_80h) = s2;
    0x00023ccc sw s1, 0x7c(sp)                                   |     *(var_7ch) = s1;
    0x00023cd0 sw s0, 0x78(sp)                                   |     *(var_78h) = s0;
    0x00023cd4 sw v0, 0x74(sp)                                   |     *(var_74h) = v0;
    0x00023cd8 move v0, zero                                     |     v0 = 0;
                                                                 |     if (a0 == 0) {
    0x00023cdc beqz a0, 0x24024                                  |         goto label_5;
                                                                 |     }
    0x00023ce0 lw s2, 0x18(a0)                                   |     s2 = *((a0 + 6));
    0x00023ce4 move s1, a0                                       |     s1 = a0;
    0x00023ce8 move s0, a1                                       |     s0 = a1;
    0x00023cec move s5, a2                                       |     s5 = a2;
                                                                 |     if (s2 == 0) {
    0x00023cf0 beqz s2, 0x23d28                                  |         goto label_6;
                                                                 |     }
    0x00023cf4 lw v0, (s2)                                       |     v0 = *(s2);
                                                                 |     if (v0 != 0) {
                                                                 |         do {
    0x00023cf8 beql v0, zero, 0x23d20                            |             
    0x00023cfc lw s2, 4(s2)                                      |             s2 = *((s2 + 1));
    0x00023d00 lw t9, (v0)                                       |             t9 = *(v0);
    0x00023d04 move a2, s5                                       |             a2 = s5;
                                                                 |             if (t9 != 0) {
    0x00023d08 beqz t9, 0x23d1c                                  |                 
    0x00023d0c lw a0, 4(v0)                                      |                 a0 = *((v0 + 1));
    0x00023d10 move a1, s0                                       |                 a1 = s0;
    0x00023d14 jalr t9                                           |                 t9 ();
    0x00023d18 lw gp, 0x10(sp)                                   |                 gp = *(var_10h_2);
                                                                 |             }
    0x00023d1c lw s2, 4(s2)                                      |             s2 = *((s2 + 1));
                                                                 |         }
    0x00023d20 lw v0, (s2)                                       |         v0 = *(s2);
    0x00023d24 bnel s2, zero, 0x23cf8                            |         
                                                                 |     } while (s2 == 0);
                                                                 | label_6:
    0x00023d28 lw s3, -0x7ee4(gp)                                |     s3 = *(gp);
    0x00023d2c addiu s2, sp, 0x54                                |     s2 = sp + 0x54;
                                                                 |     /* fcn.00022308 */
    0x00023d30 addiu s3, s3, 0x2308                              |     s3 += 0x2308;
    0x00023d34 addiu a2, zero, 1                                 |     a2 = 1;
    0x00023d38 move a1, s0                                       |     a1 = s0;
    0x00023d3c move t9, s3                                       |     t9 = s3;
    0x00023d40 move a0, s2                                       |     a0 = s2;
    0x00023d44 bal 0x22308                                       |     fcn_00022308 ();
    0x00023d48 lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
                                                                 |     if (s5 != 0) {
    0x00023d4c beqz s5, 0x23f0c                                  |         
    0x00023d50 lw s5, -0x7f88(gp)                                |         s5 = *(gp);
    0x00023d54 lw v0, -0x7f88(gp)                                |         v0 = *(gp);
    0x00023d58 lw t9, -0x704c(gp)                                |         t9 = sym.imp.g_key_file_get_string;
    0x00023d5c lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
    0x00023d60 move a3, zero                                     |         a3 = 0;
                                                                 |         /* str.DrName */
    0x00023d64 addiu a2, v0, -0x64f4                             |         a2 = v0 + -0x64f4;
    0x00023d68 move a1, s2                                       |         a1 = s2;
    0x00023d6c sw s5, 0x24(sp)                                   |         *(var_24h_5) = s5;
    0x00023d70 sw v0, 0x20(sp)                                   |         *(var_20h_8) = v0;
    0x00023d74 jalr t9                                           |         t9 ();
    0x00023d78 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
                                                                 |         /* str.DrVersion */
    0x00023d7c addiu a2, s5, -0x64ec                             |         a2 = s5 + -0x64ec;
    0x00023d80 lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
    0x00023d84 lw s5, -0x7f88(gp)                                |         s5 = *(gp);
    0x00023d88 lw t9, -0x704c(gp)                                |         t9 = sym.imp.g_key_file_get_string;
    0x00023d8c move a3, zero                                     |         a3 = 0;
    0x00023d90 move a1, s2                                       |         a1 = s2;
    0x00023d94 sw s5, 0x1c(sp)                                   |         *(var_1ch_5) = s5;
    0x00023d98 move s6, v0                                       |         s6 = v0;
    0x00023d9c jalr t9                                           |         t9 ();
    0x00023da0 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
    0x00023da4 lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
                                                                 |         /* str.ChEnabled */
    0x00023da8 addiu a2, s5, -0x6c68                             |         a2 = s5 + -0x6c68;
    0x00023dac lw t9, -0x6fb0(gp)                                |         t9 = sym.imp.g_key_file_has_key;
    0x00023db0 move a3, zero                                     |         a3 = 0;
    0x00023db4 move a1, s2                                       |         a1 = s2;
    0x00023db8 move s5, v0                                       |         s5 = v0;
    0x00023dbc jalr t9                                           |         t9 ();
    0x00023dc0 move fp, v0                                       |         fp = v0;
    0x00023dc4 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
                                                                 |         if (v0 != 0) {
    0x00023dc8 bnez v0, 0x240f4                                  |             goto label_7;
                                                                 |         }
                                                                 | label_4:
    0x00023dcc lw v0, -0x7f88(gp)                                |         v0 = *(gp);
    0x00023dd0 lw t9, -0x6fb0(gp)                                |         t9 = sym.imp.g_key_file_has_key;
    0x00023dd4 lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
    0x00023dd8 sw v0, 0x18(sp)                                   |         *(var_18h_6) = v0;
    0x00023ddc move a3, zero                                     |         a3 = 0;
                                                                 |         /* str.ChPort */
    0x00023de0 addiu a2, v0, -0x6c7c                             |         a2 = v0 + -0x6c7c;
    0x00023de4 move a1, s2                                       |         a1 = s2;
    0x00023de8 jalr t9                                           |         t9 ();
    0x00023dec move s7, v0                                       |         s7 = v0;
    0x00023df0 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
                                                                 |         if (v0 != 0) {
    0x00023df4 bnez v0, 0x240cc                                  |             goto label_8;
                                                                 |         }
                                                                 | label_3:
    0x00023df8 lw t9, -0x7248(gp)                                |         t9 = sym.imp.g_key_file_remove_group;
    0x00023dfc lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
    0x00023e00 move a2, zero                                     |         a2 = 0;
    0x00023e04 move a1, s2                                       |         a1 = s2;
    0x00023e08 jalr t9                                           |         t9 ();
    0x00023e0c lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
                                                                 |         if (s6 != 0) {
    0x00023e10 beqz s6, 0x23e44                                  |             
    0x00023e14 lw v0, 0x20(sp)                                   |             v0 = *(var_20h_8);
    0x00023e18 lw t9, -0x70e0(gp)                                |             t9 = sym.imp.g_key_file_set_string;
    0x00023e1c lw a0, 8(s1)                                      |             a0 = *((s1 + 2));
    0x00023e20 move a3, s6                                       |             a3 = s6;
    0x00023e24 addiu a2, v0, -0x64f4                             |             a2 = v0 + -0x64f4;
    0x00023e28 move a1, s2                                       |             a1 = s2;
    0x00023e2c jalr t9                                           |             t9 ();
    0x00023e30 lw gp, 0x10(sp)                                   |             gp = *(var_10h_2);
    0x00023e34 lw t9, -0x6f68(gp)                                |             t9 = *((gp - 7130));
    0x00023e38 move a0, s6                                       |             a0 = s6;
    0x00023e3c jalr t9                                           |             t9 ();
    0x00023e40 lw gp, 0x10(sp)                                   |             gp = *(var_10h_2);
                                                                 |         }
    0x00023e44 lw v0, 0x24(sp)                                   |         v0 = *(var_24h_5);
                                                                 |         if (s5 != 0) {
    0x00023e48 beqz s5, 0x23e78                                  |             
    0x00023e4c lw t9, -0x70e0(gp)                                |             t9 = sym.imp.g_key_file_set_string;
    0x00023e50 lw a0, 8(s1)                                      |             a0 = *((s1 + 2));
    0x00023e54 move a3, s5                                       |             a3 = s5;
    0x00023e58 addiu a2, v0, -0x64ec                             |             a2 = v0 + -0x64ec;
    0x00023e5c move a1, s2                                       |             a1 = s2;
    0x00023e60 jalr t9                                           |             t9 ();
    0x00023e64 lw gp, 0x10(sp)                                   |             gp = *(var_10h_2);
    0x00023e68 lw t9, -0x6f68(gp)                                |             t9 = *((gp - 7130));
    0x00023e6c move a0, s5                                       |             a0 = s5;
    0x00023e70 jalr t9                                           |             t9 ();
    0x00023e74 lw gp, 0x10(sp)                                   |             gp = *(var_10h_2);
                                                                 |         }
    0x00023e78 lw v0, 0x1c(sp)                                   |         v0 = *(var_1ch_5);
                                                                 |         if (fp != 0) {
    0x00023e7c bnez fp, 0x240ac                                  |             goto label_9;
                                                                 |         }
                                                                 | label_2:
    0x00023e80 lw v0, 0x18(sp)                                   |         v0 = *(var_18h_6);
                                                                 |         if (s7 != 0) {
    0x00023e84 bnez s7, 0x2408c                                  |             goto label_10;
                                                                 |         }
                                                                 | label_1:
    0x00023e88 addiu a2, zero, 2                                 |         a2 = 2;
    0x00023e8c move a1, s0                                       |         a1 = s0;
    0x00023e90 move t9, s3                                       |         t9 = s3;
    0x00023e94 lw s6, -0x7f88(gp)                                |         s6 = *(gp);
    0x00023e98 move a0, s2                                       |         a0 = s2;
    0x00023e9c bal 0x22308                                       |         fcn_00022308 ();
    0x00023ea0 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
    0x00023ea4 lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
    0x00023ea8 move a3, zero                                     |         a3 = 0;
    0x00023eac lw t9, -0x73f8(gp)                                |         t9 = sym.imp.g_key_file_get_value;
                                                                 |         /* str.DeviceType */
    0x00023eb0 addiu a2, s6, -0x64bc                             |         a2 = s6 + -0x64bc;
    0x00023eb4 move a1, s2                                       |         a1 = s2;
    0x00023eb8 jalr t9                                           |         t9 ();
    0x00023ebc lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
    0x00023ec0 lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
    0x00023ec4 move a2, zero                                     |         a2 = 0;
    0x00023ec8 lw t9, -0x7248(gp)                                |         t9 = sym.imp.g_key_file_remove_group;
    0x00023ecc move a1, s2                                       |         a1 = s2;
    0x00023ed0 move s5, v0                                       |         s5 = v0;
    0x00023ed4 jalr t9                                           |         t9 ();
    0x00023ed8 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
    0x00023edc lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
    0x00023ee0 move a3, s5                                       |         a3 = s5;
    0x00023ee4 lw t9, -0x6ff8(gp)                                |         t9 = sym.imp.g_key_file_set_value;
                                                                 |         /* str.DeviceType */
    0x00023ee8 addiu a2, s6, -0x64bc                             |         a2 = s6 + -0x64bc;
    0x00023eec move a1, s2                                       |         a1 = s2;
    0x00023ef0 jalr t9                                           |         t9 ();
    0x00023ef4 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
    0x00023ef8 lw t9, -0x6f68(gp)                                |         t9 = *((gp - 7130));
    0x00023efc move a0, s5                                       |         a0 = s5;
    0x00023f00 jalr t9                                           |         t9 ();
    0x00023f04 move a0, s2                                       |         a0 = s2;
    0x00023f08 b 0x23f50                                         |         
                                                                 |     } else {
    0x00023f0c lw t9, -0x7248(gp)                                |         t9 = sym.imp.g_key_file_remove_group;
    0x00023f10 lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
    0x00023f14 move a2, zero                                     |         a2 = 0;
    0x00023f18 move a1, s2                                       |         a1 = s2;
    0x00023f1c jalr t9                                           |         t9 ();
    0x00023f20 addiu a2, zero, 2                                 |         a2 = 2;
    0x00023f24 move a1, s0                                       |         a1 = s0;
    0x00023f28 move t9, s3                                       |         t9 = s3;
    0x00023f2c move a0, s2                                       |         a0 = s2;
    0x00023f30 bal 0x22308                                       |         fcn_00022308 ();
    0x00023f34 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
    0x00023f38 lw a0, 8(s1)                                      |         a0 = *((s1 + 2));
    0x00023f3c move a2, zero                                     |         a2 = 0;
    0x00023f40 lw t9, -0x7248(gp)                                |         t9 = sym.imp.g_key_file_remove_group;
    0x00023f44 move a1, s2                                       |         a1 = s2;
    0x00023f48 jalr t9                                           |         t9 ();
    0x00023f4c move a0, s2                                       |         a0 = s2;
                                                                 |     }
    0x00023f50 move t9, s3                                       |     t9 = s3;
    0x00023f54 addiu a2, zero, 4                                 |     a2 = 4;
    0x00023f58 move a1, s0                                       |     a1 = s0;
    0x00023f5c bal 0x22308                                       |     fcn_00022308 ();
    0x00023f60 lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
    0x00023f64 lw a0, 8(s1)                                      |     a0 = *((s1 + 2));
    0x00023f68 move a1, s2                                       |     a1 = s2;
    0x00023f6c lw t9, -0x7248(gp)                                |     t9 = sym.imp.g_key_file_remove_group;
    0x00023f70 move a2, zero                                     |     a2 = 0;
    0x00023f74 jalr t9                                           |     t9 ();
    0x00023f78 move a0, s2                                       |     a0 = s2;
    0x00023f7c move t9, s3                                       |     t9 = s3;
    0x00023f80 addiu a2, zero, 3                                 |     a2 = 3;
    0x00023f84 move a1, s0                                       |     a1 = s0;
    0x00023f88 bal 0x22308                                       |     fcn_00022308 ();
    0x00023f8c lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
    0x00023f90 lw a0, 8(s1)                                      |     a0 = *((s1 + 2));
    0x00023f94 move a1, s2                                       |     a1 = s2;
    0x00023f98 lw t9, -0x7248(gp)                                |     t9 = sym.imp.g_key_file_remove_group;
    0x00023f9c move a2, zero                                     |     a2 = 0;
    0x00023fa0 jalr t9                                           |     t9 ();
    0x00023fa4 lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
    0x00023fa8 addiu v0, zero, 1                                 |     v0 = 1;
    0x00023fac addiu s2, sp, 0x3c                                |     s2 = sp + 0x3c;
    0x00023fb0 lw t9, -0x72cc(gp)                                |     t9 = sym.imp.g_hash_table_iter_init;
    0x00023fb4 lw a1, 0x10(s1)                                   |     a1 = *((s1 + 4));
    0x00023fb8 sw v0, 0xc(s1)                                    |     *((s1 + 3)) = v0;
    0x00023fbc move a0, s2                                       |     a0 = s2;
    0x00023fc0 jalr t9                                           |     t9 ();
    0x00023fc4 addiu s5, sp, 0x34                                |     s5 = sp + 0x34;
    0x00023fc8 lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
    0x00023fcc addiu s3, sp, 0x38                                |     s3 = sp + 0x38;
    0x00023fd0 b 0x23fe4                                         |     
                                                                 |     while (v0 != 0) {
    0x00023fd4 lw v0, 0x34(sp)                                   |         v0 = *(var_34h_6);
    0x00023fd8 lw v0, 0x18(v0)                                   |         v0 = *((v0 + 6));
    0x00023fdc lw t9, -0x7358(gp)                                |         t9 = sym.imp.g_hash_table_iter_remove;
                                                                 |         if (s0 == v0) {
    0x00023fe0 beq s0, v0, 0x24060                               |             goto label_11;
                                                                 |         }
                                                                 | label_0:
    0x00023fe4 lw t9, -0x72c8(gp)                                |         t9 = sym.imp.g_hash_table_iter_next;
    0x00023fe8 move a2, s5                                       |         a2 = s5;
    0x00023fec move a1, s3                                       |         a1 = s3;
    0x00023ff0 move a0, s2                                       |         a0 = s2;
    0x00023ff4 jalr t9                                           |         t9 ();
    0x00023ff8 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
    0x00023ffc bnez v0, 0x23fd4                                  |         
                                                                 |     }
    0x00024000 lw t9, -0x76f4(gp)                                |     t9 = sym.imp.g_list_remove;
    0x00024004 lw a0, 0x14(s1)                                   |     a0 = *((s1 + 5));
    0x00024008 move a1, s0                                       |     a1 = s0;
    0x0002400c jalr t9                                           |     t9 ();
    0x00024010 lw v1, 0xc(s1)                                    |     v1 = *((s1 + 3));
    0x00024014 lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
    0x00024018 sw v0, 0x14(s1)                                   |     *((s1 + 5)) = v0;
                                                                 |     if (v1 != 0) {
    0x0002401c bnez v1, 0x24070                                  |         goto label_12;
                                                                 |     }
    0x00024020 addiu v0, zero, 1                                 |     v0 = 1;
                                                                 |     do {
                                                                 | label_5:
    0x00024024 lw a0, 0x74(sp)                                   |         a0 = *(var_74h);
    0x00024028 lw v1, (s4)                                       |         v1 = *(s4);
    0x0002402c lw ra, 0x9c(sp)                                   |         ra = *(var_9ch);
                                                                 |         if (a0 != v1) {
    0x00024030 bne a0, v1, 0x2411c                               |             goto label_13;
                                                                 |         }
    0x00024034 lw fp, 0x98(sp)                                   |         fp = *(var_98h);
    0x00024038 lw s7, 0x94(sp)                                   |         s7 = *(var_94h);
    0x0002403c lw s6, 0x90(sp)                                   |         s6 = *(var_90h);
    0x00024040 lw s5, 0x8c(sp)                                   |         s5 = *(var_8ch);
    0x00024044 lw s4, 0x88(sp)                                   |         s4 = *(var_88h);
    0x00024048 lw s3, 0x84(sp)                                   |         s3 = *(var_84h);
    0x0002404c lw s2, 0x80(sp)                                   |         s2 = *(var_80h);
    0x00024050 lw s1, 0x7c(sp)                                   |         s1 = *(var_7ch);
    0x00024054 lw s0, 0x78(sp)                                   |         s0 = *(var_78h);
    0x00024058 addiu sp, sp, 0xa0                                |         
    0x0002405c jr ra                                             |         return v0;
                                                                 | label_11:
    0x00024060 move a0, s2                                       |         a0 = s2;
    0x00024064 jalr t9                                           |         t9 ();
    0x00024068 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
    0x0002406c b 0x23fe4                                         |         goto label_0;
                                                                 | label_12:
    0x00024070 lw t9, -0x7ee4(gp)                                |         t9 = *(gp);
                                                                 |         /* fcn.0002223c */
    0x00024074 addiu t9, t9, 0x223c                              |         t9 += 0x223c;
    0x00024078 move a0, s1                                       |         a0 = s1;
    0x0002407c bal 0x2223c                                       |         fcn_0002223c ();
    0x00024080 lw gp, 0x10(sp)                                   |         gp = *(var_10h_2);
    0x00024084 addiu v0, zero, 1                                 |         v0 = 1;
    0x00024088 b 0x24024                                         |         
                                                                 |     } while (1);
                                                                 | label_10:
    0x0002408c lw t9, -0x75dc(gp)                                |     t9 = sym.imp.g_key_file_set_integer;
    0x00024090 lw a0, 8(s1)                                      |     a0 = *((s1 + 2));
    0x00024094 lw a3, 0x2c(sp)                                   |     a3 = *(var_2ch_6);
    0x00024098 addiu a2, v0, -0x6c7c                             |     a2 = v0 + -0x6c7c;
    0x0002409c move a1, s2                                       |     a1 = s2;
    0x000240a0 jalr t9                                           |     t9 ();
    0x000240a4 lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
    0x000240a8 b 0x23e88                                         |     goto label_1;
                                                                 | label_9:
    0x000240ac lw t9, -0x72b0(gp)                                |     t9 = sym.imp.g_key_file_set_boolean;
    0x000240b0 lw a0, 8(s1)                                      |     a0 = *((s1 + 2));
    0x000240b4 lw a3, 0x28(sp)                                   |     a3 = *(var_28h_3);
    0x000240b8 addiu a2, v0, -0x6c68                             |     a2 = v0 + -0x6c68;
    0x000240bc move a1, s2                                       |     a1 = s2;
    0x000240c0 jalr t9                                           |     t9 ();
    0x000240c4 lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
    0x000240c8 b 0x23e80                                         |     goto label_2;
                                                                 | label_8:
    0x000240cc lw v0, 0x18(sp)                                   |     v0 = *(var_18h_6);
    0x000240d0 lw t9, -0x7278(gp)                                |     t9 = sym.imp.g_key_file_get_integer;
    0x000240d4 lw a0, 8(s1)                                      |     a0 = *((s1 + 2));
    0x000240d8 move a3, zero                                     |     a3 = 0;
    0x000240dc addiu a2, v0, -0x6c7c                             |     a2 = v0 + -0x6c7c;
    0x000240e0 move a1, s2                                       |     a1 = s2;
    0x000240e4 jalr t9                                           |     t9 ();
    0x000240e8 sw v0, 0x2c(sp)                                   |     *(var_2ch_6) = v0;
    0x000240ec lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
    0x000240f0 b 0x23df8                                         |     goto label_3;
                                                                 | label_7:
    0x000240f4 lw v0, 0x1c(sp)                                   |     v0 = *(var_1ch_5);
    0x000240f8 lw t9, -0x7388(gp)                                |     t9 = sym.imp.g_key_file_get_boolean;
    0x000240fc lw a0, 8(s1)                                      |     a0 = *((s1 + 2));
    0x00024100 move a3, zero                                     |     a3 = 0;
    0x00024104 addiu a2, v0, -0x6c68                             |     a2 = v0 + -0x6c68;
    0x00024108 move a1, s2                                       |     a1 = s2;
    0x0002410c jalr t9                                           |     t9 ();
    0x00024110 sw v0, 0x28(sp)                                   |     *(var_28h_3) = v0;
    0x00024114 lw gp, 0x10(sp)                                   |     gp = *(var_10h_2);
    0x00024118 b 0x23dcc                                         |     goto label_4;
                                                                 | label_13:
    0x0002411c lw t9, -0x74ec(gp)                                |     t9 = sym.imp.__stack_chk_fail;
    0x00024120 jalr t9                                           |     t9 ();
    0x00024124 nop                                               |     
                                                                 | }

[*] Function strcpy used 1 times ptzaurus