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

void set_title_and_icon(void *frontend,char *title,char *icon)

{
  undefined4 uVar1;
  char *pcVar2;
  undefined4 uVar3;
  int iVar4;
  
  safefree(*(void **)((int)frontend + 0xd00));
  pcVar2 = dupstr(title);
  *(char **)((int)frontend + 0xd00) = pcVar2;
  safefree(*(void **)((int)frontend + 0xd04));
  pcVar2 = dupstr(icon);
  uVar1 = *(undefined4 *)((int)frontend + 0xd00);
  *(char **)((int)frontend + 0xd04) = pcVar2;
  uVar3 = gtk_window_get_type();
                    /* WARNING: Load size is inaccurate */
  uVar3 = g_type_check_instance_cast(*frontend,uVar3);
  gtk_window_set_title(uVar3,uVar1);
  iVar4 = conf_get_int(*(Conf **)((int)frontend + 0x2238),0x72);
  if (iVar4 != 0) {
    return;
  }
  uVar1 = *(undefined4 *)((int)frontend + 0xd04);
                    /* WARNING: Load size is inaccurate */
  uVar3 = gtk_widget_get_window(*frontend);
  gdk_window_set_icon_name(uVar3,uVar1);
  return;
}



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

void FUN_00061c30(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  
  FUN_000301a0(param_1[0x340]);
  uVar1 = FUN_0002f040(param_2);
  param_1[0x340] = uVar1;
  FUN_000301a0(param_1[0x341]);
  uVar2 = FUN_0002f040(param_3);
  uVar1 = param_1[0x340];
  param_1[0x341] = uVar2;
  uVar2 = gtk_window_get_type();
  uVar2 = g_type_check_instance_cast(*param_1,uVar2);
  gtk_window_set_title(uVar2,uVar1);
  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);
  if (iVar3 != 0) {
    return;
  }
  uVar1 = param_1[0x341];
  uVar2 = gtk_widget_get_window(*param_1);
  gdk_window_set_icon_name(uVar2,uVar1);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x0001a360
