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

gint delete_window(GtkWidget *widget,GdkEvent *event,gpointer data)

{
  int iVar1;
  
  if (*(int *)((int)data + 0xd24) == 0) {
    iVar1 = conf_get_int(*(Conf **)((int)data + 0x2238),5);
    if (iVar1 != 0) {
      iVar1 = reallyclose(data);
      return (uint)(iVar1 == 0);
    }
  }
  return 0;
}



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

bool FUN_00050ef0(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  
  if (*(int *)(param_3 + 0xd24) == 0) {
    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);
    if (iVar1 != 0) {
      iVar1 = FUN_00047ef0(param_3);
      return iVar1 == 0;
    }
  }
  return false;
}


PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x508ed
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESI + 0xd24]
TEST EAX,EAX
JZ 0x00050f20
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH 0x5
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001d690
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00050f0e
SUB ESP,0xc
PUSH ESI
CALL 0x00047ef0
ADD ESP,0x10
TEST EAX,EAX
SETZ AL
ADD ESP,0x4
MOVZX EAX,AL
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_00050ef0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }\n  return false;\n}\n\n" comment (function_definition "bool FUN_00050ef0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_00050ef0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0xd24) == 0)" ( (binary_expression "*(int *)(param_3 + 0xd24) == 0" (pointer_expression "*(int *)(param_3 + 0xd24)" * (cast_expression "(int *)(param_3 + 0xd24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd24)" ( (binary_expression "param_3 + 0xd24" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }" { (expression_statement "iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);" (assignment_expression "iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5)" identifier = (call_expression "FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x2238),5)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" * (cast_expression "(undefined4 *)(param_3 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2238)" ( (binary_expression "param_3 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }" { (expression_statement "iVar1 = FUN_00047ef0(param_3);" (assignment_expression "iVar1 = FUN_00047ef0(param_3)" identifier = (call_expression "FUN_00047ef0(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) })) (return_statement "return false;" return false ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GdkEventType": Some values do not have unique names */\n\ngint delete_window(GtkWidget *widget,GdkEvent *event,gpointer data)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)data + 0xd24) == 0) {\n    iVar1 = conf_get_int(*(Conf **)((int)data + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = reallyclose(data);\n      return (uint)(iVar1 == 0);\n    }\n  }\n  return 0;\n}\n\n" comment comment comment (function_definition "gint delete_window(GtkWidget *widget,GdkEvent *event,gpointer data)\n\n{\n  int iVar1;\n  \n  if (*(int *)((int)data + 0xd24) == 0) {\n    iVar1 = conf_get_int(*(Conf **)((int)data + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = reallyclose(data);\n      return (uint)(iVar1 == 0);\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "delete_window(GtkWidget *widget,GdkEvent *event,gpointer data)" identifier (parameter_list "(GtkWidget *widget,GdkEvent *event,gpointer data)" ( (parameter_declaration "GtkWidget *widget" type_identifier (pointer_declarator "*widget" * identifier)) , (parameter_declaration "GdkEvent *event" type_identifier (pointer_declarator "*event" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)((int)data + 0xd24) == 0) {\n    iVar1 = conf_get_int(*(Conf **)((int)data + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = reallyclose(data);\n      return (uint)(iVar1 == 0);\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)((int)data + 0xd24) == 0) {\n    iVar1 = conf_get_int(*(Conf **)((int)data + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = reallyclose(data);\n      return (uint)(iVar1 == 0);\n    }\n  }" if (parenthesized_expression "(*(int *)((int)data + 0xd24) == 0)" ( (binary_expression "*(int *)((int)data + 0xd24) == 0" (pointer_expression "*(int *)((int)data + 0xd24)" * (cast_expression "(int *)((int)data + 0xd24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xd24)" ( (binary_expression "(int)data + 0xd24" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = conf_get_int(*(Conf **)((int)data + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = reallyclose(data);\n      return (uint)(iVar1 == 0);\n    }\n  }" { (expression_statement "iVar1 = conf_get_int(*(Conf **)((int)data + 0x2238),5);" (assignment_expression "iVar1 = conf_get_int(*(Conf **)((int)data + 0x2238),5)" identifier = (call_expression "conf_get_int(*(Conf **)((int)data + 0x2238),5)" identifier (argument_list "(*(Conf **)((int)data + 0x2238),5)" ( (pointer_expression "*(Conf **)((int)data + 0x2238)" * (cast_expression "(Conf **)((int)data + 0x2238)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 0x2238)" ( (binary_expression "(int)data + 0x2238" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      iVar1 = reallyclose(data);\n      return (uint)(iVar1 == 0);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = reallyclose(data);\n      return (uint)(iVar1 == 0);\n    }" { (expression_statement "iVar1 = reallyclose(data);" (assignment_expression "iVar1 = reallyclose(data)" identifier = (call_expression "reallyclose(data)" identifier (argument_list "(data)" ( identifier )))) ;) (return_statement "return (uint)(iVar1 == 0);" return (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bool FUN_00050ef0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }\n  return false;\n}\n\n" (function_definition "bool FUN_00050ef0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_00050ef0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }\n  return false;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0xd24) == 0)" ( (binary_expression "*(int *)(param_3 + 0xd24) == 0" (pointer_expression "*(int *)(param_3 + 0xd24)" * (cast_expression "(int *)(param_3 + 0xd24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xd24)" ( (binary_expression "param_3 + 0xd24" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }" { (expression_statement "iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);" (assignment_expression "iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5)" identifier = (call_expression "FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x2238),5)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" * (cast_expression "(undefined4 *)(param_3 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2238)" ( (binary_expression "param_3 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }" { (expression_statement "iVar1 = FUN_00047ef0(param_3);" (assignment_expression "iVar1 = FUN_00047ef0(param_3)" identifier = (call_expression "FUN_00047ef0(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) })) (return_statement "return false;" return false ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 (assignment_expression IDENT = (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 IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return (binary_expression IDENT == LIT) ;) })) })) (return_statement return BOOL ;) })))
(function_definition "bool FUN_00050ef0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }\n  return false;\n}" (primitive_type "bool") (function_declarator "FUN_00050ef0(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_00050ef0") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }\n  return false;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*(int *)(param_3 + 0xd24) == 0) {\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0xd24) == 0)" (( "(") (binary_expression "*(int *)(param_3 + 0xd24) == 0" (pointer_expression "*(int *)(param_3 + 0xd24)" (* "*") (cast_expression "(int *)(param_3 + 0xd24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xd24)" (( "(") (binary_expression "param_3 + 0xd24" (identifier "param_3") (+ "+") (number_literal "0xd24")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);\n    if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);" (assignment_expression "iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5)" (identifier "iVar1") (= "=") (call_expression "FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5)" (identifier "FUN_0001d690") (argument_list "(*(undefined4 *)(param_3 + 0x2238),5)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2238)" (( "(") (binary_expression "param_3 + 0x2238" (identifier "param_3") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (number_literal "5") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = FUN_00047ef0(param_3);\n      return iVar1 == 0;\n    }" ({ "{") (expression_statement "iVar1 = FUN_00047ef0(param_3);" (assignment_expression "iVar1 = FUN_00047ef0(param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_00047ef0(param_3)" (identifier "FUN_00047ef0") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (return_statement "return iVar1 == 0;" (return "return") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}")))

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

type_1 function_1(type_2 *widget,type_3 *event,type_4 data)

{
  int var_2;
  
  if (*(int *)((int)data + 0xd24) == 0) {
    var_2 = var_1(*(type_5 **)((int)data + 0x2238),5);
    if (var_2 != 0) {
      var_2 = var_3(data);
      return (uint)(var_2 == 0);
    }
  }
  return 0;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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 (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (false)))))

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

bool MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  
  if (*(int *)(param_3 + 0xd24) == 0) {
    iVar1 = FUN_0001d690(*(undefined4 *)(param_3 + 0x2238),5);
    if (iVar1 != 0) {
      iVar1 = FUN_00047ef0(param_3);
      return iVar1 == 0;
    }
  }
  return false;
}

