
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

uchar byte(program_counter *p)

{
  char *pcVar1;
  uint uVar2;
  
  pcVar1 = functions[p->pc_func].f_body;
  uVar2 = p->pc_addr;
  p->pc_addr = uVar2 + 1;
  return pcVar1[uVar2];
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined1 FUN_000156f0(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);
  iVar2 = param_1[1];
  param_1[1] = iVar2 + 1;
  return *(undefined1 *)(iVar1 + iVar2);
}


CALL 0x00011785
ADD EDX,0x1380f
PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
LEA ECX,[EDX + 0x374]
IMUL EDX,dword ptr [EAX],0x1c
ADD EDX,dword ptr [ECX]
MOV ECX,dword ptr [EDX + 0x4]
MOV EDX,dword ptr [EAX + 0x4]
LEA EBX,[EDX + 0x1]
MOV dword ptr [EAX + 0x4],EBX
MOVZX EAX,byte ptr [ECX + EDX*0x1]
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nundefined1 FUN_000156f0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);\n  iVar2 = param_1[1];\n  param_1[1] = iVar2 + 1;\n  return *(undefined1 *)(iVar1 + iVar2);\n}\n\n" comment (function_definition "undefined1 FUN_000156f0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);\n  iVar2 = param_1[1];\n  param_1[1] = iVar2 + 1;\n  return *(undefined1 *)(iVar1 + iVar2);\n}" type_identifier (function_declarator "FUN_000156f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);\n  iVar2 = param_1[1];\n  param_1[1] = iVar2 + 1;\n  return *(undefined1 *)(iVar1 + iVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);" (assignment_expression "iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4)" identifier = (pointer_expression "*(int *)(*param_1 * 0x1c + DAT_00029278 + 4)" * (cast_expression "(int *)(*param_1 * 0x1c + DAT_00029278 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 * 0x1c + DAT_00029278 + 4)" ( (binary_expression "*param_1 * 0x1c + DAT_00029278 + 4" (binary_expression "*param_1 * 0x1c + DAT_00029278" (binary_expression "*param_1 * 0x1c" (pointer_expression "*param_1" * identifier) * number_literal) + identifier) + number_literal) ))))) ;) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar2 + 1;" (assignment_expression "param_1[1] = iVar2 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (return_statement "return *(undefined1 *)(iVar1 + iVar2);" return (pointer_expression "*(undefined1 *)(iVar1 + iVar2)" * (cast_expression "(undefined1 *)(iVar1 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2)" ( (binary_expression "iVar1 + iVar2" identifier + identifier) )))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nuchar byte(program_counter *p)\n\n{\n  char *pcVar1;\n  uint uVar2;\n  \n  pcVar1 = functions[p->pc_func].f_body;\n  uVar2 = p->pc_addr;\n  p->pc_addr = uVar2 + 1;\n  return pcVar1[uVar2];\n}\n\n" comment comment (function_definition "uchar byte(program_counter *p)\n\n{\n  char *pcVar1;\n  uint uVar2;\n  \n  pcVar1 = functions[p->pc_func].f_body;\n  uVar2 = p->pc_addr;\n  p->pc_addr = uVar2 + 1;\n  return pcVar1[uVar2];\n}" type_identifier (function_declarator "byte(program_counter *p)" identifier (parameter_list "(program_counter *p)" ( (parameter_declaration "program_counter *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  uint uVar2;\n  \n  pcVar1 = functions[p->pc_func].f_body;\n  uVar2 = p->pc_addr;\n  p->pc_addr = uVar2 + 1;\n  return pcVar1[uVar2];\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "pcVar1 = functions[p->pc_func].f_body;" (assignment_expression "pcVar1 = functions[p->pc_func].f_body" identifier = (field_expression "functions[p->pc_func].f_body" (subscript_expression "functions[p->pc_func]" identifier [ (field_expression "p->pc_func" identifier -> field_identifier) ]) . field_identifier)) ;) (expression_statement "uVar2 = p->pc_addr;" (assignment_expression "uVar2 = p->pc_addr" identifier = (field_expression "p->pc_addr" identifier -> field_identifier)) ;) (expression_statement "p->pc_addr = uVar2 + 1;" (assignment_expression "p->pc_addr = uVar2 + 1" (field_expression "p->pc_addr" identifier -> field_identifier) = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (return_statement "return pcVar1[uVar2];" return (subscript_expression "pcVar1[uVar2]" identifier [ identifier ]) ;) })))
(translation_unit "undefined1 FUN_000156f0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);\n  iVar2 = param_1[1];\n  param_1[1] = iVar2 + 1;\n  return *(undefined1 *)(iVar1 + iVar2);\n}\n\n" (function_definition "undefined1 FUN_000156f0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);\n  iVar2 = param_1[1];\n  param_1[1] = iVar2 + 1;\n  return *(undefined1 *)(iVar1 + iVar2);\n}" type_identifier (function_declarator "FUN_000156f0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);\n  iVar2 = param_1[1];\n  param_1[1] = iVar2 + 1;\n  return *(undefined1 *)(iVar1 + iVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);" (assignment_expression "iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4)" identifier = (pointer_expression "*(int *)(*param_1 * 0x1c + DAT_00029278 + 4)" * (cast_expression "(int *)(*param_1 * 0x1c + DAT_00029278 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 * 0x1c + DAT_00029278 + 4)" ( (binary_expression "*param_1 * 0x1c + DAT_00029278 + 4" (binary_expression "*param_1 * 0x1c + DAT_00029278" (binary_expression "*param_1 * 0x1c" (pointer_expression "*param_1" * identifier) * number_literal) + identifier) + number_literal) ))))) ;) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar2 + 1;" (assignment_expression "param_1[1] = iVar2 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (return_statement "return *(undefined1 *)(iVar1 + iVar2);" return (pointer_expression "*(undefined1 *)(iVar1 + iVar2)" * (cast_expression "(undefined1 *)(iVar1 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2)" ( (binary_expression "iVar1 + iVar2" identifier + identifier) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (pointer_expression * IDENT) * LIT) + IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) })))
(function_definition "undefined1 FUN_000156f0(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);\n  iVar2 = param_1[1];\n  param_1[1] = iVar2 + 1;\n  return *(undefined1 *)(iVar1 + iVar2);\n}" (type_identifier "undefined1") (function_declarator "FUN_000156f0(int *param_1)" (identifier "FUN_000156f0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);\n  iVar2 = param_1[1];\n  param_1[1] = iVar2 + 1;\n  return *(undefined1 *)(iVar1 + iVar2);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);" (assignment_expression "iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*param_1 * 0x1c + DAT_00029278 + 4)" (* "*") (cast_expression "(int *)(*param_1 * 0x1c + DAT_00029278 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 * 0x1c + DAT_00029278 + 4)" (( "(") (binary_expression "*param_1 * 0x1c + DAT_00029278 + 4" (binary_expression "*param_1 * 0x1c + DAT_00029278" (binary_expression "*param_1 * 0x1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "0x1c")) (+ "+") (identifier "DAT_00029278")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" (identifier "iVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[1] = iVar2 + 1;" (assignment_expression "param_1[1] = iVar2 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return *(undefined1 *)(iVar1 + iVar2);" (return "return") (pointer_expression "*(undefined1 *)(iVar1 + iVar2)" (* "*") (cast_expression "(undefined1 *)(iVar1 + iVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar2)" (( "(") (binary_expression "iVar1 + iVar2" (identifier "iVar1") (+ "+") (identifier "iVar2")) () ")")))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

type_1 function_1(type_2 *p)

{
  char *pcVar1;
  type_3 var_1;
  
  pcVar1 = functions[p->pc_func].f_body;
  var_1 = p->pc_addr;
  p->pc_addr = var_1 + 1;
  return pcVar1[var_1];
}


(translation_unit (function_definition type: (type_identifier) 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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined1 MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *(int *)(*param_1 * 0x1c + DAT_00029278 + 4);
  iVar2 = param_1[1];
  param_1[1] = iVar2 + 1;
  return *(undefined1 *)(iVar1 + iVar2);
}