ADD EBX,0x53ba8
SUB ESP,0xc
PUSH dword ptr [ESI + 0xd00]
CALL 0x000301a0
POP EDI
PUSH dword ptr [ESP + 0x20]
CALL 0x0002f040
MOV dword ptr [ESI + 0xd00],EAX
POP EAX
PUSH dword ptr [ESI + 0xd04]
CALL 0x000301a0
POP EAX
PUSH dword ptr [ESP + 0x24]
CALL 0x0002f040
MOV EDI,dword ptr [ESI + 0xd00]
MOV dword ptr [ESI + 0xd04],EAX
CALL 0x00019ef0
POP EDX
POP ECX
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00018580
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x00018d90
POP EDI
POP EAX
PUSH 0x72
PUSH dword ptr [ESI + 0x2238]
CALL 0x0001ed10
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00061cb8
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
MOV EDI,dword ptr [ESI + 0xd04]
PUSH dword ptr [ESI]
CALL 0x000185e0
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x00018d50
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_00061c30(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  FUN_000301a0(param_1[0x340]);\n  uVar1 = FUN_0002f040(param_2);\n  param_1[0x340] = uVar1;\n  FUN_000301a0(param_1[0x341]);\n  uVar2 = FUN_0002f040(param_3);\n  uVar1 = param_1[0x340];\n  param_1[0x341] = uVar2;\n  uVar2 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(*param_1,uVar2);\n  gtk_window_set_title(uVar2,uVar1);\n  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);\n  if (iVar3 != 0) {\n    return;\n  }\n  uVar1 = param_1[0x341];\n  uVar2 = gtk_widget_get_window(*param_1);\n  gdk_window_set_icon_name(uVar2,uVar1);\n  return;\n}\n\n" comment (function_definition "void FUN_00061c30(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  FUN_000301a0(param_1[0x340]);\n  uVar1 = FUN_0002f040(param_2);\n  param_1[0x340] = uVar1;\n  FUN_000301a0(param_1[0x341]);\n  uVar2 = FUN_0002f040(param_3);\n  uVar1 = param_1[0x340];\n  param_1[0x341] = uVar2;\n  uVar2 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(*param_1,uVar2);\n  gtk_window_set_title(uVar2,uVar1);\n  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);\n  if (iVar3 != 0) {\n    return;\n  }\n  uVar1 = param_1[0x341];\n  uVar2 = gtk_widget_get_window(*param_1);\n  gdk_window_set_icon_name(uVar2,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00061c30(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  FUN_000301a0(param_1[0x340]);\n  uVar1 = FUN_0002f040(param_2);\n  param_1[0x340] = uVar1;\n  FUN_000301a0(param_1[0x341]);\n  uVar2 = FUN_0002f040(param_3);\n  uVar1 = param_1[0x340];\n  param_1[0x341] = uVar2;\n  uVar2 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(*param_1,uVar2);\n  gtk_window_set_title(uVar2,uVar1);\n  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);\n  if (iVar3 != 0) {\n    return;\n  }\n  uVar1 = param_1[0x341];\n  uVar2 = gtk_widget_get_window(*param_1);\n  gdk_window_set_icon_name(uVar2,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "FUN_000301a0(param_1[0x340]);" (call_expression "FUN_000301a0(param_1[0x340])" identifier (argument_list "(param_1[0x340])" ( (subscript_expression "param_1[0x340]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar1 = FUN_0002f040(param_2);" (assignment_expression "uVar1 = FUN_0002f040(param_2)" identifier = (call_expression "FUN_0002f040(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_1[0x340] = uVar1;" (assignment_expression "param_1[0x340] = uVar1" (subscript_expression "param_1[0x340]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_000301a0(param_1[0x341]);" (call_expression "FUN_000301a0(param_1[0x341])" identifier (argument_list "(param_1[0x341])" ( (subscript_expression "param_1[0x341]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar2 = FUN_0002f040(param_3);" (assignment_expression "uVar2 = FUN_0002f040(param_3)" identifier = (call_expression "FUN_0002f040(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar1 = param_1[0x340];" (assignment_expression "uVar1 = param_1[0x340]" identifier = (subscript_expression "param_1[0x340]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x341] = uVar2;" (assignment_expression "param_1[0x341] = uVar2" (subscript_expression "param_1[0x341]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = gtk_window_get_type();" (assignment_expression "uVar2 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(*param_1,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(*param_1,uVar2)" identifier = (call_expression "g_type_check_instance_cast(*param_1,uVar2)" identifier (argument_list "(*param_1,uVar2)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "gtk_window_set_title(uVar2,uVar1);" (call_expression "gtk_window_set_title(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = FUN_0001ed10(param_1[0x88e],0x72);" (assignment_expression "iVar3 = FUN_0001ed10(param_1[0x88e],0x72)" identifier = (call_expression "FUN_0001ed10(param_1[0x88e],0x72)" identifier (argument_list "(param_1[0x88e],0x72)" ( (subscript_expression "param_1[0x88e]" identifier [ number_literal ]) , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar1 = param_1[0x341];" (assignment_expression "uVar1 = param_1[0x341]" identifier = (subscript_expression "param_1[0x341]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = gtk_widget_get_window(*param_1);" (assignment_expression "uVar2 = gtk_widget_get_window(*param_1)" identifier = (call_expression "gtk_widget_get_window(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "gdk_window_set_icon_name(uVar2,uVar1);" (call_expression "gdk_window_set_icon_name(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , 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_title_and_icon(void *frontend,char *title,char *icon)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  safefree(*(void **)((int)frontend + 0xd00));\n  pcVar2 = dupstr(title);\n  *(char **)((int)frontend + 0xd00) = pcVar2;\n  safefree(*(void **)((int)frontend + 0xd04));\n  pcVar2 = dupstr(icon);\n  uVar1 = *(undefined4 *)((int)frontend + 0xd00);\n  *(char **)((int)frontend + 0xd04) = pcVar2;\n  uVar3 = gtk_window_get_type();\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = g_type_check_instance_cast(*frontend,uVar3);\n  gtk_window_set_title(uVar3,uVar1);\n  iVar4 = conf_get_int(*(Conf **)((int)frontend + 0x2238),0x72);\n  if (iVar4 != 0) {\n    return;\n  }\n  uVar1 = *(undefined4 *)((int)frontend + 0xd04);\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = gtk_widget_get_window(*frontend);\n  gdk_window_set_icon_name(uVar3,uVar1);\n  return;\n}\n\n" comment comment (function_definition "void set_title_and_icon(void *frontend,char *title,char *icon)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  safefree(*(void **)((int)frontend + 0xd00));\n  pcVar2 = dupstr(title);\n  *(char **)((int)frontend + 0xd00) = pcVar2;\n  safefree(*(void **)((int)frontend + 0xd04));\n  pcVar2 = dupstr(icon);\n  uVar1 = *(undefined4 *)((int)frontend + 0xd00);\n  *(char **)((int)frontend + 0xd04) = pcVar2;\n  uVar3 = gtk_window_get_type();\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = g_type_check_instance_cast(*frontend,uVar3);\n  gtk_window_set_title(uVar3,uVar1);\n  iVar4 = conf_get_int(*(Conf **)((int)frontend + 0x2238),0x72);\n  if (iVar4 != 0) {\n    return;\n  }\n  uVar1 = *(undefined4 *)((int)frontend + 0xd04);\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = gtk_widget_get_window(*frontend);\n  gdk_window_set_icon_name(uVar3,uVar1);\n  return;\n}" primitive_type (function_declarator "set_title_and_icon(void *frontend,char *title,char *icon)" identifier (parameter_list "(void *frontend,char *title,char *icon)" ( (parameter_declaration "void *frontend" primitive_type (pointer_declarator "*frontend" * identifier)) , (parameter_declaration "char *title" primitive_type (pointer_declarator "*title" * identifier)) , (parameter_declaration "char *icon" primitive_type (pointer_declarator "*icon" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int iVar4;\n  \n  safefree(*(void **)((int)frontend + 0xd00));\n  pcVar2 = dupstr(title);\n  *(char **)((int)frontend + 0xd00) = pcVar2;\n  safefree(*(void **)((int)frontend + 0xd04));\n  pcVar2 = dupstr(icon);\n  uVar1 = *(undefined4 *)((int)frontend + 0xd00);\n  *(char **)((int)frontend + 0xd04) = pcVar2;\n  uVar3 = gtk_window_get_type();\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = g_type_check_instance_cast(*frontend,uVar3);\n  gtk_window_set_title(uVar3,uVar1);\n  iVar4 = conf_get_int(*(Conf **)((int)frontend + 0x2238),0x72);\n  if (iVar4 != 0) {\n    return;\n  }\n  uVar1 = *(undefined4 *)((int)frontend + 0xd04);\n                    /* WARNING: Load size is inaccurate */\n  uVar3 = gtk_widget_get_window(*frontend);\n  gdk_window_set_icon_name(uVar3,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "safefree(*(void **)((int)frontend + 0xd00));" (call_expression "safefree(*(void **)((int)frontend + 0xd00))" identifier (argument_list "(*(void **)((int)frontend + 0xd00))" ( (pointer_expression "*(void **)((int)frontend + 0xd00)" * (cast_expression "(void **)((int)frontend + 0xd00)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)frontend + 0xd00)" ( (binary_expression "(int)frontend + 0xd00" (cast_expression "(int)frontend" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "pcVar2 = dupstr(title);" (assignment_expression "pcVar2 = dupstr(title)" identifier = (call_expression "dupstr(title)" identifier (argument_list "(title)" ( identifier )))) ;) (expression_statement "*(char **)((int)frontend + 0xd00) = pcVar2;" (assignment_expression "*(char **)((int)frontend + 0xd00) = pcVar2" (pointer_expression "*(char **)((int)frontend + 0xd00)" * (cast_expression "(char **)((int)frontend + 0xd00)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)frontend + 0xd00)" ( (binary_expression "(int)frontend + 0xd00" (cast_expression "(int)frontend" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "safefree(*(void **)((int)frontend + 0xd04));" (call_expression "safefree(*(void **)((int)frontend + 0xd04))" identifier (argument_list "(*(void **)((int)frontend + 0xd04))" ( (pointer_expression "*(void **)((int)frontend + 0xd04)" * (cast_expression "(void **)((int)frontend + 0xd04)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)frontend + 0xd04)" ( (binary_expression "(int)frontend + 0xd04" (cast_expression "(int)frontend" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "pcVar2 = dupstr(icon);" (assignment_expression "pcVar2 = dupstr(icon)" identifier = (call_expression "dupstr(icon)" identifier (argument_list "(icon)" ( identifier )))) ;) (expression_statement "uVar1 = *(undefined4 *)((int)frontend + 0xd00);" (assignment_expression "uVar1 = *(undefined4 *)((int)frontend + 0xd00)" identifier = (pointer_expression "*(undefined4 *)((int)frontend + 0xd00)" * (cast_expression "(undefined4 *)((int)frontend + 0xd00)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)frontend + 0xd00)" ( (binary_expression "(int)frontend + 0xd00" (cast_expression "(int)frontend" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(char **)((int)frontend + 0xd04) = pcVar2;" (assignment_expression "*(char **)((int)frontend + 0xd04) = pcVar2" (pointer_expression "*(char **)((int)frontend + 0xd04)" * (cast_expression "(char **)((int)frontend + 0xd04)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)frontend + 0xd04)" ( (binary_expression "(int)frontend + 0xd04" (cast_expression "(int)frontend" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = gtk_window_get_type();" (assignment_expression "uVar3 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "uVar3 = g_type_check_instance_cast(*frontend,uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(*frontend,uVar3)" identifier = (call_expression "g_type_check_instance_cast(*frontend,uVar3)" identifier (argument_list "(*frontend,uVar3)" ( (pointer_expression "*frontend" * identifier) , identifier )))) ;) (expression_statement "gtk_window_set_title(uVar3,uVar1);" (call_expression "gtk_window_set_title(uVar3,uVar1)" identifier (argument_list "(uVar3,uVar1)" ( identifier , identifier ))) ;) (expression_statement "iVar4 = conf_get_int(*(Conf **)((int)frontend + 0x2238),0x72);" (assignment_expression "iVar4 = conf_get_int(*(Conf **)((int)frontend + 0x2238),0x72)" identifier = (call_expression "conf_get_int(*(Conf **)((int)frontend + 0x2238),0x72)" identifier (argument_list "(*(Conf **)((int)frontend + 0x2238),0x72)" ( (pointer_expression "*(Conf **)((int)frontend + 0x2238)" * (cast_expression "(Conf **)((int)frontend + 0x2238)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)frontend + 0x2238)" ( (binary_expression "(int)frontend + 0x2238" (cast_expression "(int)frontend" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar1 = *(undefined4 *)((int)frontend + 0xd04);" (assignment_expression "uVar1 = *(undefined4 *)((int)frontend + 0xd04)" identifier = (pointer_expression "*(undefined4 *)((int)frontend + 0xd04)" * (cast_expression "(undefined4 *)((int)frontend + 0xd04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)frontend + 0xd04)" ( (binary_expression "(int)frontend + 0xd04" (cast_expression "(int)frontend" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) comment (expression_statement "uVar3 = gtk_widget_get_window(*frontend);" (assignment_expression "uVar3 = gtk_widget_get_window(*frontend)" identifier = (call_expression "gtk_widget_get_window(*frontend)" identifier (argument_list "(*frontend)" ( (pointer_expression "*frontend" * identifier) )))) ;) (expression_statement "gdk_window_set_icon_name(uVar3,uVar1);" (call_expression "gdk_window_set_icon_name(uVar3,uVar1)" identifier (argument_list "(uVar3,uVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00061c30(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  FUN_000301a0(param_1[0x340]);\n  uVar1 = FUN_0002f040(param_2);\n  param_1[0x340] = uVar1;\n  FUN_000301a0(param_1[0x341]);\n  uVar2 = FUN_0002f040(param_3);\n  uVar1 = param_1[0x340];\n  param_1[0x341] = uVar2;\n  uVar2 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(*param_1,uVar2);\n  gtk_window_set_title(uVar2,uVar1);\n  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);\n  if (iVar3 != 0) {\n    return;\n  }\n  uVar1 = param_1[0x341];\n  uVar2 = gtk_widget_get_window(*param_1);\n  gdk_window_set_icon_name(uVar2,uVar1);\n  return;\n}\n\n" (function_definition "void FUN_00061c30(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  FUN_000301a0(param_1[0x340]);\n  uVar1 = FUN_0002f040(param_2);\n  param_1[0x340] = uVar1;\n  FUN_000301a0(param_1[0x341]);\n  uVar2 = FUN_0002f040(param_3);\n  uVar1 = param_1[0x340];\n  param_1[0x341] = uVar2;\n  uVar2 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(*param_1,uVar2);\n  gtk_window_set_title(uVar2,uVar1);\n  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);\n  if (iVar3 != 0) {\n    return;\n  }\n  uVar1 = param_1[0x341];\n  uVar2 = gtk_widget_get_window(*param_1);\n  gdk_window_set_icon_name(uVar2,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00061c30(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  FUN_000301a0(param_1[0x340]);\n  uVar1 = FUN_0002f040(param_2);\n  param_1[0x340] = uVar1;\n  FUN_000301a0(param_1[0x341]);\n  uVar2 = FUN_0002f040(param_3);\n  uVar1 = param_1[0x340];\n  param_1[0x341] = uVar2;\n  uVar2 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(*param_1,uVar2);\n  gtk_window_set_title(uVar2,uVar1);\n  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);\n  if (iVar3 != 0) {\n    return;\n  }\n  uVar1 = param_1[0x341];\n  uVar2 = gtk_widget_get_window(*param_1);\n  gdk_window_set_icon_name(uVar2,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "FUN_000301a0(param_1[0x340]);" (call_expression "FUN_000301a0(param_1[0x340])" identifier (argument_list "(param_1[0x340])" ( (subscript_expression "param_1[0x340]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar1 = FUN_0002f040(param_2);" (assignment_expression "uVar1 = FUN_0002f040(param_2)" identifier = (call_expression "FUN_0002f040(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "param_1[0x340] = uVar1;" (assignment_expression "param_1[0x340] = uVar1" (subscript_expression "param_1[0x340]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_000301a0(param_1[0x341]);" (call_expression "FUN_000301a0(param_1[0x341])" identifier (argument_list "(param_1[0x341])" ( (subscript_expression "param_1[0x341]" identifier [ number_literal ]) ))) ;) (expression_statement "uVar2 = FUN_0002f040(param_3);" (assignment_expression "uVar2 = FUN_0002f040(param_3)" identifier = (call_expression "FUN_0002f040(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "uVar1 = param_1[0x340];" (assignment_expression "uVar1 = param_1[0x340]" identifier = (subscript_expression "param_1[0x340]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x341] = uVar2;" (assignment_expression "param_1[0x341] = uVar2" (subscript_expression "param_1[0x341]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = gtk_window_get_type();" (assignment_expression "uVar2 = gtk_window_get_type()" identifier = (call_expression "gtk_window_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = g_type_check_instance_cast(*param_1,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(*param_1,uVar2)" identifier = (call_expression "g_type_check_instance_cast(*param_1,uVar2)" identifier (argument_list "(*param_1,uVar2)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "gtk_window_set_title(uVar2,uVar1);" (call_expression "gtk_window_set_title(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier ))) ;) (expression_statement "iVar3 = FUN_0001ed10(param_1[0x88e],0x72);" (assignment_expression "iVar3 = FUN_0001ed10(param_1[0x88e],0x72)" identifier = (call_expression "FUN_0001ed10(param_1[0x88e],0x72)" identifier (argument_list "(param_1[0x88e],0x72)" ( (subscript_expression "param_1[0x88e]" identifier [ number_literal ]) , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "uVar1 = param_1[0x341];" (assignment_expression "uVar1 = param_1[0x341]" identifier = (subscript_expression "param_1[0x341]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = gtk_widget_get_window(*param_1);" (assignment_expression "uVar2 = gtk_widget_get_window(*param_1)" identifier = (call_expression "gtk_widget_get_window(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "gdk_window_set_icon_name(uVar2,uVar1);" (call_expression "gdk_window_set_icon_name(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , 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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00061c30(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  FUN_000301a0(param_1[0x340]);\n  uVar1 = FUN_0002f040(param_2);\n  param_1[0x340] = uVar1;\n  FUN_000301a0(param_1[0x341]);\n  uVar2 = FUN_0002f040(param_3);\n  uVar1 = param_1[0x340];\n  param_1[0x341] = uVar2;\n  uVar2 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(*param_1,uVar2);\n  gtk_window_set_title(uVar2,uVar1);\n  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);\n  if (iVar3 != 0) {\n    return;\n  }\n  uVar1 = param_1[0x341];\n  uVar2 = gtk_widget_get_window(*param_1);\n  gdk_window_set_icon_name(uVar2,uVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00061c30(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00061c30") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  FUN_000301a0(param_1[0x340]);\n  uVar1 = FUN_0002f040(param_2);\n  param_1[0x340] = uVar1;\n  FUN_000301a0(param_1[0x341]);\n  uVar2 = FUN_0002f040(param_3);\n  uVar1 = param_1[0x340];\n  param_1[0x341] = uVar2;\n  uVar2 = gtk_window_get_type();\n  uVar2 = g_type_check_instance_cast(*param_1,uVar2);\n  gtk_window_set_title(uVar2,uVar1);\n  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);\n  if (iVar3 != 0) {\n    return;\n  }\n  uVar1 = param_1[0x341];\n  uVar2 = gtk_widget_get_window(*param_1);\n  gdk_window_set_icon_name(uVar2,uVar1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "FUN_000301a0(param_1[0x340]);" (call_expression "FUN_000301a0(param_1[0x340])" (identifier "FUN_000301a0") (argument_list "(param_1[0x340])" (( "(") (subscript_expression "param_1[0x340]" (identifier "param_1") ([ "[") (number_literal "0x340") (] "]")) () ")"))) (; ";")) (expression_statement "uVar1 = FUN_0002f040(param_2);" (assignment_expression "uVar1 = FUN_0002f040(param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_0002f040(param_2)" (identifier "FUN_0002f040") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "param_1[0x340] = uVar1;" (assignment_expression "param_1[0x340] = uVar1" (subscript_expression "param_1[0x340]" (identifier "param_1") ([ "[") (number_literal "0x340") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "FUN_000301a0(param_1[0x341]);" (call_expression "FUN_000301a0(param_1[0x341])" (identifier "FUN_000301a0") (argument_list "(param_1[0x341])" (( "(") (subscript_expression "param_1[0x341]" (identifier "param_1") ([ "[") (number_literal "0x341") (] "]")) () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0002f040(param_3);" (assignment_expression "uVar2 = FUN_0002f040(param_3)" (identifier "uVar2") (= "=") (call_expression "FUN_0002f040(param_3)" (identifier "FUN_0002f040") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "uVar1 = param_1[0x340];" (assignment_expression "uVar1 = param_1[0x340]" (identifier "uVar1") (= "=") (subscript_expression "param_1[0x340]" (identifier "param_1") ([ "[") (number_literal "0x340") (] "]"))) (; ";")) (expression_statement "param_1[0x341] = uVar2;" (assignment_expression "param_1[0x341] = uVar2" (subscript_expression "param_1[0x341]" (identifier "param_1") ([ "[") (number_literal "0x341") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = gtk_window_get_type();" (assignment_expression "uVar2 = gtk_window_get_type()" (identifier "uVar2") (= "=") (call_expression "gtk_window_get_type()" (identifier "gtk_window_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = g_type_check_instance_cast(*param_1,uVar2);" (assignment_expression "uVar2 = g_type_check_instance_cast(*param_1,uVar2)" (identifier "uVar2") (= "=") (call_expression "g_type_check_instance_cast(*param_1,uVar2)" (identifier "g_type_check_instance_cast") (argument_list "(*param_1,uVar2)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "gtk_window_set_title(uVar2,uVar1);" (call_expression "gtk_window_set_title(uVar2,uVar1)" (identifier "gtk_window_set_title") (argument_list "(uVar2,uVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_0001ed10(param_1[0x88e],0x72);" (assignment_expression "iVar3 = FUN_0001ed10(param_1[0x88e],0x72)" (identifier "iVar3") (= "=") (call_expression "FUN_0001ed10(param_1[0x88e],0x72)" (identifier "FUN_0001ed10") (argument_list "(param_1[0x88e],0x72)" (( "(") (subscript_expression "param_1[0x88e]" (identifier "param_1") ([ "[") (number_literal "0x88e") (] "]")) (, ",") (number_literal "0x72") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar1 = param_1[0x341];" (assignment_expression "uVar1 = param_1[0x341]" (identifier "uVar1") (= "=") (subscript_expression "param_1[0x341]" (identifier "param_1") ([ "[") (number_literal "0x341") (] "]"))) (; ";")) (expression_statement "uVar2 = gtk_widget_get_window(*param_1);" (assignment_expression "uVar2 = gtk_widget_get_window(*param_1)" (identifier "uVar2") (= "=") (call_expression "gtk_widget_get_window(*param_1)" (identifier "gtk_widget_get_window") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "gdk_window_set_icon_name(uVar2,uVar1);" (call_expression "gdk_window_set_icon_name(uVar2,uVar1)" (identifier "gdk_window_set_icon_name") (argument_list "(uVar2,uVar1)" (( "(") (identifier "uVar2") (, ",") (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,char *title,char *icon)

{
  type_1 uVar1;
  char *pcVar2;
  type_1 uVar3;
  int var_7;
  
  var_1(*(void **)((int)frontend + 0xd00));
  pcVar2 = var_2(title);
  *(char **)((int)frontend + 0xd00) = pcVar2;
  var_1(*(void **)((int)frontend + 0xd04));
  pcVar2 = var_2(icon);
  uVar1 = *(type_1 *)((int)frontend + 0xd00);
  *(char **)((int)frontend + 0xd04) = pcVar2;
  uVar3 = var_3();
                    /* WARNING: Load size is inaccurate */
  uVar3 = var_4(*frontend,uVar3);
  var_5(uVar3,uVar1);
  var_7 = var_6(*(type_2 **)((int)frontend + 0x2238),0x72);
  if (var_7 != 0) {
    return;
  }
  uVar1 = *(type_1 *)((int)frontend + 0xd04);
                    /* WARNING: Load size is inaccurate */
  uVar3 = var_8(*frontend);
  var_9(uVar3,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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

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

void MASKED(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  
  FUN_000301a0(param_1[0x340]);
  uVar1 = FUN_0002f040(param_2);
  param_1[0x340] = uVar1;
  FUN_000301a0(param_1[0x341]);
  uVar2 = FUN_0002f040(param_3);
  uVar1 = param_1[0x340];
  param_1[0x341] = uVar2;
  uVar2 = gtk_window_get_type();
  uVar2 = g_type_check_instance_cast(*param_1,uVar2);
  gtk_window_set_title(uVar2,uVar1);
  iVar3 = FUN_0001ed10(param_1[0x88e],0x72);
  if (iVar3 != 0) {
    return;
  }
  uVar1 = param_1[0x341];
  uVar2 = gtk_widget_get_window(*param_1);
  gdk_window_set_icon_name(uVar2,uVar1);
  return;
}

