[*] Binary protection state of vftpd
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function sprintf tear down of vftpd
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vftpd @ 0x57ec */
| #include <stdint.h>
|
; (fcn) fcn.000057ec () | void fcn_000057ec () {
| label_4:
0x000057ec lui gp, 2 |
0x000057f0 addiu gp, gp, -0x46dc |
0x000057f4 addu gp, gp, t9 | gp += t9;
0x000057f8 addiu sp, sp, -0x130 |
0x000057fc addiu v0, zero, -1 | v0 = -1;
0x00005800 sw fp, 0x128(sp) | *(var_128h) = fp;
0x00005804 lw fp, -0x7d3c(gp) | fp = *((gp - 8015));
0x00005808 sw s3, 0x114(sp) | *(var_114h) = s3;
0x0000580c lw s3, 8(a0) | s3 = *((a0 + 2));
0x00005810 lw v1, (fp) | v1 = *(fp);
0x00005814 sw s0, 0x108(sp) | *(var_108h) = s0;
0x00005818 sw gp, 0x18(sp) | *(var_18h) = gp;
0x0000581c addiu s0, zero, 1 | s0 = 1;
0x00005820 sw s2, 0x110(sp) | *(var_110h) = s2;
0x00005824 sw ra, 0x12c(sp) | *(var_12ch) = ra;
0x00005828 sw s7, 0x124(sp) | *(var_124h) = s7;
0x0000582c sw s6, 0x120(sp) | *(var_120h) = s6;
0x00005830 sw s5, 0x11c(sp) | *(var_11ch) = s5;
0x00005834 sw s4, 0x118(sp) | *(var_118h) = s4;
0x00005838 sw s1, 0x10c(sp) | *(var_10ch) = s1;
0x0000583c move s2, a0 | s2 = a0;
0x00005840 sw v1, 0x104(sp) | *(var_104h) = v1;
0x00005844 sw s0, 0x3c(sp) | *(var_3ch) = s0;
| if (s3 != v0) {
0x00005848 beq s3, v0, 0x58c4 |
0x0000584c lw t9, -0x7d8c(gp) | t9 = sym.imp.accept;
0x00005850 move a0, s3 | a0 = s3;
0x00005854 move a2, zero | a2 = 0;
0x00005858 move a1, zero | a1 = 0;
0x0000585c jalr t9 | t9 ();
0x00005860 move s3, v0 | s3 = v0;
0x00005864 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x00005868 bltz v0, 0x5adc | goto label_5;
| }
| label_1:
0x0000586c lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x00005870 lw a0, 8(s2) | a0 = *((s2 + 2));
0x00005874 jalr t9 | t9 ();
0x00005878 addiu v0, zero, -1 | v0 = -1;
0x0000587c lw gp, 0x18(sp) | gp = *(var_18h);
0x00005880 sw v0, 8(s2) | *((s2 + 2)) = v0;
| label_0:
0x00005884 lw a0, 0x104(sp) | a0 = *(var_104h);
0x00005888 lw v1, (fp) | v1 = *(fp);
0x0000588c move v0, s3 | v0 = s3;
| if (a0 != v1) {
0x00005890 bne a0, v1, 0x5c98 | goto label_6;
| }
0x00005894 lw ra, 0x12c(sp) | ra = *(var_12ch);
0x00005898 lw fp, 0x128(sp) | fp = *(var_128h);
0x0000589c lw s7, 0x124(sp) | s7 = *(var_124h);
0x000058a0 lw s6, 0x120(sp) | s6 = *(var_120h);
0x000058a4 lw s5, 0x11c(sp) | s5 = *(var_11ch);
0x000058a8 lw s4, 0x118(sp) | s4 = *(var_118h);
0x000058ac lw s3, 0x114(sp) | s3 = *(var_114h);
0x000058b0 lw s2, 0x110(sp) | s2 = *(var_110h);
0x000058b4 lw s1, 0x10c(sp) | s1 = *(var_10ch);
0x000058b8 lw s0, 0x108(sp) | s0 = *(var_108h);
0x000058bc addiu sp, sp, 0x130 |
0x000058c0 jr ra | return v0;
| }
0x000058c4 lw v0, (a0) | v0 = *(a0);
0x000058c8 lw t9, -0x7e5c(gp) | t9 = sym.imp.socket;
0x000058cc move a2, zero | a2 = 0;
0x000058d0 lhu a0, (v0) | a0 = *(v0);
0x000058d4 addiu a1, zero, 2 | a1 = 2;
0x000058d8 jalr t9 | t9 ();
0x000058dc move s1, v0 | s1 = v0;
0x000058e0 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x000058e4 bltz v0, 0x5afc | goto label_7;
| }
0x000058e8 lw t9, -0x7cf4(gp) | t9 = sym.imp.setsockopt;
0x000058ec addiu v0, zero, 4 | v0 = 4;
0x000058f0 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x000058f4 addiu a3, sp, 0x3c | a3 = sp + 0x3c;
0x000058f8 addiu a2, zero, 4 | a2 = 4;
0x000058fc ori a1, zero, 0xffff | a1 = 0xffff;
0x00005900 move a0, s1 | a0 = s1;
0x00005904 jalr t9 | t9 ();
0x00005908 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x0000590c bltz v0, 0x5c68 | goto label_8;
| }
0x00005910 lw v1, -0x7fc0(gp) | v1 = *((gp - 8176));
0x00005914 lw v0, (s2) | v0 = *(s2);
0x00005918 lw s4, -0x7fc0(gp) | s4 = *((gp - 8176));
0x0000591c lw a3, -0x6b60(v1) | a3 = *((v1 - 6872));
0x00005920 lw v1, -0x7fc0(gp) | v1 = *((gp - 8176));
0x00005924 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00005928 lhu a0, (v0) | a0 = *(v0);
0x0000592c lw a2, -0x6b58(v1) | a2 = *((v1 - 6870));
0x00005930 sw s4, 0x20(sp) | *(var_20h) = s4;
0x00005934 addiu t9, t9, 0x55c0 | t9 += fcn.000055c0;
0x00005938 move a1, s1 | a1 = s1;
0x0000593c bal 0x55c0 | fcn_000055c0 ();
0x00005940 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005944 lw v0, -0x6b6c(s4) | v0 = *((s4 - 6875));
0x00005948 addiu s4, sp, 0xe4 | s4 = sp + 0xe4;
0x0000594c lw v1, -0x7fb8(gp) | v1 = *((gp - 8174));
0x00005950 lw t9, -0x7eac(gp) | t9 = sym.imp.__sprintf_chk
0x00005954 addiu v0, v0, -1 | v0 += -1;
0x00005958 addiu a3, v1, -0x7398 | a3 = v1 + -0x7398;
0x0000595c sw v1, 0x34(sp) | *(var_34h_2) = v1;
0x00005960 addiu a2, zero, 0x20 | a2 = 0x20;
0x00005964 addiu a1, zero, 1 | a1 = 1;
0x00005968 move a0, s4 | a0 = s4;
0x0000596c sw s4, 0x24(sp) | *(var_24h_2) = s4;
0x00005970 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00005974 jalr t9 | t9 ();
0x00005978 addiu v0, sp, 0x50 | v0 = sp + 0x50;
0x0000597c move v1, v0 | v1 = v0;
0x00005980 sw v0, 0x30(sp) | *(var_30h_2) = v0;
0x00005984 lw v0, (s2) | v0 = *(s2);
0x00005988 lw gp, 0x18(sp) | gp = *(var_18h);
0x0000598c sw zero, 0x50(sp) | *(var_50h) = 0;
0x00005990 sw zero, 4(v1) | *((v1 + 1)) = 0;
0x00005994 sw zero, 8(v1) | *((v1 + 2)) = 0;
0x00005998 sw zero, 0xc(v1) | *((v1 + 3)) = 0;
0x0000599c sw zero, 0x10(v1) | *((v1 + 4)) = 0;
0x000059a0 lhu v0, (v0) | v0 = *(v0);
0x000059a4 addiu v1, sp, 0x40 | v1 = sp + 0x40;
0x000059a8 lw t9, -0x7e60(gp) | t9 = sym.imp.getaddrinfo;
0x000059ac addiu a2, sp, 0x44 | a2 = sp + 0x44;
0x000059b0 sw v0, 0x48(sp) | *(var_48h) = v0;
0x000059b4 addiu v0, zero, 2 | v0 = 2;
0x000059b8 sw a2, 0x2c(sp) | *(var_2ch_2) = a2;
0x000059bc sw v1, 0x28(sp) | *(var_28h_2) = v1;
0x000059c0 move a3, v1 | a3 = v1;
0x000059c4 move a1, s4 | a1 = s4;
0x000059c8 move a0, zero | a0 = 0;
0x000059cc sw v0, 0x4c(sp) | *(var_4ch) = v0;
0x000059d0 sw s0, 0x44(sp) | *(var_44h) = s0;
0x000059d4 jalr t9 | t9 ();
0x000059d8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x000059dc bnez v0, 0x5c20 | goto label_9;
| }
0x000059e0 lw s0, 0x40(sp) | s0 = *(var_40h);
0x000059e4 lw s4, 0x10(s0) | s4 = *((s0 + 4));
0x000059e8 sltiu v1, s4, 0x81 | v1 = (s4 < 0x81) ? 1 : 0;
0x000059ec lw t9, -0x7da8(gp) | t9 = sym.imp.__memcpy_chk;
| if (v1 == 0) {
0x000059f0 beqz v1, 0x5c20 | goto label_9;
| }
0x000059f4 lw a1, 0x14(s0) | a1 = *((s0 + 5));
0x000059f8 addiu s5, sp, 0x64 | s5 = sp + 0x64;
0x000059fc addiu a3, zero, 0x80 | a3 = 0x80;
0x00005a00 move a2, s4 | a2 = s4;
0x00005a04 move a0, s5 | a0 = s5;
0x00005a08 jalr t9 | t9 ();
0x00005a0c lw gp, 0x18(sp) | gp = *(var_18h);
0x00005a10 move a0, s0 | a0 = s0;
0x00005a14 addiu s6, zero, 0x7d | s6 = 0x7d;
0x00005a18 lw t9, -0x7e34(gp) | t9 = sym.imp.freeaddrinfo;
0x00005a1c addiu s0, zero, 1 | s0 = 1;
0x00005a20 jalr t9 | t9 ();
0x00005a24 addiu s7, zero, 0xb | s7 = 0xb;
0x00005a28 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005a2c b 0x5a40 |
| while (s0 != s7) {
0x00005a30 move a0, s0 | a0 = s0;
0x00005a34 jalr t9 | t9 ();
0x00005a38 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005a3c addiu s0, s0, 1 | s0++;
0x00005a40 lw t9, -0x7de8(gp) | t9 = *(gp);
0x00005a44 move a2, s4 | a2 = s4;
0x00005a48 move a1, s5 | a1 = s5;
0x00005a4c move a0, s1 | a0 = s1;
0x00005a50 jalr t9 | t9 ();
0x00005a54 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 >= 0) {
0x00005a58 bgez v0, 0x5b40 | goto label_10;
| }
0x00005a5c lw t9, -0x7e00(gp) | t9 = *(gp);
0x00005a60 jalr t9 | t9 ();
0x00005a64 nop |
0x00005a68 move v1, v0 | v1 = v0;
0x00005a6c lw v0, (v0) | v0 = *(v0);
0x00005a70 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != s6) {
0x00005a74 bne v0, s6, 0x5a80 | goto label_11;
| }
0x00005a78 lw t9, -0x7d50(gp) | t9 = sym.imp.sleep;
0x00005a7c bne s0, s7, 0x5a30 |
| }
| label_11:
0x00005a80 lw v0, 0x20(sp) | v0 = *(var_20h);
0x00005a84 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00005a88 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00005a8c lw a3, -0x6b6c(v0) | a3 = *((v0 - 6875));
0x00005a90 sw v1, 0x24(sp) | *(var_24h_2) = v1;
0x00005a94 addiu a3, a3, -1 | a3 += -1;
0x00005a98 addiu a2, a2, 0x7f30 | a2 += str.Unable_to_bind_data_socket_to_port__d:__m;
0x00005a9c addiu a1, zero, 1 | a1 = 1;
0x00005aa0 addiu a0, zero, 3 | a0 = 3;
0x00005aa4 jalr t9 | t9 ();
0x00005aa8 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005aac lw v1, 0x24(sp) | v1 = *(var_24h_2);
| label_2:
0x00005ab0 lw v0, (v1) | v0 = *(v1);
0x00005ab4 sw v0, 0x3c(sp) | *(var_3ch) = v0;
| do {
0x00005ab8 lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x00005abc sw v1, 0x20(sp) | *(var_20h) = v1;
0x00005ac0 move a0, s1 | a0 = s1;
0x00005ac4 jalr t9 | t9 ();
0x00005ac8 lw v1, 0x20(sp) | v1 = *(var_20h);
0x00005acc lw v0, 0x3c(sp) | v0 = *(var_3ch);
0x00005ad0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005ad4 sw v0, (v1) | *(v1) = v0;
0x00005ad8 b 0x5884 | goto label_0;
| label_5:
0x00005adc lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00005ae0 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00005ae4 addiu a2, a2, 0x7ea4 | a2 += str.Failed_to_accept_connection:__m;
0x00005ae8 addiu a1, zero, 1 | a1 = 1;
0x00005aec addiu a0, zero, 3 | a0 = 3;
0x00005af0 jalr t9 | t9 ();
0x00005af4 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005af8 b 0x586c | goto label_1;
| label_7:
0x00005afc lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00005b00 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00005b04 addiu a2, a2, 0x7ec4 | a2 += str.Unable_to_get_a_TCP_socket:__m;
0x00005b08 addiu a1, zero, 1 | a1 = 1;
0x00005b0c addiu a0, zero, 3 | a0 = 3;
0x00005b10 jalr t9 | t9 ();
0x00005b14 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005b18 lw t9, -0x7e00(gp) | t9 = *(gp);
0x00005b1c jalr t9 | t9 ();
0x00005b20 nop |
0x00005b24 move v1, v0 | v1 = v0;
0x00005b28 lw v0, (v0) | v0 = *(v0);
0x00005b2c lw gp, 0x18(sp) | gp = *(var_18h);
0x00005b30 sw v0, 0x3c(sp) | *(var_3ch) = v0;
0x00005b34 bne s1, s3, 0x5ab8 |
| } while (s1 != s3);
0x00005b38 sw v0, (v1) | *(v1) = v0;
0x00005b3c b 0x5884 | goto label_0;
| label_10:
0x00005b40 lw v1, 0x34(sp) | v1 = *(var_34h_2);
0x00005b44 lw s0, 0x24(sp) | s0 = *(var_24h_2);
0x00005b48 lw v0, 4(s2) | v0 = *((s2 + 1));
0x00005b4c lw t9, -0x7eac(gp) | t9 = sym.imp.__sprintf_chk
0x00005b50 addiu a3, v1, -0x7398 | a3 = v1 + -0x7398;
0x00005b54 addiu a2, zero, 0x20 | a2 = 0x20;
0x00005b58 addiu a1, zero, 1 | a1 = 1;
0x00005b5c move a0, s0 | a0 = s0;
0x00005b60 sw v0, 0x10(sp) | *(var_10h_2) = v0;
0x00005b64 jalr t9 | t9 ();
0x00005b68 lw v1, 0x30(sp) | v1 = *(var_30h_2);
0x00005b6c lw v0, (s2) | v0 = *(s2);
0x00005b70 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005b74 sw zero, 0x50(sp) | *(var_50h) = 0;
0x00005b78 sw zero, 4(v1) | *((v1 + 1)) = 0;
0x00005b7c sw zero, 8(v1) | *((v1 + 2)) = 0;
0x00005b80 sw zero, 0xc(v1) | *((v1 + 3)) = 0;
0x00005b84 sw zero, 0x10(v1) | *((v1 + 4)) = 0;
0x00005b88 lhu v0, (v0) | v0 = *(v0);
0x00005b8c lw a3, 0x28(sp) | a3 = *(var_28h_2);
0x00005b90 sw v0, 0x48(sp) | *(var_48h) = v0;
0x00005b94 addiu v0, zero, 2 | v0 = 2;
0x00005b98 lw t9, -0x7e60(gp) | t9 = sym.imp.getaddrinfo;
0x00005b9c sw v0, 0x4c(sp) | *(var_4ch) = v0;
0x00005ba0 lw a2, 0x2c(sp) | a2 = *(var_2ch_2);
0x00005ba4 addiu v0, zero, 4 | v0 = 4;
0x00005ba8 move a1, s0 | a1 = s0;
0x00005bac addiu a0, s2, 0xd | a0 = s2 + 0xd;
0x00005bb0 sw v0, 0x44(sp) | *(var_44h) = v0;
0x00005bb4 jalr t9 | t9 ();
0x00005bb8 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00005bbc bnez v0, 0x5c20 |
0x00005bc0 lw s2, 0x40(sp) | s2 = *(var_40h);
0x00005bc4 lw s0, 0x10(s2) | s0 = *((s2 + 4));
0x00005bc8 sltiu v1, s0, 0x81 | v1 = (s0 < 0x81) ? 1 : 0;
0x00005bcc lw t9, -0x7da8(gp) | t9 = sym.imp.__memcpy_chk;
| if (v1 == 0) {
0x00005bd0 beqz v1, 0x5c20 | goto label_9;
| }
0x00005bd4 lw a1, 0x14(s2) | a1 = *((s2 + 5));
0x00005bd8 addiu a3, zero, 0x80 | a3 = 0x80;
0x00005bdc move a2, s0 | a2 = s0;
0x00005be0 move a0, s5 | a0 = s5;
0x00005be4 jalr t9 | t9 ();
0x00005be8 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005bec lw t9, -0x7e34(gp) | t9 = sym.imp.freeaddrinfo;
0x00005bf0 move a0, s2 | a0 = s2;
0x00005bf4 jalr t9 | t9 ();
0x00005bf8 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005bfc move a2, s0 | a2 = s0;
0x00005c00 move a1, s5 | a1 = s5;
0x00005c04 lw t9, -0x7e8c(gp) | t9 = sym.imp.connect;
0x00005c08 move a0, s1 | a0 = s1;
0x00005c0c jalr t9 | t9 ();
0x00005c10 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x00005c14 bltz v0, 0x5c88 | goto label_12;
| }
0x00005c18 move s3, s1 | s3 = s1;
0x00005c1c b 0x5884 | goto label_0;
| }
| label_9:
0x00005c20 lw t9, -0x7d2c(gp) | t9 = sym.imp.gai_strerror;
0x00005c24 move a0, v0 | a0 = v0;
0x00005c28 jalr t9 | t9 ();
0x00005c2c lw gp, 0x18(sp) | gp = *(var_18h);
0x00005c30 move a3, v0 | a3 = v0;
0x00005c34 addiu a1, zero, 1 | a1 = 1;
0x00005c38 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00005c3c lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00005c40 addiu a2, a2, 0x7f14 | a2 += str.Failed_to_getaddrinfo__s;
0x00005c44 addiu a0, zero, 3 | a0 = 3;
0x00005c48 jalr t9 | t9 ();
0x00005c4c lw gp, 0x18(sp) | gp = *(var_18h);
| do {
0x00005c50 lw t9, -0x7e00(gp) | t9 = *(gp);
0x00005c54 jalr t9 | t9 ();
0x00005c58 nop |
0x00005c5c move v1, v0 | v1 = v0;
0x00005c60 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005c64 b 0x5ab0 | goto label_2;
| label_8:
0x00005c68 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00005c6c lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00005c70 addiu a2, a2, 0x7ee4 | a2 += str.Failed_to_enable_socket_option_SO_REUSEADDR:__m;
| label_3:
0x00005c74 addiu a1, zero, 1 | a1 = 1;
0x00005c78 addiu a0, zero, 3 | a0 = 3;
0x00005c7c jalr t9 | t9 ();
0x00005c80 lw gp, 0x18(sp) | gp = *(var_18h);
0x00005c84 b 0x5c50 |
| } while (1);
| label_12:
0x00005c88 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00005c8c lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00005c90 addiu a2, a2, 0x7f5c | a2 += str.Failed_to_connect_data_socket:__m;
0x00005c94 b 0x5c74 | goto label_3;
| label_6:
0x00005c98 lw t9, -0x7d64(gp) | t9 = sym.imp.__stack_chk_fail;
0x00005c9c jalr t9 | t9 ();
0x00005ca0 nop |
0x00005ca4 lui gp, 2 |
0x00005ca8 addiu gp, gp, -0x4b94 |
0x00005cac addu gp, gp, t9 | gp += t9;
0x00005cb0 addiu sp, sp, -0x38 |
0x00005cb4 lw t9, -0x7ea0(gp) | t9 = sym.imp.opendir;
0x00005cb8 sw gp, 0x10(sp) | *(var_10h) = gp;
0x00005cbc sw s5, 0x30(sp) | *(var_30h) = s5;
0x00005cc0 sw s4, 0x2c(sp) | *(var_2ch) = s4;
0x00005cc4 sw s3, 0x28(sp) | *(var_28h) = s3;
0x00005cc8 sw s1, 0x20(sp) | *(var_20h_2) = s1;
0x00005ccc sw ra, 0x34(sp) | *(var_34h) = ra;
0x00005cd0 sw s2, 0x24(sp) | *(var_24h) = s2;
0x00005cd4 sw s0, 0x1c(sp) | *(var_1ch) = s0;
0x00005cd8 move s5, a0 | s5 = a0;
0x00005cdc move s4, a1 | s4 = a1;
0x00005ce0 move s1, a2 | s1 = a2;
0x00005ce4 move s3, a3 | s3 = a3;
0x00005ce8 jalr t9 | t9 ();
0x00005cec lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00005cf0 beqz v0, 0x5e84 | goto label_13;
| }
0x00005cf4 move s2, v0 | s2 = v0;
0x00005cf8 lw v0, -0x7fb4(gp) | v0 = *(gp);
0x00005cfc lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00005d00 lw s0, (v0) | s0 = *(v0);
0x00005d04 move a0, s0 | a0 = s0;
0x00005d08 jalr t9 | t9 ();
0x00005d0c lw gp, 0x10(sp) | gp = *(var_10h);
0x00005d10 move a2, v0 | a2 = v0;
0x00005d14 move a1, s0 | a1 = s0;
0x00005d18 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00005d1c move a0, s4 | a0 = s4;
0x00005d20 jalr t9 | t9 ();
0x00005d24 lw gp, 0x10(sp) | gp = *(var_10h);
0x00005d28 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00005d2c addiu t9, t9, 0x57ec | t9 += fcn.000057ec;
0x00005d30 move a0, s1 | a0 = s1;
0x00005d34 bal 0x57ec | fcn_000057ec ();
| goto label_4;
0x00005d38 move s1, v0 | s1 = v0;
0x00005d3c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 < 0) {
0x00005d40 bltz v0, 0x5e38 | goto label_14;
| }
0x00005d44 lw s3, -0x7fb8(gp) | s3 = *((gp - 8174));
| if (s3 == 0) {
0x00005d48 beqz s3, 0x5e1c | goto label_15;
| }
0x00005d4c addiu s3, s3, -0x7bec | s3 += -0x7bec;
0x00005d50 b 0x5d90 |
| while (v0 != 0) {
0x00005d54 jalr t9 | t9 ();
0x00005d58 nop |
0x00005d5c lw gp, 0x10(sp) | gp = *(var_10h);
0x00005d60 move a2, v0 | a2 = v0;
0x00005d64 move a1, s0 | a1 = s0;
0x00005d68 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00005d6c move a0, s1 | a0 = s1;
0x00005d70 jalr t9 | t9 ();
0x00005d74 lw gp, 0x10(sp) | gp = *(var_10h);
0x00005d78 addiu a2, zero, 2 | a2 = 2;
0x00005d7c move a1, s3 | a1 = s3;
0x00005d80 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00005d84 move a0, s1 | a0 = s1;
0x00005d88 jalr t9 | t9 ();
0x00005d8c lw gp, 0x10(sp) | gp = *(var_10h);
0x00005d90 lw t9, -0x7e30(gp) | t9 = *(gp);
0x00005d94 move a0, s2 | a0 = s2;
0x00005d98 jalr t9 | t9 ();
0x00005d9c lw gp, 0x10(sp) | gp = *(var_10h);
0x00005da0 addiu s0, v0, 0xb | s0 = v0 + 0xb;
0x00005da4 move a0, s0 | a0 = s0;
0x00005da8 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00005dac bnez v0, 0x5d54 |
| }
| do {
0x00005db0 lw t9, -0x7e94(gp) | t9 = sym.imp.closedir;
0x00005db4 move a0, s2 | a0 = s2;
0x00005db8 jalr t9 | t9 ();
0x00005dbc lw gp, 0x10(sp) | gp = *(var_10h);
0x00005dc0 lw v0, -0x7fb0(gp) | v0 = *(gp);
0x00005dc4 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00005dc8 lw s0, (v0) | s0 = *(v0);
0x00005dcc move a0, s0 | a0 = s0;
0x00005dd0 jalr t9 | t9 ();
0x00005dd4 lw gp, 0x10(sp) | gp = *(var_10h);
0x00005dd8 move a0, s4 | a0 = s4;
0x00005ddc move a1, s0 | a1 = s0;
0x00005de0 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00005de4 move a2, v0 | a2 = v0;
0x00005de8 jalr t9 | t9 ();
0x00005dec lw gp, 0x10(sp) | gp = *(var_10h);
0x00005df0 lw ra, 0x34(sp) | ra = *(var_34h);
0x00005df4 lw s5, 0x30(sp) | s5 = *(var_30h);
0x00005df8 lw s4, 0x2c(sp) | s4 = *(var_2ch);
0x00005dfc lw s3, 0x28(sp) | s3 = *(var_28h);
0x00005e00 lw s2, 0x24(sp) | s2 = *(var_24h);
0x00005e04 lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00005e08 move a0, s1 | a0 = s1;
0x00005e0c lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x00005e10 lw s1, 0x20(sp) | s1 = *(var_20h_2);
0x00005e14 addiu sp, sp, 0x38 |
0x00005e18 jr t9 | t9 ();
| label_15:
0x00005e1c lw t9, -0x7fac(gp) | t9 = sym.ls;
0x00005e20 move a2, v0 | a2 = v0;
0x00005e24 move a1, s2 | a1 = s2;
0x00005e28 move a0, s5 | a0 = s5;
0x00005e2c bal 0x6d80 | sym_ls ();
0x00005e30 lw gp, 0x10(sp) | gp = *(var_10h);
0x00005e34 b 0x5db0 |
| } while (1);
| label_14:
0x00005e38 lw v0, -0x7fa8(gp) | v0 = *(gp);
0x00005e3c lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00005e40 lw s0, (v0) | s0 = *(v0);
0x00005e44 move a0, s0 | a0 = s0;
0x00005e48 jalr t9 | t9 ();
0x00005e4c lw gp, 0x10(sp) | gp = *(var_10h);
0x00005e50 lw ra, 0x34(sp) | ra = *(var_34h);
0x00005e54 lw s5, 0x30(sp) | s5 = *(var_30h);
0x00005e58 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00005e5c lw s2, 0x24(sp) | s2 = *(var_24h);
0x00005e60 lw s1, 0x20(sp) | s1 = *(var_20h_2);
0x00005e64 move a1, s0 | a1 = s0;
0x00005e68 move a0, s4 | a0 = s4;
0x00005e6c lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00005e70 lw s4, 0x2c(sp) | s4 = *(var_2ch);
0x00005e74 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00005e78 move a2, v0 | a2 = v0;
0x00005e7c addiu sp, sp, 0x38 |
0x00005e80 jr t9 | t9 ();
| label_13:
0x00005e84 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00005e88 lw ra, 0x34(sp) | ra = *(var_34h);
0x00005e8c lw s5, 0x30(sp) | s5 = *(var_30h);
0x00005e90 lw s3, 0x28(sp) | s3 = *(var_28h);
0x00005e94 lw s2, 0x24(sp) | s2 = *(var_24h);
0x00005e98 lw s1, 0x20(sp) | s1 = *(var_20h_2);
0x00005e9c lw s0, 0x1c(sp) | s0 = *(var_1ch);
0x00005ea0 move a0, s4 | a0 = s4;
0x00005ea4 lw s4, 0x2c(sp) | s4 = *(var_2ch);
0x00005ea8 addiu t9, t9, 0x50f0 | t9 += fcn.000050f0;
0x00005eac addiu sp, sp, 0x38 |
0x00005eb0 b 0x50f0 | return void (*0x50f0)() ();
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vftpd @ 0x2360 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
| /* [13] -r-x section size 21136 named .text */
0x00002360 lui gp, 2 |
0x00002364 addiu gp, gp, -0x1250 |
0x00002368 addu gp, gp, t9 | gp += t9;
0x0000236c lw v1, -0x7fb8(gp) | v1 = *((gp - 8174));
0x00002370 lw a3, -0x7d3c(gp) | a3 = *((gp - 8015));
0x00002374 addiu sp, sp, -0x6b0 |
0x00002378 addiu v0, v1, -0x7c54 | v0 = v1 + -0x7c54;
0x0000237c lw t0, -0x7fc0(gp) | t0 = *((gp - 8176));
0x00002380 lw a2, -0x7c54(v1) | a2 = *((v1 - 7957));
0x00002384 sw s2, 0x690(sp) | *(var_690h) = s2;
0x00002388 lw v1, 4(v0) | v1 = *((v0 + 1));
0x0000238c sw a3, 0x48(sp) | *(var_48h) = a3;
0x00002390 lhu v0, 8(v0) | v0 = *((v0 + 4));
0x00002394 lw a3, (a3) | a3 = *(a3);
0x00002398 sw t0, 0x3c(sp) | *(var_3ch) = t0;
0x0000239c lw s2, -0x7fdc(gp) | s2 = *(gp);
0x000023a0 lw t0, -0x7fc0(gp) | t0 = *((gp - 8176));
0x000023a4 sw fp, 0x6a8(sp) | *(var_6a8h) = fp;
0x000023a8 sw s7, 0x6a4(sp) | *(var_6a4h) = s7;
0x000023ac sw s3, 0x694(sp) | *(var_694h) = s3;
0x000023b0 lw s7, -0x7fc0(gp) | s7 = *((gp - 8176));
0x000023b4 lw s3, -0x7fc0(gp) | s3 = *((gp - 8176));
0x000023b8 lw fp, -0x7fc0(gp) | fp = *((gp - 8176));
0x000023bc sw s6, 0x6a0(sp) | *(var_6a0h) = s6;
0x000023c0 sw s5, 0x69c(sp) | *(var_69ch) = s5;
0x000023c4 sw s4, 0x698(sp) | *(var_698h) = s4;
0x000023c8 sw s1, 0x68c(sp) | *(var_68ch) = s1;
0x000023cc sw s0, 0x688(sp) | *(var_688h) = s0;
0x000023d0 sw gp, 0x28(sp) | *(var_28h) = gp;
0x000023d4 sw ra, 0x6ac(sp) | *(var_6ach) = ra;
0x000023d8 sw t0, 0x34(sp) | *(var_34h) = t0;
0x000023dc move s0, a0 | s0 = a0;
0x000023e0 move s1, a1 | s1 = a1;
0x000023e4 sw a3, 0x684(sp) | *(var_684h) = a3;
0x000023e8 sw a2, 0x294(sp) | *(var_294h) = a2;
0x000023ec sw v1, 0x298(sp) | *(var_298h) = v1;
0x000023f0 sh v0, 0x29c(sp) | *(var_29ch) = v0;
0x000023f4 addiu s4, zero, 1 | s4 = 1;
0x000023f8 move s5, zero | s5 = 0;
0x000023fc addiu s6, sp, 0x294 | s6 = sp + 0x294;
0x00002400 addiu s2, s2, 0x7d34 | s2 += 0x7d34;
| do {
0x00002404 lw t9, -0x7de0(gp) | t9 = sym.imp.getopt;
0x00002408 move a2, s6 | a2 = s6;
0x0000240c move a1, s1 | a1 = s1;
0x00002410 move a0, s0 | a0 = s0;
0x00002414 jalr t9 | t9 ();
0x00002418 addiu v1, zero, -1 | v1 = -1;
0x0000241c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == v1) {
0x00002420 beq v0, v1, 0x2558 | goto label_39;
| }
0x00002424 addiu v0, v0, -0x51 | v0 += -0x51;
0x00002428 sltiu v1, v0, 0x22 | v1 = (v0 < 0x22) ? 1 : 0;
0x0000242c sll v0, v0, 2 | v0 <<= 2;
0x00002430 beqz v1, 0x2404 |
| } while (v1 == 0);
0x00002434 lwx v0, v0(s2) | __asm ("lwx v0, v0(s2)");
0x00002438 addu v0, v0, gp | v0 += gp;
0x0000243c jr v0 | v0 ();
0x00002440 nop |
| label_39:
0x00002558 lw v0, -0x7d60(gp) | v0 = *((gp - 8024));
0x0000255c lw v0, (v0) | v0 = *(v0);
0x00002560 slt s0, v0, s0 | s0 = (v0 < s0) ? 1 : 0;
0x00002564 sll v0, v0, 2 | v0 <<= 2;
| if (s0 != 0) {
0x00002568 bnez s0, 0x3038 | goto label_40;
| }
| label_10:
0x0000256c lw a0, -0x7fdc(gp) | a0 = *(gp);
0x00002570 lw t9, -0x7e44(gp) | t9 = sym.imp.openlog;
0x00002574 addiu a2, zero, 0x58 | a2 = 0x58;
0x00002578 move a1, s4 | a1 = s4;
0x0000257c addiu a0, a0, 0x7f94 | a0 += str.vftpd;
0x00002580 jalr t9 | t9 ();
0x00002584 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002588 addiu a1, zero, 1 | a1 = 1;
0x0000258c addiu a0, zero, 6 | a0 = 6;
0x00002590 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00002594 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00002598 addiu a2, a2, 0x7f9c | a2 += str.Starting_vftpd_0.01;
0x0000259c jalr t9 | t9 ();
0x000025a0 lw v1, -0x6fec(s3) | v1 = *((s3 - 7163));
0x000025a4 addiu v0, zero, 1 | v0 = 1;
0x000025a8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v1 == v0) {
0x000025ac beq v1, v0, 0x2fec | goto label_41;
| }
| label_9:
0x000025b0 lw t9, -0x7e2c(gp) | t9 = sym.imp.sigemptyset;
0x000025b4 addiu s0, sp, 0x204 | s0 = sp + 0x204;
0x000025b8 move a0, s0 | a0 = s0;
0x000025bc sw zero, 0x1fc(sp) | *(var_1fch) = 0;
0x000025c0 jalr t9 | t9 ();
0x000025c4 addiu s1, sp, 0x1fc | s1 = sp + 0x1fc;
0x000025c8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x000025cc bltz v0, 0x4bcc | goto label_42;
| }
0x000025d0 lw t9, -0x7de4(gp) | t9 = sym.imp.sigaddset;
0x000025d4 addiu a1, zero, 0x12 | a1 = 0x12;
0x000025d8 move a0, s0 | a0 = s0;
0x000025dc jalr t9 | t9 ();
0x000025e0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x000025e4 bltz v0, 0x3090 | goto label_43;
| }
0x000025e8 lw t9, -0x7de4(gp) | t9 = sym.imp.sigaddset;
0x000025ec addiu a1, zero, 0xd | a1 = 0xd;
0x000025f0 move a0, s0 | a0 = s0;
0x000025f4 jalr t9 | t9 ();
0x000025f8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x000025fc bltz v0, 0x3090 | goto label_43;
| }
0x00002600 lw t9, -0x7de4(gp) | t9 = sym.imp.sigaddset;
0x00002604 addiu a1, zero, 0xf | a1 = 0xf;
0x00002608 move a0, s0 | a0 = s0;
0x0000260c jalr t9 | t9 ();
0x00002610 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00002614 bltz v0, 0x3090 | goto label_43;
| }
0x00002618 lw t9, -0x7de4(gp) | t9 = sym.imp.sigaddset;
0x0000261c addiu a1, zero, 0xb | a1 = 0xb;
0x00002620 move a0, s0 | a0 = s0;
0x00002624 jalr t9 | t9 ();
0x00002628 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x0000262c bltz v0, 0x3090 | goto label_43;
| }
0x00002630 lw t9, -0x7de4(gp) | t9 = sym.imp.sigaddset;
0x00002634 addiu a1, zero, 0xa | a1 = 0xa;
0x00002638 move a0, s0 | a0 = s0;
0x0000263c jalr t9 | t9 ();
0x00002640 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00002644 bltz v0, 0x3090 | goto label_43;
| }
0x00002648 lw t9, -0x7de4(gp) | t9 = sym.imp.sigaddset;
0x0000264c addiu a1, zero, 2 | a1 = 2;
0x00002650 move a0, s0 | a0 = s0;
0x00002654 jalr t9 | t9 ();
0x00002658 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x0000265c bltz v0, 0x3090 | goto label_43;
| }
0x00002660 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x00002664 lw t9, -0x7e68(gp) | t9 = sym.imp.sigaction;
0x00002668 addiu v0, v0, 0x5224 | v0 += 0x5224;
0x0000266c move a2, zero | a2 = 0;
0x00002670 move a1, s1 | a1 = s1;
0x00002674 addiu a0, zero, 0x12 | a0 = 0x12;
0x00002678 sw v0, 0x200(sp) | *(var_200h) = v0;
0x0000267c jalr t9 | t9 ();
0x00002680 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00002684 bltz v0, 0x30c0 | goto label_44;
| }
0x00002688 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x0000268c lw t9, -0x7e68(gp) | t9 = sym.imp.sigaction;
0x00002690 addiu v0, v0, 0x51ac | v0 += 0x51ac;
0x00002694 move a2, zero | a2 = 0;
0x00002698 move a1, s1 | a1 = s1;
0x0000269c addiu a0, zero, 0xf | a0 = 0xf;
0x000026a0 sw v0, 0x200(sp) | *(var_200h) = v0;
0x000026a4 jalr t9 | t9 ();
0x000026a8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x000026ac bltz v0, 0x30c0 | goto label_44;
| }
0x000026b0 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x000026b4 lw t9, -0x7e68(gp) | t9 = sym.imp.sigaction;
0x000026b8 addiu v0, v0, 0x51e0 | v0 += 0x51e0;
0x000026bc move a2, zero | a2 = 0;
0x000026c0 move a1, s1 | a1 = s1;
0x000026c4 addiu a0, zero, 0xb | a0 = 0xb;
0x000026c8 sw v0, 0x200(sp) | *(var_200h) = v0;
0x000026cc jalr t9 | t9 ();
0x000026d0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x000026d4 bltz v0, 0x30c0 | goto label_44;
| }
0x000026d8 lw t9, -0x7e68(gp) | t9 = sym.imp.sigaction;
0x000026dc move a2, zero | a2 = 0;
0x000026e0 move a1, s1 | a1 = s1;
0x000026e4 addiu a0, zero, 0xa | a0 = 0xa;
0x000026e8 jalr t9 | t9 ();
0x000026ec lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x000026f0 bltz v0, 0x30c0 | goto label_44;
| }
0x000026f4 lw t9, -0x7e68(gp) | t9 = sym.imp.sigaction;
0x000026f8 move a2, zero | a2 = 0;
0x000026fc move a1, s1 | a1 = s1;
0x00002700 addiu a0, zero, 2 | a0 = 2;
0x00002704 jalr t9 | t9 ();
0x00002708 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x0000270c bltz v0, 0x30c0 | goto label_44;
| }
0x00002710 lw t9, -0x7e68(gp) | t9 = sym.imp.sigaction;
0x00002714 addiu v0, zero, 1 | v0 = 1;
0x00002718 move a2, zero | a2 = 0;
0x0000271c move a1, s1 | a1 = s1;
0x00002720 addiu a0, zero, 0xd | a0 = 0xd;
0x00002724 sw v0, 0x200(sp) | *(var_200h) = v0;
0x00002728 jalr t9 | t9 ();
0x0000272c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00002730 bltz v0, 0x30c0 | goto label_44;
| }
0x00002734 lw v1, -0x7fc0(gp) | v1 = *((gp - 8176));
0x00002738 ori a0, zero, 0xffff | a0 = 0xffff;
0x0000273c lw v0, -0x6b6c(v1) | v0 = *((v1 - 6875));
0x00002740 addiu v0, v0, -1 | v0 += -1;
0x00002744 sltu v0, v0, a0 | v0 = (v0 < a0) ? 1 : 0;
0x00002748 lw v0, -0x6b6c(v1) | v0 = *((v1 - 6875));
| if (v0 == 0) {
0x0000274c bnez v0, 0x275c |
0x00002750 addiu v0, zero, 0x15 | v0 = 0x15;
0x00002754 sw v0, -0x6b6c(v1) | *((v1 - 6875)) = v0;
0x00002758 lw v0, -0x6b6c(v1) | v0 = *((v1 - 6875));
| }
0x0000275c lw t9, -0x7d04(gp) | t9 = sym.imp.__snprintf_chk;
0x00002760 sw v0, 0x14(sp) | *(var_14h) = v0;
0x00002764 lw v0, -0x7fb8(gp) | v0 = *((gp - 8174));
0x00002768 addiu s0, sp, 0x28c | s0 = sp + 0x28c;
0x0000276c addiu v0, v0, -0x7fe4 | v0 += -0x7fe4;
0x00002770 addiu a3, zero, 6 | a3 = 6;
0x00002774 addiu a2, zero, 1 | a2 = 1;
0x00002778 addiu a1, zero, 5 | a1 = 5;
0x0000277c move a0, s0 | a0 = s0;
0x00002780 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00002784 jalr t9 | t9 ();
0x00002788 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000278c addiu v0, zero, 1 | v0 = 1;
0x00002790 sw v0, 0x88(sp) | *(var_88h) = v0;
0x00002794 lw t9, -0x7e60(gp) | t9 = sym.imp.getaddrinfo;
0x00002798 addiu v0, zero, 2 | v0 = 2;
0x0000279c sw zero, 0x8c(sp) | *(var_8ch) = 0;
0x000027a0 sw zero, 0x94(sp) | *(var_94h) = 0;
0x000027a4 sw zero, 0x98(sp) | *(var_98h) = 0;
0x000027a8 sw zero, 0x9c(sp) | *(var_9ch) = 0;
0x000027ac sw zero, 0xa0(sp) | *(var_a0h) = 0;
0x000027b0 sw zero, 0xa4(sp) | *(var_a4h) = 0;
0x000027b4 addiu a3, sp, 0x64 | a3 = sp + 0x64;
0x000027b8 addiu a2, sp, 0x88 | a2 = sp + 0x88;
0x000027bc move a1, s0 | a1 = s0;
0x000027c0 move a0, zero | a0 = 0;
0x000027c4 sb zero, 0x291(sp) | *(var_291h) = 0;
0x000027c8 sw v0, 0x90(sp) | *(var_90h) = v0;
0x000027cc jalr t9 | t9 ();
0x000027d0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x000027d4 bnez v0, 0x305c | goto label_45;
| }
| label_11:
0x000027d8 lw fp, 0x64(sp) | fp = *(var_64h);
0x000027dc move s3, zero | s3 = 0;
| if (fp == 0) {
0x000027e0 beqz fp, 0x40c8 | goto label_46;
| }
0x000027e4 lw s6, -0x7fb8(gp) | s6 = *((gp - 8174));
0x000027e8 lw s0, -0x7fdc(gp) | s0 = *(gp);
0x000027ec lw s7, -0x7fb8(gp) | s7 = *((gp - 8174));
0x000027f0 addiu v0, s6, -0x7fe0 | v0 = s6 + -0x7fe0;
0x000027f4 lw s5, -0x7fc0(gp) | s5 = *((gp - 8176));
0x000027f8 lw s4, -0x7fc0(gp) | s4 = *((gp - 8176));
0x000027fc addiu s0, s0, 0x55c0 | s0 += fcn.000055c0;
0x00002800 addiu s7, s7, -0x7fd0 | s7 += -0x7fd0;
0x00002804 sw v0, 0x34(sp) | *(var_34h) = v0;
0x00002808 lw a0, 4(fp) | a0 = *(arg_4h);
| do {
| label_0:
0x0000280c addiu s2, zero, 1 | s2 = 1;
0x00002810 lw t9, -0x7e5c(gp) | t9 = sym.imp.socket;
| if (a0 == s2) {
0x00002814 beq a0, s2, 0x2928 | goto label_47;
| }
0x00002818 lw a2, 0xc(fp) | a2 = *(arg_ch);
0x0000281c lw a1, 8(fp) | a1 = *(arg_8h);
0x00002820 jalr t9 | t9 ();
0x00002824 sll a0, s3, 2 | a0 = s3 << 2;
0x00002828 addiu v1, sp, 0x688 | v1 = sp + 0x688;
0x0000282c addu a0, v1, a0 | a0 = v1 + a0;
0x00002830 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002834 move s6, v0 | s6 = v0;
0x00002838 sw v0, -0x5e0(a0) | *((arg_4h - 94)) = v0;
| if (v0 < 0) {
0x0000283c bltz v0, 0x2928 | goto label_47;
| }
0x00002840 sw s2, 0x80(sp) | *(var_80h) = s2;
0x00002844 lw a0, 4(fp) | a0 = *(arg_4h);
0x00002848 addiu v0, zero, 0xa | v0 = 0xa;
0x0000284c lw t9, -0x7cf4(gp) | t9 = sym.imp.setsockopt;
| if (a0 == v0) {
0x00002850 beq a0, v0, 0x2fb8 | goto label_48;
| }
0x00002854 addiu s2, sp, 0x80 | s2 = sp + 0x80;
| label_7:
0x00002858 lw t9, -0x7cf4(gp) | t9 = sym.imp.setsockopt;
0x0000285c addiu v0, zero, 4 | v0 = 4;
0x00002860 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00002864 move a3, s2 | a3 = s2;
0x00002868 addiu a2, zero, 4 | a2 = 4;
0x0000286c ori a1, zero, 0xffff | a1 = 0xffff;
0x00002870 move a0, s6 | a0 = s6;
0x00002874 jalr t9 | t9 ();
0x00002878 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x0000287c bltz v0, 0x28fc | goto label_49;
| }
0x00002880 lw a3, -0x6b5c(s5) | a3 = *((s5 - 6871));
0x00002884 lw a2, -0x6b54(s4) | a2 = *((s4 - 6869));
0x00002888 lw a0, 4(fp) | a0 = *(arg_4h);
0x0000288c move t9, s0 | t9 = s0;
0x00002890 move a1, s6 | a1 = s6;
0x00002894 bal 0x55c0 | fcn_000055c0 ();
0x00002898 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000289c lw a2, 0x10(fp) | a2 = *(arg_10h);
0x000028a0 lw a1, 0x14(fp) | a1 = *(arg_14h);
0x000028a4 lw t9, -0x7de8(gp) | t9 = *(gp);
0x000028a8 move a0, s6 | a0 = s6;
0x000028ac jalr t9 | t9 ();
0x000028b0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x000028b4 bltz v0, 0x2fe0 | goto label_50;
| }
0x000028b8 lw t9, -0x7e38(gp) | t9 = sym.imp.listen;
0x000028bc addiu a1, zero, 1 | a1 = 1;
0x000028c0 move a0, s6 | a0 = s6;
0x000028c4 jalr t9 | t9 ();
0x000028c8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x000028cc bltz v0, 0x302c | goto label_51;
| }
0x000028d0 lw fp, 0x1c(fp) | fp = *(arg_1ch);
0x000028d4 addiu s3, s3, 1 | s3++;
| if (fp == 0) {
0x000028d8 beqz fp, 0x2934 | goto label_52;
| }
0x000028dc addiu v0, zero, 2 | v0 = 2;
0x000028e0 lw a0, 4(fp) | a0 = *(arg_4h);
0x000028e4 bnel s3, v0, 0x280c |
| } while (s3 == v0);
0x000028e8 lw t9, -0x7e34(gp) | t9 = sym.imp.freeaddrinfo;
0x000028ec lw a0, 0x64(sp) | a0 = *(var_64h);
0x000028f0 jalr t9 | t9 ();
0x000028f4 lw gp, 0x28(sp) | gp = *(var_28h);
0x000028f8 b 0x2948 | goto label_53;
| label_49:
0x000028fc lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00002900 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00002904 addiu a2, a2, 0x7e30 | a2 += str.Error_setsockopt.__m;
| label_8:
0x00002908 addiu a1, zero, 1 | a1 = 1;
0x0000290c addiu a0, zero, 3 | a0 = 3;
0x00002910 jalr t9 | t9 ();
0x00002914 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002918 lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x0000291c move a0, s6 | a0 = s6;
0x00002920 jalr t9 | t9 ();
0x00002924 lw gp, 0x28(sp) | gp = *(var_28h);
| label_47:
0x00002928 lw fp, 0x1c(fp) | fp = *(arg_1ch);
0x0000292c lw a0, 4(fp) | a0 = *(arg_4h);
| if (fp == 0) {
0x00002930 bnel fp, zero, 0x280c | goto label_0;
| }
| label_52:
0x00002934 lw t9, -0x7e34(gp) | t9 = sym.imp.freeaddrinfo;
0x00002938 lw a0, 0x64(sp) | a0 = *(var_64h);
0x0000293c jalr t9 | t9 ();
0x00002940 lw gp, 0x28(sp) | gp = *(var_28h);
| if (s3 == 0) {
0x00002944 beqz s3, 0x40d8 | goto label_54;
| }
| label_53:
0x00002948 lw v0, -0x7fc0(gp) | v0 = *((gp - 8176));
0x0000294c lw s4, -0x7fc0(gp) | s4 = *((gp - 8176));
0x00002950 sw v0, 0x3c(sp) | *(var_3ch) = v0;
0x00002954 lw v0, -0x7fc0(gp) | v0 = *((gp - 8176));
0x00002958 addiu fp, sp, 0x17c | fp = sp + 0x17c;
0x0000295c sw v0, 0x34(sp) | *(var_34h) = v0;
0x00002960 addiu v0, sp, 0xa8 | v0 = sp + 0xa8;
0x00002964 sw v0, 0x40(sp) | *(var_40h) = v0;
0x00002968 lw v0, -0x7fb8(gp) | v0 = *((gp - 8174));
0x0000296c addiu v0, v0, -0x7fbc | v0 += -0x7fbc;
0x00002970 sw v0, 0x44(sp) | *(var_44h) = v0;
| label_1:
0x00002974 move v0, fp | v0 = fp;
0x00002978 sw zero, (v0) | *(v0) = 0;
| do {
0x0000297c addiu v0, v0, 4 | v0 += 4;
0x00002980 sw zero, (v0) | *(v0) = 0;
0x00002984 bnel s1, v0, 0x297c |
| } while (s1 == v0);
0x00002988 lw a3, 0x40(sp) | a3 = *(var_40h);
0x0000298c lui s5, 0x8000 | s5 = 0x80000000;
0x00002990 move s0, a3 | s0 = a3;
0x00002994 move s7, zero | s7 = 0;
0x00002998 move s6, zero | s6 = 0;
0x0000299c addiu s5, s5, 0x1f | s5 += 0x1f;
| do {
0x000029a0 lw s2, (a3) | s2 = *(a3);
0x000029a4 lw t9, -0x7d6c(gp) | t9 = sym.imp.__fdelt_chk;
0x000029a8 sw a3, 0x38(sp) | *(var_38h) = a3;
0x000029ac move a0, s2 | a0 = s2;
0x000029b0 jalr t9 | t9 ();
0x000029b4 sll v0, v0, 2 | v0 <<= 2;
0x000029b8 addiu a0, sp, 0x688 | a0 = sp + 0x688;
0x000029bc and v1, s2, s5 | v1 = s2 & s5;
0x000029c0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000029c4 addu t1, a0, v0 | t1 = a0 + v0;
0x000029c8 lw a3, 0x38(sp) | a3 = *(var_38h);
| if (v1 < 0) {
0x000029cc bgez v1, 0x29e4 |
0x000029d0 addiu v1, v1, -1 | v1 += -1;
0x000029d4 addiu a0, zero, -0x20 | a0 = -0x20;
0x000029d8 or v1, v1, a0 | v1 |= a0;
0x000029dc addiu v1, v1, 1 | v1++;
0x000029e0 addiu a0, sp, 0x688 | a0 = sp + 0x688;
| }
0x000029e4 addu v0, a0, v0 | v0 = a0 + v0;
0x000029e8 addiu a0, zero, 1 | a0 = 1;
0x000029ec lw v0, -0x50c(v0) | v0 = *((v0 - 323));
0x000029f0 addiu a1, s6, 1 | a1 = s6 + 1;
0x000029f4 sllv v1, a0, v1 | v1 = a0 << v1;
0x000029f8 or v1, v1, v0 | v1 |= v0;
0x000029fc slt a0, s7, s2 | a0 = (s7 < s2) ? 1 : 0;
0x00002a00 slt v0, a1, s3 | v0 = (a1 < s3) ? 1 : 0;
0x00002a04 sw v1, -0x50c(t1) | *((t1 - 323)) = v1;
| if (a0 == 0) {
0x00002a08 movn s7, s2, a0 | s7 = s2;
| }
0x00002a0c addiu a3, a3, 4 | a3 += 4;
0x00002a10 addiu s6, zero, 1 | s6 = 1;
0x00002a14 bnez v0, 0x29a0 |
| } while (v0 != 0);
0x00002a18 addiu s2, s7, 1 | s2 = s7 + 1;
0x00002a1c addiu s5, zero, -1 | s5 = -1;
0x00002a20 addiu s6, zero, 4 | s6 = 4;
0x00002a24 b 0x2a4c |
| while (v0 == s5) {
0x00002a28 lw t9, -0x7e00(gp) | t9 = *(gp);
0x00002a2c move s7, s4 | s7 = s4;
0x00002a30 jalr t9 | t9 ();
0x00002a34 lw v1, (v0) | v1 = *(v0);
0x00002a38 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002a3c lw v0, -0x6bc0(s4) | v0 = *((s4 - 6896));
| if (v1 != s6) {
0x00002a40 bne v1, s6, 0x2a7c | goto label_55;
| }
0x00002a44 lw t9, -0x7e90(gp) | t9 = sym.imp.close;
| if (v0 != 0) {
0x00002a48 bnez v0, 0x2f50 | goto label_56;
| }
0x00002a4c lw t9, -0x7d54(gp) | t9 = sym.imp.select;
0x00002a50 sw zero, 0x10(sp) | *(var_10h) = 0;
0x00002a54 move a3, zero | a3 = 0;
0x00002a58 move a2, zero | a2 = 0;
0x00002a5c move a1, fp | a1 = fp;
0x00002a60 move a0, s2 | a0 = s2;
0x00002a64 jalr t9 | t9 ();
0x00002a68 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002a6c beq v0, s5, 0x2a28 |
| }
0x00002a70 lw v0, -0x6bc0(s4) | v0 = *((s4 - 6896));
| if (v0 == 0) {
0x00002a74 beqz v0, 0x2f4c | goto label_57;
| }
0x00002a78 move s7, s4 | s7 = s4;
| label_55:
0x00002a7c lui s5, 0x8000 | s5 = 0x80000000;
| if (v0 != 0) {
0x00002a80 bnez v0, 0x2f4c | goto label_57;
| }
0x00002a84 move s2, zero | s2 = 0;
0x00002a88 addiu s5, s5, 0x1f | s5 += 0x1f;
0x00002a8c b 0x2aa4 | goto label_58;
| label_3:
0x00002a90 addiu s2, s2, 1 | s2++;
| label_2:
0x00002a94 slt v0, s2, s3 | v0 = (s2 < s3) ? 1 : 0;
0x00002a98 addiu s0, s0, 4 | s0 += 4;
0x00002a9c addiu s2, zero, 1 | s2 = 1;
| if (v0 == 0) {
0x00002aa0 beqz v0, 0x2974 | goto label_1;
| }
| label_58:
0x00002aa4 lw s6, (s0) | s6 = *(s0);
0x00002aa8 lw t9, -0x7d6c(gp) | t9 = sym.imp.__fdelt_chk;
0x00002aac move a0, s6 | a0 = s6;
0x00002ab0 jalr t9 | t9 ();
0x00002ab4 and v1, s6, s5 | v1 = s6 & s5;
0x00002ab8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v1 < 0) {
0x00002abc bgez v1, 0x2ad0 |
0x00002ac0 addiu v1, v1, -1 | v1 += -1;
0x00002ac4 addiu a0, zero, -0x20 | a0 = -0x20;
0x00002ac8 or v1, v1, a0 | v1 |= a0;
0x00002acc addiu v1, v1, 1 | v1++;
| }
0x00002ad0 addiu a0, sp, 0x688 | a0 = sp + 0x688;
0x00002ad4 sll v0, v0, 2 | v0 <<= 2;
0x00002ad8 addu v0, a0, v0 | v0 = a0 + v0;
0x00002adc lw a0, -0x50c(v0) | a0 = *((v0 - 323));
0x00002ae0 addiu v0, zero, 1 | v0 = 1;
0x00002ae4 sllv v0, v0, v1 | v0 <<= v1;
0x00002ae8 and v0, v0, a0 | v0 &= a0;
| if (v0 == 0) {
0x00002aec beql v0, zero, 0x2a94 | goto label_2;
| }
0x00002af0 addiu s2, s2, 1 | s2++;
0x00002af4 addiu v0, sp, 0xfc | v0 = sp + 0xfc;
0x00002af8 lw t9, -0x7d8c(gp) | t9 = sym.imp.accept;
0x00002afc sw v0, 0x38(sp) | *(var_38h) = v0;
0x00002b00 move a1, v0 | a1 = v0;
0x00002b04 addiu v0, zero, 0x80 | v0 = 0x80;
0x00002b08 move a0, s6 | a0 = s6;
0x00002b0c addiu a2, sp, 0x68 | a2 = sp + 0x68;
0x00002b10 sw v0, 0x68(sp) | *(var_68h) = v0;
0x00002b14 jalr t9 | t9 ();
0x00002b18 move s6, v0 | s6 = v0;
0x00002b1c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00002b20 bltz v0, 0x2a90 | goto label_3;
| }
0x00002b24 lw v0, 0x3c(sp) | v0 = *(var_3ch);
0x00002b28 lw v1, -0x6ff0(v0) | v1 = *((v0 - 7164));
0x00002b2c lw v0, 0x34(sp) | v0 = *(var_34h);
0x00002b30 lw v0, -0x6b64(v0) | v0 = *((v0 - 6873));
| if (v1 > 0) {
0x00002b34 blez v1, 0x2b44 |
0x00002b38 slt v1, v0, v1 | v1 = (v0 < v1) ? 1 : 0;
| if (v1 == 0) {
0x00002b3c beql v1, zero, 0x2f08 | goto label_59;
| }
0x00002b40 lw v0, -0x7fa0(gp) | v0 = *(gp);
| }
0x00002b44 lw v1, 0x34(sp) | v1 = *(var_34h);
0x00002b48 lw t9, -0x7e28(gp) | t9 = sym.imp.fork;
0x00002b4c addiu v0, v0, 1 | v0++;
0x00002b50 sw v0, -0x6b64(v1) | *((v1 - 6873)) = v0;
0x00002b54 jalr t9 | t9 ();
0x00002b58 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00002b5c bltz v0, 0x2eec | goto label_60;
| }
0x00002b60 addiu s2, s2, 1 | s2++;
| if (v0 == 0) {
0x00002b64 bnel v0, zero, 0x2a94 | goto label_2;
| }
0x00002b68 addiu v0, zero, 1 | v0 = 1;
0x00002b6c sw v0, 0x18(sp) | *(var_18h) = v0;
0x00002b70 addiu v0, zero, 0x20 | v0 = 0x20;
0x00002b74 sw v0, 0x14(sp) | *(var_14h) = v0;
0x00002b78 lw v0, 0x38(sp) | v0 = *(var_38h);
0x00002b7c lw t9, -0x7e24(gp) | t9 = sym.imp.getnameinfo;
0x00002b80 addiu a2, sp, 0x2c0 | a2 = sp + 0x2c0;
0x00002b84 move a0, v0 | a0 = v0;
0x00002b88 sw v0, 0xb0(sp) | *(var_b0h) = v0;
0x00002b8c addiu s0, sp, 0x2a0 | s0 = sp + 0x2a0;
0x00002b90 addiu v0, zero, -1 | v0 = -1;
0x00002b94 sw a2, 0x3c(sp) | *(var_3ch) = a2;
0x00002b98 sw s0, 0x10(sp) | *(var_10h) = s0;
0x00002b9c addiu a3, zero, 0x2e | a3 = 0x2e;
0x00002ba0 addiu a1, zero, 0x80 | a1 = 0x80;
0x00002ba4 sb zero, 0x47c(sp) | *(var_47ch) = 0;
0x00002ba8 sw v0, 0xb8(sp) | *(var_b8h) = v0;
0x00002bac sb zero, 0xbc(sp) | *(var_bch) = 0;
0x00002bb0 sb zero, 0x2f0(sp) | *(var_2f0h) = 0;
0x00002bb4 jalr t9 | t9 ();
0x00002bb8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00002bbc bnez v0, 0x408c | goto label_61;
| }
| label_21:
0x00002bc0 lw s2, -0x7fc0(gp) | s2 = *((gp - 8176));
0x00002bc4 lw a2, -0x7fb8(gp) | a2 = *((gp - 8174));
0x00002bc8 lw a3, 0x3c(sp) | a3 = *(var_3ch);
0x00002bcc lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00002bd0 addiu a2, a2, -0x7f8c | a2 += -0x7f8c;
0x00002bd4 addiu a1, zero, 1 | a1 = 1;
0x00002bd8 addiu a0, zero, 0x26 | a0 = 0x26;
0x00002bdc sw s0, 0x10(sp) | *(var_10h) = s0;
0x00002be0 sw s2, 0x38(sp) | *(var_38h) = s2;
0x00002be4 jalr t9 | t9 ();
0x00002be8 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002bec addiu v0, zero, 0x49 | v0 = 0x49;
0x00002bf0 lw t9, -0x7f9c(gp) | t9 = *(gp);
0x00002bf4 lw s0, -0x7f98(gp) | s0 = sym.set_banner;
0x00002bf8 sb v0, -0x6b68(s2) | *((s2 - 27496)) = v0;
0x00002bfc bal 0x6950 | sym_set_virtual_targets ();
0x00002c00 move t9, s0 | t9 = s0;
0x00002c04 move s3, zero | s3 = 0;
0x00002c08 bal 0x5eb4 | sym_set_banner ();
0x00002c0c move t9, s0 | t9 = s0;
0x00002c10 move s2, v0 | s2 = v0;
0x00002c14 bal 0x5eb4 | sym_set_banner ();
0x00002c18 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002c1c lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00002c20 move a0, v0 | a0 = v0;
0x00002c24 jalr t9 | t9 ();
0x00002c28 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002c2c move a2, v0 | a2 = v0;
0x00002c30 move a1, s2 | a1 = s2;
0x00002c34 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00002c38 move a0, s6 | a0 = s6;
0x00002c3c jalr t9 | t9 ();
0x00002c40 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002c44 addiu v0, zero, 1 | v0 = 1;
0x00002c48 sllv v0, v0, s6 | v0 <<= s6;
0x00002c4c sw v0, 0x34(sp) | *(var_34h) = v0;
0x00002c50 lw v0, -0x7fc0(gp) | v0 = *((gp - 8176));
0x00002c54 sw v0, 0x4c(sp) | *(var_4ch) = v0;
0x00002c58 lw v0, -0x7fb8(gp) | v0 = *((gp - 8174));
0x00002c5c sw v0, 0x50(sp) | *(var_50h) = v0;
0x00002c60 lw v0, -0x7fdc(gp) | v0 = *(gp);
0x00002c64 addiu v0, v0, 0x5ca4 | v0 += 0x5ca4;
0x00002c68 sw v0, 0x44(sp) | *(var_44h) = v0;
0x00002c6c lw v0, -0x7fdc(gp) | v0 = *(gp);
0x00002c70 addiu v0, v0, 0x5700 | v0 += 0x5700;
0x00002c74 sw v0, 0x48(sp) | *(var_48h) = v0;
0x00002c78 lw v0, -0x7fb8(gp) | v0 = *((gp - 8174));
0x00002c7c addiu v0, v0, -0x7cd8 | v0 += -0x7cd8;
0x00002c80 sw v0, 0x54(sp) | *(var_54h) = v0;
| label_6:
0x00002c84 lw v0, -0x6bc0(s7) | v0 = *((s7 - 6896));
| label_5:
0x00002c88 addiu fp, s6, 1 | fp = s6 + 1;
| if (v0 != 0) {
0x00002c8c bnez v0, 0x331c | goto label_62;
| }
0x00002c90 move s5, zero | s5 = 0;
0x00002c94 addiu s2, sp, 0x80 | s2 = sp + 0x80;
0x00002c98 addiu s4, sp, 0x27c | s4 = sp + 0x27c;
0x00002c9c addiu s0, sp, 0x378 | s0 = sp + 0x378;
0x00002ca0 move v0, s1 | v0 = s1;
| label_4:
0x00002ca4 sw zero, (v0) | *(v0) = 0;
| do {
0x00002ca8 addiu v0, v0, 4 | v0 += 4;
0x00002cac sw zero, (v0) | *(v0) = 0;
0x00002cb0 bnel s4, v0, 0x2ca8 |
| } while (s4 == v0);
0x00002cb4 lw t9, -0x7d6c(gp) | t9 = sym.imp.__fdelt_chk;
0x00002cb8 move a0, s6 | a0 = s6;
0x00002cbc jalr t9 | t9 ();
0x00002cc0 sll v0, v0, 2 | v0 <<= 2;
0x00002cc4 addiu v1, sp, 0x688 | v1 = sp + 0x688;
0x00002cc8 addu v0, v1, v0 | v0 = v1 + v0;
0x00002ccc lw gp, 0x28(sp) | gp = *(var_28h);
0x00002cd0 lw t1, -0x48c(v0) | t1 = *((v0 - 291));
0x00002cd4 lw v1, 0x34(sp) | v1 = *(var_34h);
0x00002cd8 sw s2, 0x10(sp) | *(var_10h) = s2;
0x00002cdc or t1, t1, v1 | t1 |= v1;
0x00002ce0 lw t9, -0x7d54(gp) | t9 = sym.imp.select;
0x00002ce4 sw t1, -0x48c(v0) | *((v0 - 291)) = t1;
0x00002ce8 addiu v0, zero, 0x384 | v0 = 0x384;
0x00002cec move a3, zero | a3 = 0;
0x00002cf0 move a2, zero | a2 = 0;
0x00002cf4 move a1, s1 | a1 = s1;
0x00002cf8 move a0, fp | a0 = fp;
0x00002cfc sw v0, 0x80(sp) | *(var_80h) = v0;
0x00002d00 sw zero, 0x84(sp) | *(var_84h) = 0;
0x00002d04 jalr t9 | t9 ();
0x00002d08 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 <= 0) {
0x00002d0c blez v0, 0x3314 | goto label_63;
| }
0x00002d10 lw t9, -0x7d14(gp) | t9 = sym.imp.read;
0x00002d14 addiu v0, zero, 0x100 | v0 = 0x100;
0x00002d18 subu a2, v0, s5 | __asm ("subu a2, v0, s5");
0x00002d1c addu a1, s0, s5 | a1 = s0 + s5;
0x00002d20 move a0, s6 | a0 = s6;
0x00002d24 jalr t9 | t9 ();
0x00002d28 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00002d2c bltz v0, 0x30e0 | goto label_64;
| }
0x00002d30 addu s5, s5, v0 | s5 += v0;
| if (v0 == 0) {
0x00002d34 beqz v0, 0x331c | goto label_62;
| }
0x00002d38 slti v0, s5, 0x100 | v0 = (s5 < 0x100) ? 1 : 0;
0x00002d3c addiu v0, sp, 0x688 | v0 = sp + 0x688;
| if (v0 == 0) {
0x00002d40 beqz v0, 0x3118 | goto label_65;
| }
| label_13:
0x00002d44 addu v0, v0, s5 | v0 += s5;
0x00002d48 addiu v1, zero, 0xa | v1 = 0xa;
0x00002d4c lb a0, -0x311(v0) | a0 = *((v0 - 785));
0x00002d50 move v0, s1 | v0 = s1;
| if (a0 == v1) {
0x00002d54 bnel a0, v1, 0x2ca4 | goto label_4;
| }
| label_14:
0x00002d58 lb a0, -0x312(v0) | a0 = *((v0 - 786));
0x00002d5c addiu v1, zero, 0xd | v1 = 0xd;
0x00002d60 sb zero, -0x311(v0) | *((v0 - 785)) = 0;
| if (a0 != v1) {
0x00002d64 bnel a0, v1, 0x2d78 |
0x00002d68 addiu s5, s5, -1 | s5 += -1;
0x00002d6c addiu v0, sp, 0x688 | v0 = sp + 0x688;
0x00002d70 addu v0, v0, s5 | v0 += s5;
0x00002d74 sb zero, -0x311(v0) | *((v0 - 785)) = 0;
| }
0x00002d78 lw v0, -0x7f94(gp) | v0 = *(gp);
0x00002d7c lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00002d80 lw s4, (v0) | s4 = *(v0);
0x00002d84 move a0, s4 | a0 = s4;
0x00002d88 jalr t9 | t9 ();
0x00002d8c lw gp, 0x28(sp) | gp = *(var_28h);
0x00002d90 move a2, v0 | a2 = v0;
0x00002d94 move a1, s4 | a1 = s4;
0x00002d98 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00002d9c move a0, s0 | a0 = s0;
0x00002da0 jalr t9 | t9 ();
0x00002da4 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00002da8 beqz v0, 0x331c | goto label_62;
| }
0x00002dac lw v0, -0x7f90(gp) | v0 = *(gp);
0x00002db0 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00002db4 lw s4, (v0) | s4 = *(v0);
0x00002db8 move a0, s4 | a0 = s4;
0x00002dbc jalr t9 | t9 ();
0x00002dc0 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002dc4 move a2, v0 | a2 = v0;
0x00002dc8 move a1, s4 | a1 = s4;
0x00002dcc lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00002dd0 move a0, s0 | a0 = s0;
0x00002dd4 jalr t9 | t9 ();
0x00002dd8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00002ddc beqz v0, 0x366c | goto label_66;
| }
0x00002de0 lw v0, -0x7f8c(gp) | v0 = *(gp);
0x00002de4 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00002de8 lw s4, (v0) | s4 = *(v0);
0x00002dec move a0, s4 | a0 = s4;
0x00002df0 jalr t9 | t9 ();
0x00002df4 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002df8 move a2, v0 | a2 = v0;
0x00002dfc move a1, s4 | a1 = s4;
0x00002e00 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00002e04 move a0, s0 | a0 = s0;
0x00002e08 jalr t9 | t9 ();
0x00002e0c lw gp, 0x28(sp) | gp = *(var_28h);
0x00002e10 lw t9, -0x7dd0(gp) | t9 = *(gp);
| if (v0 == 0) {
0x00002e14 beqz v0, 0x3664 | goto label_67;
| }
0x00002e18 lw v0, -0x7f88(gp) | v0 = *(gp);
0x00002e1c lw s4, (v0) | s4 = *(v0);
0x00002e20 move a0, s4 | a0 = s4;
0x00002e24 jalr t9 | t9 ();
0x00002e28 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002e2c move a2, v0 | a2 = v0;
0x00002e30 move a1, s4 | a1 = s4;
0x00002e34 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00002e38 move a0, s0 | a0 = s0;
0x00002e3c jalr t9 | t9 ();
0x00002e40 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00002e44 beqz v0, 0x3658 | goto label_68;
| }
0x00002e48 addiu v0, zero, 1 | v0 = 1;
0x00002e4c addiu v0, zero, 2 | v0 = 2;
| if (s3 == v0) {
0x00002e50 beq s3, v0, 0x3388 | goto label_69;
| }
0x00002e54 lw v0, -0x7f84(gp) | v0 = *(gp);
| if (s3 == v0) {
0x00002e58 beq s3, v0, 0x3120 | goto label_70;
| }
0x00002e5c lw v0, -0x6bc0(s7) | v0 = *((s7 - 6896));
| if (s3 != 0) {
0x00002e60 bnez s3, 0x2c88 | goto label_5;
| }
0x00002e64 lw v0, -0x7f80(gp) | v0 = *(gp);
0x00002e68 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00002e6c lw s4, (v0) | s4 = *(v0);
0x00002e70 move a0, s4 | a0 = s4;
0x00002e74 jalr t9 | t9 ();
0x00002e78 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002e7c move a2, v0 | a2 = v0;
0x00002e80 move a1, s4 | a1 = s4;
0x00002e84 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00002e88 move a0, s0 | a0 = s0;
0x00002e8c move s2, v0 | s2 = v0;
0x00002e90 jalr t9 | t9 ();
0x00002e94 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00002e98 bnez v0, 0x2eb8 |
0x00002e9c lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00002ea0 move a0, s0 | a0 = s0;
0x00002ea4 jalr t9 | t9 ();
0x00002ea8 addiu s2, s2, 1 | s2++;
0x00002eac sltu s2, s2, v0 | s2 = (s2 < v0) ? 1 : 0;
0x00002eb0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (s2 != 0) {
0x00002eb4 bnez s2, 0x4aa0 | goto label_71;
| }
| }
0x00002eb8 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00002ebc lw v0, -0x7f7c(gp) | v0 = *(gp);
| label_15:
0x00002ec0 lw s0, (v0) | s0 = *(v0);
| label_32:
0x00002ec4 move a0, s0 | a0 = s0;
0x00002ec8 jalr t9 | t9 ();
0x00002ecc lw gp, 0x28(sp) | gp = *(var_28h);
0x00002ed0 move a2, v0 | a2 = v0;
0x00002ed4 move a1, s0 | a1 = s0;
0x00002ed8 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00002edc move a0, s6 | a0 = s6;
0x00002ee0 jalr t9 | t9 ();
0x00002ee4 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002ee8 b 0x2c84 | goto label_6;
| label_60:
0x00002eec lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00002ef0 lw a2, 0x44(sp) | a2 = *(var_44h);
0x00002ef4 addiu a1, zero, 1 | a1 = 1;
0x00002ef8 addiu a0, zero, 3 | a0 = 3;
0x00002efc jalr t9 | t9 ();
0x00002f00 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002f04 b 0x2a90 | goto label_3;
| label_59:
0x00002f08 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00002f0c lw a1, (v0) | a1 = *(v0);
0x00002f10 move a0, a1 | a0 = a1;
0x00002f14 sw a1, 0x38(sp) | *(var_38h) = a1;
0x00002f18 jalr t9 | t9 ();
0x00002f1c lw gp, 0x28(sp) | gp = *(var_28h);
0x00002f20 lw a1, 0x38(sp) | a1 = *(var_38h);
0x00002f24 move a2, v0 | a2 = v0;
0x00002f28 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00002f2c move a0, s6 | a0 = s6;
0x00002f30 jalr t9 | t9 ();
0x00002f34 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002f38 lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x00002f3c move a0, s6 | a0 = s6;
0x00002f40 jalr t9 | t9 ();
0x00002f44 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002f48 b 0x2a90 | goto label_3;
| label_57:
0x00002f4c lw t9, -0x7e90(gp) | t9 = sym.imp.close;
| label_56:
0x00002f50 lw a0, 0xa8(sp) | a0 = *(var_a8h);
0x00002f54 jalr t9 | t9 ();
0x00002f58 addiu v0, zero, 2 | v0 = 2;
0x00002f5c lw gp, 0x28(sp) | gp = *(var_28h);
| if (s3 == v0) {
0x00002f60 bne s3, v0, 0x2f74 |
0x00002f64 lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x00002f68 lw a0, 0xac(sp) | a0 = *(var_ach);
0x00002f6c jalr t9 | t9 ();
0x00002f70 lw gp, 0x28(sp) | gp = *(var_28h);
| }
0x00002f74 lw v0, 0x48(sp) | v0 = *(var_48h);
0x00002f78 lw a0, 0x684(sp) | a0 = *(var_684h);
0x00002f7c lw v1, (v0) | v1 = *(v0);
0x00002f80 move v0, zero | v0 = 0;
| if (a0 != v1) {
0x00002f84 bne a0, v1, 0x4bc0 | goto label_72;
| }
0x00002f88 lw ra, 0x6ac(sp) | ra = *(var_6ach);
0x00002f8c lw fp, 0x6a8(sp) | fp = *(var_6a8h);
0x00002f90 lw s7, 0x6a4(sp) | s7 = *(var_6a4h);
0x00002f94 lw s6, 0x6a0(sp) | s6 = *(var_6a0h);
0x00002f98 lw s5, 0x69c(sp) | s5 = *(var_69ch);
0x00002f9c lw s4, 0x698(sp) | s4 = *(var_698h);
0x00002fa0 lw s3, 0x694(sp) | s3 = *(var_694h);
0x00002fa4 lw s2, 0x690(sp) | s2 = *(var_690h);
0x00002fa8 lw s1, 0x68c(sp) | s1 = *(var_68ch);
0x00002fac lw s0, 0x688(sp) | s0 = *(var_688h);
0x00002fb0 addiu sp, sp, 0x6b0 |
0x00002fb4 jr ra | return v0;
| label_48:
0x00002fb8 addiu v0, zero, 4 | v0 = 4;
0x00002fbc addiu s2, sp, 0x80 | s2 = sp + 0x80;
0x00002fc0 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00002fc4 move a3, s2 | a3 = s2;
0x00002fc8 addiu a2, zero, 0x1a | a2 = 0x1a;
0x00002fcc addiu a1, zero, 0x29 | a1 = 0x29;
0x00002fd0 move a0, s6 | a0 = s6;
0x00002fd4 jalr t9 | t9 ();
0x00002fd8 lw gp, 0x28(sp) | gp = *(var_28h);
0x00002fdc b 0x2858 | goto label_7;
| label_50:
0x00002fe0 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00002fe4 lw a2, 0x34(sp) | a2 = *(var_34h);
0x00002fe8 b 0x2908 | goto label_8;
| label_41:
0x00002fec lw t9, -0x7d98(gp) | t9 = sym.imp.daemon;
0x00002ff0 move a1, s5 | a1 = s5;
0x00002ff4 move a0, zero | a0 = 0;
0x00002ff8 jalr t9 | t9 ();
0x00002ffc lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 >= 0) {
0x00003000 bgez v0, 0x25b0 | goto label_9;
| }
0x00003004 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00003008 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x0000300c addiu a0, zero, 3 | a0 = 3;
0x00003010 addiu a2, a2, 0x7fb0 | a2 += str.Failed:_daemon.__m;
| do {
| label_22:
0x00003014 addiu a1, zero, 1 | a1 = 1;
0x00003018 jalr t9 | t9 ();
0x0000301c lw gp, 0x28(sp) | gp = *(var_28h);
0x00003020 lw t9, -0x7db0(gp) | t9 = sym.imp.exit;
0x00003024 addiu a0, zero, 1 | a0 = 1;
0x00003028 jalr t9 | t9 ();
| label_51:
0x0000302c lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00003030 move a2, s7 | a2 = s7;
0x00003034 b 0x2908 | goto label_8;
| label_40:
0x00003038 lw t9, -0x7e84(gp) | t9 = sym.imp.strtol;
0x0000303c lwx a0, v0(s1) | __asm ("lwx a0, v0(s1)");
0x00003040 addiu a2, zero, 0xa | a2 = 0xa;
0x00003044 move a1, zero | a1 = 0;
0x00003048 jalr t9 | t9 ();
0x0000304c lw gp, 0x28(sp) | gp = *(var_28h);
0x00003050 lw v1, -0x7fc0(gp) | v1 = *((gp - 8176));
0x00003054 sw v0, -0x6b6c(v1) | *((v1 - 6875)) = v0;
0x00003058 b 0x256c | goto label_10;
| label_45:
0x0000305c lw t9, -0x7d2c(gp) | t9 = sym.imp.gai_strerror;
0x00003060 move a0, v0 | a0 = v0;
0x00003064 jalr t9 | t9 ();
0x00003068 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000306c move a3, v0 | a3 = v0;
0x00003070 addiu a1, zero, 1 | a1 = 1;
0x00003074 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00003078 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x0000307c addiu a2, a2, 0x7f14 | a2 += str.Failed_to_getaddrinfo__s;
0x00003080 addiu a0, zero, 3 | a0 = 3;
0x00003084 jalr t9 | t9 ();
0x00003088 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000308c b 0x27d8 | goto label_11;
| label_43:
0x00003090 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00003094 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00003098 addiu a2, a2, 0x7fdc | a2 += str.Error:_sigaddset__m;
0x0000309c addiu a1, zero, 1 | a1 = 1;
0x000030a0 addiu a0, zero, 3 | a0 = 3;
0x000030a4 jalr t9 | t9 ();
0x000030a8 lw gp, 0x28(sp) | gp = *(var_28h);
| label_12:
0x000030ac lw a2, -0x7fb8(gp) | a2 = *((gp - 8174));
0x000030b0 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x000030b4 addiu a0, zero, 3 | a0 = 3;
0x000030b8 addiu a2, a2, -0x7ffc | a2 += -0x7ffc;
0x000030bc b 0x3014 |
| } while (1);
| label_44:
0x000030c0 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x000030c4 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x000030c8 addiu a2, a2, 0x7ff0 | a2 += str.Error:_sigaction__m;
0x000030cc addiu a1, zero, 1 | a1 = 1;
0x000030d0 addiu a0, zero, 3 | a0 = 3;
0x000030d4 jalr t9 | t9 ();
0x000030d8 lw gp, 0x28(sp) | gp = *(var_28h);
0x000030dc b 0x30ac | goto label_12;
| label_64:
0x000030e0 lw t9, -0x7e00(gp) | t9 = *(gp);
0x000030e4 jalr t9 | t9 ();
0x000030e8 nop |
0x000030ec lw v0, (v0) | v0 = *(v0);
0x000030f0 addiu v1, zero, 0xb | v1 = 0xb;
0x000030f4 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == v1) {
0x000030f8 beq v0, v1, 0x3108 | goto label_73;
| }
0x000030fc addiu a0, zero, 4 | a0 = 4;
0x00003100 lw v0, -0x7f78(gp) | v0 = *(gp);
| if (v0 != a0) {
0x00003104 bne v0, a0, 0x3320 | goto label_74;
| }
| if (s5 == 0) {
| label_73:
0x00003108 beql s5, zero, 0x2ca4 | goto label_4;
| }
0x0000310c move v0, s1 | v0 = s1;
0x00003110 addiu v0, sp, 0x688 | v0 = sp + 0x688;
0x00003114 b 0x2d44 | goto label_13;
| label_65:
0x00003118 addu v0, v0, s5 | v0 += s5;
0x0000311c b 0x2d58 | goto label_14;
| label_70:
0x00003120 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003124 lw fp, (v0) | fp = *(v0);
0x00003128 move a0, fp | a0 = fp;
0x0000312c jalr t9 | t9 ();
0x00003130 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003134 move a2, v0 | a2 = v0;
0x00003138 move a1, fp | a1 = fp;
0x0000313c lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003140 move a0, s0 | a0 = s0;
0x00003144 move s4, v0 | s4 = v0;
0x00003148 jalr t9 | t9 ();
0x0000314c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003150 bnez v0, 0x3170 |
0x00003154 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003158 move a0, s0 | a0 = s0;
0x0000315c jalr t9 | t9 ();
0x00003160 addiu s4, s4, 1 | s4++;
0x00003164 sltu s4, s4, v0 | s4 = (s4 < v0) ? 1 : 0;
0x00003168 lw gp, 0x28(sp) | gp = *(var_28h);
| if (s4 != 0) {
0x0000316c bnez s4, 0x4ad0 | goto label_75;
| }
| }
0x00003170 lw v0, -0x7f74(gp) | v0 = *(gp);
0x00003174 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003178 lw s4, (v0) | s4 = *(v0);
0x0000317c move a0, s4 | a0 = s4;
0x00003180 jalr t9 | t9 ();
0x00003184 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003188 move a2, v0 | a2 = v0;
0x0000318c move a1, s4 | a1 = s4;
0x00003190 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003194 move a0, s0 | a0 = s0;
0x00003198 jalr t9 | t9 ();
0x0000319c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x000031a0 beqz v0, 0x4878 | goto label_76;
| }
0x000031a4 lw v0, -0x7f70(gp) | v0 = *(gp);
0x000031a8 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000031ac lw s4, (v0) | s4 = *(v0);
0x000031b0 move a0, s4 | a0 = s4;
0x000031b4 jalr t9 | t9 ();
0x000031b8 lw gp, 0x28(sp) | gp = *(var_28h);
0x000031bc move a1, s4 | a1 = s4;
0x000031c0 move a2, v0 | a2 = v0;
0x000031c4 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x000031c8 move a0, s0 | a0 = s0;
0x000031cc jalr t9 | t9 ();
0x000031d0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000031d4 move fp, v0 | fp = v0;
0x000031d8 lw v0, -0x7f6c(gp) | v0 = *(gp);
0x000031dc lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000031e0 lw s4, (v0) | s4 = *(v0);
0x000031e4 move a0, s4 | a0 = s4;
0x000031e8 jalr t9 | t9 ();
0x000031ec lw gp, 0x28(sp) | gp = *(var_28h);
0x000031f0 move a1, s4 | a1 = s4;
0x000031f4 move a2, v0 | a2 = v0;
0x000031f8 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x000031fc move a0, s0 | a0 = s0;
0x00003200 jalr t9 | t9 ();
0x00003204 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003208 move s4, v0 | s4 = v0;
0x0000320c lw t9, -0x7dd0(gp) | t9 = *(gp);
| if (fp == 0) {
0x00003210 beqz fp, 0x41ac | goto label_77;
| }
0x00003214 lw v0, -0x7f68(gp) | v0 = *(gp);
| if (v0 == 0) {
0x00003218 beqz v0, 0x41ac | goto label_77;
| }
0x0000321c lw s4, (v0) | s4 = *(v0);
0x00003220 move a0, s4 | a0 = s4;
0x00003224 jalr t9 | t9 ();
0x00003228 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000322c move a1, s4 | a1 = s4;
0x00003230 move a2, v0 | a2 = v0;
0x00003234 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003238 move a0, s0 | a0 = s0;
0x0000323c move fp, v0 | fp = v0;
0x00003240 jalr t9 | t9 ();
0x00003244 move s4, v0 | s4 = v0;
0x00003248 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x0000324c bnez v0, 0x326c |
0x00003250 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003254 move a0, s0 | a0 = s0;
0x00003258 jalr t9 | t9 ();
0x0000325c addiu fp, fp, 1 | fp++;
0x00003260 sltu fp, fp, v0 | fp = (fp < v0) ? 1 : 0;
0x00003264 lw gp, 0x28(sp) | gp = *(var_28h);
| if (fp != 0) {
0x00003268 bnez fp, 0x4634 | goto label_78;
| }
| }
0x0000326c lw v0, -0x7f64(gp) | v0 = *(gp);
0x00003270 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003274 lw fp, (v0) | fp = *(v0);
0x00003278 move a0, fp | a0 = fp;
0x0000327c jalr t9 | t9 ();
0x00003280 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003284 move a2, v0 | a2 = v0;
0x00003288 move a1, fp | a1 = fp;
0x0000328c lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003290 move a0, s0 | a0 = s0;
0x00003294 move s4, v0 | s4 = v0;
0x00003298 jalr t9 | t9 ();
0x0000329c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x000032a0 bnez v0, 0x32c0 |
0x000032a4 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000032a8 move a0, s0 | a0 = s0;
0x000032ac jalr t9 | t9 ();
0x000032b0 addiu s4, s4, 1 | s4++;
0x000032b4 sltu s4, s4, v0 | s4 = (s4 < v0) ? 1 : 0;
0x000032b8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (s4 != 0) {
0x000032bc bnez s4, 0x41f4 | goto label_79;
| }
| }
0x000032c0 lw v0, -0x7f60(gp) | v0 = *(gp);
0x000032c4 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000032c8 lw s4, (v0) | s4 = *(v0);
0x000032cc move a0, s4 | a0 = s4;
0x000032d0 jalr t9 | t9 ();
0x000032d4 lw gp, 0x28(sp) | gp = *(var_28h);
0x000032d8 move a2, v0 | a2 = v0;
0x000032dc move a1, s4 | a1 = s4;
0x000032e0 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x000032e4 move a0, s0 | a0 = s0;
0x000032e8 jalr t9 | t9 ();
0x000032ec lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x000032f0 bnez v0, 0x3758 | goto label_80;
| }
0x000032f4 lb v1, 0x37d(sp) | v1 = *(var_37dh);
0x000032f8 addiu v0, zero, -9 | v0 = -9;
0x000032fc and v0, v1, v0 | v0 = v1 & v0;
0x00003300 addiu a0, zero, 0x41 | a0 = 0x41;
0x00003304 lw t9, -0x7dd0(gp) | t9 = *(gp);
| if (v0 == a0) {
0x00003308 beq v0, a0, 0x407c | goto label_81;
| }
0x0000330c lw v0, -0x7f5c(gp) | v0 = *(gp);
0x00003310 b 0x2ec0 | goto label_15;
| label_63:
0x00003314 lw a2, -0x7fb8(gp) | a2 = *((gp - 8174));
0x00003318 beqz v0, 0x36cc |
| while (1) {
| label_62:
0x0000331c lw v0, -0x7f78(gp) | v0 = *(gp);
| label_74:
0x00003320 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003324 lw s0, (v0) | s0 = *(v0);
0x00003328 move a0, s0 | a0 = s0;
0x0000332c jalr t9 | t9 ();
0x00003330 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003334 move a2, v0 | a2 = v0;
0x00003338 move a1, s0 | a1 = s0;
0x0000333c lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00003340 move a0, s6 | a0 = s6;
0x00003344 jalr t9 | t9 ();
0x00003348 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000334c lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x00003350 move a0, s6 | a0 = s6;
0x00003354 jalr t9 | t9 ();
0x00003358 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000335c lw a3, 0x3c(sp) | a3 = *(var_3ch);
0x00003360 addiu a1, zero, 1 | a1 = 1;
0x00003364 lw a2, -0x7fb8(gp) | a2 = *((gp - 8174));
0x00003368 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x0000336c addiu a2, a2, -0x7ca8 | a2 += -0x7ca8;
0x00003370 addiu a0, zero, 0x26 | a0 = 0x26;
0x00003374 jalr t9 | t9 ();
0x00003378 lw gp, 0x28(sp) | gp = *(var_28h);
| label_19:
0x0000337c lw t9, -0x7db0(gp) | t9 = sym.imp.exit;
0x00003380 move a0, s6 | a0 = s6;
0x00003384 jalr t9 | t9 ();
| label_69:
0x00003388 lw v0, -0x7f58(gp) | v0 = *(gp);
0x0000338c lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003390 lw s2, (v0) | s2 = *(v0);
0x00003394 move a0, s2 | a0 = s2;
0x00003398 jalr t9 | t9 ();
0x0000339c lw gp, 0x28(sp) | gp = *(var_28h);
0x000033a0 move a2, v0 | a2 = v0;
0x000033a4 move a1, s2 | a1 = s2;
0x000033a8 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x000033ac move a0, s0 | a0 = s0;
0x000033b0 jalr t9 | t9 ();
0x000033b4 move s3, v0 | s3 = v0;
0x000033b8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x000033bc bnez v0, 0x419c | goto label_82;
| }
0x000033c0 lw v0, 0x4c(sp) | v0 = *(var_4ch);
0x000033c4 lw v0, -0x6b50(v0) | v0 = *((v0 - 6868));
0x000033c8 lw a1, -0x7fb8(gp) | a1 = *((gp - 8174));
| if (v0 <= 0) {
0x000033cc blez v0, 0x4194 | goto label_83;
| }
0x000033d0 lw t9, -0x7d0c(gp) | t9 = sym.imp.strcmp;
0x000033d4 addiu s0, sp, 0x2f0 | s0 = sp + 0x2f0;
0x000033d8 addiu a1, a1, -0x7f50 | a1 += -0x7f50;
0x000033dc move a0, s0 | a0 = s0;
0x000033e0 jalr t9 | t9 ();
0x000033e4 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x000033e8 bnez v0, 0x4140 | goto label_84;
| }
| label_23:
0x000033ec lw t9, -0x7e04(gp) | t9 = sym.imp.strncpy;
0x000033f0 addiu s4, sp, 0x334 | s4 = sp + 0x334;
0x000033f4 addiu a2, zero, 0x40 | a2 = 0x40;
0x000033f8 addiu a1, sp, 0x37d | a1 = sp + 0x37d;
0x000033fc move a0, s4 | a0 = s4;
0x00003400 jalr t9 | t9 ();
0x00003404 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003408 move a0, s0 | a0 = s0;
0x0000340c lw t9, -0x7cfc(gp) | t9 = sym.imp.getpwnam;
0x00003410 sb zero, 0x374(sp) | *(var_374h) = 0;
0x00003414 jalr t9 | t9 ();
0x00003418 move s2, v0 | s2 = v0;
0x0000341c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003420 beqz v0, 0x40ec | goto label_85;
| }
0x00003424 lw t9, -0x7d70(gp) | t9 = sym.imp.geteuid;
0x00003428 jalr t9 | t9 ();
0x0000342c nop |
0x00003430 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003434 beqz v0, 0x36f8 | goto label_86;
| }
| label_16:
0x00003438 lw fp, 4(s2) | fp = *((s2 + 1));
0x0000343c lw t9, -0x7e3c(gp) | t9 = sym.imp.crypt;
| label_17:
0x00003440 move a1, fp | a1 = fp;
0x00003444 move a0, s4 | a0 = s4;
0x00003448 jalr t9 | t9 ();
0x0000344c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003450 beqz v0, 0x40ec | goto label_85;
| }
0x00003454 lw t9, -0x7d0c(gp) | t9 = sym.imp.strcmp;
0x00003458 move a1, fp | a1 = fp;
0x0000345c move a0, v0 | a0 = v0;
0x00003460 jalr t9 | t9 ();
0x00003464 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00003468 bnez v0, 0x40ec | goto label_85;
| }
0x0000346c lw v0, -0x7f54(gp) | v0 = *(gp);
0x00003470 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003474 lw s3, 8(s2) | s3 = *((s2 + 2));
0x00003478 lw s4, (v0) | s4 = *(v0);
0x0000347c lw s2, 0xc(s2) | s2 = *((s2 + 3));
0x00003480 move a0, s4 | a0 = s4;
0x00003484 jalr t9 | t9 ();
0x00003488 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000348c move a2, v0 | a2 = v0;
0x00003490 move a1, s4 | a1 = s4;
0x00003494 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00003498 move a0, s6 | a0 = s6;
0x0000349c jalr t9 | t9 ();
0x000034a0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000034a4 move a3, s0 | a3 = s0;
0x000034a8 addiu a1, zero, 1 | a1 = 1;
0x000034ac lw a2, -0x7fb8(gp) | a2 = *((gp - 8174));
0x000034b0 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x000034b4 addiu a2, a2, -0x7f18 | a2 += -0x7f18;
0x000034b8 addiu a0, zero, 0x26 | a0 = 0x26;
0x000034bc jalr t9 | t9 ();
0x000034c0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000034c4 lw t9, -0x7d1c(gp) | t9 = sym.imp.getpwuid;
0x000034c8 move a0, s3 | a0 = s3;
0x000034cc jalr t9 | t9 ();
0x000034d0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x000034d4 beqz v0, 0x34f4 |
0x000034d8 lw a1, -0x7fb8(gp) | a1 = *((gp - 8174));
0x000034dc lw t9, -0x7d0c(gp) | t9 = sym.imp.strcmp;
0x000034e0 lw a0, (v0) | a0 = *(v0);
0x000034e4 addiu a1, a1, -0x7f04 | a1 += -0x7f04;
0x000034e8 jalr t9 | t9 ();
0x000034ec lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x000034f0 beqz v0, 0x3720 | goto label_87;
| }
| }
| label_18:
0x000034f4 lw t9, -0x7e18(gp) | t9 = sym.imp.setegid;
0x000034f8 move a0, s2 | a0 = s2;
0x000034fc jalr t9 | t9 ();
0x00003500 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003504 move a0, s3 | a0 = s3;
0x00003508 lw t9, -0x7d80(gp) | t9 = sym.imp.seteuid;
0x0000350c addiu s3, zero, 2 | s3 = 2;
0x00003510 jalr t9 | t9 ();
0x00003514 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003518 b 0x2c84 | goto label_6;
| label_36:
0x00003618 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x0000361c addiu a0, sp, 0xb0 | a0 = sp + 0xb0;
0x00003620 addiu t9, t9, 0x53cc | t9 += fcn.000053cc;
0x00003624 sw v0, 0xb4(sp) | *(var_b4h) = v0;
0x00003628 bal 0x53cc | fcn_000053cc ();
0x0000362c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00003630 bnez v0, 0x3bf0 | goto label_29;
| }
0x00003634 lw a0, 0xb8(sp) | a0 = *(var_b8h);
| if (a0 >= 0) {
0x00003638 bltzl a0, 0x365c |
0x0000363c lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003640 lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x00003644 jalr t9 | t9 ();
0x00003648 nop |
0x0000364c addiu v0, zero, -1 | v0 = -1;
0x00003650 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003654 sw v0, 0xb8(sp) | *(var_b8h) = v0;
| label_68:
0x00003658 lw t9, -0x7dd0(gp) | t9 = *(gp);
| }
0x0000365c lw v0, -0x7f50(gp) | v0 = *(gp);
0x00003660 b 0x2ec0 | goto label_15;
| label_67:
0x00003664 lw v0, -0x7f4c(gp) | v0 = *(gp);
0x00003668 b 0x2ec0 | goto label_15;
| label_66:
0x0000366c lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00003670 addiu t9, t9, 0x534c | t9 += fcn.0000534c;
0x00003674 addiu a0, sp, 0x37c | a0 = sp + 0x37c;
0x00003678 bal 0x534c | fcn_0000534c ();
0x0000367c lw gp, 0x28(sp) | gp = *(var_28h);
0x00003680 move s0, v0 | s0 = v0;
0x00003684 lb v0, (v0) | v0 = *(v0);
0x00003688 lw t9, -0x7dd0(gp) | t9 = *(gp);
| if (v0 == 0) {
0x0000368c beqz v0, 0x36f0 | goto label_88;
| }
0x00003690 lw v0, -0x7f48(gp) | v0 = *(gp);
0x00003694 lw s2, (v0) | s2 = *(v0);
0x00003698 move a0, s2 | a0 = s2;
0x0000369c jalr t9 | t9 ();
0x000036a0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000036a4 move a2, v0 | a2 = v0;
0x000036a8 move a1, s2 | a1 = s2;
0x000036ac lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x000036b0 move a0, s0 | a0 = s0;
0x000036b4 jalr t9 | t9 ();
0x000036b8 lw gp, 0x28(sp) | gp = *(var_28h);
0x000036bc lw t9, -0x7dd0(gp) | t9 = *(gp);
| if (v0 != 0) {
0x000036c0 bnez v0, 0x36e8 | goto label_89;
| }
0x000036c4 lw v0, -0x7f44(gp) | v0 = *(gp);
0x000036c8 b 0x2ec0 | goto label_15;
0x000036cc lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x000036d0 addiu a2, a2, -0x7f70 | a2 += -0x7f70;
0x000036d4 addiu a1, zero, 1 | a1 = 1;
0x000036d8 addiu a0, zero, 6 | a0 = 6;
0x000036dc jalr t9 | t9 ();
0x000036e0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000036e4 b 0x331c |
| }
| label_89:
0x000036e8 lw v0, -0x7f40(gp) | v0 = *(gp);
0x000036ec b 0x2ec0 | goto label_15;
| label_88:
0x000036f0 lw v0, -0x7f3c(gp) | v0 = *(gp);
0x000036f4 b 0x2ec0 | goto label_15;
| label_86:
0x000036f8 lw t9, -0x7d28(gp) | t9 = sym.imp.getspnam;
0x000036fc move a0, s0 | a0 = s0;
0x00003700 jalr t9 | t9 ();
0x00003704 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003708 beqz v0, 0x3438 | goto label_16;
| }
0x0000370c lw fp, 4(v0) | fp = *((v0 + 1));
0x00003710 lw t9, -0x7e3c(gp) | t9 = sym.imp.crypt;
| if (fp != 0) {
0x00003714 bnez fp, 0x3440 | goto label_17;
| }
0x00003718 lw fp, 4(s2) | fp = *((s2 + 1));
0x0000371c b 0x3440 | goto label_17;
| label_87:
0x00003720 lw a1, -0x7fb8(gp) | a1 = *((gp - 8174));
0x00003724 lw t9, -0x7d84(gp) | t9 = sym.imp.__xstat;
0x00003728 move a2, s1 | a2 = s1;
0x0000372c addiu a1, a1, -0x7efc | a1 += -0x7efc;
0x00003730 addiu a0, zero, 3 | a0 = 3;
0x00003734 jalr t9 | t9 ();
0x00003738 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x0000373c bltz v0, 0x34f4 | goto label_18;
| }
0x00003740 lw a0, -0x7fb8(gp) | a0 = *((gp - 8174));
0x00003744 lw t9, -0x7da0(gp) | t9 = sym.imp.system;
0x00003748 addiu a0, a0, -0x7eec | a0 += -0x7eec;
0x0000374c jalr t9 | t9 ();
0x00003750 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003754 b 0x34f4 | goto label_18;
| label_80:
0x00003758 lw v0, -0x7f38(gp) | v0 = *(gp);
0x0000375c lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003760 lw fp, (v0) | fp = *(v0);
0x00003764 move a0, fp | a0 = fp;
0x00003768 jalr t9 | t9 ();
0x0000376c lw gp, 0x28(sp) | gp = *(var_28h);
0x00003770 move a2, v0 | a2 = v0;
0x00003774 move a1, fp | a1 = fp;
0x00003778 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x0000377c move a0, s0 | a0 = s0;
0x00003780 move s4, v0 | s4 = v0;
0x00003784 jalr t9 | t9 ();
0x00003788 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x0000378c bnez v0, 0x37ac |
0x00003790 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003794 move a0, s0 | a0 = s0;
0x00003798 jalr t9 | t9 ();
0x0000379c addiu s4, s4, 1 | s4++;
0x000037a0 sltu s4, s4, v0 | s4 = (s4 < v0) ? 1 : 0;
0x000037a4 lw gp, 0x28(sp) | gp = *(var_28h);
| if (s4 != 0) {
0x000037a8 bnez s4, 0x4a4c | goto label_90;
| }
| }
0x000037ac lw v0, -0x7f34(gp) | v0 = *(gp);
0x000037b0 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000037b4 lw fp, (v0) | fp = *(v0);
0x000037b8 move a0, fp | a0 = fp;
0x000037bc jalr t9 | t9 ();
0x000037c0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000037c4 move a2, v0 | a2 = v0;
0x000037c8 move a1, fp | a1 = fp;
0x000037cc lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x000037d0 move a0, s0 | a0 = s0;
0x000037d4 move s4, v0 | s4 = v0;
0x000037d8 jalr t9 | t9 ();
0x000037dc lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x000037e0 bnez v0, 0x3800 |
0x000037e4 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000037e8 move a0, s0 | a0 = s0;
0x000037ec jalr t9 | t9 ();
0x000037f0 addiu s4, s4, 1 | s4++;
0x000037f4 sltu s4, s4, v0 | s4 = (s4 < v0) ? 1 : 0;
0x000037f8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (s4 != 0) {
0x000037fc bnez s4, 0x3d7c | goto label_91;
| }
| }
0x00003800 lw v0, -0x7f30(gp) | v0 = *(gp);
0x00003804 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003808 lw fp, (v0) | fp = *(v0);
0x0000380c move a0, fp | a0 = fp;
0x00003810 jalr t9 | t9 ();
0x00003814 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003818 move a2, v0 | a2 = v0;
0x0000381c move a1, fp | a1 = fp;
0x00003820 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003824 move a0, s0 | a0 = s0;
0x00003828 move s4, v0 | s4 = v0;
0x0000382c jalr t9 | t9 ();
0x00003830 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003834 bnez v0, 0x3854 |
0x00003838 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x0000383c move a0, s0 | a0 = s0;
0x00003840 jalr t9 | t9 ();
0x00003844 addiu s4, s4, 1 | s4++;
0x00003848 sltu s4, s4, v0 | s4 = (s4 < v0) ? 1 : 0;
0x0000384c lw gp, 0x28(sp) | gp = *(var_28h);
| if (s4 != 0) {
0x00003850 bnez s4, 0x3db0 | goto label_92;
| }
| }
0x00003854 lw v0, -0x7f2c(gp) | v0 = *(gp);
0x00003858 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x0000385c lw s4, (v0) | s4 = *(v0);
0x00003860 move a0, s4 | a0 = s4;
0x00003864 jalr t9 | t9 ();
0x00003868 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000386c move a2, v0 | a2 = v0;
0x00003870 move a1, s4 | a1 = s4;
0x00003874 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003878 move a0, s0 | a0 = s0;
0x0000387c jalr t9 | t9 ();
0x00003880 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003884 beqz v0, 0x3cbc | goto label_93;
| }
0x00003888 lw v0, -0x7f28(gp) | v0 = *(gp);
0x0000388c lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003890 lw fp, (v0) | fp = *(v0);
0x00003894 move a0, fp | a0 = fp;
0x00003898 jalr t9 | t9 ();
0x0000389c lw gp, 0x28(sp) | gp = *(var_28h);
0x000038a0 move a2, v0 | a2 = v0;
0x000038a4 move a1, fp | a1 = fp;
0x000038a8 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x000038ac move a0, s0 | a0 = s0;
0x000038b0 move s4, v0 | s4 = v0;
0x000038b4 jalr t9 | t9 ();
0x000038b8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x000038bc bnez v0, 0x38dc |
0x000038c0 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000038c4 move a0, s0 | a0 = s0;
0x000038c8 jalr t9 | t9 ();
0x000038cc addiu s4, s4, 1 | s4++;
0x000038d0 sltu s4, s4, v0 | s4 = (s4 < v0) ? 1 : 0;
0x000038d4 lw gp, 0x28(sp) | gp = *(var_28h);
| if (s4 != 0) {
0x000038d8 bnez s4, 0x3d4c | goto label_94;
| }
| }
0x000038dc lw v0, -0x7f48(gp) | v0 = *(gp);
0x000038e0 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000038e4 lw fp, (v0) | fp = *(v0);
0x000038e8 move a0, fp | a0 = fp;
0x000038ec jalr t9 | t9 ();
0x000038f0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000038f4 move a2, v0 | a2 = v0;
0x000038f8 move a1, fp | a1 = fp;
0x000038fc lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003900 move a0, s0 | a0 = s0;
0x00003904 move s4, v0 | s4 = v0;
0x00003908 jalr t9 | t9 ();
0x0000390c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003910 bnez v0, 0x3930 |
0x00003914 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003918 move a0, s0 | a0 = s0;
0x0000391c jalr t9 | t9 ();
0x00003920 addiu s4, s4, 1 | s4++;
0x00003924 sltu s4, s4, v0 | s4 = (s4 < v0) ? 1 : 0;
0x00003928 lw gp, 0x28(sp) | gp = *(var_28h);
| if (s4 != 0) {
0x0000392c bnez s4, 0x3de4 | goto label_95;
| }
| }
0x00003930 lw v0, -0x7f24(gp) | v0 = *(gp);
0x00003934 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003938 lw s4, (v0) | s4 = *(v0);
0x0000393c move a0, s4 | a0 = s4;
0x00003940 jalr t9 | t9 ();
0x00003944 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003948 move a2, v0 | a2 = v0;
0x0000394c move a1, s4 | a1 = s4;
0x00003950 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003954 move a0, s0 | a0 = s0;
0x00003958 jalr t9 | t9 ();
0x0000395c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003960 beqz v0, 0x4050 | goto label_96;
| }
0x00003964 lw v0, -0x7f20(gp) | v0 = *(gp);
0x00003968 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x0000396c lw fp, (v0) | fp = *(v0);
0x00003970 move a0, fp | a0 = fp;
0x00003974 jalr t9 | t9 ();
0x00003978 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000397c move a2, v0 | a2 = v0;
0x00003980 move a1, fp | a1 = fp;
0x00003984 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003988 move a0, s0 | a0 = s0;
0x0000398c move s4, v0 | s4 = v0;
0x00003990 jalr t9 | t9 ();
0x00003994 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00003998 bnez v0, 0x39b8 | void (*0x39b8)() ();
| }
| label_20:
0x00003a44 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00003a48 addiu t9, t9, 0x50f0 | t9 += fcn.000050f0;
0x00003a4c move a0, s6 | a0 = s6;
0x00003a50 bal 0x50f0 | fcn_000050f0 ();
0x00003a54 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003a58 b 0x2c84 | goto label_6;
| label_30:
0x00003be0 lw t9, -0x7e90(gp) | t9 = sym.imp.close;
| label_31:
0x00003be4 move a0, s4 | a0 = s4;
0x00003be8 jalr t9 | t9 ();
0x00003bec lw gp, 0x28(sp) | gp = *(var_28h);
| label_29:
0x00003bf0 lw t9, -0x7dd0(gp) | t9 = *(gp);
| label_35:
0x00003bf4 lw v0, -0x7fc4(gp) | v0 = *(gp);
0x00003bf8 b 0x2ec0 | goto label_15;
| label_34:
0x00003c80 lw t9, -0x7dd0(gp) | t9 = *(gp);
| label_28:
0x00003c84 lw v0, -0x7f0c(gp) | v0 = *(gp);
0x00003c88 b 0x2ec0 | goto label_15;
| do {
0x00003ca4 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003ca8 lw v0, -0x7f08(gp) | v0 = *(gp);
0x00003cac b 0x2ec0 | goto label_15;
| label_93:
0x00003cbc lw t9, -0x7dc8(gp) | t9 = sym.imp.getcwd;
0x00003cc0 addiu a1, zero, 0xc8 | a1 = 0xc8;
0x00003cc4 addiu a0, sp, 0x580 | a0 = sp + 0x580;
0x00003cc8 jalr t9 | t9 ();
0x00003ccc move s2, v0 | s2 = v0;
0x00003cd0 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003cd4 beqz v0, 0x3ca4 |
| } while (v0 == 0);
0x00003cd8 lw s0, -0x7f04(gp) | s0 = sym.write_to_fd;
0x00003cdc lw a1, -0x7fb8(gp) | a1 = *((gp - 8174));
0x00003ce0 addiu a2, zero, 5 | a2 = 5;
0x00003ce4 addiu a1, a1, -0x7d98 | a1 += -0x7d98;
0x00003ce8 move t9, s0 | t9 = s0;
0x00003cec move a0, s6 | a0 = s6;
0x00003cf0 bal 0x6000 | sym_write_to_fd ();
0x00003cf4 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00003cf8 bnez v0, 0x337c | goto label_19;
| }
0x00003cfc lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003d00 move a0, s2 | a0 = s2;
0x00003d04 jalr t9 | t9 ();
0x00003d08 move a2, v0 | a2 = v0;
0x00003d0c move a1, s2 | a1 = s2;
0x00003d10 move t9, s0 | t9 = s0;
0x00003d14 move a0, s6 | a0 = s6;
0x00003d18 bal 0x6000 | sym_write_to_fd ();
0x00003d1c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00003d20 bnez v0, 0x337c | goto label_19;
| }
0x00003d24 lw a1, -0x7fb8(gp) | a1 = *((gp - 8174));
0x00003d28 addiu a2, zero, 0x19 | a2 = 0x19;
0x00003d2c addiu a1, a1, -0x7d90 | a1 += -0x7d90;
0x00003d30 move t9, s0 | t9 = s0;
0x00003d34 move a0, s6 | a0 = s6;
0x00003d38 bal 0x6000 | sym_write_to_fd ();
0x00003d3c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003d40 beqz v0, 0x2c84 | goto label_6;
| }
| label_94:
0x00003d4c lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00003d50 addiu t9, t9, 0x534c | t9 += fcn.0000534c;
0x00003d54 addiu a0, sp, 0x37c | a0 = sp + 0x37c;
0x00003d58 bal 0x534c | fcn_0000534c ();
0x00003d5c lw gp, 0x28(sp) | gp = *(var_28h);
0x00003d60 move a1, v0 | a1 = v0;
0x00003d64 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00003d68 addiu t9, t9, 0x552c | t9 += fcn.0000552c;
0x00003d6c move a0, s6 | a0 = s6;
0x00003d70 bal 0x552c | fcn_0000552c ();
0x00003d74 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003d78 b 0x2c84 | goto label_6;
| label_91:
0x00003d7c lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00003d80 addiu t9, t9, 0x534c | t9 += fcn.0000534c;
0x00003d84 addiu a0, sp, 0x37c | a0 = sp + 0x37c;
0x00003d88 bal 0x534c | fcn_0000534c ();
0x00003d8c lw gp, 0x28(sp) | gp = *(var_28h);
0x00003d90 lw t9, -0x7d48(gp) | t9 = sym.imp.rmdir;
0x00003d94 move a0, v0 | a0 = v0;
0x00003d98 jalr t9 | t9 ();
0x00003d9c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00003da0 bnez v0, 0x3a44 | goto label_20;
| }
0x00003da4 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003da8 lw v0, -0x7fbc(gp) | v0 = *(gp);
0x00003dac b 0x2ec0 | goto label_15;
| label_92:
0x00003db0 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00003db4 addiu t9, t9, 0x534c | t9 += fcn.0000534c;
0x00003db8 addiu a0, sp, 0x37d | a0 = sp + 0x37d;
0x00003dbc bal 0x534c | fcn_0000534c ();
0x00003dc0 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003dc4 lw t9, -0x7d74(gp) | t9 = sym.imp.unlink;
0x00003dc8 move a0, v0 | a0 = v0;
0x00003dcc jalr t9 | t9 ();
0x00003dd0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00003dd4 bnez v0, 0x3a44 | goto label_20;
| }
0x00003dd8 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003ddc lw v0, -0x7fbc(gp) | v0 = *(gp);
0x00003de0 b 0x2ec0 | goto label_15;
| label_95:
0x00003de4 lw fp, -0x7fdc(gp) | fp = *(gp);
0x00003de8 addiu fp, fp, 0x534c | fp += fcn.0000534c;
0x00003dec move t9, fp | t9 = fp;
0x00003df0 addiu a0, sp, 0x37d | a0 = sp + 0x37d;
0x00003df4 bal 0x534c | fcn_0000534c ();
0x00003df8 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003dfc move s0, v0 | s0 = v0;
0x00003e00 sw s0, 0x80(sp) | *(var_80h) = s0;
0x00003e04 lw v0, -0x7f00(gp) | v0 = *(gp);
0x00003e08 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00003e0c lw s4, (v0) | s4 = *(v0);
0x00003e10 move a0, s4 | a0 = s4;
0x00003e14 jalr t9 | t9 ();
0x00003e18 lw gp, 0x28(sp) | gp = *(var_28h);
0x00003e1c move a2, v0 | a2 = v0;
0x00003e20 move a1, s4 | a1 = s4;
0x00003e24 lw t9, -0x7e08(gp) | t9 = sym.imp.strncasecmp;
0x00003e28 move a0, s0 | a0 = s0;
0x00003e2c jalr t9 | t9 ();
0x00003e30 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00003e34 beqz v0, 0x3f40 | void (*0x3f40)() ();
| }
| label_96:
0x00004050 lw a1, -0x7fb8(gp) | a1 = *((gp - 8174));
0x00004054 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00004058 addiu a1, a1, -0x7d28 | a1 += -0x7d28;
0x0000405c addiu t9, t9, 0x552c | t9 += fcn.0000552c;
0x00004060 move a0, s6 | a0 = s6;
0x00004064 bal 0x552c | fcn_0000552c ();
0x00004068 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000406c b 0x2c84 | goto label_6;
| label_26:
0x00004070 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00004074 lw v0, -0x7ef0(gp) | v0 = *(gp);
0x00004078 b 0x2ec0 | goto label_15;
| label_81:
0x0000407c lw v0, 0x38(sp) | v0 = *(var_38h);
0x00004080 sb v1, -0x6b68(v0) | *((v0 - 27496)) = v1;
0x00004084 lw v0, -0x7f50(gp) | v0 = *(gp);
0x00004088 b 0x2ec0 | goto label_15;
| label_61:
0x0000408c lw t9, -0x7d2c(gp) | t9 = sym.imp.gai_strerror;
0x00004090 move a0, v0 | a0 = v0;
0x00004094 sb zero, 0x2c0(sp) | *(var_2c0h) = 0;
0x00004098 sb zero, 0x2a0(sp) | *(var_2a0h) = 0;
0x0000409c jalr t9 | t9 ();
0x000040a0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000040a4 move a3, v0 | a3 = v0;
0x000040a8 addiu a1, zero, 1 | a1 = 1;
0x000040ac lw a2, -0x7fb8(gp) | a2 = *((gp - 8174));
0x000040b0 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x000040b4 addiu a2, a2, -0x7fa8 | a2 += -0x7fa8;
0x000040b8 addiu a0, zero, 4 | a0 = 4;
0x000040bc jalr t9 | t9 ();
0x000040c0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000040c4 b 0x2bc0 | goto label_21;
| label_46:
0x000040c8 lw t9, -0x7e34(gp) | t9 = sym.imp.freeaddrinfo;
0x000040cc move a0, zero | a0 = 0;
0x000040d0 jalr t9 | t9 ();
0x000040d4 lw gp, 0x28(sp) | gp = *(var_28h);
| label_54:
0x000040d8 lw a2, -0x7fdc(gp) | a2 = *(gp);
0x000040dc lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x000040e0 addiu a0, zero, 3 | a0 = 3;
0x000040e4 addiu a2, a2, 0x7e48 | a2 += str.Unable_to_get_a_TCP_socket.;
0x000040e8 b 0x3014 | goto label_22;
| label_85:
0x000040ec lw v0, -0x7eec(gp) | v0 = *(gp);
0x000040f0 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000040f4 lw s0, (v0) | s0 = *(v0);
0x000040f8 move a0, s0 | a0 = s0;
0x000040fc jalr t9 | t9 ();
0x00004100 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004104 move a2, v0 | a2 = v0;
0x00004108 move a1, s0 | a1 = s0;
0x0000410c lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00004110 move a0, s6 | a0 = s6;
0x00004114 jalr t9 | t9 ();
0x00004118 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000411c lw v0, 0x50(sp) | v0 = *(var_50h);
0x00004120 lw a3, 0x3c(sp) | a3 = *(var_3ch);
0x00004124 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00004128 addiu a2, v0, -0x7c90 | a2 = v0 + -0x7c90;
0x0000412c addiu a1, zero, 1 | a1 = 1;
0x00004130 addiu a0, zero, 0x26 | a0 = 0x26;
0x00004134 jalr t9 | t9 ();
0x00004138 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000413c b 0x2c84 | goto label_6;
| label_84:
0x00004140 lw v0, -0x7eec(gp) | v0 = *(gp);
0x00004144 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00004148 lw s0, (v0) | s0 = *(v0);
0x0000414c move a0, s0 | a0 = s0;
0x00004150 jalr t9 | t9 ();
0x00004154 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004158 move a2, v0 | a2 = v0;
0x0000415c move a1, s0 | a1 = s0;
0x00004160 lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00004164 move a0, s6 | a0 = s6;
0x00004168 jalr t9 | t9 ();
0x0000416c lw gp, 0x28(sp) | gp = *(var_28h);
0x00004170 lw a3, 0x3c(sp) | a3 = *(var_3ch);
0x00004174 addiu a1, zero, 1 | a1 = 1;
0x00004178 lw a2, -0x7fb8(gp) | a2 = *((gp - 8174));
0x0000417c lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00004180 addiu a2, a2, -0x7f48 | a2 += -0x7f48;
0x00004184 addiu a0, zero, 0x26 | a0 = 0x26;
0x00004188 jalr t9 | t9 ();
0x0000418c lw gp, 0x28(sp) | gp = *(var_28h);
0x00004190 b 0x2c84 | goto label_6;
| label_83:
0x00004194 addiu s0, sp, 0x2f0 | s0 = sp + 0x2f0;
0x00004198 b 0x33ec | goto label_23;
| label_82:
0x0000419c lw t9, -0x7dd0(gp) | t9 = *(gp);
0x000041a0 move s3, zero | s3 = 0;
0x000041a4 lw v0, -0x7f7c(gp) | v0 = *(gp);
0x000041a8 b 0x2ec0 | goto label_15;
| label_77:
0x000041ac move a0, s0 | a0 = s0;
0x000041b0 jalr t9 | t9 ();
0x000041b4 sltiu v0, v0, 6 | v0 = (v0 < 6) ? 1 : 0;
0x000041b8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x000041bc bnez v0, 0x41d0 |
0x000041c0 lb v1, 0x37d(sp) | v1 = *(var_37dh);
0x000041c4 addiu v0, zero, 0x2d | v0 = 0x2d;
0x000041c8 lw t9, -0x7ea8(gp) | t9 = sym.imp.__ctype_b_loc;
| if (v1 != v0) {
0x000041cc bne v1, v0, 0x48e0 | goto label_97;
| }
| }
0x000041d0 lw a0, -0x7fb8(gp) | a0 = *((gp - 8174));
0x000041d4 lw t9, 0x44(sp) | t9 = *(var_44h);
0x000041d8 sltiu a3, s4, 1 | a3 = (s4 < 1) ? 1 : 0;
0x000041dc addiu a2, sp, 0xb0 | a2 = sp + 0xb0;
0x000041e0 move a1, s6 | a1 = s6;
0x000041e4 addiu a0, a0, -0x7fe8 | a0 += -0x7fe8;
0x000041e8 jalr t9 | t9 ();
0x000041ec lw gp, 0x28(sp) | gp = *(var_28h);
0x000041f0 b 0x2c84 | goto label_6;
| label_79:
0x000041f4 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x000041f8 addiu t9, t9, 0x534c | t9 += fcn.0000534c;
0x000041fc addiu a0, sp, 0x37d | a0 = sp + 0x37d;
0x00004200 bal 0x534c | fcn_0000534c ();
0x00004204 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004208 move s4, v0 | s4 = v0;
0x0000420c addiu v0, sp, 0x7c | v0 = sp + 0x7c;
0x00004210 lw t9, -0x7ee8(gp) | t9 = sym.open_virtual;
0x00004214 move a3, s2 | a3 = s2;
0x00004218 sw s6, 0x14(sp) | *(var_14h) = s6;
0x0000421c sw v0, 0x10(sp) | *(var_10h) = v0;
0x00004220 addiu a2, sp, 0x78 | a2 = sp + 0x78;
0x00004224 addiu a1, zero, 1 | a1 = 1;
0x00004228 move a0, s4 | a0 = s4;
0x0000422c bal 0x6a44 | sym_open_virtual ();
0x00004230 move s2, v0 | s2 = v0;
0x00004234 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00004238 beqz v0, 0x480c | goto label_98;
| }
| label_27:
0x0000423c lw v1, 0x78(sp) | v1 = *(var_78h);
| if (s2 <= 0) {
0x00004240 blez s2, 0x3a44 | goto label_20;
| }
0x00004244 addiu v0, zero, 2 | v0 = 2;
0x00004248 lw v0, -0x7ee4(gp) | v0 = *(gp);
| if (v1 == v0) {
0x0000424c beq v1, v0, 0x4798 | goto label_99;
| }
| label_24:
0x00004250 lw t9, -0x7d9c(gp) | t9 = sym.imp.malloc;
0x00004254 addiu a0, zero, 0x1ff4 | a0 = 0x1ff4;
0x00004258 jalr t9 | t9 ();
0x0000425c move s0, v0 | s0 = v0;
0x00004260 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00004264 beqz v0, 0x4750 | void (*0x4750)() ();
| }
| label_78:
0x00004634 lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00004638 addiu t9, t9, 0x534c | t9 += fcn.0000534c;
0x0000463c addiu a0, sp, 0x37d | a0 = sp + 0x37d;
0x00004640 bal 0x534c | fcn_0000534c ();
0x00004644 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004648 move a3, s2 | a3 = s2;
0x0000464c sw s6, 0x14(sp) | *(var_14h) = s6;
0x00004650 lw t9, -0x7ee8(gp) | t9 = sym.open_virtual;
0x00004654 sw zero, 0x10(sp) | *(var_10h) = 0;
0x00004658 addiu a2, sp, 0x7c | a2 = sp + 0x7c;
0x0000465c move a1, zero | a1 = 0;
0x00004660 move a0, v0 | a0 = v0;
0x00004664 move s0, v0 | s0 = v0;
0x00004668 bal 0x6a44 | sym_open_virtual ();
0x0000466c move s2, v0 | s2 = v0;
0x00004670 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 == 0) {
0x00004674 beqz v0, 0x4dd0 | goto label_100;
| }
| label_38:
0x00004678 lw v0, -0x7fb4(gp) | v0 = *(gp);
| if (s2 < 0) {
0x0000467c bltz s2, 0x3a44 | goto label_20;
| }
0x00004680 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00004684 lw s0, (v0) | s0 = *(v0);
0x00004688 move a0, s0 | a0 = s0;
0x0000468c jalr t9 | t9 ();
0x00004690 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004694 move a1, s0 | a1 = s0;
0x00004698 move a2, v0 | a2 = v0;
0x0000469c lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x000046a0 move a0, s6 | a0 = s6;
0x000046a4 jalr t9 | t9 ();
0x000046a8 lw gp, 0x28(sp) | gp = *(var_28h);
0x000046ac lw t9, -0x7fdc(gp) | t9 = *(gp);
0x000046b0 addiu t9, t9, 0x57ec | t9 += fcn.000057ec;
0x000046b4 addiu a0, sp, 0xb0 | a0 = sp + 0xb0;
0x000046b8 bal 0x57ec | fcn_000057ec ();
0x000046bc move s0, v0 | s0 = v0;
0x000046c0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x000046c4 bltz v0, 0x4d9c | goto label_101;
| }
0x000046c8 lw v0, 0x38(sp) | v0 = *(var_38h);
0x000046cc addiu v1, zero, 0x49 | v1 = 0x49;
0x000046d0 lb v0, -0x6b68(v0) | v0 = *((v0 - 27496));
0x000046d4 addiu v1, zero, 0x41 | v1 = 0x41;
| if (v0 == v1) {
0x000046d8 beq v0, v1, 0x4e30 | goto label_102;
| }
0x000046dc lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
| if (v0 == v1) {
0x000046e0 beq v0, v1, 0x4bec | void (*0x4bec)() ();
| }
| label_37:
0x00004784 lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x00004788 move a0, s2 | a0 = s2;
0x0000478c jalr t9 | t9 ();
0x00004790 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004794 b 0x2c84 | goto label_6;
| label_99:
0x00004798 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x0000479c lw fp, -0x7f04(gp) | fp = sym.write_to_fd;
0x000047a0 lw s5, (v0) | s5 = *(v0);
0x000047a4 addiu s0, sp, 0x580 | s0 = sp + 0x580;
0x000047a8 move a0, s5 | a0 = s5;
0x000047ac jalr t9 | t9 ();
0x000047b0 lw gp, 0x28(sp) | gp = *(var_28h);
0x000047b4 move a2, v0 | a2 = v0;
0x000047b8 move a1, s5 | a1 = s5;
0x000047bc lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x000047c0 move a0, s6 | a0 = s6;
0x000047c4 jalr t9 | t9 ();
0x000047c8 lw gp, 0x28(sp) | gp = *(var_28h);
| label_25:
0x000047cc lw t9, -0x7d14(gp) | t9 = sym.imp.read;
0x000047d0 lw a0, 0x7c(sp) | a0 = *(var_7ch);
0x000047d4 addiu a2, zero, 0x51 | a2 = 0x51;
0x000047d8 move a1, s0 | a1 = s0;
0x000047dc jalr t9 | t9 ();
0x000047e0 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 <= 0) {
0x000047e4 blez v0, 0x4250 | goto label_24;
| }
0x000047e8 move a2, v0 | a2 = v0;
0x000047ec move a1, s0 | a1 = s0;
0x000047f0 move t9, fp | t9 = fp;
0x000047f4 move a0, s6 | a0 = s6;
0x000047f8 bal 0x6000 | sym_write_to_fd ();
0x000047fc lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 >= 0) {
0x00004800 bgez v0, 0x47cc | goto label_25;
| }
| label_98:
0x0000480c lw t9, -0x7d84(gp) | t9 = sym.imp.__xstat;
0x00004810 move a2, s1 | a2 = s1;
0x00004814 move a1, s4 | a1 = s4;
0x00004818 addiu a0, zero, 3 | a0 = 3;
0x0000481c jalr t9 | t9 ();
0x00004820 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00004824 bnez v0, 0x4870 | goto label_103;
| }
0x00004828 lw s0, 0x210(sp) | s0 = *(var_210h);
0x0000482c addiu v0, zero, 0x4000 | v0 = 0x4000;
0x00004830 andi v1, s0, 0xf000 | v1 = s0 & 0xf000;
0x00004834 addiu a1, zero, 2 | a1 = 2;
| if (v1 == v0) {
0x00004838 beq v1, v0, 0x4070 | goto label_26;
| }
0x0000483c lw t9, -0x7e10(gp) | t9 = sym.imp.access;
0x00004840 move a0, s4 | a0 = s4;
0x00004844 jalr t9 | t9 ();
0x00004848 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x0000484c bltz v0, 0x3a44 | goto label_20;
| }
0x00004850 andi a2, s0, 0x1ff | a2 = s0 & 0x1ff;
| do {
0x00004854 lw t9, -0x7db4(gp) | t9 = sym.imp.open;
0x00004858 addiu a1, zero, 0x301 | a1 = 0x301;
0x0000485c move a0, s4 | a0 = s4;
0x00004860 jalr t9 | t9 ();
0x00004864 move s2, v0 | s2 = v0;
0x00004868 lw gp, 0x28(sp) | gp = *(var_28h);
0x0000486c b 0x423c | goto label_27;
| label_103:
0x00004870 addiu a2, zero, 0x1a4 | a2 = aav.0x000001a4;
0x00004874 b 0x4854 |
| } while (1);
| label_76:
0x00004878 lbu v0, 0xbc(sp) | v0 = *(var_bch);
0x0000487c lw t9, -0x7dd0(gp) | t9 = *(gp);
| if (v0 != 0) {
0x00004880 bnez v0, 0x3c84 | goto label_28;
| }
0x00004884 lw t9, 0x48(sp) | t9 = *(var_48h);
0x00004888 addiu a0, zero, 2 | a0 = 2;
0x0000488c jalr t9 | t9 ();
0x00004890 move s4, v0 | s4 = v0;
0x00004894 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00004898 bltz v0, 0x3bf0 | goto label_29;
| }
0x0000489c lw t9, -0x7e4c(gp) | t9 = sym.imp.getsockname;
0x000048a0 addiu v0, zero, 0x80 | v0 = 0x80;
0x000048a4 move a2, s2 | a2 = s2;
0x000048a8 move a1, s1 | a1 = s1;
0x000048ac move a0, s6 | a0 = s6;
0x000048b0 sw v0, 0x80(sp) | *(var_80h) = v0;
0x000048b4 jalr t9 | t9 ();
0x000048b8 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 >= 0) {
0x000048bc bltz v0, 0x48d8 |
0x000048c0 lhu v0, 0x1fc(sp) | v0 = *(var_1fch);
0x000048c4 addiu v1, zero, 2 | v1 = 2;
0x000048c8 addiu v1, zero, 0xa | v1 = 0xa;
| if (v0 == v1) {
0x000048cc beq v0, v1, 0x4a3c | goto label_104;
| }
| if (v0 == v1) {
0x000048d0 beql v0, v1, 0x4928 | goto label_105;
| }
0x000048d4 lw fp, 0x204(sp) | fp = *(var_204h);
| }
0x000048d8 move fp, zero | fp = 0;
0x000048dc b 0x4954 | goto label_33;
| label_97:
0x000048e0 jalr t9 | t9 ();
0x000048e4 nop |
0x000048e8 lw v1, (v0) | v1 = *(v0);
0x000048ec addiu a0, sp, 0x37d | a0 = sp + 0x37d;
| do {
0x000048f0 lb v0, (a0) | v0 = *(a0);
0x000048f4 sll v0, v0, 1 | v0 <<= 1;
0x000048f8 addu v0, v1, v0 | v0 = v1 + v0;
0x000048fc lhu v0, (v0) | v0 = *(v0);
0x00004900 andi v0, v0, 0x2000 | v0 &= 0x2000;
0x00004904 addiu a0, a0, 1 | a0++;
0x00004908 bnel v0, zero, 0x48f0 |
| } while (v0 == 0);
0x0000490c lw t9, 0x44(sp) | t9 = *(var_44h);
0x00004910 sltiu a3, s4, 1 | a3 = (s4 < 1) ? 1 : 0;
0x00004914 addiu a2, sp, 0xb0 | a2 = sp + 0xb0;
0x00004918 move a1, s6 | a1 = s6;
0x0000491c jalr t9 | t9 ();
0x00004920 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004924 b 0x2c84 | goto label_6;
| label_105:
0x00004928 lw v0, 0x208(sp) | v0 = *(var_208h);
0x0000492c or fp, fp, v0 | fp |= v0;
0x00004930 move fp, zero | fp = 0;
| if (fp != 0) {
0x00004934 bnel fp, zero, 0x4954 |
0x00004938 lw v1, 0x20c(sp) | v1 = *(var_20ch);
0x0000493c lui v0, 0xffff | v0 = 0xffff0000;
0x00004940 lw t9, -0x7e4c(gp) | t9 = sym.imp.getsockname;
| if (v1 != v0) {
0x00004944 bne v1, v0, 0x4958 | goto label_106;
| }
0x00004948 lw fp, 0x210(sp) | fp = *(var_210h);
0x0000494c wsbh fp, fp | __asm ("wsbh fp, fp");
0x00004950 rotr fp, fp, 0x10 | __asm ("rotr fp, fp, 0x10");
| }
| label_33:
0x00004954 lw t9, -0x7e4c(gp) | t9 = sym.imp.getsockname;
| label_106:
0x00004958 move a2, s2 | a2 = s2;
0x0000495c move a1, s1 | a1 = s1;
0x00004960 move a0, s4 | a0 = s4;
0x00004964 jalr t9 | t9 ();
0x00004968 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x0000496c bltz v0, 0x3be0 | goto label_30;
| }
0x00004970 lhu v0, 0x1fc(sp) | v0 = *(var_1fch);
0x00004974 addiu v1, zero, 2 | v1 = 2;
0x00004978 addiu v1, zero, 0xa | v1 = 0xa;
| if (v0 == v1) {
0x0000497c beq v0, v1, 0x49a8 | goto label_107;
| }
0x00004980 lw t9, -0x7e90(gp) | t9 = sym.imp.close;
| if (v0 != v1) {
0x00004984 bne v0, v1, 0x3be4 | goto label_31;
| }
0x00004988 lw v0, 0x1fc(sp) | v0 = *(var_1fch);
0x0000498c lw v1, 0x200(sp) | v1 = *(var_200h);
0x00004990 or v0, v0, v1 | v0 |= v1;
0x00004994 lw v1, 0x204(sp) | v1 = *(var_204h);
| if (v0 != 0) {
0x00004998 bnez v0, 0x3be4 | goto label_31;
| }
0x0000499c lui v0, 0xffff | v0 = 0xffff0000;
| if (v1 != v0) {
0x000049a0 bne v1, v0, 0x3be4 | goto label_31;
| }
0x000049a4 nop |
| label_107:
0x000049a8 lhu s2, 0x1fe(sp) | s2 = *(var_1feh);
0x000049ac wsbh s2, s2 | __asm ("wsbh s2, s2");
0x000049b0 andi s2, s2, 0xffff | s2 &= 0xffff;
| if (fp == 0) {
0x000049b4 beqz fp, 0x3be0 | goto label_30;
| }
| if (s2 == 0) {
0x000049b8 beql s2, zero, 0x3be4 | goto label_31;
| }
0x000049bc lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x000049c0 lw a0, 0xb8(sp) | a0 = *(var_b8h);
0x000049c4 lw a3, -0x7fb8(gp) | a3 = *((gp - 8174));
| if (a0 >= 0) {
0x000049c8 bltz a0, 0x49e0 |
0x000049cc lw t9, -0x7e90(gp) | t9 = sym.imp.close;
0x000049d0 jalr t9 | t9 ();
0x000049d4 nop |
0x000049d8 lw gp, 0x28(sp) | gp = *(var_28h);
0x000049dc lw a3, -0x7fb8(gp) | a3 = *((gp - 8174));
| }
0x000049e0 lw t9, -0x7eac(gp) | t9 = sym.imp.__sprintf_chk
0x000049e4 andi t1, s2, 0xff | t1 = s2 & 0xff;
0x000049e8 andi t0, fp, 0xff | t0 = fp & 0xff;
0x000049ec ext v1, fp, 8, 8 | __asm ("ext v1, fp, 8, 8");
0x000049f0 ext v0, fp, 0x10, 8 | __asm ("ext v0, fp, 0x10, 8");
0x000049f4 addiu s0, sp, 0x580 | s0 = sp + 0x580;
0x000049f8 sra s2, s2, 8 | s2 >>= 8;
0x000049fc srl fp, fp, 0x18 | fp >>= 0x18;
0x00004a00 addiu a3, a3, -0x7eb0 | a3 += -0x7eb0;
0x00004a04 addiu a2, zero, 0x50 | a2 = 0x50;
0x00004a08 addiu a1, zero, 1 | a1 = 1;
0x00004a0c move a0, s0 | a0 = s0;
0x00004a10 sw s4, 0xb8(sp) | *(var_b8h) = s4;
0x00004a14 sw t1, 0x24(sp) | *(var_24h) = t1;
0x00004a18 sw s2, 0x20(sp) | *(var_20h) = s2;
0x00004a1c sw t0, 0x1c(sp) | *(var_1ch) = t0;
0x00004a20 sw v1, 0x18(sp) | *(var_18h) = v1;
0x00004a24 sw v0, 0x14(sp) | *(var_14h) = v0;
0x00004a28 sw fp, 0x10(sp) | *(var_10h) = fp;
0x00004a2c jalr t9 | t9 ();
0x00004a30 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004a34 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00004a38 b 0x2ec4 | goto label_32;
| label_104:
0x00004a3c lw fp, 0x200(sp) | fp = *(var_200h);
0x00004a40 wsbh fp, fp | __asm ("wsbh fp, fp");
0x00004a44 rotr fp, fp, 0x10 | __asm ("rotr fp, fp, 0x10");
0x00004a48 b 0x4954 | goto label_33;
| label_90:
0x00004a4c lw t9, -0x7fdc(gp) | t9 = *(gp);
0x00004a50 addiu t9, t9, 0x534c | t9 += fcn.0000534c;
0x00004a54 addiu a0, sp, 0x37c | a0 = sp + 0x37c;
0x00004a58 bal 0x534c | fcn_0000534c ();
0x00004a5c lw gp, 0x28(sp) | gp = *(var_28h);
0x00004a60 addiu a1, zero, 0x1ed | a1 = 0x1ed;
0x00004a64 lw t9, -0x7df4(gp) | t9 = sym.imp.mkdir;
0x00004a68 move a0, v0 | a0 = v0;
0x00004a6c jalr t9 | t9 ();
0x00004a70 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != 0) {
0x00004a74 bnez v0, 0x3a44 | goto label_20;
| }
0x00004a78 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00004a7c lw v0, -0x7fbc(gp) | v0 = *(gp);
0x00004a80 b 0x2ec0 | goto label_15;
| label_71:
0x00004aa0 lw t9, -0x7e04(gp) | t9 = sym.imp.strncpy;
0x00004aa4 addiu a2, zero, 0x40 | a2 = 0x40;
0x00004aa8 addiu a1, sp, 0x37d | a1 = sp + 0x37d;
0x00004aac addiu a0, sp, 0x2f0 | a0 = sp + 0x2f0;
0x00004ab0 jalr t9 | t9 ();
0x00004ab4 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004ab8 sb zero, 0x330(sp) | *(var_330h) = 0;
0x00004abc addiu s3, zero, 1 | s3 = 1;
0x00004ac0 lw v0, -0x7ed8(gp) | v0 = *(gp);
0x00004ac4 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00004ac8 lw s0, (v0) | s0 = *(v0);
0x00004acc b 0x2ec4 | goto label_32;
| label_75:
0x00004ad0 lbu v0, 0xbc(sp) | v0 = *(var_bch);
0x00004ad4 lw a1, -0x7fb8(gp) | a1 = *((gp - 8174));
| if (v0 != 0) {
0x00004ad8 bnez v0, 0x3c80 | goto label_34;
| }
0x00004adc addiu v0, sp, 0x7c | v0 = sp + 0x7c;
0x00004ae0 sw v0, 0x18(sp) | *(var_18h) = v0;
0x00004ae4 addiu v0, sp, 0x78 | v0 = sp + 0x78;
0x00004ae8 lw t9, -0x7dec(gp) | t9 = sym.imp.__isoc99_sscanf;
0x00004aec sw v0, 0x14(sp) | *(var_14h) = v0;
0x00004af0 addiu v0, sp, 0x74 | v0 = sp + 0x74;
0x00004af4 sw s2, 0x1c(sp) | *(var_1ch) = s2;
0x00004af8 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00004afc addiu a3, sp, 0x70 | a3 = sp + 0x70;
0x00004b00 addiu a2, sp, 0x6c | a2 = sp + 0x6c;
0x00004b04 addiu a1, a1, -0x7ed4 | a1 += -0x7ed4;
0x00004b08 move a0, s0 | a0 = s0;
0x00004b0c jalr t9 | t9 ();
0x00004b10 addiu v1, zero, 6 | v1 = 6;
0x00004b14 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 != v1) {
0x00004b18 bne v0, v1, 0x3bf0 | goto label_29;
| }
0x00004b1c lw v1, 0x6c(sp) | v1 = *(var_6ch);
0x00004b20 slti v0, v1, 0x100 | v0 = (v1 < 0x100) ? 1 : 0;
0x00004b24 lw t9, -0x7dd0(gp) | t9 = *(gp);
| if (v0 == 0) {
0x00004b28 beqz v0, 0x3bf4 | goto label_35;
| }
0x00004b2c lw t0, 0x70(sp) | t0 = *(var_70h);
0x00004b30 slti v0, t0, 0x100 | v0 = (t0 < 0x100) ? 1 : 0;
0x00004b34 lw v0, -0x7fc4(gp) | v0 = *(gp);
| if (v0 == 0) {
0x00004b38 beqz v0, 0x2ec0 | goto label_15;
| }
0x00004b3c lw t1, 0x74(sp) | t1 = *(var_74h);
0x00004b40 slti v0, t1, 0x100 | v0 = (t1 < 0x100) ? 1 : 0;
0x00004b44 lw v0, -0x7fc4(gp) | v0 = *(gp);
| if (v0 == 0) {
0x00004b48 beqz v0, 0x2ec0 | goto label_15;
| }
0x00004b4c lw t2, 0x78(sp) | t2 = *(var_78h);
0x00004b50 slti v0, t2, 0x100 | v0 = (t2 < 0x100) ? 1 : 0;
0x00004b54 lw v0, -0x7fc4(gp) | v0 = *(gp);
| if (v0 == 0) {
0x00004b58 beqz v0, 0x2ec0 | goto label_15;
| }
0x00004b5c lw v0, 0x7c(sp) | v0 = *(var_7ch);
0x00004b60 slti v0, v0, 0x100 | v0 = (v0 < 0x100) ? 1 : 0;
0x00004b64 lw v0, -0x7fc4(gp) | v0 = *(gp);
| if (v0 == 0) {
0x00004b68 beqz v0, 0x2ec0 | goto label_15;
| }
0x00004b6c lw v0, 0x80(sp) | v0 = *(var_80h);
0x00004b70 slti v0, v0, 0x100 | v0 = (v0 < 0x100) ? 1 : 0;
| if (v0 == 0) {
0x00004b74 beql v0, zero, 0x2ec0 | goto label_15;
| }
0x00004b78 lw v0, -0x7fc4(gp) | v0 = *(gp);
0x00004b7c lw a3, -0x7fb8(gp) | a3 = *((gp - 8174));
0x00004b80 lw t9, -0x7eac(gp) | t9 = sym.imp.__sprintf_chk
0x00004b84 sw v1, 0x10(sp) | *(var_10h) = v1;
0x00004b88 addiu a3, a3, -0x7ebc | a3 += -0x7ebc;
0x00004b8c addiu a2, zero, 0x3e | a2 = 0x3e;
0x00004b90 addiu a1, zero, 1 | a1 = 1;
0x00004b94 addiu a0, sp, 0xbd | a0 = sp + 0xbd;
0x00004b98 sw t2, 0x1c(sp) | *(var_1ch) = t2;
0x00004b9c sw t1, 0x18(sp) | *(var_18h) = t1;
0x00004ba0 sw t0, 0x14(sp) | *(var_14h) = t0;
0x00004ba4 jalr t9 | t9 ();
0x00004ba8 lw v0, 0x7c(sp) | v0 = *(var_7ch);
0x00004bac lw v1, 0x80(sp) | v1 = *(var_80h);
0x00004bb0 sll v0, v0, 8 | v0 <<= 8;
0x00004bb4 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004bb8 addu v0, v0, v1 | v0 += v1;
0x00004bbc b 0x3618 | goto label_36;
| label_72:
0x00004bc0 lw t9, -0x7d64(gp) | t9 = sym.imp.__stack_chk_fail;
0x00004bc4 jalr t9 | t9 ();
0x00004bc8 nop |
| label_42:
0x00004bcc lw a2, -0x7fdc(gp) | a2 = *(gp);
0x00004bd0 lw t9, -0x7e20(gp) | t9 = sym.imp.__syslog_chk;
0x00004bd4 addiu a2, a2, 0x7fc4 | a2 += str.Error:_sigemptyset__m;
0x00004bd8 addiu a1, zero, 1 | a1 = 1;
0x00004bdc addiu a0, zero, 3 | a0 = 3;
0x00004be0 jalr t9 | t9 ();
0x00004be4 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004be8 b 0x30ac | goto label_12;
| label_101:
0x00004d9c lw v0, -0x7fa8(gp) | v0 = *(gp);
0x00004da0 lw t9, -0x7dd0(gp) | t9 = *(gp);
0x00004da4 lw s0, (v0) | s0 = *(v0);
0x00004da8 move a0, s0 | a0 = s0;
0x00004dac jalr t9 | t9 ();
0x00004db0 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004db4 move a2, v0 | a2 = v0;
0x00004db8 move a1, s0 | a1 = s0;
0x00004dbc lw t9, -0x7ddc(gp) | t9 = sym.imp.write;
0x00004dc0 move a0, s6 | a0 = s6;
0x00004dc4 jalr t9 | t9 ();
0x00004dc8 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004dcc b 0x4784 | goto label_37;
| label_100:
0x00004dd0 lw t9, -0x7d84(gp) | t9 = sym.imp.__xstat;
0x00004dd4 move a2, s1 | a2 = s1;
0x00004dd8 move a1, s0 | a1 = s0;
0x00004ddc addiu a0, zero, 3 | a0 = 3;
0x00004de0 jalr t9 | t9 ();
0x00004de4 lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00004de8 bltz v0, 0x3a44 | goto label_20;
| }
0x00004dec lw v0, 0x210(sp) | v0 = *(var_210h);
0x00004df0 addiu v1, zero, 0x4000 | v1 = 0x4000;
0x00004df4 andi v0, v0, 0xf000 | v0 &= 0xf000;
0x00004df8 addiu a1, zero, 4 | a1 = 4;
| if (v0 == v1) {
0x00004dfc beq v0, v1, 0x4070 | goto label_26;
| }
0x00004e00 lw t9, -0x7e10(gp) | t9 = sym.imp.access;
0x00004e04 move a0, s0 | a0 = s0;
0x00004e08 jalr t9 | t9 ();
0x00004e0c lw gp, 0x28(sp) | gp = *(var_28h);
| if (v0 < 0) {
0x00004e10 bltz v0, 0x3a44 | goto label_20;
| }
0x00004e14 lw t9, -0x7db4(gp) | t9 = sym.imp.open;
0x00004e18 move a1, zero | a1 = 0;
0x00004e1c move a0, s0 | a0 = s0;
0x00004e20 jalr t9 | t9 ();
0x00004e24 move s2, v0 | s2 = v0;
0x00004e28 lw gp, 0x28(sp) | gp = *(var_28h);
0x00004e2c b 0x4678 | goto label_38;
| label_102:
0x00004e30 lw t9, -0x7d9c(gp) | t9 = sym.imp.malloc;
0x00004e34 addiu a0, zero, 0x1ff4 | a0 = 0x1ff4;
0x00004e38 jalr t9 | t9 ();
0x00004e3c move fp, v0 | fp = v0;
0x00004e40 lw gp, 0x28(sp) | gp = *(var_28h);
| /* Beware that this jump is a conditional jump.
| * r2dec transformed it as a return, due being the
| * last instruction. Please, check 'pdda' output
| * for more hints. */
0x00004e44 beqz v0, 0x4d8c | return void (*0x4d8c)() ();
| }
[*] Function sprintf used 5 times vftpd