undefined4 FUN_0041e2c4(int param_1)

{
  void *pvVar1;
  int iVar2;
  
  if (param_1 != 0) {
    if (*(void **)(param_1 + 0x14) == (void *)0x0) {
      *(undefined4 *)(param_1 + 0xc) = 0x20;
      pvVar1 = malloc(0x21)   //possible issue identified - semgrep
      *(void **)(param_1 + 0x14) = pvVar1;
    }
    else {
      iVar2 = *(int *)(param_1 + 0xc);
      *(int *)(param_1 + 0xc) = iVar2 + 0x20;
      pvVar1 = realloc(*(void **)(param_1 + 0x14),iVar2 + 0x21)   //possible issue identified - semgrep
      *(void **)(param_1 + 0x14) = pvVar1;
    }
    if (*(int *)(param_1 + 0x14) != 0) {
      return 0;
    }
  }
  return 0xffffffff;
}