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

char * charset_to_localenc(int charset)

{
  int iVar1;
  int *piVar2;
  
  iVar1 = 0;
  piVar2 = &localencs[0].charset;
  do {
    if (*piVar2 == charset) {
      return localencs[iVar1].name;
    }
    iVar1 = iVar1 + 1;
    piVar2 = piVar2 + 3;
  } while (iVar1 != 0x38);
  return (char *)0x0;
}



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

undefined * FUN_0001cd30(int param_1)

{
  int iVar1;
  int *piVar2;
  
  iVar1 = 0;
  piVar2 = &DAT_00137c64;
  do {
    if (*piVar2 == param_1) {
      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];
    }
    iVar1 = iVar1 + 1;
    piVar2 = piVar2 + 3;
  } while (iVar1 != 0x38);
  return (undefined *)0x0;
}


PUSH EBX
XOR EAX,EAX
MOV ECX,dword ptr [ESP + 0x8]
CALL 0x0001c520
ADD EBX,0x11da14
LEA EDX,[EBX + 0xffffd514]
JMP 0x0001cd5b
ADD EAX,0x1
ADD EDX,0xc
CMP EAX,0x38
JZ 0x0001cd70
CMP dword ptr [EDX],ECX
JNZ 0x0001cd50
LEA EAX,[EAX + EAX*0x2]
MOV EAX,dword ptr [EBX + EAX*0x4 + 0xffffd510]
POP EBX
RET
XOR EAX,EAX
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined * FUN_0001cd30(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &DAT_00137c64;\n  do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (undefined *)0x0;\n}\n\n" comment (function_definition "undefined * FUN_0001cd30(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &DAT_00137c64;\n  do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (undefined *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0001cd30(int param_1)" * (function_declarator "FUN_0001cd30(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &DAT_00137c64;\n  do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (undefined *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = &DAT_00137c64;" (assignment_expression "piVar2 = &DAT_00137c64" identifier = (pointer_expression "&DAT_00137c64" & identifier)) ;) (do_statement "do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);" do (compound_statement "{\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  }" { (if_statement "if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }" if (parenthesized_expression "(*piVar2 == param_1)" ( (binary_expression "*piVar2 == param_1" (pointer_expression "*piVar2" * identifier) == identifier) )) (compound_statement "{\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }" { (return_statement "return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];" return (subscript_expression "(&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3]" (parenthesized_expression "(&PTR_s_<UNKNOWN>_00137c60)" ( (binary_expression "&PTR_s_<UNKNOWN>_00137c60" (binary_expression "&PTR_s_<UNKNOWN" (pointer_expression "&PTR_s_" & identifier) < identifier) > identifier) )) [ (binary_expression "iVar1 * 3" identifier * number_literal) ]) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar2 + 3;" (assignment_expression "piVar2 = piVar2 + 3" identifier = (binary_expression "piVar2 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0x38)" ( (binary_expression "iVar1 != 0x38" identifier != number_literal) )) ;) (return_statement "return (undefined *)0x0;" return (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * charset_to_localenc(int charset)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &localencs[0].charset;\n  do {\n    if (*piVar2 == charset) {\n      return localencs[iVar1].name;\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (char *)0x0;\n}\n\n" comment (function_definition "char * charset_to_localenc(int charset)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &localencs[0].charset;\n  do {\n    if (*piVar2 == charset) {\n      return localencs[iVar1].name;\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* charset_to_localenc(int charset)" * (function_declarator "charset_to_localenc(int charset)" identifier (parameter_list "(int charset)" ( (parameter_declaration "int charset" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &localencs[0].charset;\n  do {\n    if (*piVar2 == charset) {\n      return localencs[iVar1].name;\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (char *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = &localencs[0].charset;" (assignment_expression "piVar2 = &localencs[0].charset" identifier = (pointer_expression "&localencs[0].charset" & (field_expression "localencs[0].charset" (subscript_expression "localencs[0]" identifier [ number_literal ]) . field_identifier))) ;) (do_statement "do {\n    if (*piVar2 == charset) {\n      return localencs[iVar1].name;\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);" do (compound_statement "{\n    if (*piVar2 == charset) {\n      return localencs[iVar1].name;\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  }" { (if_statement "if (*piVar2 == charset) {\n      return localencs[iVar1].name;\n    }" if (parenthesized_expression "(*piVar2 == charset)" ( (binary_expression "*piVar2 == charset" (pointer_expression "*piVar2" * identifier) == identifier) )) (compound_statement "{\n      return localencs[iVar1].name;\n    }" { (return_statement "return localencs[iVar1].name;" return (field_expression "localencs[iVar1].name" (subscript_expression "localencs[iVar1]" identifier [ identifier ]) . field_identifier) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar2 + 3;" (assignment_expression "piVar2 = piVar2 + 3" identifier = (binary_expression "piVar2 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0x38)" ( (binary_expression "iVar1 != 0x38" identifier != number_literal) )) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined * FUN_0001cd30(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &DAT_00137c64;\n  do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (undefined *)0x0;\n}\n\n" (function_definition "undefined * FUN_0001cd30(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &DAT_00137c64;\n  do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (undefined *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0001cd30(int param_1)" * (function_declarator "FUN_0001cd30(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &DAT_00137c64;\n  do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (undefined *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "piVar2 = &DAT_00137c64;" (assignment_expression "piVar2 = &DAT_00137c64" identifier = (pointer_expression "&DAT_00137c64" & identifier)) ;) (do_statement "do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);" do (compound_statement "{\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  }" { (if_statement "if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }" if (parenthesized_expression "(*piVar2 == param_1)" ( (binary_expression "*piVar2 == param_1" (pointer_expression "*piVar2" * identifier) == identifier) )) (compound_statement "{\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }" { (return_statement "return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];" return (subscript_expression "(&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3]" (parenthesized_expression "(&PTR_s_<UNKNOWN>_00137c60)" ( (binary_expression "&PTR_s_<UNKNOWN>_00137c60" (binary_expression "&PTR_s_<UNKNOWN" (pointer_expression "&PTR_s_" & identifier) < identifier) > identifier) )) [ (binary_expression "iVar1 * 3" identifier * number_literal) ]) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar2 + 3;" (assignment_expression "piVar2 = piVar2 + 3" identifier = (binary_expression "piVar2 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != 0x38)" ( (binary_expression "iVar1 != 0x38" identifier != number_literal) )) ;) (return_statement "return (undefined *)0x0;" return (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (return_statement return (subscript_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression & IDENT) < IDENT) > IDENT) )) [ (binary_expression IDENT * LIT) ]) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "undefined * FUN_0001cd30(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &DAT_00137c64;\n  do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (undefined *)0x0;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_0001cd30(int param_1)" (* "*") (function_declarator "FUN_0001cd30(int param_1)" (identifier "FUN_0001cd30") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = 0;\n  piVar2 = &DAT_00137c64;\n  do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);\n  return (undefined *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = &DAT_00137c64;" (assignment_expression "piVar2 = &DAT_00137c64" (identifier "piVar2") (= "=") (pointer_expression "&DAT_00137c64" (& "&") (identifier "DAT_00137c64"))) (; ";")) (do_statement "do {\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  } while (iVar1 != 0x38);" (do "do") (compound_statement "{\n    if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }\n    iVar1 = iVar1 + 1;\n    piVar2 = piVar2 + 3;\n  }" ({ "{") (if_statement "if (*piVar2 == param_1) {\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }" (if "if") (parenthesized_expression "(*piVar2 == param_1)" (( "(") (binary_expression "*piVar2 == param_1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];\n    }" ({ "{") (return_statement "return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];" (return "return") (subscript_expression "(&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3]" (parenthesized_expression "(&PTR_s_<UNKNOWN>_00137c60)" (( "(") (binary_expression "&PTR_s_<UNKNOWN>_00137c60" (binary_expression "&PTR_s_<UNKNOWN" (pointer_expression "&PTR_s_" (& "&") (identifier "PTR_s_")) (< "<") (identifier "UNKNOWN")) (> ">") (identifier "_00137c60")) () ")")) ([ "[") (binary_expression "iVar1 * 3" (identifier "iVar1") (* "*") (number_literal "3")) (] "]")) (; ";")) (} "}"))) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar2 = piVar2 + 3;" (assignment_expression "piVar2 = piVar2 + 3" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 3" (identifier "piVar2") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0x38)" (( "(") (binary_expression "iVar1 != 0x38" (identifier "iVar1") (!= "!=") (number_literal "0x38")) () ")")) (; ";")) (return_statement "return (undefined *)0x0;" (return "return") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

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

char * function_1(int var_1)

{
  int var_2;
  int *var_3;
  
  var_2 = 0;
  var_3 = &localencs[0].var_1;
  do {
    if (*var_3 == var_1) {
      return localencs[var_2].name;
    }
    var_2 = var_2 + 1;
    var_3 = var_3 + 3;
  } while (var_2 != 0x38);
  return (char *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (return_statement (subscript_expression argument: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)) right: (identifier))) index: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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 (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

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

undefined * MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  
  iVar1 = 0;
  piVar2 = &DAT_00137c64;
  do {
    if (*piVar2 == param_1) {
      return (&PTR_s_<UNKNOWN>_00137c60)[iVar1 * 3];
    }
    iVar1 = iVar1 + 1;
    piVar2 = piVar2 + 3;
  } while (iVar1 != 0x38);
  return (undefined *)0x0;
}

