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

void listbox_selchange(GtkTreeSelection *treeselection,gpointer data)

{
  undefined4 uVar1;
  undefined4 uVar2;
  GtkWidget *w;
  uctrl *puVar3;
  
  uVar1 = gtk_tree_selection_get_tree_view(treeselection);
  uVar2 = gtk_widget_get_type();
  w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);
  if (*(int *)((int)data + 4) != 0) {
    puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);
    if (puVar3 != (uctrl *)0x0) {
      (*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3);
    }
  }
  return;
}



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

void FUN_00043890(undefined4 param_1,int param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int *piVar3;
  
  uVar1 = gtk_tree_selection_get_tree_view(param_1);
  uVar2 = gtk_widget_get_type();
  g_type_check_instance_cast(uVar1,uVar2);
  if (*(int *)(param_2 + 4) != 0) {
    piVar3 = (int *)FUN_00043620();
    if (piVar3 != (int *)0x0) {
      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);
    }
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
CALL 0x0001a360
ADD EBX,0x5df48
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
CALL 0x000191e0
MOV EDI,EAX
CALL 0x00018530
POP EDX
POP ECX
PUSH EAX
PUSH EDI
CALL 0x00018580
MOV EBX,dword ptr [ESI + 0x4]
ADD ESP,0x10
TEST EBX,EBX
JZ 0x000438e5
MOV EDX,EAX
LEA EAX,[ESI + 0x4]
CALL 0x00043620
TEST EAX,EAX
JZ 0x000438e5
MOV EAX,dword ptr [EAX]
PUSH 0x3
PUSH dword ptr [ESI + 0x8]
PUSH ESI
PUSH EAX
CALL dword ptr [EAX + 0x10]
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00043890(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(param_1);\n  uVar2 = gtk_widget_get_type();\n  g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00043890(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(param_1);\n  uVar2 = gtk_widget_get_type();\n  g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00043890(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  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(param_1);\n  uVar2 = gtk_widget_get_type();\n  g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "uVar1 = gtk_tree_selection_get_tree_view(param_1);" (assignment_expression "uVar1 = gtk_tree_selection_get_tree_view(param_1)" identifier = (call_expression "gtk_tree_selection_get_tree_view(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "g_type_check_instance_cast(uVar1,uVar2);" (call_expression "g_type_check_instance_cast(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))) ;) (if_statement "if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) != 0)" ( (binary_expression "*(int *)(param_2 + 4) != 0" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }" { (expression_statement "piVar3 = (int *)FUN_00043620();" (assignment_expression "piVar3 = (int *)FUN_00043620()" identifier = (cast_expression "(int *)FUN_00043620()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00043620()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }" { (expression_statement "(**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);" (call_expression "(**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x10))" ( (pointer_expression "**(code **)(*piVar3 + 0x10)" * (pointer_expression "*(code **)(*piVar3 + 0x10)" * (cast_expression "(code **)(*piVar3 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x10)" ( (binary_expression "*piVar3 + 0x10" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3)" ( (pointer_expression "*piVar3" * identifier) , identifier , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , 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\nvoid listbox_selchange(GtkTreeSelection *treeselection,gpointer data)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  GtkWidget *w;\n  uctrl *puVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(treeselection);\n  uVar2 = gtk_widget_get_type();\n  w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)((int)data + 4) != 0) {\n    puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n    if (puVar3 != (uctrl *)0x0) {\n      (*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void listbox_selchange(GtkTreeSelection *treeselection,gpointer data)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  GtkWidget *w;\n  uctrl *puVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(treeselection);\n  uVar2 = gtk_widget_get_type();\n  w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)((int)data + 4) != 0) {\n    puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n    if (puVar3 != (uctrl *)0x0) {\n      (*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "listbox_selchange(GtkTreeSelection *treeselection,gpointer data)" identifier (parameter_list "(GtkTreeSelection *treeselection,gpointer data)" ( (parameter_declaration "GtkTreeSelection *treeselection" type_identifier (pointer_declarator "*treeselection" * identifier)) , (parameter_declaration "gpointer data" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  GtkWidget *w;\n  uctrl *puVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(treeselection);\n  uVar2 = gtk_widget_get_type();\n  w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)((int)data + 4) != 0) {\n    puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n    if (puVar3 != (uctrl *)0x0) {\n      (*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3);\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "GtkWidget *w;" type_identifier (pointer_declarator "*w" * identifier) ;) (declaration "uctrl *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "uVar1 = gtk_tree_selection_get_tree_view(treeselection);" (assignment_expression "uVar1 = gtk_tree_selection_get_tree_view(treeselection)" identifier = (call_expression "gtk_tree_selection_get_tree_view(treeselection)" identifier (argument_list "(treeselection)" ( identifier )))) ;) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2);" (assignment_expression "w = (GtkWidget *)g_type_check_instance_cast(uVar1,uVar2)" identifier = (cast_expression "(GtkWidget *)g_type_check_instance_cast(uVar1,uVar2)" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "g_type_check_instance_cast(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))))) ;) (if_statement "if (*(int *)((int)data + 4) != 0) {\n    puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n    if (puVar3 != (uctrl *)0x0) {\n      (*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3);\n    }\n  }" if (parenthesized_expression "(*(int *)((int)data + 4) != 0)" ( (binary_expression "*(int *)((int)data + 4) != 0" (pointer_expression "*(int *)((int)data + 4)" * (cast_expression "(int *)((int)data + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);\n    if (puVar3 != (uctrl *)0x0) {\n      (*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3);\n    }\n  }" { (expression_statement "puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w);" (assignment_expression "puVar3 = dlg_find_bywidget((dlgparam *)((int)data + 4),w)" identifier = (call_expression "dlg_find_bywidget((dlgparam *)((int)data + 4),w)" identifier (argument_list "((dlgparam *)((int)data + 4),w)" ( (cast_expression "(dlgparam *)((int)data + 4)" ( (type_descriptor "dlgparam *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , identifier )))) ;) (if_statement "if (puVar3 != (uctrl *)0x0) {\n      (*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3);\n    }" if (parenthesized_expression "(puVar3 != (uctrl *)0x0)" ( (binary_expression "puVar3 != (uctrl *)0x0" identifier != (cast_expression "(uctrl *)0x0" ( (type_descriptor "uctrl *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3);\n    }" { (expression_statement "(*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3);" (call_expression "(*(puVar3->ctrl->generic).handler)(puVar3->ctrl,data,*(void **)((int)data + 8),3)" (parenthesized_expression "(*(puVar3->ctrl->generic).handler)" ( (pointer_expression "*(puVar3->ctrl->generic).handler" * (field_expression "(puVar3->ctrl->generic).handler" (parenthesized_expression "(puVar3->ctrl->generic)" ( (field_expression "puVar3->ctrl->generic" (field_expression "puVar3->ctrl" identifier -> field_identifier) -> field_identifier) )) . field_identifier)) )) (argument_list "(puVar3->ctrl,data,*(void **)((int)data + 8),3)" ( (field_expression "puVar3->ctrl" identifier -> field_identifier) , identifier , (pointer_expression "*(void **)((int)data + 8)" * (cast_expression "(void **)((int)data + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 8)" ( (binary_expression "(int)data + 8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00043890(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(param_1);\n  uVar2 = gtk_widget_get_type();\n  g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00043890(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(param_1);\n  uVar2 = gtk_widget_get_type();\n  g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00043890(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  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(param_1);\n  uVar2 = gtk_widget_get_type();\n  g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "uVar1 = gtk_tree_selection_get_tree_view(param_1);" (assignment_expression "uVar1 = gtk_tree_selection_get_tree_view(param_1)" identifier = (call_expression "gtk_tree_selection_get_tree_view(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "g_type_check_instance_cast(uVar1,uVar2);" (call_expression "g_type_check_instance_cast(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))) ;) (if_statement "if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) != 0)" ( (binary_expression "*(int *)(param_2 + 4) != 0" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }" { (expression_statement "piVar3 = (int *)FUN_00043620();" (assignment_expression "piVar3 = (int *)FUN_00043620()" identifier = (cast_expression "(int *)FUN_00043620()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00043620()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }" { (expression_statement "(**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);" (call_expression "(**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x10))" ( (pointer_expression "**(code **)(*piVar3 + 0x10)" * (pointer_expression "*(code **)(*piVar3 + 0x10)" * (cast_expression "(code **)(*piVar3 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x10)" ( (binary_expression "*piVar3 + 0x10" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3)" ( (pointer_expression "*piVar3" * identifier) , identifier , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , 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 { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00043890(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(param_1);\n  uVar2 = gtk_widget_get_type();\n  g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00043890(undefined4 param_1,int param_2)" (identifier "FUN_00043890") (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  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = gtk_tree_selection_get_tree_view(param_1);\n  uVar2 = gtk_widget_get_type();\n  g_type_check_instance_cast(uVar1,uVar2);\n  if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "uVar1 = gtk_tree_selection_get_tree_view(param_1);" (assignment_expression "uVar1 = gtk_tree_selection_get_tree_view(param_1)" (identifier "uVar1") (= "=") (call_expression "gtk_tree_selection_get_tree_view(param_1)" (identifier "gtk_tree_selection_get_tree_view") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" (identifier "uVar2") (= "=") (call_expression "gtk_widget_get_type()" (identifier "gtk_widget_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "g_type_check_instance_cast(uVar1,uVar2);" (call_expression "g_type_check_instance_cast(uVar1,uVar2)" (identifier "g_type_check_instance_cast") (argument_list "(uVar1,uVar2)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (if_statement "if (*(int *)(param_2 + 4) != 0) {\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 4) != 0" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar3 = (int *)FUN_00043620();\n    if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }\n  }" ({ "{") (expression_statement "piVar3 = (int *)FUN_00043620();" (assignment_expression "piVar3 = (int *)FUN_00043620()" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_00043620()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00043620()" (identifier "FUN_00043620") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar3 != (int *)0x0) {\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);\n    }" ({ "{") (expression_statement "(**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);" (call_expression "(**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x10))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x10)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x10)" (* "*") (cast_expression "(code **)(*piVar3 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x10)" (( "(") (binary_expression "*piVar3 + 0x10" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3)" (( "(") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (, ",") (number_literal "3") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *treeselection,type_2 data)

{
  type_3 uVar1;
  type_3 uVar2;
  type_4 *w;
  type_5 *var_5;
  
  uVar1 = var_1(treeselection);
  uVar2 = var_2();
  w = (type_4 *)var_3(uVar1,uVar2);
  if (*(int *)((int)data + 4) != 0) {
    var_5 = var_4((type_6 *)((int)data + 4),w);
    if (var_5 != (type_5 *)0x0) {
      (*(var_5->ctrl->generic).handler)(var_5->ctrl,data,*(void **)((int)data + 8),3);
    }
  }
  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 (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (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)))))))) (return_statement))))

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

void MASKED(undefined4 param_1,int param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int *piVar3;
  
  uVar1 = gtk_tree_selection_get_tree_view(param_1);
  uVar2 = gtk_widget_get_type();
  g_type_check_instance_cast(uVar1,uVar2);
  if (*(int *)(param_2 + 4) != 0) {
    piVar3 = (int *)FUN_00043620();
    if (piVar3 != (int *)0x0) {
      (**(code **)(*piVar3 + 0x10))(*piVar3,param_2,*(undefined4 *)(param_2 + 8),3);
    }
  }
  return;
}

