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

char * demand_copy_C_string(int *len_pointer)

{
  char *pcVar1;
  int iVar2;
  
  pcVar1 = demand_copy_string(len_pointer);
  if ((pcVar1 != (char *)0x0) && (iVar2 = *len_pointer, 0 < iVar2)) {
    do {
      if (*pcVar1 == '\0') {
        *len_pointer = 0;
        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);
        as_bad(pcVar1);
        return (char *)0x0;
      }
      iVar2 = iVar2 + -1;
    } while (iVar2 != 0);
  }
  return pcVar1;
}



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

char * FUN_00032880(int *param_1)

{
  char *pcVar1;
  undefined4 uVar2;
  int iVar3;
  
  pcVar1 = (char *)FUN_00032500(param_1);
  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {
    do {
      if (*pcVar1 == '\0') {
        *param_1 = 0;
        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);
        FUN_0002ac50(uVar2);
        return (char *)0x0;
      }
      iVar3 = iVar3 + -1;
    } while (iVar3 != 0);
  }
  return pcVar1;
}


PUSH ESI
PUSH EBX
CALL 0x00015020
ADD EBX,0x35779
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x00032500
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000328df
MOV EDX,dword ptr [ESI]
TEST EDX,EDX
JLE 0x000328df
MOVZX ECX,byte ptr [EAX]
JMP 0x000328b5
SUB EDX,0x1
JZ 0x000328df
TEST CL,CL
JNZ 0x000328b0
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe6f08]
MOV dword ptr [ESI],0x0
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000131b0
MOV dword ptr [ESP],EAX
CALL 0x0002ac50
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * FUN_00032880(int *param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  pcVar1 = (char *)FUN_00032500(param_1);\n  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * FUN_00032880(int *param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  pcVar1 = (char *)FUN_00032500(param_1);\n  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_00032880(int *param_1)" * (function_declarator "FUN_00032880(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  pcVar1 = (char *)FUN_00032500(param_1);\n  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pcVar1 = (char *)FUN_00032500(param_1);" (assignment_expression "pcVar1 = (char *)FUN_00032500(param_1)" identifier = (cast_expression "(char *)FUN_00032500(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00032500(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" if (parenthesized_expression "((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3))" ( (binary_expression "(pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)" (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar3 = *param_1, 0 < iVar3)" ( (comma_expression "iVar3 = *param_1, 0 < iVar3" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) , (binary_expression "0 < iVar3" number_literal < identifier)) ))) )) (compound_statement "{\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" { (do_statement "do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" do (compound_statement "{\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    }" { (if_statement "if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);" (assignment_expression "uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5)" identifier = (call_expression "dcgettext(0,"this string may not contain \'\\0\'",5)" identifier (argument_list "(0,"this string may not contain \'\\0\'",5)" ( number_literal , (string_literal ""this string may not contain \'\\0\'"" " string_content escape_sequence escape_sequence string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_0002ac50(uVar2);" (call_expression "FUN_0002ac50(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * demand_copy_C_string(int *len_pointer)\n\n{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = demand_copy_string(len_pointer);\n  if ((pcVar1 != (char *)0x0) && (iVar2 = *len_pointer, 0 < iVar2)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *len_pointer = 0;\n        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);\n        as_bad(pcVar1);\n        return (char *)0x0;\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != 0);\n  }\n  return pcVar1;\n}\n\n" comment comment (function_definition "char * demand_copy_C_string(int *len_pointer)\n\n{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = demand_copy_string(len_pointer);\n  if ((pcVar1 != (char *)0x0) && (iVar2 = *len_pointer, 0 < iVar2)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *len_pointer = 0;\n        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);\n        as_bad(pcVar1);\n        return (char *)0x0;\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != 0);\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* demand_copy_C_string(int *len_pointer)" * (function_declarator "demand_copy_C_string(int *len_pointer)" identifier (parameter_list "(int *len_pointer)" ( (parameter_declaration "int *len_pointer" primitive_type (pointer_declarator "*len_pointer" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  \n  pcVar1 = demand_copy_string(len_pointer);\n  if ((pcVar1 != (char *)0x0) && (iVar2 = *len_pointer, 0 < iVar2)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *len_pointer = 0;\n        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);\n        as_bad(pcVar1);\n        return (char *)0x0;\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != 0);\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "pcVar1 = demand_copy_string(len_pointer);" (assignment_expression "pcVar1 = demand_copy_string(len_pointer)" identifier = (call_expression "demand_copy_string(len_pointer)" identifier (argument_list "(len_pointer)" ( identifier )))) ;) (if_statement "if ((pcVar1 != (char *)0x0) && (iVar2 = *len_pointer, 0 < iVar2)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *len_pointer = 0;\n        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);\n        as_bad(pcVar1);\n        return (char *)0x0;\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != 0);\n  }" if (parenthesized_expression "((pcVar1 != (char *)0x0) && (iVar2 = *len_pointer, 0 < iVar2))" ( (binary_expression "(pcVar1 != (char *)0x0) && (iVar2 = *len_pointer, 0 < iVar2)" (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 = *len_pointer, 0 < iVar2)" ( (comma_expression "iVar2 = *len_pointer, 0 < iVar2" (assignment_expression "iVar2 = *len_pointer" identifier = (pointer_expression "*len_pointer" * identifier)) , (binary_expression "0 < iVar2" number_literal < identifier)) ))) )) (compound_statement "{\n    do {\n      if (*pcVar1 == '\0') {\n        *len_pointer = 0;\n        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);\n        as_bad(pcVar1);\n        return (char *)0x0;\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != 0);\n  }" { (do_statement "do {\n      if (*pcVar1 == '\0') {\n        *len_pointer = 0;\n        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);\n        as_bad(pcVar1);\n        return (char *)0x0;\n      }\n      iVar2 = iVar2 + -1;\n    } while (iVar2 != 0);" do (compound_statement "{\n      if (*pcVar1 == '\0') {\n        *len_pointer = 0;\n        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);\n        as_bad(pcVar1);\n        return (char *)0x0;\n      }\n      iVar2 = iVar2 + -1;\n    }" { (if_statement "if (*pcVar1 == '\0') {\n        *len_pointer = 0;\n        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);\n        as_bad(pcVar1);\n        return (char *)0x0;\n      }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *len_pointer = 0;\n        pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);\n        as_bad(pcVar1);\n        return (char *)0x0;\n      }" { (expression_statement "*len_pointer = 0;" (assignment_expression "*len_pointer = 0" (pointer_expression "*len_pointer" * identifier) = number_literal) ;) (expression_statement "pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5);" (assignment_expression "pcVar1 = (char *)dcgettext(0,"this string may not contain \'\\0\'",5)" identifier = (cast_expression "(char *)dcgettext(0,"this string may not contain \'\\0\'",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"this string may not contain \'\\0\'",5)" identifier (argument_list "(0,"this string may not contain \'\\0\'",5)" ( number_literal , (string_literal ""this string may not contain \'\\0\'"" " string_content escape_sequence escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "as_bad(pcVar1);" (call_expression "as_bad(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "char * FUN_00032880(int *param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  pcVar1 = (char *)FUN_00032500(param_1);\n  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return pcVar1;\n}\n\n" (function_definition "char * FUN_00032880(int *param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  pcVar1 = (char *)FUN_00032500(param_1);\n  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_00032880(int *param_1)" * (function_declarator "FUN_00032880(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  pcVar1 = (char *)FUN_00032500(param_1);\n  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pcVar1 = (char *)FUN_00032500(param_1);" (assignment_expression "pcVar1 = (char *)FUN_00032500(param_1)" identifier = (cast_expression "(char *)FUN_00032500(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00032500(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" if (parenthesized_expression "((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3))" ( (binary_expression "(pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)" (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar3 = *param_1, 0 < iVar3)" ( (comma_expression "iVar3 = *param_1, 0 < iVar3" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) , (binary_expression "0 < iVar3" number_literal < identifier)) ))) )) (compound_statement "{\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" { (do_statement "do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" do (compound_statement "{\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    }" { (if_statement "if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }" if (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);" (assignment_expression "uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5)" identifier = (call_expression "dcgettext(0,"this string may not contain \'\\0\'",5)" identifier (argument_list "(0,"this string may not contain \'\\0\'",5)" ( number_literal , (string_literal ""this string may not contain \'\\0\'"" " string_content escape_sequence escape_sequence string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_0002ac50(uVar2);" (call_expression "FUN_0002ac50(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence escape_sequence string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * FUN_00032880(int *param_1)\n\n{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  pcVar1 = (char *)FUN_00032500(param_1);\n  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return pcVar1;\n}" (primitive_type "char") (pointer_declarator "* FUN_00032880(int *param_1)" (* "*") (function_declarator "FUN_00032880(int *param_1)" (identifier "FUN_00032880") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  char *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  pcVar1 = (char *)FUN_00032500(param_1);\n  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }\n  return pcVar1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "pcVar1 = (char *)FUN_00032500(param_1);" (assignment_expression "pcVar1 = (char *)FUN_00032500(param_1)" (identifier "pcVar1") (= "=") (cast_expression "(char *)FUN_00032500(param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00032500(param_1)" (identifier "FUN_00032500") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" (if "if") (parenthesized_expression "((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3))" (( "(") (binary_expression "(pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)" (parenthesized_expression "(pcVar1 != (char *)0x0)" (( "(") (binary_expression "pcVar1 != (char *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = *param_1, 0 < iVar3)" (( "(") (comma_expression "iVar3 = *param_1, 0 < iVar3" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3"))) () ")"))) () ")")) (compound_statement "{\n    do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n  }" ({ "{") (do_statement "do {\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" (do "do") (compound_statement "{\n      if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }\n      iVar3 = iVar3 + -1;\n    }" ({ "{") (if_statement "if (*pcVar1 == '\0') {\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }" (if "if") (parenthesized_expression "(*pcVar1 == '\0')" (( "(") (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        *param_1 = 0;\n        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);\n        FUN_0002ac50(uVar2);\n        return (char *)0x0;\n      }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);" (assignment_expression "uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"this string may not contain \'\\0\'",5)" (identifier "dcgettext") (argument_list "(0,"this string may not contain \'\\0\'",5)" (( "(") (number_literal "0") (, ",") (string_literal ""this string may not contain \'\\0\'"" (" """) (string_content "this string may not contain ") (escape_sequence "\'") (escape_sequence "\\") (string_content "0") (escape_sequence "\'") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002ac50(uVar2);" (call_expression "FUN_0002ac50(uVar2)" (identifier "FUN_0002ac50") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return (char *)0x0;" (return "return") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}")))

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

char * function_1(int *len_pointer)

{
  char *var_2;
  int var_3;
  
  var_2 = var_1(len_pointer);
  if ((var_2 != (char *)0x0) && (var_3 = *len_pointer, 0 < var_3)) {
    do {
      if (*var_2 == '\0') {
        *len_pointer = 0;
        var_2 = (char *)var_4(0,"this string may not contain \'\\0\'",5);
        var_5(var_2);
        return (char *)0x0;
      }
      var_3 = var_3 + -1;
    } while (var_3 != 0);
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (binary_expression left: (number_literal) right: (identifier)))))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence) (escape_sequence) (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

char * MASKED(int *param_1)

{
  char *pcVar1;
  undefined4 uVar2;
  int iVar3;
  
  pcVar1 = (char *)FUN_00032500(param_1);
  if ((pcVar1 != (char *)0x0) && (iVar3 = *param_1, 0 < iVar3)) {
    do {
      if (*pcVar1 == '\0') {
        *param_1 = 0;
        uVar2 = dcgettext(0,"this string may not contain \'\\0\'",5);
        FUN_0002ac50(uVar2);
        return (char *)0x0;
      }
      iVar3 = iVar3 + -1;
    } while (iVar3 != 0);
  }
  return pcVar1;
}

