
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void reset_terminal_menuitem(GtkMenuItem *item,gpointer data)

{
  term_pwron(*(Terminal **)((int)data + 0xd1c),1);
  if (*(void **)((int)data + 0xd10) != (void *)0x0) {
    ldisc_echoedit_update(*(void **)((int)data + 0xd10));
  }
  return;
}



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

void FUN_00091c40(undefined4 param_1,int param_2)

{
  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);
  if (*(int *)(param_2 + 0xd10) != 0) {
    FUN_00029f50(*(int *)(param_2 + 0xd10));
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0x7eb09
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x1c]
PUSH 0x1
PUSH dword ptr [ESI + 0xd1c]
CALL 0x00078c20
MOV EAX,dword ptr [ESI + 0xd10]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00091c7a
SUB ESP,0xc
PUSH EAX
CALL 0x00029f50
ADD ESP,0x10
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\nvoid FUN_00091c40(undefined4 param_1,int param_2)\n\n{\n  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);\n  if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00091c40(undefined4 param_1,int param_2)\n\n{\n  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);\n  if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00091c40(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);\n  if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }\n  return;\n}" { (expression_statement "FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);" (call_expression "FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1)" identifier (argument_list "(*(undefined4 *)(param_2 + 0xd1c),1)" ( (pointer_expression "*(undefined4 *)(param_2 + 0xd1c)" * (cast_expression "(undefined4 *)(param_2 + 0xd1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd1c)" ( (binary_expression "param_2 + 0xd1c" identifier + number_literal) )))) , number_literal ))) ;) (if_statement "if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0xd10) != 0)" ( (binary_expression "*(int *)(param_2 + 0xd10) != 0" (pointer_expression "*(int *)(param_2 + 0xd10)" * (cast_expression "(int *)(param_2 + 0xd10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd10)" ( (binary_expression "param_2 + 0xd10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }" { (expression_statement "FUN_00029f50(*(int *)(param_2 + 0xd10));" (call_expression "FUN_00029f50(*(int *)(param_2 + 0xd10))" identifier (argument_list "(*(int *)(param_2 + 0xd10))" ( (pointer_expression "*(int *)(param_2 + 0xd10)" * (cast_expression "(int *)(param_2 + 0xd10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd10)" ( (binary_expression "param_2 + 0xd10" identifier + number_literal) )))) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid reset_terminal_menuitem(GtkMenuItem *item,gpointer data)\n\n{\n  term_pwron(*(Terminal **)((int)data + 0xd1c),1);\n  if (*(void **)((int)data + 0xd10) != (void *)0x0) {\n    ldisc_echoedit_update(*(void **)((int)data + 0xd10));\n  }\n  return;\n}\n\n" comment comment comment (function_definition "void reset_terminal_menuitem(GtkMenuItem *item,gpointer data)\n\n{\n  term_pwron(*(Terminal **)((int)data + 0xd1c),1);\n  if (*(void **)((int)data + 0xd10) != (void *)0x0) {\n    ldisc_echoedit_update(*(void **)((int)data + 0xd10));\n  }\n  return;\n}" primitive_type (function_declarator "reset_terminal_menuitem(GtkMenuItem *item,gpointer data)" identifier (parameter_list "(GtkMenuItem *item,gpointer data)" ( (parameter_declaration "GtkMenuItem *item" type_identifier (pointer_declarator "*item" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  term_pwron(*(Terminal **)((int)data + 0xd1c),1);\n  if (*(void **)((int)data + 0xd10) != (void *)0x0) {\n    ldisc_echoedit_update(*(void **)((int)data + 0xd10));\n  }\n  return;\n}" { (expression_statement "term_pwron(*(Terminal **)((int)data + 0xd1c),1);" (call_expression "term_pwron(*(Terminal **)((int)data + 0xd1c),1)" identifier (argument_list "(*(Terminal **)((int)data + 0xd1c),1)" ( (pointer_expression "*(Terminal **)((int)data + 0xd1c)" * (cast_expression "(Terminal **)((int)data + 0xd1c)" ( (type_descriptor "Terminal **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0xd1c)" ( (binary_expression "(int)data + 0xd1c" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal ))) ;) (if_statement "if (*(void **)((int)data + 0xd10) != (void *)0x0) {\n    ldisc_echoedit_update(*(void **)((int)data + 0xd10));\n  }" if (parenthesized_expression "(*(void **)((int)data + 0xd10) != (void *)0x0)" ( (binary_expression "*(void **)((int)data + 0xd10) != (void *)0x0" (pointer_expression "*(void **)((int)data + 0xd10)" * (cast_expression "(void **)((int)data + 0xd10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0xd10)" ( (binary_expression "(int)data + 0xd10" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ldisc_echoedit_update(*(void **)((int)data + 0xd10));\n  }" { (expression_statement "ldisc_echoedit_update(*(void **)((int)data + 0xd10));" (call_expression "ldisc_echoedit_update(*(void **)((int)data + 0xd10))" identifier (argument_list "(*(void **)((int)data + 0xd10))" ( (pointer_expression "*(void **)((int)data + 0xd10)" * (cast_expression "(void **)((int)data + 0xd10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0xd10)" ( (binary_expression "(int)data + 0xd10" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00091c40(undefined4 param_1,int param_2)\n\n{\n  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);\n  if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }\n  return;\n}\n\n" (function_definition "void FUN_00091c40(undefined4 param_1,int param_2)\n\n{\n  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);\n  if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00091c40(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);\n  if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }\n  return;\n}" { (expression_statement "FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);" (call_expression "FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1)" identifier (argument_list "(*(undefined4 *)(param_2 + 0xd1c),1)" ( (pointer_expression "*(undefined4 *)(param_2 + 0xd1c)" * (cast_expression "(undefined4 *)(param_2 + 0xd1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd1c)" ( (binary_expression "param_2 + 0xd1c" identifier + number_literal) )))) , number_literal ))) ;) (if_statement "if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0xd10) != 0)" ( (binary_expression "*(int *)(param_2 + 0xd10) != 0" (pointer_expression "*(int *)(param_2 + 0xd10)" * (cast_expression "(int *)(param_2 + 0xd10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd10)" ( (binary_expression "param_2 + 0xd10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }" { (expression_statement "FUN_00029f50(*(int *)(param_2 + 0xd10));" (call_expression "FUN_00029f50(*(int *)(param_2 + 0xd10))" identifier (argument_list "(*(int *)(param_2 + 0xd10))" ( (pointer_expression "*(int *)(param_2 + 0xd10)" * (cast_expression "(int *)(param_2 + 0xd10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd10)" ( (binary_expression "param_2 + 0xd10" identifier + number_literal) )))) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00091c40(undefined4 param_1,int param_2)\n\n{\n  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);\n  if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00091c40(undefined4 param_1,int param_2)" (identifier "FUN_00091c40") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);\n  if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }\n  return;\n}" ({ "{") (expression_statement "FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);" (call_expression "FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1)" (identifier "FUN_00078c20") (argument_list "(*(undefined4 *)(param_2 + 0xd1c),1)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0xd1c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xd1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd1c)" (( "(") (binary_expression "param_2 + 0xd1c" (identifier "param_2") (+ "+") (number_literal "0xd1c")) () ")")))) (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (*(int *)(param_2 + 0xd10) != 0) {\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0xd10) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0xd10) != 0" (pointer_expression "*(int *)(param_2 + 0xd10)" (* "*") (cast_expression "(int *)(param_2 + 0xd10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd10)" (( "(") (binary_expression "param_2 + 0xd10" (identifier "param_2") (+ "+") (number_literal "0xd10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00029f50(*(int *)(param_2 + 0xd10));\n  }" ({ "{") (expression_statement "FUN_00029f50(*(int *)(param_2 + 0xd10));" (call_expression "FUN_00029f50(*(int *)(param_2 + 0xd10))" (identifier "FUN_00029f50") (argument_list "(*(int *)(param_2 + 0xd10))" (( "(") (pointer_expression "*(int *)(param_2 + 0xd10)" (* "*") (cast_expression "(int *)(param_2 + 0xd10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd10)" (( "(") (binary_expression "param_2 + 0xd10" (identifier "param_2") (+ "+") (number_literal "0xd10")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *item,type_2 data)

{
  var_1(*(type_3 **)((int)data + 0xd1c),1);
  if (*(void **)((int)data + 0xd10) != (void *)0x0) {
    var_2(*(void **)((int)data + 0xd10));
  }
  return;
}


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

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

void MASKED(undefined4 param_1,int param_2)

{
  FUN_00078c20(*(undefined4 *)(param_2 + 0xd1c),1);
  if (*(int *)(param_2 + 0xd10) != 0) {
    FUN_00029f50(*(int *)(param_2 + 0xd10));
  }
  return;
}

