[*] Binary protection state of snmpd
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of snmpd
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/snmpd @ 0x2d168 */
| #include <stdint.h>
|
; (fcn) fcn.0002d168 () | void fcn_0002d168 () {
0x0002d168 lui gp, 2 |
0x0002d16c addiu gp, gp, 0x4428 |
0x0002d170 addu gp, gp, t9 | gp += t9;
0x0002d174 addiu sp, sp, -0xc90 |
0x0002d178 lw t9, -0x79a4(gp) | t9 = sym.imp.g_key_file_new;
0x0002d17c sw s2, 0xc70(sp) | *(var_c70h) = s2;
0x0002d180 lw s2, -0x77a4(gp) | s2 = *((gp - 7657));
0x0002d184 sw gp, 0x30(sp) | *(var_30h) = gp;
0x0002d188 sw ra, 0xc8c(sp) | *(var_c8ch) = ra;
0x0002d18c lw v0, (s2) | v0 = *(s2);
0x0002d190 sw s6, 0xc80(sp) | *(var_c80h) = s6;
0x0002d194 sw s5, 0xc7c(sp) | *(var_c7ch) = s5;
0x0002d198 sw s3, 0xc74(sp) | *(var_c74h) = s3;
0x0002d19c sw s1, 0xc6c(sp) | *(var_c6ch) = s1;
0x0002d1a0 sw s0, 0xc68(sp) | *(var_c68h) = s0;
0x0002d1a4 sw fp, 0xc88(sp) | *(var_c88h) = fp;
0x0002d1a8 sw s7, 0xc84(sp) | *(var_c84h) = s7;
0x0002d1ac sw s4, 0xc78(sp) | *(var_c78h) = s4;
0x0002d1b0 sw v0, 0xc64(sp) | *(var_c64h) = v0;
0x0002d1b4 sw zero, 0x58(sp) | *(var_58h_2) = 0;
0x0002d1b8 sw zero, 0x5c(sp) | *(var_5ch_2) = 0;
0x0002d1bc move s3, a0 | s3 = a0;
0x0002d1c0 move s5, a1 | s5 = a1;
0x0002d1c4 move s6, a2 | s6 = a2;
0x0002d1c8 jalr t9 | t9 ();
0x0002d1cc lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d1d0 addiu s1, sp, 0x58 | s1 = sp + 0x58;
0x0002d1d4 move a3, s1 | a3 = s1;
0x0002d1d8 lw t9, -0x779c(gp) | t9 = sym.imp.g_key_file_load_from_file;
0x0002d1dc move a2, zero | a2 = 0;
0x0002d1e0 move a1, s3 | a1 = s3;
0x0002d1e4 move a0, v0 | a0 = v0;
0x0002d1e8 move s0, v0 | s0 = v0;
0x0002d1ec jalr t9 | t9 ();
0x0002d1f0 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d1f4 beqz v0, 0x2d318 | goto label_9;
| }
0x0002d1f8 lw s4, -0x7fdc(gp) | s4 = *(gp);
0x0002d1fc lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d200 lw t9, -0x7ac0(gp) | t9 = sym.imp.g_key_file_get_boolean;
0x0002d204 move a3, s1 | a3 = s1;
| /* str.enabled */
0x0002d208 addiu a2, a2, 0x7070 | a2 += 0x7070;
| /* str.action_rule */
0x0002d20c addiu a1, s4, 0x7078 | a1 = s4 + 0x7078;
0x0002d210 move a0, s0 | a0 = s0;
0x0002d214 jalr t9 | t9 ();
0x0002d218 lw v1, 0x58(sp) | v1 = *(var_58h_2);
0x0002d21c lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d220 move s7, v0 | s7 = v0;
| if (v1 == 0) {
0x0002d224 beqz v1, 0x2d2d0 | goto label_10;
| }
0x0002d228 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d22c lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d230 lw v0, 8(v1) | v0 = *((v1 + 2));
0x0002d234 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d238 addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_read_enabled_state:__s */
0x0002d23c addiu a2, a2, 0x7084 | a2 += 0x7084;
| do {
| label_1:
0x0002d240 addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x0002d244 move a0, zero | a0 = 0;
0x0002d248 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x0002d24c jalr t9 | t9 ();
0x0002d250 lw gp, 0x30(sp) | gp = *(var_30h);
| label_0:
0x0002d254 lw a0, 0x58(sp) | a0 = *(var_58h_2);
0x0002d258 lw t9, -0x7794(gp) | t9 = sym.imp.g_error_free;
0x0002d25c move s4, zero | s4 = 0;
0x0002d260 jalr t9 | t9 ();
0x0002d264 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d268 move s1, zero | s1 = 0;
| label_3:
0x0002d26c lw t9, -0x7930(gp) | t9 = *((gp - 7756));
0x0002d270 move a0, s4 | a0 = s4;
0x0002d274 jalr t9 | t9 ();
0x0002d278 lw gp, 0x30(sp) | gp = *(var_30h);
| if (s0 != 0) {
0x0002d27c beqz s0, 0x2d290 |
0x0002d280 lw t9, -0x79ec(gp) | t9 = sym.imp.g_key_file_free;
0x0002d284 move a0, s0 | a0 = s0;
0x0002d288 jalr t9 | t9 ();
0x0002d28c lw gp, 0x30(sp) | gp = *(var_30h);
| }
0x0002d290 lw a0, 0xc64(sp) | a0 = *(var_c64h);
0x0002d294 lw v1, (s2) | v1 = *(s2);
0x0002d298 move v0, s1 | v0 = s1;
| if (a0 != v1) {
0x0002d29c bne a0, v1, 0x2d818 | goto label_11;
| }
0x0002d2a0 lw ra, 0xc8c(sp) | ra = *(var_c8ch);
0x0002d2a4 lw fp, 0xc88(sp) | fp = *(var_c88h);
0x0002d2a8 lw s7, 0xc84(sp) | s7 = *(var_c84h);
0x0002d2ac lw s6, 0xc80(sp) | s6 = *(var_c80h);
0x0002d2b0 lw s5, 0xc7c(sp) | s5 = *(var_c7ch);
0x0002d2b4 lw s4, 0xc78(sp) | s4 = *(var_c78h);
0x0002d2b8 lw s3, 0xc74(sp) | s3 = *(var_c74h);
0x0002d2bc lw s2, 0xc70(sp) | s2 = *(var_c70h);
0x0002d2c0 lw s1, 0xc6c(sp) | s1 = *(var_c6ch);
0x0002d2c4 lw s0, 0xc68(sp) | s0 = *(var_c68h);
0x0002d2c8 addiu sp, sp, 0xc90 |
0x0002d2cc jr ra | return v0;
| label_10:
0x0002d2d0 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d2d4 lw t9, -0x79b8(gp) | t9 = sym.imp.g_key_file_get_integer;
0x0002d2d8 move a3, s1 | a3 = s1;
| /* str.timeout */
0x0002d2dc addiu a2, a2, 0x70b0 | a2 += 0x70b0;
| /* str.action_rule */
0x0002d2e0 addiu a1, s4, 0x7078 | a1 = s4 + 0x7078;
0x0002d2e4 move a0, s0 | a0 = s0;
0x0002d2e8 jalr t9 | t9 ();
0x0002d2ec lw v1, 0x58(sp) | v1 = *(var_58h_2);
0x0002d2f0 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d2f4 sw v0, 0x3c(sp) | *(var_3ch_2) = v0;
| if (v1 == 0) {
0x0002d2f8 beqz v1, 0x2d350 | goto label_12;
| }
0x0002d2fc lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d300 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d304 lw v0, 8(v1) | v0 = *((v1 + 2));
0x0002d308 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d30c addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_read_timeout:__s */
0x0002d310 addiu a2, a2, 0x70b8 | a2 += 0x70b8;
0x0002d314 b 0x2d240 |
| } while (1);
| label_9:
0x0002d318 lw v0, 0x58(sp) | v0 = *(var_58h_2);
0x0002d31c lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d320 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d324 lw v0, 8(v0) | v0 = *((v0 + 2));
0x0002d328 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d32c addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_read_action_rule_file__s:__s */
0x0002d330 addiu a2, a2, 0x703c | a2 += 0x703c;
0x0002d334 addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x0002d338 move a0, zero | a0 = 0;
0x0002d33c sw v0, 0x14(sp) | *(var_14h_2) = v0;
0x0002d340 sw s3, 0x10(sp) | *(var_10h_2) = s3;
0x0002d344 jalr t9 | t9 ();
0x0002d348 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d34c b 0x2d254 | goto label_0;
| label_12:
0x0002d350 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d354 lw t9, -0x79b8(gp) | t9 = sym.imp.g_key_file_get_integer;
0x0002d358 move a3, s1 | a3 = s1;
| /* str.min_time_period */
0x0002d35c addiu a2, a2, 0x70e0 | a2 += 0x70e0;
| /* str.action_rule */
0x0002d360 addiu a1, s4, 0x7078 | a1 = s4 + 0x7078;
0x0002d364 move a0, s0 | a0 = s0;
0x0002d368 jalr t9 | t9 ();
0x0002d36c lw v1, 0x58(sp) | v1 = *(var_58h_2);
0x0002d370 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d374 sw v0, 0x4c(sp) | *(var_4ch_2) = v0;
| if (v1 != 0) {
0x0002d378 beqz v1, 0x2d398 |
0x0002d37c lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d380 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d384 lw v0, 8(v1) | v0 = *((v1 + 2));
0x0002d388 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d38c addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_read_min_time_period:__s */
0x0002d390 addiu a2, a2, 0x70f0 | a2 += 0x70f0;
0x0002d394 b 0x2d240 | goto label_1;
| }
0x0002d398 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d39c lw t9, -0x79b8(gp) | t9 = sym.imp.g_key_file_get_integer;
0x0002d3a0 move a3, s1 | a3 = s1;
| /* str.max_time_period */
0x0002d3a4 addiu a2, a2, 0x7120 | a2 += 0x7120;
| /* str.action_rule */
0x0002d3a8 addiu a1, s4, 0x7078 | a1 = s4 + 0x7078;
0x0002d3ac move a0, s0 | a0 = s0;
0x0002d3b0 jalr t9 | t9 ();
0x0002d3b4 lw v1, 0x58(sp) | v1 = *(var_58h_2);
0x0002d3b8 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d3bc sw v0, 0x54(sp) | *(var_54h_2) = v0;
| if (v1 != 0) {
0x0002d3c0 beqz v1, 0x2d3e0 |
0x0002d3c4 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d3c8 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d3cc lw v0, 8(v1) | v0 = *((v1 + 2));
0x0002d3d0 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d3d4 addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_read_max_time_period:__s */
0x0002d3d8 addiu a2, a2, 0x7130 | a2 += 0x7130;
0x0002d3dc b 0x2d240 | goto label_1;
| }
0x0002d3e0 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d3e4 lw t9, -0x7858(gp) | t9 = sym.imp.g_key_file_get_value;
| /* str.action_rule */
0x0002d3e8 addiu a1, s4, 0x7078 | a1 = s4 + 0x7078;
0x0002d3ec move a3, s1 | a3 = s1;
| /* str.nice_name */
0x0002d3f0 addiu a2, a2, 0x6ed4 | a2 += 0x6ed4;
0x0002d3f4 move a0, s0 | a0 = s0;
0x0002d3f8 jalr t9 | t9 ();
0x0002d3fc move s4, v0 | s4 = v0;
0x0002d400 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d404 beqz v0, 0x2d694 | goto label_13;
| }
0x0002d408 lw fp, -0x7fd8(gp) | fp = *((gp - 8182));
0x0002d40c sw zero, 0x60(sp) | *(var_60h_2) = 0;
0x0002d410 lw v1, -0x21ac(fp) | v1 = *(var_21ach);
0x0002d414 lw t9, -0x7768(gp) | t9 = sym.imp.ae_get_action_rules;
| if (v1 == 0) {
0x0002d418 beqz v1, 0x2d6dc | goto label_14;
| }
0x0002d41c lw fp, (v1) | fp = *(v1);
| do {
| label_4:
0x0002d420 lw t9, -0x7ab4(gp) | t9 = sym.imp.g_strcmp0;
0x0002d424 sw v1, 0x38(sp) | *(var_38h) = v1;
0x0002d428 lw a0, 4(fp) | a0 = *(arg_4h);
0x0002d42c move a1, s4 | a1 = s4;
0x0002d430 jalr t9 | t9 ();
0x0002d434 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d438 lw v1, 0x38(sp) | v1 = *(var_38h);
| if (v0 == 0) {
0x0002d43c bnez v0, 0x2d44c |
0x0002d440 lw v0, 0x18(fp) | v0 = *(var_18h_2);
| if (s5 == v0) {
0x0002d444 beql s5, v0, 0x2d688 | goto label_15;
| }
0x0002d448 lw v0, (fp) | v0 = *(fp);
| }
0x0002d44c lw v1, 4(v1) | v1 = *((v1 + 1));
0x0002d450 lw fp, (v1) | fp = *(v1);
0x0002d454 bnel v1, zero, 0x2d420 |
| } while (v1 == 0);
| label_8:
0x0002d458 lw t9, -0x7854(gp) | t9 = sym.imp.g_strlcpy;
| label_5:
0x0002d45c addiu fp, sp, 0x864 | fp = sp + 0x864;
0x0002d460 addiu a2, zero, 0x3ff | a2 = 0x3ff;
0x0002d464 move a1, s3 | a1 = s3;
0x0002d468 move a0, fp | a0 = fp;
0x0002d46c sw fp, 0x40(sp) | *(var_40h_2) = fp;
0x0002d470 jalr t9 | t9 ();
0x0002d474 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d478 addiu a1, zero, 0x3ff | a1 = 0x3ff;
0x0002d47c move a0, fp | a0 = fp;
0x0002d480 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d484 lw t9, -0x78f8(gp) | t9 = sym.imp.g_strstr_len;
| /* esilref: '(' */
0x0002d488 addiu a2, a2, 0x75c8 | a2 += 0x75c8;
0x0002d48c jalr t9 | t9 ();
0x0002d490 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d494 beqz v0, 0x2d790 | goto label_16;
| }
0x0002d498 sb zero, (v0) | *(v0) = 0;
0x0002d49c addiu v0, sp, 0x5c | v0 = sp + 0x5c;
0x0002d4a0 sw v0, 0x48(sp) | *(var_48h_2) = v0;
0x0002d4a4 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x0002d4a8 sw zero, 0x38(sp) | *(var_38h) = 0;
| /* str._s_property__d.xml */
0x0002d4ac addiu v0, v0, 0x71d0 | v0 += 0x71d0;
0x0002d4b0 sw zero, 0x50(sp) | *(var_50h_2) = 0;
0x0002d4b4 addiu fp, sp, 0x464 | fp = sp + 0x464;
0x0002d4b8 sw v0, 0x44(sp) | *(var_44h_2) = v0;
0x0002d4bc b 0x2d4cc |
| while (v0 == 0) {
| label_2:
0x0002d4c0 lw v0, 0x38(sp) | v0 = *(var_38h);
0x0002d4c4 addiu v0, v0, 1 | v0++;
0x0002d4c8 sw v0, 0x38(sp) | *(var_38h) = v0;
0x0002d4cc lw v0, 0x38(sp) | v0 = *(var_38h);
0x0002d4d0 lw t9, -0x7a04(gp) | t9 = sym.imp.g_snprintf
0x0002d4d4 lw a3, 0x40(sp) | a3 = *(var_40h_2);
0x0002d4d8 lw a2, 0x44(sp) | a2 = *(var_44h_2);
0x0002d4dc addiu a1, zero, 0x3ff | a1 = 0x3ff;
0x0002d4e0 move a0, fp | a0 = fp;
0x0002d4e4 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x0002d4e8 jalr t9 | t9 ();
0x0002d4ec lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d4f0 addiu a1, zero, 0x10 | a1 = 0x10;
0x0002d4f4 lw t9, -0x793c(gp) | t9 = sym.imp.g_file_test;
0x0002d4f8 move a0, fp | a0 = fp;
0x0002d4fc jalr t9 | t9 ();
0x0002d500 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d504 beqz v0, 0x2d568 | goto label_17;
| }
0x0002d508 lw t9, -0x78fc(gp) | t9 = sym.imp.g_file_get_contents;
0x0002d50c lw a1, 0x48(sp) | a1 = *(var_48h_2);
0x0002d510 move a3, zero | a3 = 0;
0x0002d514 move a2, zero | a2 = 0;
0x0002d518 move a0, fp | a0 = fp;
0x0002d51c jalr t9 | t9 ();
0x0002d520 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d524 beqz v0, 0x2d4c0 |
| }
0x0002d528 lw t9, -0x792c(gp) | t9 = sym.imp.property_state_deserialize_xml;
0x0002d52c lw a0, 0x5c(sp) | a0 = *(var_5ch_2);
0x0002d530 jalr t9 | t9 ();
0x0002d534 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d538 beqz v0, 0x2d710 | goto label_18;
| }
0x0002d53c lw t9, -0x7800(gp) | t9 = sym.imp.g_list_append;
0x0002d540 lw a0, 0x50(sp) | a0 = *(var_50h_2);
0x0002d544 move a1, v0 | a1 = v0;
0x0002d548 jalr t9 | t9 ();
0x0002d54c lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d550 lw a0, 0x5c(sp) | a0 = *(var_5ch_2);
0x0002d554 lw t9, -0x7930(gp) | t9 = *((gp - 7756));
0x0002d558 sw v0, 0x50(sp) | *(var_50h_2) = v0;
0x0002d55c jalr t9 | t9 ();
0x0002d560 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d564 b 0x2d4c0 | goto label_2;
| label_17:
0x0002d568 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x0002d56c lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d570 lw t9, -0x7a04(gp) | t9 = sym.imp.g_snprintf
0x0002d574 addiu fp, sp, 0x64 | fp = sp + 0x64;
0x0002d578 lw a3, 0x40(sp) | a3 = *(var_40h_2);
| /* str._event.xml */
0x0002d57c addiu v0, v0, 0x721c | v0 += 0x721c;
| /* str._s_s */
0x0002d580 addiu a2, a2, 0x35c4 | a2 += 0x35c4;
0x0002d584 addiu a1, zero, 0x3ff | a1 = 0x3ff;
0x0002d588 move a0, fp | a0 = fp;
0x0002d58c sw fp, 0x38(sp) | *(var_38h) = fp;
0x0002d590 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x0002d594 jalr t9 | t9 ();
0x0002d598 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d59c lw a1, 0x48(sp) | a1 = *(var_48h_2);
0x0002d5a0 move a3, zero | a3 = 0;
0x0002d5a4 lw t9, -0x78fc(gp) | t9 = sym.imp.g_file_get_contents;
0x0002d5a8 move a2, zero | a2 = 0;
0x0002d5ac move a0, fp | a0 = fp;
0x0002d5b0 jalr t9 | t9 ();
0x0002d5b4 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d5b8 beqz v0, 0x2d708 | goto label_19;
| }
0x0002d5bc lw t9, -0x7988(gp) | t9 = sym.imp.subscribe_expression_deserialize_xml;
0x0002d5c0 lw a0, 0x5c(sp) | a0 = *(var_5ch_2);
0x0002d5c4 jalr t9 | t9 ();
0x0002d5c8 move fp, v0 | fp = v0;
0x0002d5cc lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d5d0 beqz v0, 0x2d824 | goto label_20;
| }
| label_6:
0x0002d5d4 lw v0, 0x54(sp) | v0 = *(var_54h_2);
0x0002d5d8 lw t9, -0x783c(gp) | t9 = sym.imp.ae_add_action_rule;
0x0002d5dc sw v0, 0x1c(sp) | *(var_1ch) = v0;
0x0002d5e0 lw v0, 0x4c(sp) | v0 = *(var_4ch_2);
0x0002d5e4 sw s1, 0x2c(sp) | *(var_2ch) = s1;
0x0002d5e8 sw v0, 0x18(sp) | *(var_18h_2) = v0;
0x0002d5ec lw v0, 0x3c(sp) | v0 = *(var_3ch_2);
0x0002d5f0 sw s6, 0x28(sp) | *(var_28h_2) = s6;
0x0002d5f4 sw v0, 0x14(sp) | *(var_14h_2) = v0;
0x0002d5f8 lw v0, 0x50(sp) | v0 = *(var_50h_2);
0x0002d5fc sw zero, 0x24(sp) | *(var_24h_2) = 0;
0x0002d600 sw s5, 0x20(sp) | *(var_20h) = s5;
0x0002d604 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x0002d608 move a3, fp | a3 = fp;
0x0002d60c move a2, s7 | a2 = s7;
0x0002d610 move a1, s4 | a1 = s4;
0x0002d614 addiu a0, zero, 1 | a0 = 1;
0x0002d618 jalr t9 | t9 ();
0x0002d61c lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d620 beqz v0, 0x2d744 | goto label_21;
| }
0x0002d624 addiu s1, zero, 1 | s1 = 1;
| label_7:
0x0002d628 lw t9, -0x7930(gp) | t9 = *((gp - 7756));
0x0002d62c lw a0, 0x5c(sp) | a0 = *(var_5ch_2);
0x0002d630 jalr t9 | t9 ();
0x0002d634 lw v0, 0x50(sp) | v0 = *(var_50h_2);
0x0002d638 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d63c beqz v0, 0x2d66c | goto label_22;
| }
0x0002d640 move s3, v0 | s3 = v0;
| do {
0x0002d644 lw t9, -0x79fc(gp) | t9 = sym.imp.property_state_free;
0x0002d648 lw a0, (s3) | a0 = *(s3);
0x0002d64c jalr t9 | t9 ();
0x0002d650 lw s3, 4(s3) | s3 = *((s3 + 1));
0x0002d654 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d658 bnez s3, 0x2d644 |
| } while (s3 != 0);
0x0002d65c lw t9, -0x7830(gp) | t9 = sym.imp.g_list_free;
0x0002d660 lw a0, 0x50(sp) | a0 = *(var_50h_2);
0x0002d664 jalr t9 | t9 ();
0x0002d668 lw gp, 0x30(sp) | gp = *(var_30h);
| label_22:
0x0002d66c move a0, fp | a0 = fp;
| if (fp == 0) {
0x0002d670 beqz fp, 0x2d26c | goto label_3;
| }
0x0002d674 lw t9, -0x7a18(gp) | t9 = sym.imp.subscribe_expression_free;
0x0002d678 jalr t9 | t9 ();
0x0002d67c nop |
0x0002d680 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d684 b 0x2d26c | goto label_3;
| label_15:
0x0002d688 addiu s1, zero, 1 | s1 = 1;
0x0002d68c sw v0, (s6) | *(s6) = v0;
0x0002d690 b 0x2d26c | goto label_3;
| label_13:
0x0002d694 lw v0, 0x58(sp) | v0 = *(var_58h_2);
0x0002d698 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d69c lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d6a0 lw v0, 8(v0) | v0 = *((v0 + 2));
0x0002d6a4 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d6a8 addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_read_nice_name:__s */
0x0002d6ac addiu a2, a2, 0x6ef8 | a2 += 0x6ef8;
0x0002d6b0 addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x0002d6b4 move a0, zero | a0 = 0;
0x0002d6b8 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x0002d6bc jalr t9 | t9 ();
0x0002d6c0 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d6c4 lw a0, 0x58(sp) | a0 = *(var_58h_2);
0x0002d6c8 lw t9, -0x7794(gp) | t9 = sym.imp.g_error_free;
0x0002d6cc move s1, zero | s1 = 0;
0x0002d6d0 jalr t9 | t9 ();
0x0002d6d4 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d6d8 b 0x2d26c | goto label_3;
| label_14:
0x0002d6dc addiu a2, sp, 0x60 | a2 = sp + 0x60;
0x0002d6e0 addiu a1, fp, -0x21ac | a1 = fp + -0x21ac;
0x0002d6e4 addiu a0, zero, 1 | a0 = 1;
0x0002d6e8 jalr t9 | t9 ();
0x0002d6ec lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x0002d6f0 beqz v0, 0x2d7d4 | goto label_23;
| }
0x0002d6f4 lw v1, -0x21ac(fp) | v1 = *(var_21ach);
0x0002d6f8 lw fp, (v1) | fp = *(v1);
| if (v1 == 0) {
0x0002d6fc bnel v1, zero, 0x2d420 | goto label_4;
| }
0x0002d700 lw t9, -0x7854(gp) | t9 = sym.imp.g_strlcpy;
0x0002d704 b 0x2d45c | goto label_5;
| label_19:
0x0002d708 move fp, zero | fp = 0;
0x0002d70c b 0x2d5d4 | goto label_6;
| label_18:
0x0002d710 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d714 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d718 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d71c sw fp, 0x10(sp) | *(var_10h_2) = fp;
0x0002d720 addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_deserialize_property_state_file:__s */
0x0002d724 addiu a2, a2, 0x71e4 | a2 += 0x71e4;
0x0002d728 addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x0002d72c move a0, zero | a0 = 0;
0x0002d730 jalr t9 | t9 ();
0x0002d734 move fp, zero | fp = 0;
0x0002d738 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d73c move s1, zero | s1 = 0;
0x0002d740 b 0x2d628 | goto label_7;
| label_21:
0x0002d744 lw v0, 0x58(sp) | v0 = *(var_58h_2);
0x0002d748 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d74c lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d750 lw v0, 8(v0) | v0 = *((v0 + 2));
0x0002d754 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d758 addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_add_action_rule:__s:__s */
0x0002d75c addiu a2, a2, 0x7264 | a2 += 0x7264;
0x0002d760 addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x0002d764 move a0, zero | a0 = 0;
0x0002d768 sw v0, 0x14(sp) | *(var_14h_2) = v0;
0x0002d76c sw s3, 0x10(sp) | *(var_10h_2) = s3;
0x0002d770 jalr t9 | t9 ();
0x0002d774 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d778 lw a0, 0x58(sp) | a0 = *(var_58h_2);
0x0002d77c lw t9, -0x7794(gp) | t9 = sym.imp.g_error_free;
0x0002d780 move s1, zero | s1 = 0;
0x0002d784 jalr t9 | t9 ();
0x0002d788 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d78c b 0x2d628 | goto label_7;
| label_16:
0x0002d790 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d794 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d798 lw v0, 0x40(sp) | v0 = *(var_40h_2);
0x0002d79c lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d7a0 addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Rule_file_did_not_contain_a__._:__s */
0x0002d7a4 addiu a2, a2, 0x71a0 | a2 += 0x71a0;
0x0002d7a8 addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x0002d7ac move a0, zero | a0 = 0;
0x0002d7b0 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x0002d7b4 jalr t9 | t9 ();
0x0002d7b8 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d7bc lw a0, 0x5c(sp) | a0 = *(var_5ch_2);
0x0002d7c0 lw t9, -0x7930(gp) | t9 = *((gp - 7756));
0x0002d7c4 move s1, zero | s1 = 0;
0x0002d7c8 jalr t9 | t9 ();
0x0002d7cc lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d7d0 b 0x2d26c | goto label_3;
| label_23:
0x0002d7d4 lw v0, 0x60(sp) | v0 = *(var_60h_2);
0x0002d7d8 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d7dc lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d7e0 lw v0, 8(v0) | v0 = *((v0 + 2));
0x0002d7e4 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d7e8 addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_read_existing_rules_from_action_engine:__s */
0x0002d7ec addiu a2, a2, 0x7160 | a2 += 0x7160;
0x0002d7f0 addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x0002d7f4 move a0, zero | a0 = 0;
0x0002d7f8 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x0002d7fc jalr t9 | t9 ();
0x0002d800 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d804 lw t9, -0x7794(gp) | t9 = sym.imp.g_error_free;
0x0002d808 lw a0, 0x60(sp) | a0 = *(var_60h_2);
0x0002d80c jalr t9 | t9 ();
0x0002d810 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d814 b 0x2d458 | goto label_8;
| label_11:
0x0002d818 lw t9, -0x790c(gp) | t9 = sym.imp.__stack_chk_fail;
0x0002d81c jalr t9 | t9 ();
0x0002d820 nop |
| label_20:
0x0002d824 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002d828 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002d82c lw v0, 0x38(sp) | v0 = *(var_38h);
0x0002d830 lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002d834 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x0002d838 addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_deserialize_subscribe_expression:__s */
0x0002d83c addiu a2, a2, 0x7228 | a2 += 0x7228;
0x0002d840 addiu a1, zero, 0x40 | a1 = 0x40;
0x0002d844 move a0, zero | a0 = 0;
0x0002d848 jalr t9 | t9 ();
0x0002d84c move s1, zero | s1 = 0;
0x0002d850 lw gp, 0x30(sp) | gp = *(var_30h);
0x0002d854 b 0x2d628 | goto label_7;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/snmpd @ 0x2df58 */
| #include <stdint.h>
|
; (fcn) sym.snmp_action_handler_add_actions () | void snmp_action_handler_add_actions () {
0x0002df58 lui gp, 2 |
0x0002df5c addiu gp, gp, 0x3638 |
0x0002df60 addu gp, gp, t9 | gp += t9;
0x0002df64 addiu sp, sp, -0x868 |
0x0002df68 lw t9, -0x7954(gp) | t9 = sym.imp.g_dir_open;
0x0002df6c sw fp, 0x860(sp) | *(var_860h) = fp;
0x0002df70 lw fp, -0x77a4(gp) | fp = *((gp - 7657));
0x0002df74 sw s3, 0x84c(sp) | *(var_84ch) = s3;
0x0002df78 lw s3, -0x7fdc(gp) | s3 = *(gp);
0x0002df7c lw v0, (fp) | v0 = *(fp);
0x0002df80 sw gp, 0x20(sp) | *(var_20h) = gp;
0x0002df84 sw ra, 0x864(sp) | *(var_864h) = ra;
0x0002df88 sw s7, 0x85c(sp) | *(var_85ch) = s7;
0x0002df8c sw s6, 0x858(sp) | *(var_858h) = s6;
0x0002df90 sw s5, 0x854(sp) | *(var_854h) = s5;
0x0002df94 sw s4, 0x850(sp) | *(var_850h) = s4;
0x0002df98 sw s2, 0x848(sp) | *(var_848h) = s2;
0x0002df9c sw s1, 0x844(sp) | *(var_844h) = s1;
0x0002dfa0 sw s0, 0x840(sp) | *(var_840h) = s0;
0x0002dfa4 addiu a2, sp, 0x30 | a2 = sp + 0x30;
0x0002dfa8 move a1, zero | a1 = 0;
| /* str._usr_share_snmp_actionhandling_configurations */
0x0002dfac addiu a0, s3, 0x72e0 | a0 = s3 + 0x72e0;
0x0002dfb0 sw v0, 0x83c(sp) | *(var_83ch) = v0;
0x0002dfb4 sw zero, 0x30(sp) | *(var_30h) = 0;
0x0002dfb8 jalr t9 | t9 ();
0x0002dfbc nop |
0x0002dfc0 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0002dfc4 beqz v0, 0x2e25c | goto label_6;
| }
0x0002dfc8 lw s0, -0x7fd8(gp) | s0 = *((gp - 8182));
0x0002dfcc move s2, v0 | s2 = v0;
0x0002dfd0 lw v0, -0x6a90(s0) | v0 = *((s0 - 6820));
0x0002dfd4 lw v0, -0x7fdc(gp) | v0 = *(gp);
| if (v0 != 0) {
0x0002dfd8 bnez v0, 0x2e1dc | goto label_7;
| }
| label_4:
0x0002dfdc lw v0, -0x7fdc(gp) | v0 = *(gp);
0x0002dfe0 lw s6, -0x7fdc(gp) | s6 = *(gp);
0x0002dfe4 lw s7, -0x7fdc(gp) | s7 = *(gp);
| /* fcn.0002cc24 */
0x0002dfe8 addiu v0, v0, -0x33dc | v0 += -0x33dc;
0x0002dfec lw s4, -0x7fdc(gp) | s4 = *(gp);
0x0002dff0 lw s5, -0x7fdc(gp) | s5 = *(gp);
| /* fcn.0002d858 */
0x0002dff4 addiu s6, s6, -0x27a8 | s6 += -0x27a8;
| /* fcn.0002d9e4 */
0x0002dff8 addiu s7, s7, -0x261c | s7 += -0x261c;
0x0002dffc sw v0, 0x28(sp) | *(var_28h) = v0;
| do {
| label_2:
0x0002e000 lw t9, -0x7994(gp) | t9 = sym.imp.g_dir_read_name;
0x0002e004 move a0, s2 | a0 = s2;
0x0002e008 jalr t9 | t9 ();
0x0002e00c move s0, v0 | s0 = v0;
0x0002e010 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0002e014 beqz v0, 0x2e0a4 | goto label_8;
| }
| label_0:
0x0002e018 lw t9, -0x7a04(gp) | t9 = sym.imp.g_snprintf
0x0002e01c addiu s1, sp, 0x3c | s1 = sp + 0x3c;
| /* str._usr_share_snmp_actionhandling_configurations */
0x0002e020 addiu a3, s3, 0x72e0 | a3 = s3 + 0x72e0;
| /* str._s__s */
0x0002e024 addiu a2, s4, 0x7310 | a2 = s4 + 0x7310;
0x0002e028 addiu a1, zero, 0x3ff | a1 = 0x3ff;
0x0002e02c move a0, s1 | a0 = s1;
0x0002e030 sw s0, 0x10(sp) | *(var_10h) = s0;
0x0002e034 jalr t9 | t9 ();
0x0002e038 lw gp, 0x20(sp) | gp = *(var_20h);
| /* str..conf */
0x0002e03c addiu a1, s5, 0x73c8 | a1 = s5 + 0x73c8;
0x0002e040 lw t9, -0x7a24(gp) | t9 = sym.imp.g_str_has_suffix;
0x0002e044 move a0, s0 | a0 = s0;
0x0002e048 jalr t9 | t9 ();
0x0002e04c lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e050 beqz v0, 0x2e000 |
| } while (v0 == 0);
0x0002e054 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x0002e058 lw v0, -0x21c0(v0) | v0 = *((v0 - 2160));
0x0002e05c move t9, s7 | t9 = s7;
| if (v0 != 0) {
0x0002e060 beqz v0, 0x2e074 |
0x0002e064 bal 0x2d9e4 | fcn_0002d9e4 ();
0x0002e068 nop |
0x0002e06c lw t9, 0x28(sp) | t9 = *(var_28h);
| if (v0 != 0) {
0x0002e070 bnez v0, 0x2e144 | goto label_9;
| }
| }
| label_1:
0x0002e074 move a0, s0 | a0 = s0;
0x0002e078 move a2, zero | a2 = 0;
0x0002e07c move t9, s6 | t9 = s6;
0x0002e080 move a1, zero | a1 = 0;
0x0002e084 bal 0x2d858 | fcn_0002d858 ();
0x0002e088 lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e08c lw t9, -0x7994(gp) | t9 = sym.imp.g_dir_read_name;
0x0002e090 move a0, s2 | a0 = s2;
0x0002e094 jalr t9 | t9 ();
0x0002e098 move s0, v0 | s0 = v0;
0x0002e09c lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x0002e0a0 bnez v0, 0x2e018 | goto label_0;
| }
| label_8:
0x0002e0a4 lw s0, -0x7fd8(gp) | s0 = *((gp - 8182));
0x0002e0a8 lw a0, -0x21a8(s0) | a0 = *((s0 - 2154));
0x0002e0ac lw t9, -0x798c(gp) | t9 = sym.imp.ae_action_configuration_list_free;
| if (a0 != 0) {
0x0002e0b0 beqz a0, 0x2e0c4 |
0x0002e0b4 jalr t9 | t9 ();
0x0002e0b8 nop |
0x0002e0bc lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e0c0 sw zero, -0x21a8(s0) | *((s0 - 2154)) = 0;
| }
0x0002e0c4 lw s0, -0x7fd8(gp) | s0 = *((gp - 8182));
0x0002e0c8 lw a0, -0x21ac(s0) | a0 = *((s0 - 2155));
0x0002e0cc lw t9, -0x77e8(gp) | t9 = sym.imp.ae_rules_list_free;
| if (a0 != 0) {
0x0002e0d0 beqz a0, 0x2e0e4 |
0x0002e0d4 jalr t9 | t9 ();
0x0002e0d8 nop |
0x0002e0dc lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e0e0 sw zero, -0x21ac(s0) | *((s0 - 2155)) = 0;
| }
0x0002e0e4 lw t9, -0x7894(gp) | t9 = sym.imp.g_dir_close;
0x0002e0e8 move a0, s2 | a0 = s2;
0x0002e0ec jalr t9 | t9 ();
0x0002e0f0 lw gp, 0x20(sp) | gp = *(var_20h);
| label_5:
0x0002e0f4 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x0002e0f8 lw v0, -0x21bc(v0) | v0 = *((v0 - 2159));
0x0002e0fc lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| if (v0 == 0) {
0x0002e100 beqz v0, 0x2e1d0 | goto label_10;
| }
0x0002e104 move v0, zero | v0 = 0;
| label_3:
0x0002e108 lw a0, 0x83c(sp) | a0 = *(var_83ch);
0x0002e10c lw v1, (fp) | v1 = *(fp);
0x0002e110 lw ra, 0x864(sp) | ra = *(var_864h);
| if (a0 != v1) {
0x0002e114 bne a0, v1, 0x2e2a0 | goto label_11;
| }
0x0002e118 lw fp, 0x860(sp) | fp = *(var_860h);
0x0002e11c lw s7, 0x85c(sp) | s7 = *(var_85ch);
0x0002e120 lw s6, 0x858(sp) | s6 = *(var_858h);
0x0002e124 lw s5, 0x854(sp) | s5 = *(var_854h);
0x0002e128 lw s4, 0x850(sp) | s4 = *(var_850h);
0x0002e12c lw s3, 0x84c(sp) | s3 = *(var_84ch);
0x0002e130 lw s2, 0x848(sp) | s2 = *(var_848h);
0x0002e134 lw s1, 0x844(sp) | s1 = *(var_844h);
0x0002e138 lw s0, 0x840(sp) | s0 = *(var_840h);
0x0002e13c addiu sp, sp, 0x868 |
0x0002e140 jr ra | return v0;
| label_9:
0x0002e144 addiu a1, sp, 0x34 | a1 = sp + 0x34;
0x0002e148 move a0, s1 | a0 = s1;
0x0002e14c jalr t9 | t9 ();
0x0002e150 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0002e154 beqz v0, 0x2e074 | goto label_1;
| }
0x0002e158 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x0002e15c lw a0, 0x34(sp) | a0 = *(var_34h_2);
| /* fcn.0002da48 */
0x0002e160 addiu t9, v0, -0x25b8 | t9 = v0 + -0x25b8;
0x0002e164 move a1, zero | a1 = 0;
0x0002e168 sw t9, 0x2c(sp) | *(var_2ch_2) = t9;
0x0002e16c bal 0x2da48 | fcn_0002da48 ();
0x0002e170 lw gp, 0x20(sp) | gp = *(var_20h);
| /* str._s__s */
0x0002e174 addiu a2, s4, 0x7310 | a2 = s4 + 0x7310;
0x0002e178 addiu a1, zero, 0x3ff | a1 = 0x3ff;
0x0002e17c lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002e180 lw t9, -0x7a04(gp) | t9 = sym.imp.g_snprintf
| /* str._usr_share_snmp_actionhandling_rules */
0x0002e184 addiu a3, a3, 0x7318 | a3 += 0x7318;
0x0002e188 move a0, s1 | a0 = s1;
0x0002e18c sw s0, 0x10(sp) | *(var_10h) = s0;
0x0002e190 jalr t9 | t9 ();
0x0002e194 lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e198 lw a1, 0x34(sp) | a1 = *(var_34h_2);
0x0002e19c addiu a2, sp, 0x38 | a2 = sp + 0x38;
0x0002e1a0 lw t9, -0x7fdc(gp) | t9 = *(gp);
| /* fcn.0002d168 */
0x0002e1a4 addiu t9, t9, -0x2e98 | t9 += -0x2e98;
0x0002e1a8 move a0, s1 | a0 = s1;
0x0002e1ac bal 0x2d168 | fcn_0002d168 ();
0x0002e1b0 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x0002e1b4 beqz v0, 0x2e218 |
0x0002e1b8 lw a0, 0x38(sp) | a0 = *(var_38h_2);
0x0002e1bc lw t9, 0x2c(sp) | t9 = *(var_2ch_2);
0x0002e1c0 addiu a1, zero, 1 | a1 = 1;
0x0002e1c4 jalr t9 | t9 ();
0x0002e1c8 lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e1cc b 0x2e000 | goto label_2;
| label_10:
0x0002e1d0 lw v0, -0x21b8(v0) | v0 = *((v0 - 2158));
0x0002e1d4 sltiu v0, v0, 1 | v0 = (v0 < 1) ? 1 : 0;
0x0002e1d8 b 0x2e108 | goto label_3;
| label_7:
0x0002e1dc lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002e1e0 lw a1, -0x7fdc(gp) | a1 = *(gp);
0x0002e1e4 lw t9, -0x78bc(gp) | t9 = sym.imp.g_bus_watch_name;
0x0002e1e8 addiu v0, v0, -0x3460 | v0 += -0x3460;
0x0002e1ec sw zero, 0x18(sp) | *(var_18h_2) = 0;
0x0002e1f0 sw zero, 0x14(sp) | *(var_14h) = 0;
0x0002e1f4 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0002e1f8 addiu a3, a3, -0x20c8 | a3 += -0x20c8;
0x0002e1fc move a2, zero | a2 = 0;
| /* str.com.axis.Event.ActionEngine.System */
0x0002e200 addiu a1, a1, 0x73a4 | a1 += 0x73a4;
0x0002e204 addiu a0, zero, 1 | a0 = 1;
0x0002e208 jalr t9 | t9 ();
0x0002e20c lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e210 sw zero, -0x6a90(s0) | *((s0 - 6820)) = 0;
0x0002e214 b 0x2dfdc | goto label_4;
| }
0x0002e218 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002e21c lw v0, 0x34(sp) | v0 = *(var_34h_2);
0x0002e220 lw t9, -0x7a04(gp) | t9 = sym.imp.g_snprintf
0x0002e224 move a3, s0 | a3 = s0;
0x0002e228 addiu s0, sp, 0x43c | s0 = sp + 0x43c;
| /* str._s:_d */
0x0002e22c addiu a2, a2, 0x7340 | a2 += 0x7340;
0x0002e230 addiu a1, zero, 0x3ff | a1 = 0x3ff;
0x0002e234 move a0, s0 | a0 = s0;
0x0002e238 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0002e23c jalr t9 | t9 ();
0x0002e240 move a2, zero | a2 = 0;
0x0002e244 addiu a1, zero, 1 | a1 = 1;
0x0002e248 move t9, s6 | t9 = s6;
0x0002e24c move a0, s0 | a0 = s0;
0x0002e250 bal 0x2d858 | fcn_0002d858 ();
0x0002e254 lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e258 b 0x2e000 | goto label_2;
| label_6:
0x0002e25c lw v0, 0x30(sp) | v0 = *(var_30h);
0x0002e260 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0002e264 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0002e268 lw v0, 8(v0) | v0 = *((v0 + 2));
0x0002e26c lw t9, -0x77ec(gp) | t9 = sym.imp.g_log;
0x0002e270 addiu a3, a3, 0x448c | a3 += 0x448c;
| /* str._sFailed:_Could_not_open_dir:__s */
0x0002e274 addiu a2, a2, 0x7380 | a2 += 0x7380;
0x0002e278 addiu a1, zero, 0x100 | a1 = aav.0x00000100;
0x0002e27c move a0, zero | a0 = 0;
0x0002e280 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0002e284 jalr t9 | t9 ();
0x0002e288 lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e28c lw t9, -0x7794(gp) | t9 = sym.imp.g_error_free;
0x0002e290 lw a0, 0x30(sp) | a0 = *(var_30h);
0x0002e294 jalr t9 | t9 ();
0x0002e298 lw gp, 0x20(sp) | gp = *(var_20h);
0x0002e29c b 0x2e0f4 | goto label_5;
| label_11:
0x0002e2a0 lw t9, -0x790c(gp) | t9 = sym.imp.__stack_chk_fail;
0x0002e2a4 jalr t9 | t9 ();
0x0002e2a8 nop |
| }
[*] Function printf used 6 times snmpd