
/* DWARF original prototype: char * getproxy(url * u, url * u) */

char * getproxy(url *u,url *u_1)

{
  undefined *puVar1;
  undefined3 extraout_var;
  _Bool _Var4;
  char *pcVar2;
  char *pcVar3;
  
  puVar1 = PTR_opt_000af488;
  if (PTR_opt_000af488[0xf1] == '\0') {
    return (char *)0x0;
  }
  if ((*(char ***)(PTR_opt_000af488 + 0x100) != (char **)0x0) &&
     (_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url),
     CONCAT31(extraout_var,_Var4) != 0)) {
    return (char *)0x0;
  }
  pcVar2 = u->url;
  if (pcVar2 == (char *)0x1) {
    pcVar2 = *(char **)(puVar1 + 0xfc);
    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;
    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);
  }
  else if (pcVar2 == (char *)0x0) {
    pcVar2 = *(char **)(puVar1 + 0xf4);
    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;
    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);
  }
  else if (pcVar2 == (char *)0x2) {
    pcVar2 = *(char **)(puVar1 + 0xf8);
    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;
    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);
  }
  else {
    if (pcVar2 != (char *)0x3) {
      return (char *)0x0;
    }
    pcVar2 = *(char **)(puVar1 + 0xf8);
    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;
    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);
  }
  if (pcVar2 == (char *)0x0) {
    return (char *)0x0;
  }
LAB_0004b90c:
  if (*pcVar2 == '\0') {
    return (char *)0x0;
  }
  pcVar3 = rewrite_shorthand_url(pcVar2);
  if (pcVar3 == (char *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pcVar2 = (char *)(*(code *)PTR_strdup_000afae4)(pcVar2);
    return pcVar2;
  }
  return pcVar3;
}



int FUN_0004b88c(int *param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int iVar2;
  char *pcVar3;
  
  puVar1 = PTR_opt_000af488;
  if (PTR_opt_000af488[0xf1] == '\0') {
    return 0;
  }
  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&
     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {
    return 0;
  }
  iVar2 = *param_1;
  if (iVar2 == 1) {
    pcVar3 = *(char **)(puVar1 + 0xfc);
    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;
    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);
  }
  else if (iVar2 == 0) {
    pcVar3 = *(char **)(puVar1 + 0xf4);
    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;
    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);
  }
  else if (iVar2 == 2) {
    pcVar3 = *(char **)(puVar1 + 0xf8);
    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;
    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);
  }
  else {
    if (iVar2 != 3) {
      return 0;
    }
    pcVar3 = *(char **)(puVar1 + 0xf8);
    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;
    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);
  }
  if (pcVar3 == (char *)0x0) {
    return 0;
  }
LAB_0004b90c:
  if (*pcVar3 == '\0') {
    return 0;
  }
  iVar2 = rewrite_shorthand_url(pcVar3);
  if (iVar2 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);
    return iVar2;
  }
  return iVar2;
}


