
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int udhcp_read_interface(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)

{
  char ifr_buf [32];
  
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3
FUN_0004dd6b(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined1 *puVar5;
  undefined4 *puVar6;
  int in_GS_OFFSET;
  undefined4 auStack_68 [3];
  undefined1 auStack_5c [4];
  undefined4 *local_58;
  int local_54;
  undefined4 *local_50;
  undefined4 local_40 [4];
  undefined2 local_30;
  undefined4 local_2c;
  int aiStack_28 [6];
  
  puVar3 = (undefined4 *)auStack_5c;
  puVar4 = (undefined4 *)auStack_5c;
  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);
  puVar6 = local_40;
  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar6 = 0;
    puVar6 = puVar6 + 1;
  }
  auStack_68[2] = 0x4ddbd;
  local_54 = param_2;
  local_50 = param_3;
  uVar1 = FUN_0001a291();
  local_30 = 2;
  auStack_68[2] = 0x4ddd1;
  FUN_00019377();
  if (local_50 == (undefined4 *)0x0) {
LAB_0004de17:
    if (local_54 != 0) {
      iVar2 = FUN_0001a46c("SIOCGIFINDEX");
      puVar3 = auStack_68 + 2;
      puVar4 = auStack_68 + 2;
      if (iVar2 != 0) goto LAB_0004ddfa;
      *local_58 = local_40[3];
    }
    puVar5 = (undefined1 *)puVar4;
    if (param_4 != (undefined4 *)0x0) {
      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";
      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;
      iVar2 = FUN_0001a46c();
      puVar3 = (undefined4 *)((int)puVar4 + -4);
      puVar5 = (undefined1 *)((int)puVar4 + -4);
      if (iVar2 != 0) goto LAB_0004ddfa;
      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);
      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);
    }
    *(undefined4 *)(puVar5 + -0x10) = uVar1;
    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;
    close(*(int *)(puVar5 + -0x10));
    uVar1 = 0;
  }
  else {
    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);
    if (iVar2 == 0) {
      *local_50 = local_2c;
      goto LAB_0004de17;
    }
LAB_0004ddfa:
    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;
    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;
    close(*(int *)((int)puVar3 + -0x10));
    uVar1 = 0xffffffff;
    puVar5 = (undefined1 *)puVar3;
  }
  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined4 *)(puVar5 + -4) = 0x4de76;
  FUN_00017e10();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x4c
