[*] Binary protection state of wsdd
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of wsdd
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/wsdd @ 0xc798 */
| #include <stdint.h>
|
; (fcn) sym.common_init () | void common_init () {
0x0000c798 lui gp, 3 |
0x0000c79c addiu gp, gp, 0x4948 |
0x0000c7a0 addu gp, gp, t9 | gp += t9;
0x0000c7a4 addiu sp, sp, -0xa0 |
0x0000c7a8 lw a1, -0x7fdc(gp) | a1 = *(gp);
0x0000c7ac sw s1, 0x8c(sp) | *(var_8ch) = s1;
0x0000c7b0 lw s1, -0x774c(gp) | s1 = *((gp - 7635));
0x0000c7b4 sw s2, 0x90(sp) | *(var_90h) = s2;
0x0000c7b8 lw s2, -0x7fdc(gp) | s2 = *(gp);
0x0000c7bc lw v0, (s1) | v0 = *(s1);
0x0000c7c0 lw t9, -0x7740(gp) | t9 = sym.imp.fopen;
0x0000c7c4 sw gp, 0x58(sp) | *(var_58h) = gp;
0x0000c7c8 sw ra, 0x9c(sp) | *(var_9ch) = ra;
0x0000c7cc sw s4, 0x98(sp) | *(var_98h) = s4;
0x0000c7d0 sw s3, 0x94(sp) | *(var_94h) = s3;
0x0000c7d4 sw s0, 0x88(sp) | *(var_88h) = s0;
0x0000c7d8 addiu a1, a1, 0x7a78 | a1 += 0x7a78;
| /* str._etc_ws_onvif_discovery_wsdd.uuid */
0x0000c7dc addiu a0, s2, 0x6e1c | a0 = s2 + 0x6e1c;
0x0000c7e0 sw v0, 0x84(sp) | *(var_84h) = v0;
0x0000c7e4 jalr t9 | t9 ();
0x0000c7e8 nop |
0x0000c7ec lw gp, 0x58(sp) | gp = *(var_58h);
| if (v0 == 0) {
0x0000c7f0 beqz v0, 0xc878 | goto label_5;
| }
0x0000c7f4 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x0000c7f8 lw a1, -0x7fdc(gp) | a1 = *(gp);
0x0000c7fc lw t9, -0x790c(gp) | t9 = sym.imp.fscanf;
0x0000c800 addiu a2, a2, -0x6570 | a2 += -aav.0x00006570;
| /* esilref: '&s' */
0x0000c804 addiu a1, a1, 0x6f7c | a1 += 0x6f7c;
0x0000c808 move a0, v0 | a0 = v0;
0x0000c80c move s0, v0 | s0 = v0;
0x0000c810 jalr t9 | t9 ();
0x0000c814 lw gp, 0x58(sp) | gp = *(var_58h);
| if (v0 == 0) {
0x0000c818 beqz v0, 0xcc64 | goto label_6;
| }
0x0000c81c lw t9, -0x787c(gp) | t9 = sym.imp.fclose;
0x0000c820 move a0, s0 | a0 = s0;
0x0000c824 jalr t9 | t9 ();
0x0000c828 lw gp, 0x58(sp) | gp = *(var_58h);
| do {
| label_1:
0x0000c82c lw t9, -0x7850(gp) | t9 = sym.imp.time;
0x0000c830 move a0, zero | a0 = 0;
0x0000c834 jalr t9 | t9 ();
0x0000c838 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000c83c lw t9, -0x78d0(gp) | t9 = sym.imp.srand;
0x0000c840 move a0, v0 | a0 = v0;
0x0000c844 jalr t9 | t9 ();
0x0000c848 lw v1, 0x84(sp) | v1 = *(var_84h);
0x0000c84c lw v0, (s1) | v0 = *(s1);
0x0000c850 lw gp, 0x58(sp) | gp = *(var_58h);
| if (v1 != v0) {
0x0000c854 bne v1, v0, 0xcc58 | goto label_7;
| }
0x0000c858 lw ra, 0x9c(sp) | ra = *(var_9ch);
0x0000c85c lw s4, 0x98(sp) | s4 = *(var_98h);
0x0000c860 lw s3, 0x94(sp) | s3 = *(var_94h);
0x0000c864 lw s2, 0x90(sp) | s2 = *(var_90h);
0x0000c868 lw s1, 0x8c(sp) | s1 = *(var_8ch);
0x0000c86c lw s0, 0x88(sp) | s0 = *(var_88h);
0x0000c870 addiu sp, sp, 0xa0 |
0x0000c874 jr ra | return v0;
| label_5:
0x0000c878 lw s3, -0x7fdc(gp) | s3 = *(gp);
0x0000c87c lw a1, -0x7fdc(gp) | a1 = *(gp);
0x0000c880 lw t9, -0x7740(gp) | t9 = sym.imp.fopen;
0x0000c884 addiu a1, a1, 0x6e40 | a1 += 0x6e40;
| /* str._etc_ws_onvif_discovery_wsdd.uuid.tmp */
0x0000c888 addiu a0, s3, 0x6e44 | a0 = s3 + 0x6e44;
0x0000c88c jalr t9 | t9 ();
0x0000c890 move s0, v0 | s0 = v0;
0x0000c894 lw gp, 0x58(sp) | gp = *(var_58h);
| if (v0 == 0) {
0x0000c898 beqz v0, 0xccbc | goto label_8;
| }
0x0000c89c addiu v0, sp, 0x70 | v0 = sp + 0x70;
0x0000c8a0 lui a0, 0xdb1c | a0 = 0xdb1c0000;
0x0000c8a4 lui a1, 0xa358 | a1 = 0xa3580000;
0x0000c8a8 lui a2, 0xcf39 | a2 = 0xcf390000;
0x0000c8ac lui a3, 0xd01b | a3 = 0xd01b0000;
0x0000c8b0 lw t9, -0x76d8(gp) | t9 = sym.imp.sd_id128_get_machine_app_specific;
0x0000c8b4 move v1, zero | v1 = 0;
0x0000c8b8 ori a0, a0, 0xc849 | a0 |= 0xc849;
0x0000c8bc ori a1, a1, 0xbf7b | a1 |= 0xbf7b;
0x0000c8c0 addiu a2, a2, 0x7987 | a2 += 0x7987;
0x0000c8c4 ori a3, a3, 0x8618 | a3 |= 0x8618;
0x0000c8c8 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0000c8cc move v0, zero | v0 = 0;
0x0000c8d0 sw a0, 0x60(sp) | *(var_60h) = a0;
0x0000c8d4 sw a1, 0x64(sp) | *(var_64h) = a1;
0x0000c8d8 sw a2, 0x68(sp) | *(var_68h) = a2;
0x0000c8dc sw a3, 0x6c(sp) | *(var_6ch) = a3;
0x0000c8e0 sw v0, 0x70(sp) | *(var_70h) = v0;
0x0000c8e4 sw v1, 0x74(sp) | *(var_74h) = v1;
0x0000c8e8 sw v0, 0x78(sp) | *(var_78h) = v0;
0x0000c8ec sw v1, 0x7c(sp) | *(var_7ch) = v1;
0x0000c8f0 jalr t9 | t9 ();
0x0000c8f4 lw gp, 0x58(sp) | gp = *(var_58h);
| if (v0 != 0) {
0x0000c8f8 bnez v0, 0xcb78 | goto label_9;
| }
| label_3:
0x0000c8fc lbu v0, 0x70(sp) | v0 = *(var_70h);
0x0000c900 lbu ra, 0x7f(sp) | ra = *(var_7fh);
0x0000c904 sw v0, 0x18(sp) | *(var_18h) = v0;
0x0000c908 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x0000c90c lbu t8, 0x7e(sp) | t8 = *(var_7eh);
0x0000c910 lbu t7, 0x7d(sp) | t7 = *(var_7dh);
0x0000c914 lbu t6, 0x7c(sp) | t6 = *(var_7ch);
0x0000c918 lbu t5, 0x7b(sp) | t5 = *(var_7bh);
0x0000c91c lbu t4, 0x7a(sp) | t4 = *(var_7ah);
0x0000c920 lbu t3, 0x79(sp) | t3 = *(var_79h);
0x0000c924 lbu t2, 0x78(sp) | t2 = *(var_78h);
0x0000c928 lbu t1, 0x77(sp) | t1 = *(var_77h);
0x0000c92c lbu t0, 0x76(sp) | t0 = *(var_76h);
0x0000c930 lbu v1, 0x71(sp) | v1 = *(var_71h);
0x0000c934 lbu a3, 0x75(sp) | a3 = *(var_75h);
0x0000c938 lbu a2, 0x74(sp) | a2 = *(var_74h);
0x0000c93c lbu a1, 0x73(sp) | a1 = *(var_73h);
0x0000c940 lbu a0, 0x72(sp) | a0 = *(var_72h);
| /* str.urn:uuid: */
0x0000c944 addiu v0, v0, 0x6ea4 | v0 += 0x6ea4;
0x0000c948 sw ra, 0x54(sp) | *(var_54h) = ra;
0x0000c94c sw t8, 0x50(sp) | *(var_50h) = t8;
0x0000c950 sw t7, 0x4c(sp) | *(var_4ch) = t7;
0x0000c954 sw t6, 0x48(sp) | *(var_48h) = t6;
0x0000c958 sw t5, 0x44(sp) | *(var_44h) = t5;
0x0000c95c sw t4, 0x40(sp) | *(var_40h) = t4;
0x0000c960 sw t3, 0x3c(sp) | *(var_3ch) = t3;
0x0000c964 sw t2, 0x38(sp) | *(var_38h) = t2;
0x0000c968 sw t1, 0x34(sp) | *(var_34h) = t1;
0x0000c96c sw t0, 0x30(sp) | *(var_30h) = t0;
0x0000c970 sw v1, 0x1c(sp) | *(var_1ch) = v1;
0x0000c974 sw a3, 0x2c(sp) | *(var_2ch) = a3;
0x0000c978 sw a2, 0x28(sp) | *(var_28h) = a2;
0x0000c97c sw a1, 0x24(sp) | *(var_24h) = a1;
0x0000c980 sw a0, 0x20(sp) | *(var_20h) = a0;
0x0000c984 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000c988 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x0000c98c lw s4, -0x7fd0(gp) | s4 = *((gp - 8180));
0x0000c990 lw t9, -0x7804(gp) | t9 = sym.imp.__snprintf_chk;
| /* str._s_02x_02x_02x_02x__02x_02x__02x_02x__02x_02x__02x_02x_02x_02x_02x_02x */
0x0000c994 addiu v0, v0, 0x6eb0 | v0 += 0x6eb0;
0x0000c998 addiu a3, zero, 0x3c | a3 = 0x3c;
0x0000c99c addiu a2, zero, 1 | a2 = 1;
0x0000c9a0 addiu a1, zero, 0x3c | a1 = 0x3c;
0x0000c9a4 addiu a0, s4, -0x6570 | a0 = s4 + -aav.0x00006570;
0x0000c9a8 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0000c9ac jalr t9 | t9 ();
0x0000c9b0 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000c9b4 addiu a3, s4, -0x6570 | a3 = s4 + -aav.0x00006570;
0x0000c9b8 addiu a1, zero, 1 | a1 = 1;
0x0000c9bc lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000c9c0 lw t9, -0x7a50(gp) | t9 = sym.imp.__fprintf_chk
| /* esilref: '&s
' */
0x0000c9c4 addiu a2, a2, 0x71b8 | a2 += 0x71b8;
0x0000c9c8 move a0, s0 | a0 = s0;
0x0000c9cc jalr t9 | t9 ();
0x0000c9d0 lw gp, 0x58(sp) | gp = *(var_58h);
| if (v0 == 0) {
0x0000c9d4 beqz v0, 0xcb20 | goto label_10;
| }
| label_2:
0x0000c9d8 lw t9, -0x76f8(gp) | t9 = sym.imp.fileno;
0x0000c9dc move a0, s0 | a0 = s0;
0x0000c9e0 jalr t9 | t9 ();
0x0000c9e4 addiu s4, zero, -1 | s4 = -1;
0x0000c9e8 lw gp, 0x58(sp) | gp = *(var_58h);
| if (v0 == s4) {
0x0000c9ec beq v0, s4, 0xca7c | goto label_11;
| }
0x0000c9f0 lw t9, -0x786c(gp) | t9 = sym.imp.fsync;
0x0000c9f4 move a0, v0 | a0 = v0;
0x0000c9f8 jalr t9 | t9 ();
0x0000c9fc lw gp, 0x58(sp) | gp = *(var_58h);
| if (v0 == s4) {
0x0000ca00 beq v0, s4, 0xcbb4 | goto label_12;
| }
| label_0:
0x0000ca04 lw t9, -0x787c(gp) | t9 = sym.imp.fclose;
0x0000ca08 move a0, s0 | a0 = s0;
0x0000ca0c jalr t9 | t9 ();
0x0000ca10 lw gp, 0x58(sp) | gp = *(var_58h);
| /* str._etc_ws_onvif_discovery_wsdd.uuid */
0x0000ca14 addiu a1, s2, 0x6e1c | a1 = s2 + 0x6e1c;
0x0000ca18 lw t9, -0x78dc(gp) | t9 = sym.imp.rename;
| /* str._etc_ws_onvif_discovery_wsdd.uuid.tmp */
0x0000ca1c addiu a0, s3, 0x6e44 | a0 = s3 + 0x6e44;
0x0000ca20 jalr t9 | t9 ();
0x0000ca24 lw gp, 0x58(sp) | gp = *(var_58h);
| if (v0 != 0) {
0x0000ca28 bnez v0, 0xcd00 | goto label_13;
| }
0x0000ca2c lw s0, -0x7fdc(gp) | s0 = *(gp);
0x0000ca30 lw t9, -0x76d0(gp) | t9 = sym.imp.open;
0x0000ca34 move a2, zero | a2 = 0;
0x0000ca38 move a1, zero | a1 = 0;
| /* str._etc_ws_onvif_discovery */
0x0000ca3c addiu a0, s0, 0x6fac | a0 = s0 + 0x6fac;
0x0000ca40 jalr t9 | t9 ();
0x0000ca44 addiu s3, zero, -1 | s3 = -1;
0x0000ca48 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000ca4c move s2, v0 | s2 = v0;
| if (v0 == s3) {
0x0000ca50 beq v0, s3, 0xcad0 | goto label_14;
| }
0x0000ca54 lw t9, -0x786c(gp) | t9 = sym.imp.fsync;
0x0000ca58 move a0, v0 | a0 = v0;
0x0000ca5c jalr t9 | t9 ();
0x0000ca60 lw gp, 0x58(sp) | gp = *(var_58h);
| if (v0 == s3) {
0x0000ca64 beq v0, s3, 0xcc08 | goto label_15;
| }
| label_4:
0x0000ca68 lw t9, -0x7a84(gp) | t9 = sym.imp.close;
0x0000ca6c move a0, s2 | a0 = s2;
0x0000ca70 jalr t9 | t9 ();
0x0000ca74 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000ca78 b 0xc82c |
| } while (1);
| label_11:
0x0000ca7c lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000ca80 jalr t9 | t9 ();
0x0000ca84 nop |
0x0000ca88 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000ca8c lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000ca90 lw a0, (v0) | a0 = *(v0);
0x0000ca94 jalr t9 | t9 ();
0x0000ca98 lw gp, 0x58(sp) | gp = *(var_58h);
| /* str._etc_ws_onvif_discovery_wsdd.uuid */
0x0000ca9c addiu v1, s2, 0x6e1c | v1 = s2 + 0x6e1c;
0x0000caa0 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000caa4 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000caa8 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000caac lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000cab0 sw v1, 0x10(sp) | *(var_10h) = v1;
0x0000cab4 addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sFailed_to_get_file_descriptor_for__s:__s */
0x0000cab8 addiu a2, a2, 0x6f34 | a2 += 0x6f34;
0x0000cabc addiu a1, zero, 0x10 | a1 = 0x10;
0x0000cac0 move a0, zero | a0 = 0;
0x0000cac4 jalr t9 | t9 ();
0x0000cac8 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cacc b 0xca04 | goto label_0;
| label_14:
0x0000cad0 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
| /* str._etc_ws_onvif_discovery */
0x0000cad4 addiu s0, s0, 0x6fac | s0 += 0x6fac;
0x0000cad8 jalr t9 | t9 ();
0x0000cadc lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cae0 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000cae4 lw a0, (v0) | a0 = *(v0);
0x0000cae8 jalr t9 | t9 ();
0x0000caec lw gp, 0x58(sp) | gp = *(var_58h);
0x0000caf0 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000caf4 sw s0, 0x10(sp) | *(var_10h) = s0;
0x0000caf8 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000cafc lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000cb00 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000cb04 addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sFailed_to_open_directory__s:__s */
0x0000cb08 addiu a2, a2, 0x6fc4 | a2 += 0x6fc4;
0x0000cb0c addiu a1, zero, 0x10 | a1 = 0x10;
0x0000cb10 move a0, zero | a0 = 0;
0x0000cb14 jalr t9 | t9 ();
0x0000cb18 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cb1c b 0xc82c | goto label_1;
| label_10:
0x0000cb20 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000cb24 addiu s4, s4, -0x6570 | s4 += -aav.0x00006570;
0x0000cb28 jalr t9 | t9 ();
0x0000cb2c lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cb30 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000cb34 lw a0, (v0) | a0 = *(v0);
0x0000cb38 jalr t9 | t9 ();
0x0000cb3c lw gp, 0x58(sp) | gp = *(var_58h);
| /* str._etc_ws_onvif_discovery_wsdd.uuid.tmp */
0x0000cb40 addiu v1, s3, 0x6e44 | v1 = s3 + 0x6e44;
0x0000cb44 sw v0, 0x18(sp) | *(var_18h) = v0;
0x0000cb48 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000cb4c lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000cb50 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000cb54 sw v1, 0x14(sp) | *(var_14h) = v1;
0x0000cb58 sw s4, 0x10(sp) | *(var_10h) = s4;
0x0000cb5c addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sFailed_to_write_endpoint_reference__s_to_file__s:__s */
0x0000cb60 addiu a2, a2, 0x6ef8 | a2 += 0x6ef8;
0x0000cb64 addiu a1, zero, 0x10 | a1 = 0x10;
0x0000cb68 move a0, zero | a0 = 0;
0x0000cb6c jalr t9 | t9 ();
0x0000cb70 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cb74 b 0xc9d8 | goto label_2;
| label_9:
0x0000cb78 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000cb7c negu a0, v0 | __asm ("negu a0, v0");
0x0000cb80 jalr t9 | t9 ();
0x0000cb84 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cb88 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0000cb8c addiu a1, zero, 0x10 | a1 = 0x10;
0x0000cb90 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000cb94 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000cb98 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000cb9c addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sUnable_to_get_machine_id:__s */
0x0000cba0 addiu a2, a2, 0x6e84 | a2 += 0x6e84;
0x0000cba4 move a0, zero | a0 = 0;
0x0000cba8 jalr t9 | t9 ();
0x0000cbac lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cbb0 b 0xc8fc | goto label_3;
| label_12:
0x0000cbb4 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000cbb8 jalr t9 | t9 ();
0x0000cbbc nop |
0x0000cbc0 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cbc4 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000cbc8 lw a0, (v0) | a0 = *(v0);
0x0000cbcc jalr t9 | t9 ();
0x0000cbd0 lw gp, 0x58(sp) | gp = *(var_58h);
| /* str._etc_ws_onvif_discovery_wsdd.uuid */
0x0000cbd4 addiu v1, s2, 0x6e1c | v1 = s2 + 0x6e1c;
0x0000cbd8 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000cbdc lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000cbe0 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000cbe4 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000cbe8 sw v1, 0x10(sp) | *(var_10h) = v1;
0x0000cbec addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sFailed_to_fsync__s:__s */
0x0000cbf0 addiu a2, a2, 0x6f64 | a2 += 0x6f64;
0x0000cbf4 addiu a1, zero, 0x10 | a1 = 0x10;
0x0000cbf8 move a0, zero | a0 = 0;
0x0000cbfc jalr t9 | t9 ();
0x0000cc00 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cc04 b 0xca04 | goto label_0;
| label_15:
0x0000cc08 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
| /* str._etc_ws_onvif_discovery */
0x0000cc0c addiu s0, s0, 0x6fac | s0 += 0x6fac;
0x0000cc10 jalr t9 | t9 ();
0x0000cc14 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cc18 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000cc1c lw a0, (v0) | a0 = *(v0);
0x0000cc20 jalr t9 | t9 ();
0x0000cc24 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cc28 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000cc2c sw s0, 0x10(sp) | *(var_10h) = s0;
0x0000cc30 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000cc34 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000cc38 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000cc3c addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sFailed_to_fsync_directory__s:__s */
0x0000cc40 addiu a2, a2, 0x6fe8 | a2 += 0x6fe8;
0x0000cc44 addiu a1, zero, 0x10 | a1 = 0x10;
0x0000cc48 move a0, zero | a0 = 0;
0x0000cc4c jalr t9 | t9 ();
0x0000cc50 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cc54 b 0xca68 | goto label_4;
| label_7:
0x0000cc58 lw t9, -0x7934(gp) | t9 = sym.imp.__stack_chk_fail;
0x0000cc5c jalr t9 | t9 ();
0x0000cc60 nop |
| label_6:
0x0000cc64 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000cc68 addiu s2, s2, 0x6e1c | s2 += 0x6e1c;
0x0000cc6c jalr t9 | t9 ();
0x0000cc70 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cc74 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000cc78 lw a0, (v0) | a0 = *(v0);
0x0000cc7c jalr t9 | t9 ();
0x0000cc80 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cc84 move a0, zero | a0 = 0;
0x0000cc88 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000cc8c lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000cc90 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000cc94 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000cc98 sw s2, 0x10(sp) | *(var_10h) = s2;
0x0000cc9c addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sFailed_to_read__s:__s */
0x0000cca0 addiu a2, a2, 0x7010 | a2 += 0x7010;
| do {
0x0000cca4 addiu a1, zero, 8 | a1 = 8;
0x0000cca8 jalr t9 | t9 ();
0x0000ccac lw gp, 0x58(sp) | gp = *(var_58h);
0x0000ccb0 lw t9, -0x79d4(gp) | t9 = *(gp);
0x0000ccb4 addiu a0, zero, 1 | a0 = 1;
0x0000ccb8 jalr t9 | t9 ();
| label_8:
0x0000ccbc lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
| /* str._etc_ws_onvif_discovery_wsdd.uuid.tmp */
0x0000ccc0 addiu s3, s3, 0x6e44 | s3 += 0x6e44;
0x0000ccc4 jalr t9 | t9 ();
0x0000ccc8 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cccc lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000ccd0 lw a0, (v0) | a0 = *(v0);
0x0000ccd4 jalr t9 | t9 ();
0x0000ccd8 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000ccdc move a0, zero | a0 = 0;
0x0000cce0 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000cce4 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000cce8 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000ccec lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000ccf0 sw s3, 0x10(sp) | *(var_10h) = s3;
0x0000ccf4 addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sFailed_to_open__s:__s */
0x0000ccf8 addiu a2, a2, 0x6e6c | a2 += 0x6e6c;
0x0000ccfc b 0xcca4 |
| } while (1);
| label_13:
0x0000cd00 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
| /* str._etc_ws_onvif_discovery_wsdd.uuid */
0x0000cd04 addiu s2, s2, 0x6e1c | s2 += 0x6e1c;
0x0000cd08 jalr t9 | t9 ();
0x0000cd0c lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cd10 lw a0, (v0) | a0 = *(v0);
0x0000cd14 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
| /* str._etc_ws_onvif_discovery_wsdd.uuid.tmp */
0x0000cd18 addiu s3, s3, 0x6e44 | s3 += 0x6e44;
0x0000cd1c jalr t9 | t9 ();
0x0000cd20 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cd24 move a0, zero | a0 = 0;
0x0000cd28 sw v0, 0x18(sp) | *(var_18h) = v0;
0x0000cd2c lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000cd30 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000cd34 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000cd38 sw s2, 0x14(sp) | *(var_14h) = s2;
0x0000cd3c sw s3, 0x10(sp) | *(var_10h) = s3;
0x0000cd40 addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._s_Failed_to_rename_file__s_to__s:__s */
0x0000cd44 addiu a2, a2, 0x6f80 | a2 += 0x6f80;
0x0000cd48 addiu a1, zero, 8 | a1 = 8;
0x0000cd4c jalr t9 | t9 ();
0x0000cd50 lw gp, 0x58(sp) | gp = *(var_58h);
0x0000cd54 lw t9, -0x79d4(gp) | t9 = *(gp);
0x0000cd58 addiu a0, zero, 1 | a0 = 1;
0x0000cd5c jalr t9 | return t9 ();
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/wsdd @ 0xd3ec */
| #include <stdint.h>
|
; (fcn) sym.init_destroy () | void init_destroy () {
0x0000d3ec lui gp, 3 |
0x0000d3f0 addiu gp, gp, 0x3cf4 |
0x0000d3f4 addu gp, gp, t9 | gp += t9;
0x0000d3f8 addiu sp, sp, -0x20 |
0x0000d3fc lw t9, -0x77b4(gp) | t9 = sym.imp.g_main_loop_quit;
0x0000d400 sw s0, 0x18(sp) | *(var_18h) = s0;
0x0000d404 lw s0, -0x7fd0(gp) | s0 = *((gp - 8180));
0x0000d408 sw ra, 0x1c(sp) | *(var_1ch) = ra;
0x0000d40c sw gp, 0x10(sp) | *(var_10h) = gp;
0x0000d410 lw a0, -0x6530(s0) | a0 = *((s0 - 6476));
0x0000d414 jalr t9 | t9 ();
0x0000d418 lw gp, 0x10(sp) | gp = *(var_10h);
0x0000d41c lw t9, -0x7ae4(gp) | t9 = sym.imp.g_main_loop_unref;
0x0000d420 lw a0, -0x6530(s0) | a0 = *((s0 - 6476));
0x0000d424 jalr t9 | t9 ();
0x0000d428 lw ra, 0x1c(sp) | ra = *(var_1ch);
0x0000d42c sw zero, -0x6530(s0) | *((s0 - 6476)) = 0;
0x0000d430 lw s0, 0x18(sp) | s0 = *(var_18h);
0x0000d434 addiu sp, sp, 0x20 |
0x0000d438 jr ra | return;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/wsdd @ 0xd43c */
| #include <stdint.h>
|
; (fcn) sym.init_get_ttl () | void init_get_ttl () {
0x0000d43c lui gp, 3 |
0x0000d440 addiu gp, gp, 0x3ca4 |
0x0000d444 addu gp, gp, t9 | gp += t9;
0x0000d448 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x0000d44c lw v0, -0x6f40(v0) | v0 = *((v0 - 7120));
0x0000d450 jr ra | return v0;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/wsdd @ 0xd454 */
| #include <stdint.h>
|
; (fcn) sym.init () | void init () {
0x0000d454 lui gp, 3 |
0x0000d458 addiu gp, gp, 0x3c8c |
0x0000d45c addu gp, gp, t9 | gp += t9;
0x0000d460 addiu sp, sp, -0x70 |
0x0000d464 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x0000d468 sw s5, 0x5c(sp) | *(var_5ch) = s5;
0x0000d46c lw s5, -0x774c(gp) | s5 = *((gp - 7635));
| /* str.ad:hpt: */
0x0000d470 addiu a3, v0, 0x7454 | a3 = v0 + 0x7454;
0x0000d474 lw v1, 0x7454(v0) | v1 = *((v0 + 7445));
0x0000d478 sw s0, 0x48(sp) | *(var_48h) = s0;
0x0000d47c lw a2, (s5) | a2 = *(s5);
0x0000d480 lw s0, -0x7fdc(gp) | s0 = *(gp);
0x0000d484 lw v0, 4(a3) | v0 = *((a3 + 1));
0x0000d488 lw t9, -0x7914(gp) | t9 = sym.imp.getpwnam;
0x0000d48c sw gp, 0x20(sp) | *(var_20h) = gp;
0x0000d490 sw s2, 0x50(sp) | *(var_50h) = s2;
0x0000d494 sw s1, 0x4c(sp) | *(var_4ch) = s1;
0x0000d498 sw ra, 0x6c(sp) | *(var_6ch) = ra;
0x0000d49c sw fp, 0x68(sp) | *(var_68h) = fp;
0x0000d4a0 sw s7, 0x64(sp) | *(var_64h) = s7;
0x0000d4a4 sw s6, 0x60(sp) | *(var_60h) = s6;
0x0000d4a8 sw s4, 0x58(sp) | *(var_58h) = s4;
0x0000d4ac sw s3, 0x54(sp) | *(var_54h) = s3;
0x0000d4b0 move s1, a0 | s1 = a0;
0x0000d4b4 sw a2, 0x44(sp) | *(var_44h) = a2;
| /* str.wsdd */
0x0000d4b8 addiu a0, s0, 0x714c | a0 = s0 + 0x714c;
0x0000d4bc sw zero, 0x34(sp) | *(var_34h) = 0;
0x0000d4c0 sw v1, 0x3c(sp) | *(var_3ch) = v1;
0x0000d4c4 sw v0, 0x40(sp) | *(var_40h) = v0;
0x0000d4c8 move s2, a1 | s2 = a1;
0x0000d4cc jalr t9 | t9 ();
0x0000d4d0 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0000d4d4 beqz v0, 0xdc28 | goto label_9;
| }
0x0000d4d8 lw t9, -0x78cc(gp) | t9 = sym.imp.getgrnam;
| /* str.wsdd */
0x0000d4dc addiu a0, s0, 0x714c | a0 = s0 + 0x714c;
0x0000d4e0 move s4, v0 | s4 = v0;
0x0000d4e4 jalr t9 | t9 ();
0x0000d4e8 move s3, v0 | s3 = v0;
0x0000d4ec lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0000d4f0 beqz v0, 0xdbf8 | goto label_10;
| }
0x0000d4f4 lw t9, -0x7700(gp) | t9 = sym.imp.setgid;
0x0000d4f8 lw a0, 8(v0) | a0 = *((v0 + 2));
0x0000d4fc jalr t9 | t9 ();
0x0000d500 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x0000d504 bltz v0, 0xdba4 | goto label_11;
| }
0x0000d508 lw t9, -0x79d8(gp) | t9 = sym.imp.initgroups;
0x0000d50c lw a1, 8(s3) | a1 = *((s3 + 2));
0x0000d510 lw a0, (s4) | a0 = *(s4);
0x0000d514 jalr t9 | t9 ();
0x0000d518 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x0000d51c bltz v0, 0xdb34 | goto label_12;
| }
0x0000d520 lw t9, -0x7778(gp) | t9 = sym.imp.setuid;
0x0000d524 lw a0, 8(s4) | a0 = *((s4 + 2));
0x0000d528 jalr t9 | t9 ();
0x0000d52c lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x0000d530 bltz v0, 0xdc58 | goto label_13;
| }
0x0000d534 lw t9, -0x7880(gp) | t9 = sym.imp.g_main_loop_new;
0x0000d538 move a1, zero | a1 = 0;
0x0000d53c lw s6, -0x7fd0(gp) | s6 = *((gp - 8180));
0x0000d540 move a0, zero | a0 = 0;
0x0000d544 jalr t9 | t9 ();
0x0000d548 lw gp, 0x20(sp) | gp = *(var_20h);
| /* str.wsdd */
0x0000d54c addiu a0, s0, 0x714c | a0 = s0 + 0x714c;
0x0000d550 addiu a2, zero, 0x18 | a2 = 0x18;
0x0000d554 lw t9, -0x78b0(gp) | t9 = sym.imp.openlog;
0x0000d558 addiu a1, zero, 1 | a1 = 1;
0x0000d55c sw v0, -0x6530(s6) | *((s6 - 6476)) = v0;
0x0000d560 jalr t9 | t9 ();
0x0000d564 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d568 addiu a3, zero, 1 | a3 = 1;
0x0000d56c addiu a1, zero, -1 | a1 = -1;
0x0000d570 lw a2, -0x7fb4(gp) | a2 = *(gp);
0x0000d574 lw t9, -0x7760(gp) | t9 = sym.imp.g_log_set_handler;
0x0000d578 addiu a2, a2, -0x2cd4 | a2 += -0x2cd4;
0x0000d57c move a0, zero | a0 = 0;
0x0000d580 jalr t9 | t9 ();
0x0000d584 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d588 sw zero, 0x28(sp) | *(var_28h) = 0;
0x0000d58c addiu s7, zero, 1 | s7 = 1;
0x0000d590 lw s3, -0x7fd0(gp) | s3 = *((gp - 8180));
0x0000d594 lw s0, -0x7fdc(gp) | s0 = *(gp);
0x0000d598 addiu v0, s3, -0x6f40 | v0 = s3 + -0x6f40;
0x0000d59c lw s4, -0x7a8c(gp) | s4 = *((gp - 7843));
0x0000d5a0 addiu fp, sp, 0x3c | fp = sp + 0x3c;
0x0000d5a4 addiu s0, s0, 0x7460 | s0 += 0x7460;
0x0000d5a8 sw v0, 0x2c(sp) | *(var_2ch) = v0;
| do {
0x0000d5ac lw t9, -0x7b00(gp) | t9 = sym.imp.getopt;
0x0000d5b0 move a2, fp | a2 = fp;
0x0000d5b4 move a1, s2 | a1 = s2;
0x0000d5b8 move a0, s1 | a0 = s1;
0x0000d5bc jalr t9 | t9 ();
0x0000d5c0 move v1, v0 | v1 = v0;
0x0000d5c4 addiu v0, zero, -1 | v0 = -1;
0x0000d5c8 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v1 == v0) {
0x0000d5cc beq v1, v0, 0xd690 | goto label_14;
| }
0x0000d5d0 addiu v1, v1, -0x61 | v1 += -0x61;
0x0000d5d4 sltiu v0, v1, 0x14 | v0 = (v1 < 0x14) ? 1 : 0;
0x0000d5d8 sll v1, v1, 2 | v1 <<= 2;
| if (v0 != 0) {
0x0000d5dc beqz v0, 0xd624 |
0x0000d5e0 lwx v1, v1(s0) | __asm ("lwx v1, v1(s0)");
0x0000d5e4 addu v1, v1, gp | v1 += gp;
0x0000d5e8 jr v1 | v1 ();
0x0000d5ec nop |
| }
0x0000d624 lw a0, -0x7fdc(gp) | a0 = *(gp);
0x0000d628 lw t9, -0x7a0c(gp) | t9 = sym.imp.puts;
| /* str.Usage:_wsdd___a____d_number_of_seconds_____t_ttl_1_255______h__n_a___Attached__dont_daemonize_n_d___Number_of_seconds_to_sleep_before_sending_first_Hello_message_n_h___This_usage_description_n_p___Printouts_with_wsdd_daemonized_n_t___Time_to_live__TTL__value_n */
0x0000d62c addiu a0, a0, 0x724c | a0 += 0x724c;
0x0000d630 jalr t9 | t9 ();
0x0000d634 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d638 lw t9, -0x79d4(gp) | t9 = *(gp);
0x0000d63c addiu a0, zero, 1 | a0 = 1;
0x0000d640 jalr t9 | t9 ();
0x0000d644 addiu v0, zero, 1 | v0 = 1;
0x0000d648 sw v0, 0x28(sp) | *(var_28h) = v0;
0x0000d64c b 0xd5ac |
| } while (1);
| label_14:
0x0000d690 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000d694 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000d698 sw v1, 0x2c(sp) | *(var_2ch) = v1;
| /* str.Starting */
0x0000d69c addiu a2, a2, 0x7350 | a2 += 0x7350;
0x0000d6a0 addiu a1, zero, 0x20 | a1 = 0x20;
0x0000d6a4 move a0, zero | a0 = 0;
0x0000d6a8 jalr t9 | t9 ();
0x0000d6ac lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d6b0 sw zero, 0x38(sp) | *(var_38h) = 0;
0x0000d6b4 lw s0, -0x7fdc(gp) | s0 = *(gp);
0x0000d6b8 lw a1, -0x7fdc(gp) | a1 = *(gp);
0x0000d6bc lw t9, -0x7740(gp) | t9 = sym.imp.fopen;
0x0000d6c0 addiu a1, a1, 0x7a78 | a1 += 0x7a78;
| /* str._var_run_wsdd_wsdd.pid */
0x0000d6c4 addiu a0, s0, 0x70c8 | a0 = s0 + 0x70c8;
0x0000d6c8 jalr t9 | t9 ();
0x0000d6cc move s2, v0 | s2 = v0;
0x0000d6d0 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x0000d6d4 beqz v0, 0xd70c |
0x0000d6d8 lw a1, -0x7fdc(gp) | a1 = *(gp);
0x0000d6dc lw t9, -0x790c(gp) | t9 = sym.imp.fscanf;
0x0000d6e0 addiu a2, sp, 0x38 | a2 = sp + 0x38;
| /* esilref: '&d' */
0x0000d6e4 addiu a1, a1, 0x7554 | a1 += 0x7554;
0x0000d6e8 move a0, v0 | a0 = v0;
0x0000d6ec jalr t9 | t9 ();
0x0000d6f0 lw v1, 0x2c(sp) | v1 = *(var_2ch);
0x0000d6f4 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == v1) {
0x0000d6f8 beq v0, v1, 0xdaf8 | goto label_15;
| }
| label_5:
0x0000d6fc lw t9, -0x787c(gp) | t9 = sym.imp.fclose;
0x0000d700 move a0, s2 | a0 = s2;
0x0000d704 jalr t9 | t9 ();
0x0000d708 lw gp, 0x20(sp) | gp = *(var_20h);
| }
0x0000d70c lw s1, 0x38(sp) | s1 = *(var_38h);
0x0000d710 lw t9, -0x77a8(gp) | t9 = sym.imp.getpid;
| if (s1 != 0) {
0x0000d714 bnez s1, 0xd96c | goto label_16;
| }
| label_0:
0x0000d718 lw a0, -0x7fb4(gp) | a0 = *(gp);
| label_3:
0x0000d71c lw t9, -0x7f28(gp) | t9 = *(gp);
0x0000d720 addiu a0, a0, -0x2da8 | a0 += -0x2da8;
0x0000d724 bal 0x24ce0 | fcn_00024ce0 ();
0x0000d728 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d72c bnez s7, 0xd900 |
| while (v0 == 0) {
0x0000d730 lw t9, -0x76d0(gp) | t9 = sym.imp.open;
0x0000d734 addiu a2, zero, 0x1a4 | a2 = segment.NOTE;
0x0000d738 addiu a1, zero, 0x102 | a1 = 0x102;
| /* str._var_run_wsdd_wsdd.pid */
0x0000d73c addiu a0, s0, 0x70c8 | a0 = s0 + 0x70c8;
0x0000d740 sw zero, 0x38(sp) | *(var_38h) = 0;
0x0000d744 jalr t9 | t9 ();
0x0000d748 addiu s3, zero, -1 | s3 = -1;
0x0000d74c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d750 move s1, v0 | s1 = v0;
| if (v0 == s3) {
0x0000d754 beq v0, s3, 0xda38 | goto label_17;
| }
0x0000d758 lw a1, -0x7fdc(gp) | a1 = *(gp);
0x0000d75c lw t9, -0x7a7c(gp) | t9 = sym.imp.fdopen;
| /* esilref: 'r+' */
0x0000d760 addiu a1, a1, 0x73b8 | a1 += 0x73b8;
0x0000d764 move a0, v0 | a0 = v0;
0x0000d768 jalr t9 | t9 ();
0x0000d76c move s2, v0 | s2 = v0;
0x0000d770 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0000d774 beqz v0, 0xda38 | goto label_17;
| }
0x0000d778 lw t9, -0x7a24(gp) | t9 = sym.imp.flock;
0x0000d77c addiu a1, zero, 6 | a1 = 6;
0x0000d780 move a0, s1 | a0 = s1;
0x0000d784 jalr t9 | t9 ();
0x0000d788 move s4, v0 | s4 = v0;
0x0000d78c lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == s3) {
0x0000d790 beq v0, s3, 0xd9c4 | goto label_18;
| }
0x0000d794 lw t9, -0x77a8(gp) | t9 = sym.imp.getpid;
0x0000d798 jalr t9 | t9 ();
0x0000d79c nop |
0x0000d7a0 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d7a4 move a3, v0 | a3 = v0;
0x0000d7a8 addiu a1, zero, 1 | a1 = 1;
0x0000d7ac lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000d7b0 lw t9, -0x7a50(gp) | t9 = sym.imp.__fprintf_chk
| /* esilref: '&d
' */
0x0000d7b4 addiu a2, a2, 0x73e4 | a2 += 0x73e4;
0x0000d7b8 move a0, s2 | a0 = s2;
0x0000d7bc sw v0, 0x38(sp) | *(var_38h) = v0;
0x0000d7c0 jalr t9 | t9 ();
0x0000d7c4 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0000d7c8 beqz v0, 0xdaac | goto label_19;
| }
0x0000d7cc lw t9, -0x7a24(gp) | t9 = sym.imp.flock;
0x0000d7d0 addiu a1, zero, 8 | a1 = 8;
0x0000d7d4 move a0, s1 | a0 = s1;
0x0000d7d8 jalr t9 | t9 ();
0x0000d7dc lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == s3) {
0x0000d7e0 beq v0, s3, 0xdcac | goto label_20;
| }
0x0000d7e4 lw t9, -0x787c(gp) | t9 = sym.imp.fclose;
0x0000d7e8 move a0, s2 | a0 = s2;
0x0000d7ec jalr t9 | t9 ();
0x0000d7f0 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d7f4 lw t9, -0x7f24(gp) | t9 = sym.common_init;
0x0000d7f8 bal 0xc798 | sym_common_init ();
0x0000d7fc nop |
0x0000d800 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d804 lw a0, -0x7fb4(gp) | a0 = *(gp);
0x0000d808 lw t9, -0x7f20(gp) | t9 = sym.config_init;
0x0000d80c addiu a0, a0, -0x2dc0 | a0 += -0x2dc0;
0x0000d810 bal 0xc0b8 | sym_config_init ();
0x0000d814 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d818 lw t9, -0x7f1c(gp) | t9 = sym.server_init;
0x0000d81c bal 0x94a4 | sym_server_init ();
0x0000d820 nop |
0x0000d824 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d828 lw t9, -0x7f18(gp) | t9 = sym.notify_init;
0x0000d82c lw a0, 0x34(sp) | a0 = *(var_34h);
0x0000d830 bal 0xea20 | sym_notify_init ();
0x0000d834 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d838 lw t9, -0x7f14(gp) | t9 = sym.sig_handler_init;
0x0000d83c bal 0xddb8 | sym_sig_handler_init ();
0x0000d840 nop |
0x0000d844 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d848 move a0, zero | a0 = 0;
0x0000d84c lw a1, -0x7fdc(gp) | a1 = *(gp);
0x0000d850 lw t9, -0x7988(gp) | t9 = sym.imp.sd_notify;
| /* str.READY1 */
0x0000d854 addiu a1, a1, 0x7420 | a1 += 0x7420;
0x0000d858 jalr t9 | t9 ();
0x0000d85c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d860 lw t9, -0x7854(gp) | t9 = sym._init;
0x0000d864 lw a0, -0x6530(s6) | a0 = *((s6 - 6476));
0x0000d868 jalr t9 | t9 ();
0x0000d86c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d870 lw t9, -0x7f10(gp) | t9 = sym.sig_handler_destroy;
0x0000d874 bal 0xde24 | sym_sig_handler_destroy ();
0x0000d878 nop |
0x0000d87c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d880 lw t9, -0x7f0c(gp) | t9 = sym.notify_destroy;
0x0000d884 bal 0xeab8 | sym_notify_destroy ();
0x0000d888 nop |
0x0000d88c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d890 lw t9, -0x7f08(gp) | t9 = sym.server_destroy;
0x0000d894 bal 0x967c | sym_server_destroy ();
0x0000d898 nop |
0x0000d89c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d8a0 lw t9, -0x7f04(gp) | t9 = sym.config_destroy;
0x0000d8a4 bal 0xb2d0 | sym_config_destroy ();
0x0000d8a8 nop |
0x0000d8ac lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d8b0 lw t9, -0x7f00(gp) | t9 = sym.common_destroy;
0x0000d8b4 bal 0xcd60 | sym_common_destroy ();
0x0000d8b8 nop |
0x0000d8bc lw a0, 0x44(sp) | a0 = *(var_44h);
0x0000d8c0 lw v1, (s5) | v1 = *(s5);
0x0000d8c4 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d8c8 move v0, zero | v0 = 0;
| if (a0 != v1) {
0x0000d8cc bne a0, v1, 0xdd38 | goto label_21;
| }
0x0000d8d0 lw ra, 0x6c(sp) | ra = *(var_6ch);
0x0000d8d4 lw fp, 0x68(sp) | fp = *(var_68h);
0x0000d8d8 lw s7, 0x64(sp) | s7 = *(var_64h);
0x0000d8dc lw s6, 0x60(sp) | s6 = *(var_60h);
0x0000d8e0 lw s5, 0x5c(sp) | s5 = *(var_5ch);
0x0000d8e4 lw s4, 0x58(sp) | s4 = *(var_58h);
0x0000d8e8 lw s3, 0x54(sp) | s3 = *(var_54h);
0x0000d8ec lw s2, 0x50(sp) | s2 = *(var_50h);
0x0000d8f0 lw s1, 0x4c(sp) | s1 = *(var_4ch);
0x0000d8f4 lw s0, 0x48(sp) | s0 = *(var_48h);
0x0000d8f8 addiu sp, sp, 0x70 |
0x0000d8fc jr ra | return v0;
0x0000d900 lw t9, -0x77c4(gp) | t9 = sym.imp.daemon;
0x0000d904 lw a1, 0x28(sp) | a1 = *(var_28h);
0x0000d908 move a0, zero | a0 = 0;
0x0000d90c jalr t9 | t9 ();
0x0000d910 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d914 beqz v0, 0xd730 |
| }
0x0000d918 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000d91c jalr t9 | t9 ();
0x0000d920 nop |
0x0000d924 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d928 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000d92c lw a0, (v0) | a0 = *(v0);
0x0000d930 jalr t9 | t9 ();
0x0000d934 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d938 move a0, zero | a0 = 0;
0x0000d93c sw v0, 0x10(sp) | *(var_10h) = v0;
0x0000d940 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000d944 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000d948 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000d94c addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sError_daemonizing_process:__s */
0x0000d950 addiu a2, a2, 0x7378 | a2 += 0x7378;
0x0000d954 addiu a1, zero, 8 | a1 = 8;
0x0000d958 jalr t9 | t9 ();
0x0000d95c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d960 lw t9, -0x79d4(gp) | t9 = *(gp);
0x0000d964 addiu a0, zero, 1 | a0 = 1;
0x0000d968 jalr t9 | t9 ();
| label_16:
0x0000d96c jalr t9 | t9 ();
0x0000d970 nop |
0x0000d974 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == s1) {
0x0000d978 beq v0, s1, 0xd718 | goto label_0;
| }
0x0000d97c lw t9, -0x7adc(gp) | t9 = sym.imp.kill;
0x0000d980 move a1, zero | a1 = 0;
0x0000d984 move a0, s1 | a0 = s1;
0x0000d988 jalr t9 | t9 ();
0x0000d98c lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 != 0) {
0x0000d990 bnez v0, 0xda88 | goto label_22;
| }
| label_2:
0x0000d994 lw a3, -0x7fdc(gp) | a3 = *(gp);
0x0000d998 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000d99c lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000d9a0 move a0, zero | a0 = 0;
0x0000d9a4 addiu a3, a3, 0x734c | a3 += 0x734c;
| /* str._sAlready_running. */
0x0000d9a8 addiu a2, a2, 0x7440 | a2 += 0x7440;
| do {
| label_6:
0x0000d9ac addiu a1, zero, 8 | a1 = 8;
0x0000d9b0 jalr t9 | t9 ();
0x0000d9b4 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000d9b8 lw t9, -0x79d4(gp) | t9 = *(gp);
0x0000d9bc addiu a0, zero, 1 | a0 = 1;
0x0000d9c0 jalr t9 | t9 ();
| label_18:
0x0000d9c4 lw a1, -0x7fdc(gp) | a1 = *(gp);
0x0000d9c8 lw t9, -0x790c(gp) | t9 = sym.imp.fscanf;
0x0000d9cc addiu a2, sp, 0x38 | a2 = sp + 0x38;
| /* esilref: '&d' */
0x0000d9d0 addiu a1, a1, 0x7554 | a1 += 0x7554;
0x0000d9d4 move a0, s2 | a0 = s2;
0x0000d9d8 jalr t9 | t9 ();
0x0000d9dc lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == s4) {
0x0000d9e0 beq v0, s4, 0xdcfc | goto label_23;
| }
0x0000d9e4 lw s1, -0x7fdc(gp) | s1 = *(gp);
| label_8:
0x0000d9e8 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000d9ec lw v0, 0x38(sp) | v0 = *(var_38h);
0x0000d9f0 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000d9f4 addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sCant_lock__lock_is_held_by_pid__d */
0x0000d9f8 addiu a2, a2, 0x73bc | a2 += 0x73bc;
0x0000d9fc addiu a1, zero, 0x10 | a1 = 0x10;
0x0000da00 move a0, zero | a0 = 0;
0x0000da04 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0000da08 jalr t9 | t9 ();
0x0000da0c lw gp, 0x20(sp) | gp = *(var_20h);
| label_4:
0x0000da10 lw t9, -0x787c(gp) | t9 = sym.imp.fclose;
0x0000da14 move a0, s2 | a0 = s2;
0x0000da18 jalr t9 | t9 ();
0x0000da1c lw gp, 0x20(sp) | gp = *(var_20h);
| label_1:
0x0000da20 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000da24 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000da28 move a0, zero | a0 = 0;
0x0000da2c addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sCould_not_write_pid */
0x0000da30 addiu a2, a2, 0x7428 | a2 += 0x7428;
0x0000da34 b 0xd9ac |
| } while (1);
| label_17:
0x0000da38 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000da3c lw s1, -0x7fdc(gp) | s1 = *(gp);
| /* str._var_run_wsdd_wsdd.pid */
0x0000da40 addiu s0, s0, 0x70c8 | s0 += 0x70c8;
0x0000da44 jalr t9 | t9 ();
0x0000da48 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000da4c lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000da50 lw a0, (v0) | a0 = *(v0);
0x0000da54 jalr t9 | t9 ();
0x0000da58 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000da5c sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000da60 sw s0, 0x10(sp) | *(var_10h) = s0;
0x0000da64 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000da68 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000da6c addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sCant_open_or_create__s:__s */
0x0000da70 addiu a2, a2, 0x7398 | a2 += 0x7398;
0x0000da74 addiu a1, zero, 0x10 | a1 = 0x10;
0x0000da78 move a0, zero | a0 = 0;
0x0000da7c jalr t9 | t9 ();
0x0000da80 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000da84 b 0xda20 | goto label_1;
| label_22:
0x0000da88 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000da8c jalr t9 | t9 ();
0x0000da90 nop |
0x0000da94 lw v1, (v0) | v1 = *(v0);
0x0000da98 addiu v0, zero, 3 | v0 = 3;
0x0000da9c lw gp, 0x20(sp) | gp = *(var_20h);
| if (v1 != v0) {
0x0000daa0 bne v1, v0, 0xd994 | goto label_2;
| }
0x0000daa4 lw a0, -0x7fb4(gp) | a0 = *(gp);
0x0000daa8 b 0xd71c | goto label_3;
| label_19:
0x0000daac lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000dab0 lw s1, -0x7fdc(gp) | s1 = *(gp);
0x0000dab4 jalr t9 | t9 ();
0x0000dab8 nop |
0x0000dabc lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dac0 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000dac4 lw a0, (v0) | a0 = *(v0);
0x0000dac8 jalr t9 | t9 ();
0x0000dacc lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dad0 sw v0, 0x10(sp) | *(var_10h) = v0;
0x0000dad4 addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
0x0000dad8 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000dadc lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
| /* str._sCant_write_pid:__s */
0x0000dae0 addiu a2, a2, 0x73e8 | a2 += 0x73e8;
0x0000dae4 addiu a1, zero, 0x10 | a1 = 0x10;
0x0000dae8 move a0, zero | a0 = 0;
0x0000daec jalr t9 | t9 ();
0x0000daf0 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000daf4 b 0xda10 | goto label_4;
| label_15:
0x0000daf8 lw t9, -0x77ac(gp) | t9 = sym.imp.ferror;
0x0000dafc move a0, s2 | a0 = s2;
0x0000db00 jalr t9 | t9 ();
0x0000db04 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0000db08 beqz v0, 0xd6fc | goto label_5;
| }
0x0000db0c lw s1, -0x7fdc(gp) | s1 = *(gp);
0x0000db10 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000db14 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000db18 addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sparsing_pid_failed:__m */
0x0000db1c addiu a2, a2, 0x735c | a2 += 0x735c;
0x0000db20 addiu a1, zero, 0x10 | a1 = 0x10;
0x0000db24 move a0, zero | a0 = 0;
0x0000db28 jalr t9 | t9 ();
0x0000db2c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000db30 b 0xd6fc | goto label_5;
| label_12:
0x0000db34 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000db38 lw s1, -0x7fdc(gp) | s1 = *(gp);
0x0000db3c jalr t9 | t9 ();
0x0000db40 nop |
0x0000db44 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000db48 lw a0, (v0) | a0 = *(v0);
0x0000db4c lw s0, (s4) | s0 = *(s4);
0x0000db50 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000db54 lw s2, 8(s3) | s2 = *((s3 + 2));
0x0000db58 jalr t9 | t9 ();
0x0000db5c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000db60 sw v0, 0x18(sp) | *(var_18h) = v0;
0x0000db64 sw s2, 0x14(sp) | *(var_14h) = s2;
0x0000db68 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000db6c lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000db70 sw s0, 0x10(sp) | *(var_10h) = s0;
0x0000db74 addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sUnable_to_run_initgroups____with_username:__s__gid:__d:__s_n */
0x0000db78 addiu a2, a2, 0x71bc | a2 += 0x71bc;
0x0000db7c addiu a1, zero, 8 | a1 = 8;
0x0000db80 move a0, zero | a0 = 0;
0x0000db84 jalr t9 | t9 ();
0x0000db88 lw gp, 0x20(sp) | gp = *(var_20h);
| do {
| label_7:
0x0000db8c lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000db90 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000db94 move a0, zero | a0 = 0;
0x0000db98 addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sFailed_setting_uid_and_gid_of_the_process. */
0x0000db9c addiu a2, a2, 0x721c | a2 += 0x721c;
0x0000dba0 b 0xd9ac | goto label_6;
| label_11:
0x0000dba4 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000dba8 lw s1, -0x7fdc(gp) | s1 = *(gp);
0x0000dbac jalr t9 | t9 ();
0x0000dbb0 nop |
0x0000dbb4 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dbb8 lw a0, (v0) | a0 = *(v0);
0x0000dbbc lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000dbc0 lw s0, 8(s3) | s0 = *((s3 + 2));
0x0000dbc4 jalr t9 | t9 ();
0x0000dbc8 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dbcc sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000dbd0 sw s0, 0x10(sp) | *(var_10h) = s0;
0x0000dbd4 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000dbd8 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000dbdc addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sFailed_setting_gid_to__d:__s_n */
0x0000dbe0 addiu a2, a2, 0x719c | a2 += 0x719c;
0x0000dbe4 addiu a1, zero, 8 | a1 = 8;
0x0000dbe8 move a0, zero | a0 = 0;
0x0000dbec jalr t9 | t9 ();
0x0000dbf0 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dbf4 b 0xdb8c |
| } while (1);
| label_10:
0x0000dbf8 lw s1, -0x7fdc(gp) | s1 = *(gp);
0x0000dbfc lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000dc00 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
| /* str.wsdd */
0x0000dc04 addiu s0, s0, 0x714c | s0 += 0x714c;
0x0000dc08 sw s0, 0x10(sp) | *(var_10h) = s0;
0x0000dc0c addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sCouldnt_get_gid_for_group___s_._n */
0x0000dc10 addiu a2, a2, 0x7178 | a2 += 0x7178;
0x0000dc14 addiu a1, zero, 8 | a1 = 8;
0x0000dc18 move a0, zero | a0 = 0;
0x0000dc1c jalr t9 | t9 ();
0x0000dc20 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dc24 b 0xdb8c | goto label_7;
| label_9:
0x0000dc28 lw s1, -0x7fdc(gp) | s1 = *(gp);
0x0000dc2c lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000dc30 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
| /* str.wsdd */
0x0000dc34 addiu s0, s0, 0x714c | s0 += 0x714c;
0x0000dc38 sw s0, 0x10(sp) | *(var_10h) = s0;
0x0000dc3c addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sCouldnt_get_uid_for_user___s_._n */
0x0000dc40 addiu a2, a2, 0x7154 | a2 += 0x7154;
0x0000dc44 addiu a1, zero, 8 | a1 = 8;
0x0000dc48 move a0, zero | a0 = 0;
0x0000dc4c jalr t9 | t9 ();
0x0000dc50 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dc54 b 0xdb8c | goto label_7;
| label_13:
0x0000dc58 lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000dc5c lw s1, -0x7fdc(gp) | s1 = *(gp);
0x0000dc60 jalr t9 | t9 ();
0x0000dc64 nop |
0x0000dc68 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dc6c lw a0, (v0) | a0 = *(v0);
0x0000dc70 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000dc74 lw s0, 8(s4) | s0 = *((s4 + 2));
0x0000dc78 jalr t9 | t9 ();
0x0000dc7c lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dc80 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000dc84 sw s0, 0x10(sp) | *(var_10h) = s0;
0x0000dc88 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000dc8c lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000dc90 addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sFailed_setting_uid_to__d:__s_n */
0x0000dc94 addiu a2, a2, 0x71fc | a2 += 0x71fc;
0x0000dc98 addiu a1, zero, 8 | a1 = 8;
0x0000dc9c move a0, zero | a0 = 0;
0x0000dca0 jalr t9 | t9 ();
0x0000dca4 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dca8 b 0xdb8c | goto label_7;
| label_20:
0x0000dcac lw t9, -0x7874(gp) | t9 = sym.imp.__errno_location;
0x0000dcb0 lw s1, -0x7fdc(gp) | s1 = *(gp);
| /* str._var_run_wsdd_wsdd.pid */
0x0000dcb4 addiu s0, s0, 0x70c8 | s0 += 0x70c8;
0x0000dcb8 jalr t9 | t9 ();
0x0000dcbc lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dcc0 lw t9, -0x79e4(gp) | t9 = sym.imp.strerror;
0x0000dcc4 lw a0, (v0) | a0 = *(v0);
0x0000dcc8 jalr t9 | t9 ();
0x0000dccc lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dcd0 sw v0, 0x14(sp) | *(var_14h) = v0;
0x0000dcd4 addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
0x0000dcd8 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000dcdc lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
| /* str._sCant_unlock_pidfile__s:__s */
0x0000dce0 addiu a2, a2, 0x7400 | a2 += 0x7400;
0x0000dce4 addiu a1, zero, 0x10 | a1 = 0x10;
0x0000dce8 move a0, zero | a0 = 0;
0x0000dcec sw s0, 0x10(sp) | *(var_10h) = s0;
0x0000dcf0 jalr t9 | t9 ();
0x0000dcf4 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dcf8 b 0xda10 | goto label_4;
| label_23:
0x0000dcfc lw t9, -0x77ac(gp) | t9 = sym.imp.ferror;
0x0000dd00 move a0, s2 | a0 = s2;
0x0000dd04 jalr t9 | t9 ();
0x0000dd08 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dd0c lw s1, -0x7fdc(gp) | s1 = *(gp);
| if (v0 == 0) {
0x0000dd10 beqz v0, 0xd9e8 | goto label_8;
| }
0x0000dd14 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x0000dd18 lw t9, -0x77a4(gp) | t9 = sym.imp.g_log;
0x0000dd1c addiu a3, s1, 0x734c | a3 = s1 + 0x734c;
| /* str._sparsing_pid_failed:__m */
0x0000dd20 addiu a2, a2, 0x735c | a2 += 0x735c;
0x0000dd24 addiu a1, zero, 0x10 | a1 = 0x10;
0x0000dd28 move a0, zero | a0 = 0;
0x0000dd2c jalr t9 | t9 ();
0x0000dd30 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000dd34 b 0xd9e8 | goto label_8;
| label_21:
0x0000dd38 lw t9, -0x7934(gp) | t9 = sym.imp.__stack_chk_fail;
0x0000dd3c jalr t9 | t9 ();
0x0000dd40 nop |
0x0000dd44 nop |
0x0000dd48 nop |
0x0000dd4c nop |
0x0000dd50 lui gp, 3 |
0x0000dd54 addiu gp, gp, 0x3390 |
0x0000dd58 addu gp, gp, t9 | gp += t9;
0x0000dd5c addiu sp, sp, -0x20 |
0x0000dd60 lw t9, -0x7f38(gp) | t9 = sym.config_update_service_addr;
0x0000dd64 sw ra, 0x1c(sp) | *(var_1ch) = ra;
0x0000dd68 sw gp, 0x10(sp) | *(var_10h_2) = gp;
0x0000dd6c bal 0xbb78 | sym_config_update_service_addr ();
0x0000dd70 nop |
0x0000dd74 lw ra, 0x1c(sp) | ra = *(var_1ch);
0x0000dd78 addiu v0, zero, 1 | v0 = 1;
0x0000dd7c addiu sp, sp, 0x20 |
0x0000dd80 jr ra | return v0;
| }
[*] Function fprintf used 3 times wsdd