lui gp,0x7
addiu gp,gp,-0x445c
addu gp,gp,t9
addiu sp,sp,-0x28
sw s0,0x1c(sp)
lw s0,-0x7fa8(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
lbu v0,0xf1(s0)
beq v0,zero,0x0004b96c
_or s1,a0,zero
lw a0,0x100(s0)
beq a0,zero,0x0004b8d8
_lw t9,-0x7c28(gp)
bal 0x0003019c
_lw a1,0x0(a1)
bne v0,zero,0x0004b96c
_lw gp,0x10(sp)
lw v0,0x0(s1)
li v1,0x1
beq v0,v1,0x0004b9a8
_nop
beq v0,zero,0x0004b944
_li v1,0x2
beq v0,v1,0x0004b984
_li v1,0x3
bne v0,v1,0x0004b970
_or v0,zero,zero
lw s0,0xf8(s0)
beq s0,zero,0x0004b9cc
_lw a0,-0x7fc4(gp)
lb v0,0x0(s0)
beq v0,zero,0x0004b96c
_lw t9,-0x7f14(gp)
bal 0x0004f6e0
_or a0,s0,zero
bne v0,zero,0x0004b970
_lw gp,0x10(sp)
lw ra,0x24(sp)
or a0,s0,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x794c(gp)
jr t9
_addiu sp,sp,0x28
lw s0,0xf4(s0)
bne s0,zero,0x0004b90c
_lw a0,-0x7fc4(gp)
lw t9,-0x7670(gp)
jalr t9
_addiu a0,a0,0x7650
lw gp,0x10(sp)
or s0,v0,zero
bne s0,zero,0x0004b90c
_nop
or v0,zero,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw s0,0xf8(s0)
bne s0,zero,0x0004b90c
_lw a0,-0x7fc4(gp)
lw t9,-0x7670(gp)
jalr t9
_addiu a0,a0,0x7674
lw gp,0x10(sp)
b 0x0004b964
_or s0,v0,zero
lw s0,0xfc(s0)
bne s0,zero,0x0004b90c
_lw a0,-0x7fc4(gp)
lw t9,-0x7670(gp)
jalr t9
_addiu a0,a0,0x765c
lw gp,0x10(sp)
b 0x0004b964
_or s0,v0,zero
lw t9,-0x7670(gp)
jalr t9
_addiu a0,a0,0x7668
lw gp,0x10(sp)
b 0x0004b964
_or s0,v0,zero
(translation_unit "int FUN_0004b88c(int *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }\n  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = *param_1;\n  if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar3 == (char *)0x0) {\n    return 0;\n  }\nLAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }\n  iVar2 = rewrite_shorthand_url(pcVar3);\n  if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_0004b88c(int *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }\n  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = *param_1;\n  if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar3 == (char *)0x0) {\n    return 0;\n  }\nLAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }\n  iVar2 = rewrite_shorthand_url(pcVar3);\n  if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0004b88c(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }\n  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = *param_1;\n  if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar3 == (char *)0x0) {\n    return 0;\n  }\nLAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }\n  iVar2 = rewrite_shorthand_url(pcVar3);\n  if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "puVar1 = PTR_opt_000af488;" (assignment_expression "puVar1 = PTR_opt_000af488" identifier = identifier) ;) (if_statement "if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }" if (parenthesized_expression "(PTR_opt_000af488[0xf1] == '\0')" ( (binary_expression "PTR_opt_000af488[0xf1] == '\0'" (subscript_expression "PTR_opt_000af488[0xf1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }" if (parenthesized_expression "((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0))" ( (binary_expression "(*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)" (parenthesized_expression "(*(int *)(PTR_opt_000af488 + 0x100) != 0)" ( (binary_expression "*(int *)(PTR_opt_000af488 + 0x100) != 0" (pointer_expression "*(int *)(PTR_opt_000af488 + 0x100)" * (cast_expression "(int *)(PTR_opt_000af488 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_opt_000af488 + 0x100)" ( (binary_expression "PTR_opt_000af488 + 0x100" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)" ( (comma_expression "iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0" (assignment_expression "iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2)" identifier = (call_expression "sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2)" identifier (argument_list "(*(int *)(PTR_opt_000af488 + 0x100),*param_2)" ( (pointer_expression "*(int *)(PTR_opt_000af488 + 0x100)" * (cast_expression "(int *)(PTR_opt_000af488 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_opt_000af488 + 0x100)" ( (binary_expression "PTR_opt_000af488 + 0x100" identifier + number_literal) )))) , (pointer_expression "*param_2" * identifier) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }" { (expression_statement "pcVar3 = *(char **)(puVar1 + 0xfc);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xfc)" identifier = (pointer_expression "*(char **)(puVar1 + 0xfc)" * (cast_expression "(char **)(puVar1 + 0xfc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xfc)" ( (binary_expression "puVar1 + 0xfc" identifier + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x765c)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x765c" identifier + number_literal) ))))) ;) }) (else_clause "else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" else (if_statement "if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }" { (expression_statement "pcVar3 = *(char **)(puVar1 + 0xf4);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xf4)" identifier = (pointer_expression "*(char **)(puVar1 + 0xf4)" * (cast_expression "(char **)(puVar1 + 0xf4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xf4)" ( (binary_expression "puVar1 + 0xf4" identifier + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x7650)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x7650" identifier + number_literal) ))))) ;) }) (else_clause "else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" else (if_statement "if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" if (parenthesized_expression "(iVar2 == 2)" ( (binary_expression "iVar2 == 2" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }" { (expression_statement "pcVar3 = *(char **)(puVar1 + 0xf8);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xf8)" identifier = (pointer_expression "*(char **)(puVar1 + 0xf8)" * (cast_expression "(char **)(puVar1 + 0xf8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xf8)" ( (binary_expression "puVar1 + 0xf8" identifier + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x7674)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x7674" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" else (compound_statement "{\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" { (if_statement "if (iVar2 != 3) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 3)" ( (binary_expression "iVar2 != 3" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar3 = *(char **)(puVar1 + 0xf8);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xf8)" identifier = (pointer_expression "*(char **)(puVar1 + 0xf8)" * (cast_expression "(char **)(puVar1 + 0xf8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xf8)" ( (binary_expression "puVar1 + 0xf8" identifier + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x7668)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x7668" identifier + number_literal) ))))) ;) }))))))) (if_statement "if (pcVar3 == (char *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }" statement_identifier : (if_statement "if (*pcVar3 == '\0') {\n    return 0;\n  }" if (parenthesized_expression "(*pcVar3 == '\0')" ( (binary_expression "*pcVar3 == '\0'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (expression_statement "iVar2 = rewrite_shorthand_url(pcVar3);" (assignment_expression "iVar2 = rewrite_shorthand_url(pcVar3)" identifier = (call_expression "rewrite_shorthand_url(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }" { comment comment (expression_statement "iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strdup_000afae4)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strdup_000afae4)" ( (pointer_expression "*(code *)PTR_strdup_000afae4" * (cast_expression "(code *)PTR_strdup_000afae4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: char * getproxy(url * u, url * u) */\n\nchar * getproxy(url *u,url *u_1)\n\n{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  _Bool _Var4;\n  char *pcVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return (char *)0x0;\n  }\n  if ((*(char ***)(PTR_opt_000af488 + 0x100) != (char **)0x0) &&\n     (_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url),\n     CONCAT31(extraout_var,_Var4) != 0)) {\n    return (char *)0x0;\n  }\n  pcVar2 = u->url;\n  if (pcVar2 == (char *)0x1) {\n    pcVar2 = *(char **)(puVar1 + 0xfc);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (pcVar2 == (char *)0x0) {\n    pcVar2 = *(char **)(puVar1 + 0xf4);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (pcVar2 == (char *)0x2) {\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar2 == (char *)0x0) {\n    return (char *)0x0;\n  }\nLAB_0004b90c:\n  if (*pcVar2 == '\0') {\n    return (char *)0x0;\n  }\n  pcVar3 = rewrite_shorthand_url(pcVar2);\n  if (pcVar3 == (char *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar2 = (char *)(*(code *)PTR_strdup_000afae4)(pcVar2);\n    return pcVar2;\n  }\n  return pcVar3;\n}\n\n" comment (function_definition "char * getproxy(url *u,url *u_1)\n\n{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  _Bool _Var4;\n  char *pcVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return (char *)0x0;\n  }\n  if ((*(char ***)(PTR_opt_000af488 + 0x100) != (char **)0x0) &&\n     (_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url),\n     CONCAT31(extraout_var,_Var4) != 0)) {\n    return (char *)0x0;\n  }\n  pcVar2 = u->url;\n  if (pcVar2 == (char *)0x1) {\n    pcVar2 = *(char **)(puVar1 + 0xfc);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (pcVar2 == (char *)0x0) {\n    pcVar2 = *(char **)(puVar1 + 0xf4);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (pcVar2 == (char *)0x2) {\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar2 == (char *)0x0) {\n    return (char *)0x0;\n  }\nLAB_0004b90c:\n  if (*pcVar2 == '\0') {\n    return (char *)0x0;\n  }\n  pcVar3 = rewrite_shorthand_url(pcVar2);\n  if (pcVar3 == (char *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar2 = (char *)(*(code *)PTR_strdup_000afae4)(pcVar2);\n    return pcVar2;\n  }\n  return pcVar3;\n}" primitive_type (pointer_declarator "* getproxy(url *u,url *u_1)" * (function_declarator "getproxy(url *u,url *u_1)" identifier (parameter_list "(url *u,url *u_1)" ( (parameter_declaration "url *u" type_identifier (pointer_declarator "*u" * identifier)) , (parameter_declaration "url *u_1" type_identifier (pointer_declarator "*u_1" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  _Bool _Var4;\n  char *pcVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return (char *)0x0;\n  }\n  if ((*(char ***)(PTR_opt_000af488 + 0x100) != (char **)0x0) &&\n     (_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url),\n     CONCAT31(extraout_var,_Var4) != 0)) {\n    return (char *)0x0;\n  }\n  pcVar2 = u->url;\n  if (pcVar2 == (char *)0x1) {\n    pcVar2 = *(char **)(puVar1 + 0xfc);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (pcVar2 == (char *)0x0) {\n    pcVar2 = *(char **)(puVar1 + 0xf4);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (pcVar2 == (char *)0x2) {\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar2 == (char *)0x0) {\n    return (char *)0x0;\n  }\nLAB_0004b90c:\n  if (*pcVar2 == '\0') {\n    return (char *)0x0;\n  }\n  pcVar3 = rewrite_shorthand_url(pcVar2);\n  if (pcVar3 == (char *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar2 = (char *)(*(code *)PTR_strdup_000afae4)(pcVar2);\n    return pcVar2;\n  }\n  return pcVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "puVar1 = PTR_opt_000af488;" (assignment_expression "puVar1 = PTR_opt_000af488" identifier = identifier) ;) (if_statement "if (PTR_opt_000af488[0xf1] == '\0') {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(PTR_opt_000af488[0xf1] == '\0')" ( (binary_expression "PTR_opt_000af488[0xf1] == '\0'" (subscript_expression "PTR_opt_000af488[0xf1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((*(char ***)(PTR_opt_000af488 + 0x100) != (char **)0x0) &&\n     (_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url),\n     CONCAT31(extraout_var,_Var4) != 0)) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "((*(char ***)(PTR_opt_000af488 + 0x100) != (char **)0x0) &&\n     (_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url),\n     CONCAT31(extraout_var,_Var4) != 0))" ( (binary_expression "(*(char ***)(PTR_opt_000af488 + 0x100) != (char **)0x0) &&\n     (_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url),\n     CONCAT31(extraout_var,_Var4) != 0)" (parenthesized_expression "(*(char ***)(PTR_opt_000af488 + 0x100) != (char **)0x0)" ( (binary_expression "*(char ***)(PTR_opt_000af488 + 0x100) != (char **)0x0" (pointer_expression "*(char ***)(PTR_opt_000af488 + 0x100)" * (cast_expression "(char ***)(PTR_opt_000af488 + 0x100)" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(PTR_opt_000af488 + 0x100)" ( (binary_expression "PTR_opt_000af488 + 0x100" identifier + number_literal) )))) != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) && (parenthesized_expression "(_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url),\n     CONCAT31(extraout_var,_Var4) != 0)" ( (comma_expression "_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url),\n     CONCAT31(extraout_var,_Var4) != 0" (assignment_expression "_Var4 = sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url)" identifier = (call_expression "sufmatch(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url)" identifier (argument_list "(*(char ***)(PTR_opt_000af488 + 0x100),u_1->url)" ( (pointer_expression "*(char ***)(PTR_opt_000af488 + 0x100)" * (cast_expression "(char ***)(PTR_opt_000af488 + 0x100)" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(PTR_opt_000af488 + 0x100)" ( (binary_expression "PTR_opt_000af488 + 0x100" identifier + number_literal) )))) , (field_expression "u_1->url" identifier -> field_identifier) )))) , (binary_expression "CONCAT31(extraout_var,_Var4) != 0" (call_expression "CONCAT31(extraout_var,_Var4)" identifier (argument_list "(extraout_var,_Var4)" ( identifier , identifier ))) != number_literal)) ))) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar2 = u->url;" (assignment_expression "pcVar2 = u->url" identifier = (field_expression "u->url" identifier -> field_identifier)) ;) (if_statement "if (pcVar2 == (char *)0x1) {\n    pcVar2 = *(char **)(puVar1 + 0xfc);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (pcVar2 == (char *)0x0) {\n    pcVar2 = *(char **)(puVar1 + 0xf4);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (pcVar2 == (char *)0x2) {\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x1)" ( (binary_expression "pcVar2 == (char *)0x1" identifier == (cast_expression "(char *)0x1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = *(char **)(puVar1 + 0xfc);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }" { (expression_statement "pcVar2 = *(char **)(puVar1 + 0xfc);" (assignment_expression "pcVar2 = *(char **)(puVar1 + 0xfc)" identifier = (pointer_expression "*(char **)(puVar1 + 0xfc)" * (cast_expression "(char **)(puVar1 + 0xfc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xfc)" ( (binary_expression "puVar1 + 0xfc" identifier + number_literal) ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x765c)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x765c" identifier + number_literal) ))))) ;) }) (else_clause "else if (pcVar2 == (char *)0x0) {\n    pcVar2 = *(char **)(puVar1 + 0xf4);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (pcVar2 == (char *)0x2) {\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" else (if_statement "if (pcVar2 == (char *)0x0) {\n    pcVar2 = *(char **)(puVar1 + 0xf4);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (pcVar2 == (char *)0x2) {\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = *(char **)(puVar1 + 0xf4);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }" { (expression_statement "pcVar2 = *(char **)(puVar1 + 0xf4);" (assignment_expression "pcVar2 = *(char **)(puVar1 + 0xf4)" identifier = (pointer_expression "*(char **)(puVar1 + 0xf4)" * (cast_expression "(char **)(puVar1 + 0xf4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xf4)" ( (binary_expression "puVar1 + 0xf4" identifier + number_literal) ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x7650)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x7650" identifier + number_literal) ))))) ;) }) (else_clause "else if (pcVar2 == (char *)0x2) {\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" else (if_statement "if (pcVar2 == (char *)0x2) {\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x2)" ( (binary_expression "pcVar2 == (char *)0x2" identifier == (cast_expression "(char *)0x2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }" { (expression_statement "pcVar2 = *(char **)(puVar1 + 0xf8);" (assignment_expression "pcVar2 = *(char **)(puVar1 + 0xf8)" identifier = (pointer_expression "*(char **)(puVar1 + 0xf8)" * (cast_expression "(char **)(puVar1 + 0xf8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xf8)" ( (binary_expression "puVar1 + 0xf8" identifier + number_literal) ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x7674)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x7674" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" else (compound_statement "{\n    if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }\n    pcVar2 = *(char **)(puVar1 + 0xf8);\n    if (pcVar2 != (char *)0x0) goto LAB_0004b90c;\n    pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" { (if_statement "if (pcVar2 != (char *)0x3) {\n      return (char *)0x0;\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x3)" ( (binary_expression "pcVar2 != (char *)0x3" identifier != (cast_expression "(char *)0x3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (char *)0x0;\n    }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar2 = *(char **)(puVar1 + 0xf8);" (assignment_expression "pcVar2 = *(char **)(puVar1 + 0xf8)" identifier = (pointer_expression "*(char **)(puVar1 + 0xf8)" * (cast_expression "(char **)(puVar1 + 0xf8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xf8)" ( (binary_expression "puVar1 + 0xf8" identifier + number_literal) ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x7668)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x7668" identifier + number_literal) ))))) ;) }))))))) (if_statement "if (pcVar2 == (char *)0x0) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (labeled_statement "LAB_0004b90c:\n  if (*pcVar2 == '\0') {\n    return (char *)0x0;\n  }" statement_identifier : (if_statement "if (*pcVar2 == '\0') {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(*pcVar2 == '\0')" ( (binary_expression "*pcVar2 == '\0'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))) (expression_statement "pcVar3 = rewrite_shorthand_url(pcVar2);" (assignment_expression "pcVar3 = rewrite_shorthand_url(pcVar2)" identifier = (call_expression "rewrite_shorthand_url(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar2 = (char *)(*(code *)PTR_strdup_000afae4)(pcVar2);\n    return pcVar2;\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar2 = (char *)(*(code *)PTR_strdup_000afae4)(pcVar2);\n    return pcVar2;\n  }" { comment comment (expression_statement "pcVar2 = (char *)(*(code *)PTR_strdup_000afae4)(pcVar2);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_strdup_000afae4)(pcVar2)" identifier = (cast_expression "(char *)(*(code *)PTR_strdup_000afae4)(pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strdup_000afae4)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strdup_000afae4)" ( (pointer_expression "*(code *)PTR_strdup_000afae4" * (cast_expression "(code *)PTR_strdup_000afae4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))))) ;) (return_statement "return pcVar2;" return identifier ;) })) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "int FUN_0004b88c(int *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }\n  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = *param_1;\n  if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar3 == (char *)0x0) {\n    return 0;\n  }\nLAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }\n  iVar2 = rewrite_shorthand_url(pcVar3);\n  if (iVar2 == 0) {\n                    \n                    \n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_0004b88c(int *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }\n  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = *param_1;\n  if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar3 == (char *)0x0) {\n    return 0;\n  }\nLAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }\n  iVar2 = rewrite_shorthand_url(pcVar3);\n  if (iVar2 == 0) {\n                    \n                    \n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0004b88c(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }\n  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = *param_1;\n  if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar3 == (char *)0x0) {\n    return 0;\n  }\nLAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }\n  iVar2 = rewrite_shorthand_url(pcVar3);\n  if (iVar2 == 0) {\n                    \n                    \n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "puVar1 = PTR_opt_000af488;" (assignment_expression "puVar1 = PTR_opt_000af488" identifier = identifier) ;) (if_statement "if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }" if (parenthesized_expression "(PTR_opt_000af488[0xf1] == '\0')" ( (binary_expression "PTR_opt_000af488[0xf1] == '\0'" (subscript_expression "PTR_opt_000af488[0xf1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }" if (parenthesized_expression "((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0))" ( (binary_expression "(*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)" (parenthesized_expression "(*(int *)(PTR_opt_000af488 + 0x100) != 0)" ( (binary_expression "*(int *)(PTR_opt_000af488 + 0x100) != 0" (pointer_expression "*(int *)(PTR_opt_000af488 + 0x100)" * (cast_expression "(int *)(PTR_opt_000af488 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_opt_000af488 + 0x100)" ( (binary_expression "PTR_opt_000af488 + 0x100" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)" ( (comma_expression "iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0" (assignment_expression "iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2)" identifier = (call_expression "sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2)" identifier (argument_list "(*(int *)(PTR_opt_000af488 + 0x100),*param_2)" ( (pointer_expression "*(int *)(PTR_opt_000af488 + 0x100)" * (cast_expression "(int *)(PTR_opt_000af488 + 0x100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_opt_000af488 + 0x100)" ( (binary_expression "PTR_opt_000af488 + 0x100" identifier + number_literal) )))) , (pointer_expression "*param_2" * identifier) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" if (parenthesized_expression "(iVar2 == 1)" ( (binary_expression "iVar2 == 1" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }" { (expression_statement "pcVar3 = *(char **)(puVar1 + 0xfc);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xfc)" identifier = (pointer_expression "*(char **)(puVar1 + 0xfc)" * (cast_expression "(char **)(puVar1 + 0xfc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xfc)" ( (binary_expression "puVar1 + 0xfc" identifier + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x765c)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x765c" identifier + number_literal) ))))) ;) }) (else_clause "else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" else (if_statement "if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }" { (expression_statement "pcVar3 = *(char **)(puVar1 + 0xf4);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xf4)" identifier = (pointer_expression "*(char **)(puVar1 + 0xf4)" * (cast_expression "(char **)(puVar1 + 0xf4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xf4)" ( (binary_expression "puVar1 + 0xf4" identifier + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x7650)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x7650" identifier + number_literal) ))))) ;) }) (else_clause "else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" else (if_statement "if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" if (parenthesized_expression "(iVar2 == 2)" ( (binary_expression "iVar2 == 2" identifier == number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }" { (expression_statement "pcVar3 = *(char **)(puVar1 + 0xf8);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xf8)" identifier = (pointer_expression "*(char **)(puVar1 + 0xf8)" * (cast_expression "(char **)(puVar1 + 0xf8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xf8)" ( (binary_expression "puVar1 + 0xf8" identifier + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x7674)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x7674" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" else (compound_statement "{\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" { (if_statement "if (iVar2 != 3) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 3)" ( (binary_expression "iVar2 != 3" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar3 = *(char **)(puVar1 + 0xf8);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xf8)" identifier = (pointer_expression "*(char **)(puVar1 + 0xf8)" * (cast_expression "(char **)(puVar1 + 0xf8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0xf8)" ( (binary_expression "puVar1 + 0xf8" identifier + number_literal) ))))) ;) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004b90c;" goto statement_identifier ;)) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" identifier = (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" ( (pointer_expression "*(code *)PTR_getenv_000afdc0" * (cast_expression "(code *)PTR_getenv_000afdc0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_hallenge__000af46c + 0x7668)" ( (binary_expression "PTR_s_hallenge__000af46c + 0x7668" identifier + number_literal) ))))) ;) }))))))) (if_statement "if (pcVar3 == (char *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }" statement_identifier : (if_statement "if (*pcVar3 == '\0') {\n    return 0;\n  }" if (parenthesized_expression "(*pcVar3 == '\0')" ( (binary_expression "*pcVar3 == '\0'" (pointer_expression "*pcVar3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (expression_statement "iVar2 = rewrite_shorthand_url(pcVar3);" (assignment_expression "iVar2 = rewrite_shorthand_url(pcVar3)" identifier = (call_expression "rewrite_shorthand_url(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n                    \n                    \n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n                    \n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }" { (expression_statement "iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strdup_000afae4)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strdup_000afae4)" ( (pointer_expression "*(code *)PTR_strdup_000afae4" * (cast_expression "(code *)PTR_strdup_000afae4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * IDENT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) }))))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0004b88c(int *param_1,undefined4 *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }\n  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = *param_1;\n  if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar3 == (char *)0x0) {\n    return 0;\n  }\nLAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }\n  iVar2 = rewrite_shorthand_url(pcVar3);\n  if (iVar2 == 0) {\n                    \n                    \n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_0004b88c(int *param_1,undefined4 *param_2)" (identifier "FUN_0004b88c") (parameter_list "(int *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_opt_000af488;\n  if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }\n  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = *param_1;\n  if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }\n  if (pcVar3 == (char *)0x0) {\n    return 0;\n  }\nLAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }\n  iVar2 = rewrite_shorthand_url(pcVar3);\n  if (iVar2 == 0) {\n                    \n                    \n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }\n  return iVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (expression_statement "puVar1 = PTR_opt_000af488;" (assignment_expression "puVar1 = PTR_opt_000af488" (identifier "puVar1") (= "=") (identifier "PTR_opt_000af488")) (; ";")) (if_statement "if (PTR_opt_000af488[0xf1] == '\0') {\n    return 0;\n  }" (if "if") (parenthesized_expression "(PTR_opt_000af488[0xf1] == '\0')" (( "(") (binary_expression "PTR_opt_000af488[0xf1] == '\0'" (subscript_expression "PTR_opt_000af488[0xf1]" (identifier "PTR_opt_000af488") ([ "[") (number_literal "0xf1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0))" (( "(") (binary_expression "(*(int *)(PTR_opt_000af488 + 0x100) != 0) &&\n     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)" (parenthesized_expression "(*(int *)(PTR_opt_000af488 + 0x100) != 0)" (( "(") (binary_expression "*(int *)(PTR_opt_000af488 + 0x100) != 0" (pointer_expression "*(int *)(PTR_opt_000af488 + 0x100)" (* "*") (cast_expression "(int *)(PTR_opt_000af488 + 0x100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_opt_000af488 + 0x100)" (( "(") (binary_expression "PTR_opt_000af488 + 0x100" (identifier "PTR_opt_000af488") (+ "+") (number_literal "0x100")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)" (( "(") (comma_expression "iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0" (assignment_expression "iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2)" (identifier "iVar2") (= "=") (call_expression "sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2)" (identifier "sufmatch") (argument_list "(*(int *)(PTR_opt_000af488 + 0x100),*param_2)" (( "(") (pointer_expression "*(int *)(PTR_opt_000af488 + 0x100)" (* "*") (cast_expression "(int *)(PTR_opt_000af488 + 0x100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_opt_000af488 + 0x100)" (( "(") (binary_expression "PTR_opt_000af488 + 0x100" (identifier "PTR_opt_000af488") (+ "+") (number_literal "0x100")) () ")")))) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar2 == 1) {\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }\n  else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" (if "if") (parenthesized_expression "(iVar2 == 1)" (( "(") (binary_expression "iVar2 == 1" (identifier "iVar2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    pcVar3 = *(char **)(puVar1 + 0xfc);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);\n  }" ({ "{") (expression_statement "pcVar3 = *(char **)(puVar1 + 0xfc);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xfc)" (identifier "pcVar3") (= "=") (pointer_expression "*(char **)(puVar1 + 0xfc)" (* "*") (cast_expression "(char **)(puVar1 + 0xfc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0xfc)" (( "(") (binary_expression "puVar1 + 0xfc" (identifier "puVar1") (+ "+") (number_literal "0xfc")) () ")"))))) (; ";")) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" (if "if") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0004b90c;" (goto "goto") (statement_identifier "LAB_0004b90c") (; ";"))) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" (( "(") (pointer_expression "*(code *)PTR_getenv_000afdc0" (* "*") (cast_expression "(code *)PTR_getenv_000afdc0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_000afdc0"))) () ")")) (argument_list "(PTR_s_hallenge__000af46c + 0x765c)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + 0x765c" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "0x765c")) () ")"))))) (; ";")) (} "}")) (else_clause "else if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" (else "else") (if_statement "if (iVar2 == 0) {\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }\n  else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar3 = *(char **)(puVar1 + 0xf4);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);\n  }" ({ "{") (expression_statement "pcVar3 = *(char **)(puVar1 + 0xf4);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xf4)" (identifier "pcVar3") (= "=") (pointer_expression "*(char **)(puVar1 + 0xf4)" (* "*") (cast_expression "(char **)(puVar1 + 0xf4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0xf4)" (( "(") (binary_expression "puVar1 + 0xf4" (identifier "puVar1") (+ "+") (number_literal "0xf4")) () ")"))))) (; ";")) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" (if "if") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0004b90c;" (goto "goto") (statement_identifier "LAB_0004b90c") (; ";"))) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" (( "(") (pointer_expression "*(code *)PTR_getenv_000afdc0" (* "*") (cast_expression "(code *)PTR_getenv_000afdc0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_000afdc0"))) () ")")) (argument_list "(PTR_s_hallenge__000af46c + 0x7650)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + 0x7650" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "0x7650")) () ")"))))) (; ";")) (} "}")) (else_clause "else if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" (else "else") (if_statement "if (iVar2 == 2) {\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }\n  else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" (if "if") (parenthesized_expression "(iVar2 == 2)" (( "(") (binary_expression "iVar2 == 2" (identifier "iVar2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);\n  }" ({ "{") (expression_statement "pcVar3 = *(char **)(puVar1 + 0xf8);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xf8)" (identifier "pcVar3") (= "=") (pointer_expression "*(char **)(puVar1 + 0xf8)" (* "*") (cast_expression "(char **)(puVar1 + 0xf8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0xf8)" (( "(") (binary_expression "puVar1 + 0xf8" (identifier "puVar1") (+ "+") (number_literal "0xf8")) () ")"))))) (; ";")) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" (if "if") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0004b90c;" (goto "goto") (statement_identifier "LAB_0004b90c") (; ";"))) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" (( "(") (pointer_expression "*(code *)PTR_getenv_000afdc0" (* "*") (cast_expression "(code *)PTR_getenv_000afdc0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_000afdc0"))) () ")")) (argument_list "(PTR_s_hallenge__000af46c + 0x7674)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + 0x7674" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "0x7674")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" (else "else") (compound_statement "{\n    if (iVar2 != 3) {\n      return 0;\n    }\n    pcVar3 = *(char **)(puVar1 + 0xf8);\n    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;\n    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);\n  }" ({ "{") (if_statement "if (iVar2 != 3) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 != 3)" (( "(") (binary_expression "iVar2 != 3" (identifier "iVar2") (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "pcVar3 = *(char **)(puVar1 + 0xf8);" (assignment_expression "pcVar3 = *(char **)(puVar1 + 0xf8)" (identifier "pcVar3") (= "=") (pointer_expression "*(char **)(puVar1 + 0xf8)" (* "*") (cast_expression "(char **)(puVar1 + 0xf8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0xf8)" (( "(") (binary_expression "puVar1 + 0xf8" (identifier "puVar1") (+ "+") (number_literal "0xf8")) () ")"))))) (; ";")) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_0004b90c;" (if "if") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0004b90c;" (goto "goto") (statement_identifier "LAB_0004b90c") (; ";"))) (expression_statement "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668)" (parenthesized_expression "(*(code *)PTR_getenv_000afdc0)" (( "(") (pointer_expression "*(code *)PTR_getenv_000afdc0" (* "*") (cast_expression "(code *)PTR_getenv_000afdc0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getenv_000afdc0"))) () ")")) (argument_list "(PTR_s_hallenge__000af46c + 0x7668)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + 0x7668" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "0x7668")) () ")"))))) (; ";")) (} "}")))))))) (if_statement "if (pcVar3 == (char *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_0004b90c:\n  if (*pcVar3 == '\0') {\n    return 0;\n  }" (statement_identifier "LAB_0004b90c") (: ":") (if_statement "if (*pcVar3 == '\0') {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*pcVar3 == '\0')" (( "(") (binary_expression "*pcVar3 == '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))) (expression_statement "iVar2 = rewrite_shorthand_url(pcVar3);" (assignment_expression "iVar2 = rewrite_shorthand_url(pcVar3)" (identifier "iVar2") (= "=") (call_expression "rewrite_shorthand_url(pcVar3)" (identifier "rewrite_shorthand_url") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n                    \n                    \n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);\n    return iVar2;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);" (assignment_expression "iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strdup_000afae4)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strdup_000afae4)" (( "(") (pointer_expression "*(code *)PTR_strdup_000afae4" (* "*") (cast_expression "(code *)PTR_strdup_000afae4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strdup_000afae4"))) () ")")) (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (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))))) (pointer_expression argument: (identifier))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (return_statement (identifier)))) (return_statement (identifier)))))