CALL 0x00017640
ADD EBX,0x82ca9
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0xc],ECX
MOV EBP,dword ptr [ESP + 0x60]
MOV ESI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x3c],ESI
XOR ESI,ESI
LEA ESI,[ESP + 0x1c]
MOV ECX,0x8
XOR EAX,EAX
MOV EDI,ESI
STOSD.REP ES:EDI
MOV ECX,0xff
MOV EDX,0x3
MOV EAX,0x2
CALL 0x0001a291
MOV EDI,EAX
MOV word ptr [ESP + 0x2c],0x2
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,ESI
CALL 0x00019377
MOV EDX,dword ptr [ESP + 0xc]
TEST EDX,EDX
JZ 0x0004de17
SUB ESP,0xc
PUSH dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0xfffe908c]
PUSH EAX
PUSH ESI
PUSH 0x8915
PUSH EDI
CALL 0x0001a419
ADD ESP,0x20
TEST EAX,EAX
JZ 0x0004de0d
SUB ESP,0xc
PUSH EDI
CALL 0x000174d0
ADD ESP,0x10
MOV EAX,0xffffffff
JMP 0x0004de5a
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x0004de48
SUB ESP,0xc
LEA EAX,[EBX + 0xffff4f45]
PUSH EAX
MOV ECX,ESI
MOV EDX,0x8933
MOV EAX,EDI
CALL 0x0001a46c
ADD ESP,0xc
TEST EAX,EAX
JNZ 0x0004ddfa
MOV EAX,dword ptr [ESP + 0x2c]
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [ECX],EAX
TEST EBP,EBP
JNZ 0x0004de76
SUB ESP,0xc
PUSH EDI
CALL 0x000174d0
ADD ESP,0x10
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0x3c]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x0004de71
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
CALL 0x00017e10
SUB ESP,0xc
LEA EAX,[EBX + 0xffff716b]
PUSH EAX
MOV ECX,ESI
MOV EDX,0x8927
MOV EAX,EDI
CALL 0x0001a46c
ADD ESP,0xc
TEST EAX,EAX
JNZ 0x0004ddfa
MOV EAX,dword ptr [ESP + 0x2e]
MOV dword ptr [EBP],EAX
MOV AX,word ptr [ESP + 0x32]
MOV word ptr [EBP + 0x4],AX
JMP 0x0004de4c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_0004dd6b(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  undefined4 auStack_68 [3];\n  undefined1 auStack_5c [4];\n  undefined4 *local_58;\n  int local_54;\n  undefined4 *local_50;\n  undefined4 local_40 [4];\n  undefined2 local_30;\n  undefined4 local_2c;\n  int aiStack_28 [6];\n  \n  puVar3 = (undefined4 *)auStack_5c;\n  puVar4 = (undefined4 *)auStack_5c;\n  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  puVar6 = local_40;\n  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  auStack_68[2] = 0x4ddbd;\n  local_54 = param_2;\n  local_50 = param_3;\n  uVar1 = FUN_0001a291();\n  local_30 = 2;\n  auStack_68[2] = 0x4ddd1;\n  FUN_00019377();\n  if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }\n  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined4 *)(puVar5 + -4) = 0x4de76;\n  FUN_00017e10();\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_0004dd6b(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  undefined4 auStack_68 [3];\n  undefined1 auStack_5c [4];\n  undefined4 *local_58;\n  int local_54;\n  undefined4 *local_50;\n  undefined4 local_40 [4];\n  undefined2 local_30;\n  undefined4 local_2c;\n  int aiStack_28 [6];\n  \n  puVar3 = (undefined4 *)auStack_5c;\n  puVar4 = (undefined4 *)auStack_5c;\n  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  puVar6 = local_40;\n  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  auStack_68[2] = 0x4ddbd;\n  local_54 = param_2;\n  local_50 = param_3;\n  uVar1 = FUN_0001a291();\n  local_30 = 2;\n  auStack_68[2] = 0x4ddd1;\n  FUN_00019377();\n  if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }\n  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined4 *)(puVar5 + -4) = 0x4de76;\n  FUN_00017e10();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0004dd6b(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  undefined4 auStack_68 [3];\n  undefined1 auStack_5c [4];\n  undefined4 *local_58;\n  int local_54;\n  undefined4 *local_50;\n  undefined4 local_40 [4];\n  undefined2 local_30;\n  undefined4 local_2c;\n  int aiStack_28 [6];\n  \n  puVar3 = (undefined4 *)auStack_5c;\n  puVar4 = (undefined4 *)auStack_5c;\n  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  puVar6 = local_40;\n  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  auStack_68[2] = 0x4ddbd;\n  local_54 = param_2;\n  local_50 = param_3;\n  uVar1 = FUN_0001a291();\n  local_30 = 2;\n  auStack_68[2] = 0x4ddd1;\n  FUN_00019377();\n  if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }\n  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined4 *)(puVar5 + -4) = 0x4de76;\n  FUN_00017e10();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 auStack_68 [3];" type_identifier (array_declarator "auStack_68 [3]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_5c [4];" type_identifier (array_declarator "auStack_5c [4]" identifier [ number_literal ]) ;) (declaration "undefined4 *local_58;" type_identifier (pointer_declarator "*local_58" * identifier) ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "undefined4 *local_50;" type_identifier (pointer_declarator "*local_50" * identifier) ;) (declaration "undefined4 local_40 [4];" type_identifier (array_declarator "local_40 [4]" identifier [ number_literal ]) ;) (declaration "undefined2 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int aiStack_28 [6];" primitive_type (array_declarator "aiStack_28 [6]" identifier [ number_literal ]) ;) (expression_statement "puVar3 = (undefined4 *)auStack_5c;" (assignment_expression "puVar3 = (undefined4 *)auStack_5c" identifier = (cast_expression "(undefined4 *)auStack_5c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar4 = (undefined4 *)auStack_5c;" (assignment_expression "puVar4 = (undefined4 *)auStack_5c" identifier = (cast_expression "(undefined4 *)auStack_5c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14)" (subscript_expression "aiStack_28[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar6 = local_40;" (assignment_expression "puVar6 = local_40" identifier = identifier) ;) (for_statement "for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" for ( (assignment_expression "iVar2 = 8" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "auStack_68[2] = 0x4ddbd;" (assignment_expression "auStack_68[2] = 0x4ddbd" (subscript_expression "auStack_68[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_54 = param_2;" (assignment_expression "local_54 = param_2" identifier = identifier) ;) (expression_statement "local_50 = param_3;" (assignment_expression "local_50 = param_3" identifier = identifier) ;) (expression_statement "uVar1 = FUN_0001a291();" (assignment_expression "uVar1 = FUN_0001a291()" identifier = (call_expression "FUN_0001a291()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_30 = 2;" (assignment_expression "local_30 = 2" identifier = number_literal) ;) (expression_statement "auStack_68[2] = 0x4ddd1;" (assignment_expression "auStack_68[2] = 0x4ddd1" (subscript_expression "auStack_68[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00019377();" (call_expression "FUN_00019377()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }" if (parenthesized_expression "(local_50 == (undefined4 *)0x0)" ( (binary_expression "local_50 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }" { (labeled_statement "LAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }" statement_identifier : (if_statement "if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }" if (parenthesized_expression "(local_54 != 0)" ( (binary_expression "local_54 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }" { (expression_statement "iVar2 = FUN_0001a46c("SIOCGIFINDEX");" (assignment_expression "iVar2 = FUN_0001a46c("SIOCGIFINDEX")" identifier = (call_expression "FUN_0001a46c("SIOCGIFINDEX")" identifier (argument_list "("SIOCGIFINDEX")" ( (string_literal ""SIOCGIFINDEX"" " string_content ") )))) ;) (expression_statement "puVar3 = auStack_68 + 2;" (assignment_expression "puVar3 = auStack_68 + 2" identifier = (binary_expression "auStack_68 + 2" identifier + number_literal)) ;) (expression_statement "puVar4 = auStack_68 + 2;" (assignment_expression "puVar4 = auStack_68 + 2" identifier = (binary_expression "auStack_68 + 2" identifier + number_literal)) ;) (if_statement "if (iVar2 != 0) goto LAB_0004ddfa;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004ddfa;" goto statement_identifier ;)) (expression_statement "*local_58 = local_40[3];" (assignment_expression "*local_58 = local_40[3]" (pointer_expression "*local_58" * identifier) = (subscript_expression "local_40[3]" identifier [ number_literal ])) ;) }))) (expression_statement "puVar5 = (undefined1 *)puVar4;" (assignment_expression "puVar5 = (undefined1 *)puVar4" identifier = (cast_expression "(undefined1 *)puVar4" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }" { (expression_statement "*(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";" (assignment_expression "*(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR"" (pointer_expression "*(char **)((int)puVar4 + -0x10)" * (cast_expression "(char **)((int)puVar4 + -0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)puVar4 + -0x10)" ( (binary_expression "(int)puVar4 + -0x10" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (string_literal ""SIOCGIFHWADDR"" " string_content ")) ;) (expression_statement "*(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;" (assignment_expression "*(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e" (pointer_expression "*(undefined4 *)((int)puVar4 + -0x14)" * (cast_expression "(undefined4 *)((int)puVar4 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + -0x14)" ( (binary_expression "(int)puVar4 + -0x14" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = FUN_0001a46c();" (assignment_expression "iVar2 = FUN_0001a46c()" identifier = (call_expression "FUN_0001a46c()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar3 = (undefined4 *)((int)puVar4 + -4);" (assignment_expression "puVar3 = (undefined4 *)((int)puVar4 + -4)" identifier = (cast_expression "(undefined4 *)((int)puVar4 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + -4)" ( (binary_expression "(int)puVar4 + -4" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "puVar5 = (undefined1 *)((int)puVar4 + -4);" (assignment_expression "puVar5 = (undefined1 *)((int)puVar4 + -4)" identifier = (cast_expression "(undefined1 *)((int)puVar4 + -4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + -4)" ( (binary_expression "(int)puVar4 + -4" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0004ddfa;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004ddfa;" goto statement_identifier ;)) (expression_statement "*param_4 = *(undefined4 *)((int)puVar4 + 0x2a);" (assignment_expression "*param_4 = *(undefined4 *)((int)puVar4 + 0x2a)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)((int)puVar4 + 0x2a)" * (cast_expression "(undefined4 *)((int)puVar4 + 0x2a)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 0x2a)" ( (binary_expression "(int)puVar4 + 0x2a" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);" (assignment_expression "*(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e)" (pointer_expression "*(undefined2 *)(param_4 + 1)" * (cast_expression "(undefined2 *)(param_4 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) = (pointer_expression "*(undefined2 *)((int)puVar4 + 0x2e)" * (cast_expression "(undefined2 *)((int)puVar4 + 0x2e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 0x2e)" ( (binary_expression "(int)puVar4 + 0x2e" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) })) (expression_statement "*(undefined4 *)(puVar5 + -0x10) = uVar1;" (assignment_expression "*(undefined4 *)(puVar5 + -0x10) = uVar1" (pointer_expression "*(undefined4 *)(puVar5 + -0x10)" * (cast_expression "(undefined4 *)(puVar5 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar5 + -0x14) = 0x4de55;" (assignment_expression "*(undefined4 *)(puVar5 + -0x14) = 0x4de55" (pointer_expression "*(undefined4 *)(puVar5 + -0x14)" * (cast_expression "(undefined4 *)(puVar5 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x14)" ( (binary_expression "puVar5 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "close(*(int *)(puVar5 + -0x10));" (call_expression "close(*(int *)(puVar5 + -0x10))" identifier (argument_list "(*(int *)(puVar5 + -0x10))" ( (pointer_expression "*(int *)(puVar5 + -0x10)" * (cast_expression "(int *)(puVar5 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }" else (compound_statement "{\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }" { (expression_statement "iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);" (assignment_expression "iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58)" identifier = (call_expression "FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58)" identifier (argument_list "(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58)" ( identifier , number_literal , identifier , (string_literal ""is interface %s up and configured?"" " string_content ") , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }" { (expression_statement "*local_50 = local_2c;" (assignment_expression "*local_50 = local_2c" (pointer_expression "*local_50" * identifier) = identifier) ;) (goto_statement "goto LAB_0004de17;" goto statement_identifier ;) })) (labeled_statement "LAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;" statement_identifier : (expression_statement "*(undefined4 *)((int)puVar3 + -0x10) = uVar1;" (assignment_expression "*(undefined4 *)((int)puVar3 + -0x10) = uVar1" (pointer_expression "*(undefined4 *)((int)puVar3 + -0x10)" * (cast_expression "(undefined4 *)((int)puVar3 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + -0x10)" ( (binary_expression "(int)puVar3 + -0x10" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;" (assignment_expression "*(undefined4 *)((int)puVar3 + -0x14) = 0x4de03" (pointer_expression "*(undefined4 *)((int)puVar3 + -0x14)" * (cast_expression "(undefined4 *)((int)puVar3 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + -0x14)" ( (binary_expression "(int)puVar3 + -0x14" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "close(*(int *)((int)puVar3 + -0x10));" (call_expression "close(*(int *)((int)puVar3 + -0x10))" identifier (argument_list "(*(int *)((int)puVar3 + -0x10))" ( (pointer_expression "*(int *)((int)puVar3 + -0x10)" * (cast_expression "(int *)((int)puVar3 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + -0x10)" ( (binary_expression "(int)puVar3 + -0x10" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (expression_statement "puVar5 = (undefined1 *)puVar3;" (assignment_expression "puVar5 = (undefined1 *)puVar3" identifier = (cast_expression "(undefined1 *)puVar3" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (if_statement "if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar5 + 0x3c)" * (cast_expression "(int *)(puVar5 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x3c)" ( (binary_expression "puVar5 + 0x3c" identifier + number_literal) )))) == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "*(undefined4 *)(puVar5 + -4) = 0x4de76;" (assignment_expression "*(undefined4 *)(puVar5 + -4) = 0x4de76" (pointer_expression "*(undefined4 *)(puVar5 + -4)" * (cast_expression "(undefined4 *)(puVar5 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -4)" ( (binary_expression "puVar5 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint udhcp_read_interface(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)\n\n{\n  char ifr_buf [32];\n  \n}\n\n" comment (function_definition "int udhcp_read_interface(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)\n\n{\n  char ifr_buf [32];\n  \n}" primitive_type (function_declarator "udhcp_read_interface(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)" identifier (parameter_list "(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)" ( (parameter_declaration "char *interface" primitive_type (pointer_declarator "*interface" * identifier)) , (parameter_declaration "int *ifindex" primitive_type (pointer_declarator "*ifindex" * identifier)) , (parameter_declaration "uint32_t *nip" primitive_type (pointer_declarator "*nip" * identifier)) , (parameter_declaration "uint8_t *mac" primitive_type (pointer_declarator "*mac" * identifier)) ))) (compound_statement "{\n  char ifr_buf [32];\n  \n}" { (declaration "char ifr_buf [32];" primitive_type (array_declarator "ifr_buf [32]" identifier [ number_literal ]) ;) })))
(translation_unit "undefined4 __regparm3\nFUN_0004dd6b(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  undefined4 auStack_68 [3];\n  undefined1 auStack_5c [4];\n  undefined4 *local_58;\n  int local_54;\n  undefined4 *local_50;\n  undefined4 local_40 [4];\n  undefined2 local_30;\n  undefined4 local_2c;\n  int aiStack_28 [6];\n  \n  puVar3 = (undefined4 *)auStack_5c;\n  puVar4 = (undefined4 *)auStack_5c;\n  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  puVar6 = local_40;\n  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  auStack_68[2] = 0x4ddbd;\n  local_54 = param_2;\n  local_50 = param_3;\n  uVar1 = FUN_0001a291();\n  local_30 = 2;\n  auStack_68[2] = 0x4ddd1;\n  FUN_00019377();\n  if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }\n  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined4 *)(puVar5 + -4) = 0x4de76;\n  FUN_00017e10();\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0004dd6b(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  undefined4 auStack_68 [3];\n  undefined1 auStack_5c [4];\n  undefined4 *local_58;\n  int local_54;\n  undefined4 *local_50;\n  undefined4 local_40 [4];\n  undefined2 local_30;\n  undefined4 local_2c;\n  int aiStack_28 [6];\n  \n  puVar3 = (undefined4 *)auStack_5c;\n  puVar4 = (undefined4 *)auStack_5c;\n  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  puVar6 = local_40;\n  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  auStack_68[2] = 0x4ddbd;\n  local_54 = param_2;\n  local_50 = param_3;\n  uVar1 = FUN_0001a291();\n  local_30 = 2;\n  auStack_68[2] = 0x4ddd1;\n  FUN_00019377();\n  if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }\n  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined4 *)(puVar5 + -4) = 0x4de76;\n  FUN_00017e10();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0004dd6b(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  undefined4 auStack_68 [3];\n  undefined1 auStack_5c [4];\n  undefined4 *local_58;\n  int local_54;\n  undefined4 *local_50;\n  undefined4 local_40 [4];\n  undefined2 local_30;\n  undefined4 local_2c;\n  int aiStack_28 [6];\n  \n  puVar3 = (undefined4 *)auStack_5c;\n  puVar4 = (undefined4 *)auStack_5c;\n  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  puVar6 = local_40;\n  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  auStack_68[2] = 0x4ddbd;\n  local_54 = param_2;\n  local_50 = param_3;\n  uVar1 = FUN_0001a291();\n  local_30 = 2;\n  auStack_68[2] = 0x4ddd1;\n  FUN_00019377();\n  if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }\n  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined4 *)(puVar5 + -4) = 0x4de76;\n  FUN_00017e10();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 auStack_68 [3];" type_identifier (array_declarator "auStack_68 [3]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_5c [4];" type_identifier (array_declarator "auStack_5c [4]" identifier [ number_literal ]) ;) (declaration "undefined4 *local_58;" type_identifier (pointer_declarator "*local_58" * identifier) ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "undefined4 *local_50;" type_identifier (pointer_declarator "*local_50" * identifier) ;) (declaration "undefined4 local_40 [4];" type_identifier (array_declarator "local_40 [4]" identifier [ number_literal ]) ;) (declaration "undefined2 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int aiStack_28 [6];" primitive_type (array_declarator "aiStack_28 [6]" identifier [ number_literal ]) ;) (expression_statement "puVar3 = (undefined4 *)auStack_5c;" (assignment_expression "puVar3 = (undefined4 *)auStack_5c" identifier = (cast_expression "(undefined4 *)auStack_5c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar4 = (undefined4 *)auStack_5c;" (assignment_expression "puVar4 = (undefined4 *)auStack_5c" identifier = (cast_expression "(undefined4 *)auStack_5c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14)" (subscript_expression "aiStack_28[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar6 = local_40;" (assignment_expression "puVar6 = local_40" identifier = identifier) ;) (for_statement "for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" for ( (assignment_expression "iVar2 = 8" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "auStack_68[2] = 0x4ddbd;" (assignment_expression "auStack_68[2] = 0x4ddbd" (subscript_expression "auStack_68[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_54 = param_2;" (assignment_expression "local_54 = param_2" identifier = identifier) ;) (expression_statement "local_50 = param_3;" (assignment_expression "local_50 = param_3" identifier = identifier) ;) (expression_statement "uVar1 = FUN_0001a291();" (assignment_expression "uVar1 = FUN_0001a291()" identifier = (call_expression "FUN_0001a291()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_30 = 2;" (assignment_expression "local_30 = 2" identifier = number_literal) ;) (expression_statement "auStack_68[2] = 0x4ddd1;" (assignment_expression "auStack_68[2] = 0x4ddd1" (subscript_expression "auStack_68[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00019377();" (call_expression "FUN_00019377()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }" if (parenthesized_expression "(local_50 == (undefined4 *)0x0)" ( (binary_expression "local_50 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }" { (labeled_statement "LAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }" statement_identifier : (if_statement "if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }" if (parenthesized_expression "(local_54 != 0)" ( (binary_expression "local_54 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }" { (expression_statement "iVar2 = FUN_0001a46c("SIOCGIFINDEX");" (assignment_expression "iVar2 = FUN_0001a46c("SIOCGIFINDEX")" identifier = (call_expression "FUN_0001a46c("SIOCGIFINDEX")" identifier (argument_list "("SIOCGIFINDEX")" ( (string_literal ""SIOCGIFINDEX"" " string_content ") )))) ;) (expression_statement "puVar3 = auStack_68 + 2;" (assignment_expression "puVar3 = auStack_68 + 2" identifier = (binary_expression "auStack_68 + 2" identifier + number_literal)) ;) (expression_statement "puVar4 = auStack_68 + 2;" (assignment_expression "puVar4 = auStack_68 + 2" identifier = (binary_expression "auStack_68 + 2" identifier + number_literal)) ;) (if_statement "if (iVar2 != 0) goto LAB_0004ddfa;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004ddfa;" goto statement_identifier ;)) (expression_statement "*local_58 = local_40[3];" (assignment_expression "*local_58 = local_40[3]" (pointer_expression "*local_58" * identifier) = (subscript_expression "local_40[3]" identifier [ number_literal ])) ;) }))) (expression_statement "puVar5 = (undefined1 *)puVar4;" (assignment_expression "puVar5 = (undefined1 *)puVar4" identifier = (cast_expression "(undefined1 *)puVar4" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }" { (expression_statement "*(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";" (assignment_expression "*(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR"" (pointer_expression "*(char **)((int)puVar4 + -0x10)" * (cast_expression "(char **)((int)puVar4 + -0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)puVar4 + -0x10)" ( (binary_expression "(int)puVar4 + -0x10" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (string_literal ""SIOCGIFHWADDR"" " string_content ")) ;) (expression_statement "*(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;" (assignment_expression "*(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e" (pointer_expression "*(undefined4 *)((int)puVar4 + -0x14)" * (cast_expression "(undefined4 *)((int)puVar4 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + -0x14)" ( (binary_expression "(int)puVar4 + -0x14" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = FUN_0001a46c();" (assignment_expression "iVar2 = FUN_0001a46c()" identifier = (call_expression "FUN_0001a46c()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar3 = (undefined4 *)((int)puVar4 + -4);" (assignment_expression "puVar3 = (undefined4 *)((int)puVar4 + -4)" identifier = (cast_expression "(undefined4 *)((int)puVar4 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + -4)" ( (binary_expression "(int)puVar4 + -4" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "puVar5 = (undefined1 *)((int)puVar4 + -4);" (assignment_expression "puVar5 = (undefined1 *)((int)puVar4 + -4)" identifier = (cast_expression "(undefined1 *)((int)puVar4 + -4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + -4)" ( (binary_expression "(int)puVar4 + -4" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0004ddfa;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004ddfa;" goto statement_identifier ;)) (expression_statement "*param_4 = *(undefined4 *)((int)puVar4 + 0x2a);" (assignment_expression "*param_4 = *(undefined4 *)((int)puVar4 + 0x2a)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)((int)puVar4 + 0x2a)" * (cast_expression "(undefined4 *)((int)puVar4 + 0x2a)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 0x2a)" ( (binary_expression "(int)puVar4 + 0x2a" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);" (assignment_expression "*(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e)" (pointer_expression "*(undefined2 *)(param_4 + 1)" * (cast_expression "(undefined2 *)(param_4 + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) = (pointer_expression "*(undefined2 *)((int)puVar4 + 0x2e)" * (cast_expression "(undefined2 *)((int)puVar4 + 0x2e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 0x2e)" ( (binary_expression "(int)puVar4 + 0x2e" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) })) (expression_statement "*(undefined4 *)(puVar5 + -0x10) = uVar1;" (assignment_expression "*(undefined4 *)(puVar5 + -0x10) = uVar1" (pointer_expression "*(undefined4 *)(puVar5 + -0x10)" * (cast_expression "(undefined4 *)(puVar5 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar5 + -0x14) = 0x4de55;" (assignment_expression "*(undefined4 *)(puVar5 + -0x14) = 0x4de55" (pointer_expression "*(undefined4 *)(puVar5 + -0x14)" * (cast_expression "(undefined4 *)(puVar5 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x14)" ( (binary_expression "puVar5 + -0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "close(*(int *)(puVar5 + -0x10));" (call_expression "close(*(int *)(puVar5 + -0x10))" identifier (argument_list "(*(int *)(puVar5 + -0x10))" ( (pointer_expression "*(int *)(puVar5 + -0x10)" * (cast_expression "(int *)(puVar5 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -0x10)" ( (binary_expression "puVar5 + -0x10" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }" else (compound_statement "{\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }" { (expression_statement "iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);" (assignment_expression "iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58)" identifier = (call_expression "FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58)" identifier (argument_list "(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58)" ( identifier , number_literal , identifier , (string_literal ""is interface %s up and configured?"" " string_content ") , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }" { (expression_statement "*local_50 = local_2c;" (assignment_expression "*local_50 = local_2c" (pointer_expression "*local_50" * identifier) = identifier) ;) (goto_statement "goto LAB_0004de17;" goto statement_identifier ;) })) (labeled_statement "LAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;" statement_identifier : (expression_statement "*(undefined4 *)((int)puVar3 + -0x10) = uVar1;" (assignment_expression "*(undefined4 *)((int)puVar3 + -0x10) = uVar1" (pointer_expression "*(undefined4 *)((int)puVar3 + -0x10)" * (cast_expression "(undefined4 *)((int)puVar3 + -0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + -0x10)" ( (binary_expression "(int)puVar3 + -0x10" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;)) (expression_statement "*(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;" (assignment_expression "*(undefined4 *)((int)puVar3 + -0x14) = 0x4de03" (pointer_expression "*(undefined4 *)((int)puVar3 + -0x14)" * (cast_expression "(undefined4 *)((int)puVar3 + -0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + -0x14)" ( (binary_expression "(int)puVar3 + -0x14" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "close(*(int *)((int)puVar3 + -0x10));" (call_expression "close(*(int *)((int)puVar3 + -0x10))" identifier (argument_list "(*(int *)((int)puVar3 + -0x10))" ( (pointer_expression "*(int *)((int)puVar3 + -0x10)" * (cast_expression "(int *)((int)puVar3 + -0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + -0x10)" ( (binary_expression "(int)puVar3 + -0x10" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) (expression_statement "puVar5 = (undefined1 *)puVar3;" (assignment_expression "puVar5 = (undefined1 *)puVar3" identifier = (cast_expression "(undefined1 *)puVar3" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (if_statement "if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar5 + 0x3c)" * (cast_expression "(int *)(puVar5 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 0x3c)" ( (binary_expression "puVar5 + 0x3c" identifier + number_literal) )))) == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "*(undefined4 *)(puVar5 + -4) = 0x4de76;" (assignment_expression "*(undefined4 *)(puVar5 + -4) = 0x4de76" (pointer_expression "*(undefined4 *)(puVar5 + -4)" * (cast_expression "(undefined4 *)(puVar5 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + -4)" ( (binary_expression "puVar5 + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (string_literal " string_content ")) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (string_literal " string_content ") , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 __regparm3\nFUN_0004dd6b(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  undefined4 auStack_68 [3];\n  undefined1 auStack_5c [4];\n  undefined4 *local_58;\n  int local_54;\n  undefined4 *local_50;\n  undefined4 local_40 [4];\n  undefined2 local_30;\n  undefined4 local_2c;\n  int aiStack_28 [6];\n  \n  puVar3 = (undefined4 *)auStack_5c;\n  puVar4 = (undefined4 *)auStack_5c;\n  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  puVar6 = local_40;\n  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  auStack_68[2] = 0x4ddbd;\n  local_54 = param_2;\n  local_50 = param_3;\n  uVar1 = FUN_0001a291();\n  local_30 = 2;\n  auStack_68[2] = 0x4ddd1;\n  FUN_00019377();\n  if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }\n  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined4 *)(puVar5 + -4) = 0x4de76;\n  FUN_00017e10();\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0004dd6b(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)" (identifier "FUN_0004dd6b") (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined4 *puVar4;\n  undefined1 *puVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  undefined4 auStack_68 [3];\n  undefined1 auStack_5c [4];\n  undefined4 *local_58;\n  int local_54;\n  undefined4 *local_50;\n  undefined4 local_40 [4];\n  undefined2 local_30;\n  undefined4 local_2c;\n  int aiStack_28 [6];\n  \n  puVar3 = (undefined4 *)auStack_5c;\n  puVar4 = (undefined4 *)auStack_5c;\n  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  puVar6 = local_40;\n  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }\n  auStack_68[2] = 0x4ddbd;\n  local_54 = param_2;\n  local_50 = param_3;\n  uVar1 = FUN_0001a291();\n  local_30 = 2;\n  auStack_68[2] = 0x4ddd1;\n  FUN_00019377();\n  if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }\n  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined4 *)(puVar5 + -4) = 0x4de76;\n  FUN_00017e10();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 auStack_68 [3];" (type_identifier "undefined4") (array_declarator "auStack_68 [3]" (identifier "auStack_68") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined1 auStack_5c [4];" (type_identifier "undefined1") (array_declarator "auStack_5c [4]" (identifier "auStack_5c") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined4 *local_58;" (type_identifier "undefined4") (pointer_declarator "*local_58" (* "*") (identifier "local_58")) (; ";")) (declaration "int local_54;" (primitive_type "int") (identifier "local_54") (; ";")) (declaration "undefined4 *local_50;" (type_identifier "undefined4") (pointer_declarator "*local_50" (* "*") (identifier "local_50")) (; ";")) (declaration "undefined4 local_40 [4];" (type_identifier "undefined4") (array_declarator "local_40 [4]" (identifier "local_40") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined2 local_30;" (type_identifier "undefined2") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "int aiStack_28 [6];" (primitive_type "int") (array_declarator "aiStack_28 [6]" (identifier "aiStack_28") ([ "[") (number_literal "6") (] "]")) (; ";")) (expression_statement "puVar3 = (undefined4 *)auStack_5c;" (assignment_expression "puVar3 = (undefined4 *)auStack_5c" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)auStack_5c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_5c"))) (; ";")) (expression_statement "puVar4 = (undefined4 *)auStack_5c;" (assignment_expression "puVar4 = (undefined4 *)auStack_5c" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)auStack_5c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "auStack_5c"))) (; ";")) (expression_statement "aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14)" (subscript_expression "aiStack_28[2]" (identifier "aiStack_28") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "puVar6 = local_40;" (assignment_expression "puVar6 = local_40" (identifier "puVar6") (= "=") (identifier "local_40")) (; ";")) (for_statement "for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar2 = 8" (identifier "iVar2") (= "=") (number_literal "8")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *puVar6 = 0;\n    puVar6 = puVar6 + 1;\n  }" ({ "{") (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "auStack_68[2] = 0x4ddbd;" (assignment_expression "auStack_68[2] = 0x4ddbd" (subscript_expression "auStack_68[2]" (identifier "auStack_68") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0x4ddbd")) (; ";")) (expression_statement "local_54 = param_2;" (assignment_expression "local_54 = param_2" (identifier "local_54") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_50 = param_3;" (assignment_expression "local_50 = param_3" (identifier "local_50") (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar1 = FUN_0001a291();" (assignment_expression "uVar1 = FUN_0001a291()" (identifier "uVar1") (= "=") (call_expression "FUN_0001a291()" (identifier "FUN_0001a291") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_30 = 2;" (assignment_expression "local_30 = 2" (identifier "local_30") (= "=") (number_literal "2")) (; ";")) (expression_statement "auStack_68[2] = 0x4ddd1;" (assignment_expression "auStack_68[2] = 0x4ddd1" (subscript_expression "auStack_68[2]" (identifier "auStack_68") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0x4ddd1")) (; ";")) (expression_statement "FUN_00019377();" (call_expression "FUN_00019377()" (identifier "FUN_00019377") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_50 == (undefined4 *)0x0) {\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }\n  else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }" (if "if") (parenthesized_expression "(local_50 == (undefined4 *)0x0)" (( "(") (binary_expression "local_50 == (undefined4 *)0x0" (identifier "local_50") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }\n    puVar5 = (undefined1 *)puVar4;\n    if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }\n    *(undefined4 *)(puVar5 + -0x10) = uVar1;\n    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;\n    close(*(int *)(puVar5 + -0x10));\n    uVar1 = 0;\n  }" ({ "{") (labeled_statement "LAB_0004de17:\n    if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }" (statement_identifier "LAB_0004de17") (: ":") (if_statement "if (local_54 != 0) {\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }" (if "if") (parenthesized_expression "(local_54 != 0)" (( "(") (binary_expression "local_54 != 0" (identifier "local_54") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = FUN_0001a46c("SIOCGIFINDEX");\n      puVar3 = auStack_68 + 2;\n      puVar4 = auStack_68 + 2;\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *local_58 = local_40[3];\n    }" ({ "{") (expression_statement "iVar2 = FUN_0001a46c("SIOCGIFINDEX");" (assignment_expression "iVar2 = FUN_0001a46c("SIOCGIFINDEX")" (identifier "iVar2") (= "=") (call_expression "FUN_0001a46c("SIOCGIFINDEX")" (identifier "FUN_0001a46c") (argument_list "("SIOCGIFINDEX")" (( "(") (string_literal ""SIOCGIFINDEX"" (" """) (string_content "SIOCGIFINDEX") (" """)) () ")")))) (; ";")) (expression_statement "puVar3 = auStack_68 + 2;" (assignment_expression "puVar3 = auStack_68 + 2" (identifier "puVar3") (= "=") (binary_expression "auStack_68 + 2" (identifier "auStack_68") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar4 = auStack_68 + 2;" (assignment_expression "puVar4 = auStack_68 + 2" (identifier "puVar4") (= "=") (binary_expression "auStack_68 + 2" (identifier "auStack_68") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0004ddfa;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004ddfa;" (goto "goto") (statement_identifier "LAB_0004ddfa") (; ";"))) (expression_statement "*local_58 = local_40[3];" (assignment_expression "*local_58 = local_40[3]" (pointer_expression "*local_58" (* "*") (identifier "local_58")) (= "=") (subscript_expression "local_40[3]" (identifier "local_40") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}")))) (expression_statement "puVar5 = (undefined1 *)puVar4;" (assignment_expression "puVar5 = (undefined1 *)puVar4" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)puVar4" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) (; ";")) (if_statement "if (param_4 != (undefined4 *)0x0) {\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }" (if "if") (parenthesized_expression "(param_4 != (undefined4 *)0x0)" (( "(") (binary_expression "param_4 != (undefined4 *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";\n      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;\n      iVar2 = FUN_0001a46c();\n      puVar3 = (undefined4 *)((int)puVar4 + -4);\n      puVar5 = (undefined1 *)((int)puVar4 + -4);\n      if (iVar2 != 0) goto LAB_0004ddfa;\n      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);\n      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);\n    }" ({ "{") (expression_statement "*(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";" (assignment_expression "*(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR"" (pointer_expression "*(char **)((int)puVar4 + -0x10)" (* "*") (cast_expression "(char **)((int)puVar4 + -0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)puVar4 + -0x10)" (( "(") (binary_expression "(int)puVar4 + -0x10" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (string_literal ""SIOCGIFHWADDR"" (" """) (string_content "SIOCGIFHWADDR") (" """))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;" (assignment_expression "*(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e" (pointer_expression "*(undefined4 *)((int)puVar4 + -0x14)" (* "*") (cast_expression "(undefined4 *)((int)puVar4 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + -0x14)" (( "(") (binary_expression "(int)puVar4 + -0x14" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x4de8e")) (; ";")) (expression_statement "iVar2 = FUN_0001a46c();" (assignment_expression "iVar2 = FUN_0001a46c()" (identifier "iVar2") (= "=") (call_expression "FUN_0001a46c()" (identifier "FUN_0001a46c") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)((int)puVar4 + -4);" (assignment_expression "puVar3 = (undefined4 *)((int)puVar4 + -4)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)((int)puVar4 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + -4)" (( "(") (binary_expression "(int)puVar4 + -4" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "puVar5 = (undefined1 *)((int)puVar4 + -4);" (assignment_expression "puVar5 = (undefined1 *)((int)puVar4 + -4)" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)((int)puVar4 + -4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + -4)" (( "(") (binary_expression "(int)puVar4 + -4" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "-4")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0004ddfa;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004ddfa;" (goto "goto") (statement_identifier "LAB_0004ddfa") (; ";"))) (expression_statement "*param_4 = *(undefined4 *)((int)puVar4 + 0x2a);" (assignment_expression "*param_4 = *(undefined4 *)((int)puVar4 + 0x2a)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (pointer_expression "*(undefined4 *)((int)puVar4 + 0x2a)" (* "*") (cast_expression "(undefined4 *)((int)puVar4 + 0x2a)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + 0x2a)" (( "(") (binary_expression "(int)puVar4 + 0x2a" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "0x2a")) () ")"))))) (; ";")) (expression_statement "*(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);" (assignment_expression "*(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e)" (pointer_expression "*(undefined2 *)(param_4 + 1)" (* "*") (cast_expression "(undefined2 *)(param_4 + 1)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 1)" (( "(") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1")) () ")")))) (= "=") (pointer_expression "*(undefined2 *)((int)puVar4 + 0x2e)" (* "*") (cast_expression "(undefined2 *)((int)puVar4 + 0x2e)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + 0x2e)" (( "(") (binary_expression "(int)puVar4 + 0x2e" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "0x2e")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(puVar5 + -0x10) = uVar1;" (assignment_expression "*(undefined4 *)(puVar5 + -0x10) = uVar1" (pointer_expression "*(undefined4 *)(puVar5 + -0x10)" (* "*") (cast_expression "(undefined4 *)(puVar5 + -0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + -0x10)" (( "(") (binary_expression "puVar5 + -0x10" (identifier "puVar5") (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)(puVar5 + -0x14) = 0x4de55;" (assignment_expression "*(undefined4 *)(puVar5 + -0x14) = 0x4de55" (pointer_expression "*(undefined4 *)(puVar5 + -0x14)" (* "*") (cast_expression "(undefined4 *)(puVar5 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + -0x14)" (( "(") (binary_expression "puVar5 + -0x14" (identifier "puVar5") (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x4de55")) (; ";")) (expression_statement "close(*(int *)(puVar5 + -0x10));" (call_expression "close(*(int *)(puVar5 + -0x10))" (identifier "close") (argument_list "(*(int *)(puVar5 + -0x10))" (( "(") (pointer_expression "*(int *)(puVar5 + -0x10)" (* "*") (cast_expression "(int *)(puVar5 + -0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + -0x10)" (( "(") (binary_expression "puVar5 + -0x10" (identifier "puVar5") (+ "+") (number_literal "-0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }" (else "else") (compound_statement "{\n    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);\n    if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }\nLAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;\n    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;\n    close(*(int *)((int)puVar3 + -0x10));\n    uVar1 = 0xffffffff;\n    puVar5 = (undefined1 *)puVar3;\n  }" ({ "{") (expression_statement "iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);" (assignment_expression "iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58)" (identifier "iVar2") (= "=") (call_expression "FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58)" (identifier "FUN_0001a419") (argument_list "(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58)" (( "(") (identifier "uVar1") (, ",") (number_literal "0x8915") (, ",") (identifier "local_40") (, ",") (string_literal ""is interface %s up and configured?"" (" """) (string_content "is interface %s up and configured?") (" """)) (, ",") (identifier "local_58") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *local_50 = local_2c;\n      goto LAB_0004de17;\n    }" ({ "{") (expression_statement "*local_50 = local_2c;" (assignment_expression "*local_50 = local_2c" (pointer_expression "*local_50" (* "*") (identifier "local_50")) (= "=") (identifier "local_2c")) (; ";")) (goto_statement "goto LAB_0004de17;" (goto "goto") (statement_identifier "LAB_0004de17") (; ";")) (} "}"))) (labeled_statement "LAB_0004ddfa:\n    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;" (statement_identifier "LAB_0004ddfa") (: ":") (expression_statement "*(undefined4 *)((int)puVar3 + -0x10) = uVar1;" (assignment_expression "*(undefined4 *)((int)puVar3 + -0x10) = uVar1" (pointer_expression "*(undefined4 *)((int)puVar3 + -0x10)" (* "*") (cast_expression "(undefined4 *)((int)puVar3 + -0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + -0x10)" (( "(") (binary_expression "(int)puVar3 + -0x10" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (identifier "uVar1")) (; ";"))) (expression_statement "*(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;" (assignment_expression "*(undefined4 *)((int)puVar3 + -0x14) = 0x4de03" (pointer_expression "*(undefined4 *)((int)puVar3 + -0x14)" (* "*") (cast_expression "(undefined4 *)((int)puVar3 + -0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + -0x14)" (( "(") (binary_expression "(int)puVar3 + -0x14" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (number_literal "0x4de03")) (; ";")) (expression_statement "close(*(int *)((int)puVar3 + -0x10));" (call_expression "close(*(int *)((int)puVar3 + -0x10))" (identifier "close") (argument_list "(*(int *)((int)puVar3 + -0x10))" (( "(") (pointer_expression "*(int *)((int)puVar3 + -0x10)" (* "*") (cast_expression "(int *)((int)puVar3 + -0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + -0x10)" (( "(") (binary_expression "(int)puVar3 + -0x10" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "-0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar5 = (undefined1 *)puVar3;" (assignment_expression "puVar5 = (undefined1 *)puVar3" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)puVar3" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (; ";")) (} "}")))) (if_statement "if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar5 + 0x3c)" (* "*") (cast_expression "(int *)(puVar5 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + 0x3c)" (( "(") (binary_expression "puVar5 + 0x3c" (identifier "puVar5") (+ "+") (number_literal "0x3c")) () ")")))) (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(puVar5 + -4) = 0x4de76;" (assignment_expression "*(undefined4 *)(puVar5 + -4) = 0x4de76" (pointer_expression "*(undefined4 *)(puVar5 + -4)" (* "*") (cast_expression "(undefined4 *)(puVar5 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar5 + -4)" (( "(") (binary_expression "puVar5 + -4" (identifier "puVar5") (+ "+") (number_literal "-4")) () ")")))) (= "=") (number_literal "0x4de76")) (; ";")) (expression_statement "FUN_00017e10();" (call_expression "FUN_00017e10()" (identifier "FUN_00017e10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int function_1(char *interface,int *ifindex,uint32_t *nip,uint8_t *mac)

{
  char ifr_buf [32];
  
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (string_literal (string_content)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3
MASKED(undefined4 param_1,int param_2,undefined4 *param_3,undefined4 *param_4)

{
  undefined4 uVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined4 *puVar4;
  undefined1 *puVar5;
  undefined4 *puVar6;
  int in_GS_OFFSET;
  undefined4 auStack_68 [3];
  undefined1 auStack_5c [4];
  undefined4 *local_58;
  int local_54;
  undefined4 *local_50;
  undefined4 local_40 [4];
  undefined2 local_30;
  undefined4 local_2c;
  int aiStack_28 [6];
  
  puVar3 = (undefined4 *)auStack_5c;
  puVar4 = (undefined4 *)auStack_5c;
  aiStack_28[2] = *(undefined4 *)(in_GS_OFFSET + 0x14);
  puVar6 = local_40;
  for (iVar2 = 8; iVar2 != 0; iVar2 = iVar2 + -1) {
    *puVar6 = 0;
    puVar6 = puVar6 + 1;
  }
  auStack_68[2] = 0x4ddbd;
  local_54 = param_2;
  local_50 = param_3;
  uVar1 = FUN_0001a291();
  local_30 = 2;
  auStack_68[2] = 0x4ddd1;
  FUN_00019377();
  if (local_50 == (undefined4 *)0x0) {
LAB_0004de17:
    if (local_54 != 0) {
      iVar2 = FUN_0001a46c("SIOCGIFINDEX");
      puVar3 = auStack_68 + 2;
      puVar4 = auStack_68 + 2;
      if (iVar2 != 0) goto LAB_0004ddfa;
      *local_58 = local_40[3];
    }
    puVar5 = (undefined1 *)puVar4;
    if (param_4 != (undefined4 *)0x0) {
      *(char **)((int)puVar4 + -0x10) = "SIOCGIFHWADDR";
      *(undefined4 *)((int)puVar4 + -0x14) = 0x4de8e;
      iVar2 = FUN_0001a46c();
      puVar3 = (undefined4 *)((int)puVar4 + -4);
      puVar5 = (undefined1 *)((int)puVar4 + -4);
      if (iVar2 != 0) goto LAB_0004ddfa;
      *param_4 = *(undefined4 *)((int)puVar4 + 0x2a);
      *(undefined2 *)(param_4 + 1) = *(undefined2 *)((int)puVar4 + 0x2e);
    }
    *(undefined4 *)(puVar5 + -0x10) = uVar1;
    *(undefined4 *)(puVar5 + -0x14) = 0x4de55;
    close(*(int *)(puVar5 + -0x10));
    uVar1 = 0;
  }
  else {
    iVar2 = FUN_0001a419(uVar1,0x8915,local_40,"is interface %s up and configured?",local_58);
    if (iVar2 == 0) {
      *local_50 = local_2c;
      goto LAB_0004de17;
    }
LAB_0004ddfa:
    *(undefined4 *)((int)puVar3 + -0x10) = uVar1;
    *(undefined4 *)((int)puVar3 + -0x14) = 0x4de03;
    close(*(int *)((int)puVar3 + -0x10));
    uVar1 = 0xffffffff;
    puVar5 = (undefined1 *)puVar3;
  }
  if (*(int *)(puVar5 + 0x3c) == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined4 *)(puVar5 + -4) = 0x4de76;
  FUN_00017e10();
}

