undefined4 FUN_00417ad0(void *param_1,undefined1 *param_2)

{
  byte bVar1;
  byte bVar2;
  byte bVar3;
  byte bVar4;
  byte bVar5;
  byte bVar6;
  char *local_830;
  char *local_82c;
  char *local_828;
  char *local_824;
  undefined4 local_820;
  char acStack_81c [512];
  char acStack_61c [512];
  char acStack_41c [512];
  char local_21c [516];
  
  local_830 = "DHCP6S_ACTION=ADD_HOST";
  local_820 = 0;
  local_82c = acStack_81c;
  local_828 = acStack_61c;
  local_824 = acStack_41c;
  inet_ntop(10,param_1,local_21c,0x200)   //possible issue identified - semgrep
  sprintf(acStack_81c,"DHCP6S_HOST=%s",local_21c)   //possible issue identified - semgrep
  if (CONCAT11(*param_2,param_2[1]) == 1) {
    bVar1 = param_2[0xd];
    bVar2 = param_2[8];
    bVar3 = param_2[9];
    bVar4 = param_2[10];
    bVar5 = param_2[0xb];
    bVar6 = param_2[0xc];
  }
  else {
    if (CONCAT11(*param_2,param_2[1]) != 3) {
      builtin_strncpy(local_21c + 4,"OWN",4)   //possible issue identified - semgrep
      builtin_strncpy(local_21c,"UNKN",4)   //possible issue identified - semgrep
      goto LAB_00417b9c;
    }
    bVar1 = param_2[9];
    bVar2 = param_2[4];
    bVar3 = param_2[5];
    bVar4 = param_2[6];
    bVar5 = param_2[7];
    bVar6 = param_2[8];
  }
  sprintf(local_21c,"%02X:%02X:%02X:%02X:%02X:%02X",(uint)bVar2,(uint)bVar3,(uint)bVar4,(uint)bVar5,
          (uint)bVar6,(uint)bVar1)   //possible issue identified - semgrep
LAB_00417b9c:
  sprintf(acStack_61c,"DHCP6S_MAC=%s",local_21c)   //possible issue identified - semgrep
  sprintf(acStack_41c,"DHCP6S_INF=%s",inf_uid)   //possible issue identified - semgrep
  execute_helper_with_env(&local_830);
  return 0;
}