int MASKED(int *param_1,undefined4 *param_2)

{
  undefined *puVar1;
  int iVar2;
  char *pcVar3;
  
  puVar1 = PTR_opt_000af488;
  if (PTR_opt_000af488[0xf1] == '\0') {
    return 0;
  }
  if ((*(int *)(PTR_opt_000af488 + 0x100) != 0) &&
     (iVar2 = sufmatch(*(int *)(PTR_opt_000af488 + 0x100),*param_2), iVar2 != 0)) {
    return 0;
  }
  iVar2 = *param_1;
  if (iVar2 == 1) {
    pcVar3 = *(char **)(puVar1 + 0xfc);
    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;
    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x765c);
  }
  else if (iVar2 == 0) {
    pcVar3 = *(char **)(puVar1 + 0xf4);
    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;
    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7650);
  }
  else if (iVar2 == 2) {
    pcVar3 = *(char **)(puVar1 + 0xf8);
    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;
    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7674);
  }
  else {
    if (iVar2 != 3) {
      return 0;
    }
    pcVar3 = *(char **)(puVar1 + 0xf8);
    if (pcVar3 != (char *)0x0) goto LAB_0004b90c;
    pcVar3 = (char *)(*(code *)PTR_getenv_000afdc0)(PTR_s_hallenge__000af46c + 0x7668);
  }
  if (pcVar3 == (char *)0x0) {
    return 0;
  }
LAB_0004b90c:
  if (*pcVar3 == '\0') {
    return 0;
  }
  iVar2 = rewrite_shorthand_url(pcVar3);
  if (iVar2 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0004b93c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar2 = (*(code *)PTR_strdup_000afae4)(pcVar3);
    return iVar2;
  }
  return iVar2;
}

