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

void set_iconic(void *frontend,int iconic)

{
  undefined4 uVar1;
  
  uVar1 = gtk_window_get_type();
                    /* WARNING: Load size is inaccurate */
  if (iconic != 0) {
    uVar1 = g_type_check_instance_cast(*frontend,uVar1);
    gtk_window_iconify(uVar1);
    return;
  }
  uVar1 = g_type_check_instance_cast(*frontend,uVar1);
  gtk_window_deiconify(uVar1);
  return;
}



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

void FUN_000b3040(undefined4 *param_1,int param_2)

{
  undefined4 uVar1;
  
  uVar1 = gtk_window_get_type();
  if (param_2 != 0) {
    uVar1 = g_type_check_instance_cast(*param_1,uVar1);
    gtk_window_iconify(uVar1);
    return;
  }
  uVar1 = g_type_check_instance_cast(*param_1,uVar1);
  gtk_window_deiconify(uVar1);
  return;
}


PUSH EBX
CALL 0x0001c520
ADD EBX,0x8770a
SUB ESP,0x8
CALL 0x0001c060
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [EDX]
TEST ECX,ECX
JZ 0x000b3080
SUB ESP,0x8
PUSH EAX
PUSH EDX
CALL 0x0001a5e0
MOV dword ptr [ESP],EAX
CALL 0x0001abd0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
PUSH EAX
PUSH EDX
CALL 0x0001a5e0
MOV dword ptr [ESP],EAX
CALL 0x0001b7c0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000b3040(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n  if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}\n\n" comment (function_definition "void FUN_000b3040(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n  if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_000b3040(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n  if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = gtk_window_get_type();" (assignment_expression "uVar1 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (if_statement "if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }" { (expression_statement "uVar1 = g_type_check_instance_cast(*param_1,uVar1);" (assignment_expression "uVar1 = g_type_check_instance_cast(*param_1,uVar1)" identifier = (call_expression "g_type_check_instance_cast(*param_1,uVar1)" identifier (argument_list "(*param_1,uVar1)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "gtk_window_iconify(uVar1);" (call_expression "gtk_window_iconify(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = g_type_check_instance_cast(*param_1,uVar1);" (assignment_expression "uVar1 = g_type_check_instance_cast(*param_1,uVar1)" identifier = (call_expression "g_type_check_instance_cast(*param_1,uVar1)" identifier (argument_list "(*param_1,uVar1)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "gtk_window_deiconify(uVar1);" (call_expression "gtk_window_deiconify(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (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 set_iconic(void *frontend,int iconic)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n                    /* WARNING: Load size is inaccurate */\n  if (iconic != 0) {\n    uVar1 = g_type_check_instance_cast(*frontend,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*frontend,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}\n\n" comment comment (function_definition "void set_iconic(void *frontend,int iconic)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n                    /* WARNING: Load size is inaccurate */\n  if (iconic != 0) {\n    uVar1 = g_type_check_instance_cast(*frontend,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*frontend,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}" primitive_type (function_declarator "set_iconic(void *frontend,int iconic)" identifier (parameter_list "(void *frontend,int iconic)" ( (parameter_declaration "void *frontend" primitive_type (pointer_declarator "*frontend" * identifier)) , (parameter_declaration "int iconic" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n                    /* WARNING: Load size is inaccurate */\n  if (iconic != 0) {\n    uVar1 = g_type_check_instance_cast(*frontend,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*frontend,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = gtk_window_get_type();" (assignment_expression "uVar1 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) comment (if_statement "if (iconic != 0) {\n    uVar1 = g_type_check_instance_cast(*frontend,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }" if (parenthesized_expression "(iconic != 0)" ( (binary_expression "iconic != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = g_type_check_instance_cast(*frontend,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }" { (expression_statement "uVar1 = g_type_check_instance_cast(*frontend,uVar1);" (assignment_expression "uVar1 = g_type_check_instance_cast(*frontend,uVar1)" identifier = (call_expression "g_type_check_instance_cast(*frontend,uVar1)" identifier (argument_list "(*frontend,uVar1)" ( (pointer_expression "*frontend" * identifier) , identifier )))) ;) (expression_statement "gtk_window_iconify(uVar1);" (call_expression "gtk_window_iconify(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = g_type_check_instance_cast(*frontend,uVar1);" (assignment_expression "uVar1 = g_type_check_instance_cast(*frontend,uVar1)" identifier = (call_expression "g_type_check_instance_cast(*frontend,uVar1)" identifier (argument_list "(*frontend,uVar1)" ( (pointer_expression "*frontend" * identifier) , identifier )))) ;) (expression_statement "gtk_window_deiconify(uVar1);" (call_expression "gtk_window_deiconify(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000b3040(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n  if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}\n\n" (function_definition "void FUN_000b3040(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n  if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_000b3040(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n  if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = gtk_window_get_type();" (assignment_expression "uVar1 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (if_statement "if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }" { (expression_statement "uVar1 = g_type_check_instance_cast(*param_1,uVar1);" (assignment_expression "uVar1 = g_type_check_instance_cast(*param_1,uVar1)" identifier = (call_expression "g_type_check_instance_cast(*param_1,uVar1)" identifier (argument_list "(*param_1,uVar1)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "gtk_window_iconify(uVar1);" (call_expression "gtk_window_iconify(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar1 = g_type_check_instance_cast(*param_1,uVar1);" (assignment_expression "uVar1 = g_type_check_instance_cast(*param_1,uVar1)" identifier = (call_expression "g_type_check_instance_cast(*param_1,uVar1)" identifier (argument_list "(*param_1,uVar1)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "gtk_window_deiconify(uVar1);" (call_expression "gtk_window_deiconify(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000b3040(undefined4 *param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n  if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000b3040(undefined4 *param_1,int param_2)" (identifier "FUN_000b3040") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = gtk_window_get_type();\n  if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }\n  uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n  gtk_window_deiconify(uVar1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = gtk_window_get_type();" (assignment_expression "uVar1 = gtk_window_get_type()" (identifier "uVar1") (= "=") (call_expression "gtk_window_get_type()" (identifier "gtk_window_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (param_2 != 0) {\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = g_type_check_instance_cast(*param_1,uVar1);\n    gtk_window_iconify(uVar1);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = g_type_check_instance_cast(*param_1,uVar1);" (assignment_expression "uVar1 = g_type_check_instance_cast(*param_1,uVar1)" (identifier "uVar1") (= "=") (call_expression "g_type_check_instance_cast(*param_1,uVar1)" (identifier "g_type_check_instance_cast") (argument_list "(*param_1,uVar1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "gtk_window_iconify(uVar1);" (call_expression "gtk_window_iconify(uVar1)" (identifier "gtk_window_iconify") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar1 = g_type_check_instance_cast(*param_1,uVar1);" (assignment_expression "uVar1 = g_type_check_instance_cast(*param_1,uVar1)" (identifier "uVar1") (= "=") (call_expression "g_type_check_instance_cast(*param_1,uVar1)" (identifier "g_type_check_instance_cast") (argument_list "(*param_1,uVar1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "gtk_window_deiconify(uVar1);" (call_expression "gtk_window_deiconify(uVar1)" (identifier "gtk_window_deiconify") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (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(void *frontend,int var_2)

{
  type_1 uVar1;
  
  uVar1 = var_1();
                    /* WARNING: Load size is inaccurate */
  if (var_2 != 0) {
    uVar1 = var_3(*frontend,uVar1);
    var_4(uVar1);
    return;
  }
  uVar1 = var_3(*frontend,uVar1);
  var_5(uVar1);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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 (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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;
  
  uVar1 = gtk_window_get_type();
  if (param_2 != 0) {
    uVar1 = g_type_check_instance_cast(*param_1,uVar1);
    gtk_window_iconify(uVar1);
    return;
  }
  uVar1 = g_type_check_instance_cast(*param_1,uVar1);
  gtk_window_deiconify(uVar1);
  return;
}

