char * FUN_004071c8(char *param_1)
{
char *__ptr;
char *pcVar1;
char *pcVar2;
__ptr = strdup(param_1) //possible issue identified - semgrep
pcVar1 = (char *)FUN_00406f90(__ptr);
pcVar2 = strrchr(pcVar1,0x2f);
pcVar1 = __ptr;
if (pcVar2 != (char *)0x0) {
pcVar1 = strdup(pcVar2 + 1) //possible issue identified - semgrep
free(__ptr);
}
return pcVar1;
}