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

backup_type get_version(char *context,char *version)

{
  ptrdiff_t pVar1;
  
  if ((version != (char *)0x0) && (*version != '\0')) {
    pVar1 = __xargmatch_internal(context,version,backup_args,(char *)backup_types,4,argmatch_die);
    return backup_types[pVar1];
  }
  return numbered_existing_backups;
}



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

undefined4 FUN_0001c570(undefined4 param_1,char *param_2)

{
  int iVar1;
  
  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {
    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);
    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);
  }
  return 2;
}


PUSH ESI
MOV EAX,0x2
PUSH EBX
CALL 0x000132d0
ADD EBX,0x1ea84
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x14]
TEST EDX,EDX
JZ 0x0001c592
CMP byte ptr [EDX],0x0
JNZ 0x0001c5a0
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0x274]
SUB ESP,0x8
LEA ESI,[EBX + 0xffff5880]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xfffffe40]
PUSH 0x4
PUSH ESI
PUSH EAX
PUSH EDX
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001be30
ADD ESP,0x20
MOV EAX,dword ptr [ESI + EAX*0x4]
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\nundefined4 FUN_0001c570(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }\n  return 2;\n}\n\n" comment (function_definition "undefined4 FUN_0001c570(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }\n  return 2;\n}" type_identifier (function_declarator "FUN_0001c570(undefined4 param_1,char *param_2)" identifier (parameter_list "(undefined4 param_1,char *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }\n  return 2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }" if (parenthesized_expression "((param_2 != (char *)0x0) && (*param_2 != '\0'))" ( (binary_expression "(param_2 != (char *)0x0) && (*param_2 != '\0')" (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }" { (expression_statement "iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);" (assignment_expression "iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274)" identifier = (call_expression "FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274)" identifier (argument_list "(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274)" ( identifier , identifier , (pointer_expression "&PTR_DAT_0003ae40" & identifier) , (pointer_expression "&DAT_00030880" & identifier) , number_literal , identifier )))) ;) (return_statement "return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);" return (pointer_expression "*(undefined4 *)(&DAT_00030880 + iVar1 * 4)" * (cast_expression "(undefined4 *)(&DAT_00030880 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00030880 + iVar1 * 4)" ( (binary_expression "&DAT_00030880 + iVar1 * 4" (pointer_expression "&DAT_00030880" & identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) })) (return_statement "return 2;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbackup_type get_version(char *context,char *version)\n\n{\n  ptrdiff_t pVar1;\n  \n  if ((version != (char *)0x0) && (*version != '\0')) {\n    pVar1 = __xargmatch_internal(context,version,backup_args,(char *)backup_types,4,argmatch_die);\n    return backup_types[pVar1];\n  }\n  return numbered_existing_backups;\n}\n\n" comment comment (function_definition "backup_type get_version(char *context,char *version)\n\n{\n  ptrdiff_t pVar1;\n  \n  if ((version != (char *)0x0) && (*version != '\0')) {\n    pVar1 = __xargmatch_internal(context,version,backup_args,(char *)backup_types,4,argmatch_die);\n    return backup_types[pVar1];\n  }\n  return numbered_existing_backups;\n}" type_identifier (function_declarator "get_version(char *context,char *version)" identifier (parameter_list "(char *context,char *version)" ( (parameter_declaration "char *context" primitive_type (pointer_declarator "*context" * identifier)) , (parameter_declaration "char *version" primitive_type (pointer_declarator "*version" * identifier)) ))) (compound_statement "{\n  ptrdiff_t pVar1;\n  \n  if ((version != (char *)0x0) && (*version != '\0')) {\n    pVar1 = __xargmatch_internal(context,version,backup_args,(char *)backup_types,4,argmatch_die);\n    return backup_types[pVar1];\n  }\n  return numbered_existing_backups;\n}" { (declaration "ptrdiff_t pVar1;" primitive_type identifier ;) (if_statement "if ((version != (char *)0x0) && (*version != '\0')) {\n    pVar1 = __xargmatch_internal(context,version,backup_args,(char *)backup_types,4,argmatch_die);\n    return backup_types[pVar1];\n  }" if (parenthesized_expression "((version != (char *)0x0) && (*version != '\0'))" ( (binary_expression "(version != (char *)0x0) && (*version != '\0')" (parenthesized_expression "(version != (char *)0x0)" ( (binary_expression "version != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*version != '\0')" ( (binary_expression "*version != '\0'" (pointer_expression "*version" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pVar1 = __xargmatch_internal(context,version,backup_args,(char *)backup_types,4,argmatch_die);\n    return backup_types[pVar1];\n  }" { (expression_statement "pVar1 = __xargmatch_internal(context,version,backup_args,(char *)backup_types,4,argmatch_die);" (assignment_expression "pVar1 = __xargmatch_internal(context,version,backup_args,(char *)backup_types,4,argmatch_die)" identifier = (call_expression "__xargmatch_internal(context,version,backup_args,(char *)backup_types,4,argmatch_die)" identifier (argument_list "(context,version,backup_args,(char *)backup_types,4,argmatch_die)" ( identifier , identifier , identifier , (cast_expression "(char *)backup_types" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (return_statement "return backup_types[pVar1];" return (subscript_expression "backup_types[pVar1]" identifier [ identifier ]) ;) })) (return_statement "return numbered_existing_backups;" return identifier ;) })))
(translation_unit "undefined4 FUN_0001c570(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }\n  return 2;\n}\n\n" (function_definition "undefined4 FUN_0001c570(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }\n  return 2;\n}" type_identifier (function_declarator "FUN_0001c570(undefined4 param_1,char *param_2)" identifier (parameter_list "(undefined4 param_1,char *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }\n  return 2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }" if (parenthesized_expression "((param_2 != (char *)0x0) && (*param_2 != '\0'))" ( (binary_expression "(param_2 != (char *)0x0) && (*param_2 != '\0')" (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }" { (expression_statement "iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);" (assignment_expression "iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274)" identifier = (call_expression "FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274)" identifier (argument_list "(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274)" ( identifier , identifier , (pointer_expression "&PTR_DAT_0003ae40" & identifier) , (pointer_expression "&DAT_00030880" & identifier) , number_literal , identifier )))) ;) (return_statement "return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);" return (pointer_expression "*(undefined4 *)(&DAT_00030880 + iVar1 * 4)" * (cast_expression "(undefined4 *)(&DAT_00030880 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00030880 + iVar1 * 4)" ( (binary_expression "&DAT_00030880 + iVar1 * 4" (pointer_expression "&DAT_00030880" & identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) })) (return_statement "return 2;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , LIT , IDENT )))) ;) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001c570(undefined4 param_1,char *param_2)\n\n{\n  int iVar1;\n  \n  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }\n  return 2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001c570(undefined4 param_1,char *param_2)" (identifier "FUN_0001c570") (parameter_list "(undefined4 param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }\n  return 2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }" (if "if") (parenthesized_expression "((param_2 != (char *)0x0) && (*param_2 != '\0'))" (( "(") (binary_expression "(param_2 != (char *)0x0) && (*param_2 != '\0')" (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*param_2 != '\0')" (( "(") (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);\n    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);" (assignment_expression "iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274)" (identifier "iVar1") (= "=") (call_expression "FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274)" (identifier "FUN_0001be30") (argument_list "(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&PTR_DAT_0003ae40" (& "&") (identifier "PTR_DAT_0003ae40")) (, ",") (pointer_expression "&DAT_00030880" (& "&") (identifier "DAT_00030880")) (, ",") (number_literal "4") (, ",") (identifier "PTR_FUN_0003b274") () ")")))) (; ";")) (return_statement "return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);" (return "return") (pointer_expression "*(undefined4 *)(&DAT_00030880 + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(&DAT_00030880 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00030880 + iVar1 * 4)" (( "(") (binary_expression "&DAT_00030880 + iVar1 * 4" (pointer_expression "&DAT_00030880" (& "&") (identifier "DAT_00030880")) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}"))) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}")))

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

type_1 function_1(char *context,char *var_1)

{
  ptrdiff_t pVar1;
  
  if ((var_1 != (char *)0x0) && (*var_1 != '\0')) {
    pVar1 = var_2(context,var_1,backup_args,(char *)backup_types,4,argmatch_die);
    return backup_types[pVar1];
  }
  return numbered_existing_backups;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (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 (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (number_literal) (identifier))))) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (number_literal)))))

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

undefined4 MASKED(undefined4 param_1,char *param_2)

{
  int iVar1;
  
  if ((param_2 != (char *)0x0) && (*param_2 != '\0')) {
    iVar1 = FUN_0001be30(param_1,param_2,&PTR_DAT_0003ae40,&DAT_00030880,4,PTR_FUN_0003b274);
    return *(undefined4 *)(&DAT_00030880 + iVar1 * 4);
  }
  return 2;
}

