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

char * platform_get_x_display(void)

{
  undefined4 uVar1;
  char *pcVar2;
  
  uVar1 = gdk_display_get_default();
  pcVar2 = (char *)gdk_display_get_name(uVar1);
  if (pcVar2 != (char *)0x0) {
    pcVar2 = dupstr(pcVar2);
    return pcVar2;
  }
  pcVar2 = getenv("DISPLAY");
  pcVar2 = dupstr(pcVar2);
  return pcVar2;
}



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

void FUN_00062ed0(void)

{
  undefined4 uVar1;
  int iVar2;
  char *pcVar3;
  
  uVar1 = gdk_display_get_default();
  iVar2 = gdk_display_get_name(uVar1);
  if (iVar2 != 0) {
    FUN_0002d300(iVar2);
    return;
  }
  pcVar3 = getenv("DISPLAY");
  FUN_0002d300(pcVar3);
  return;
}


PUSH EBX
CALL 0x0001b410
ADD EBX,0x4d8ce
SUB ESP,0x8
CALL 0x00019e00
SUB ESP,0xc
PUSH EAX
CALL 0x0001a4d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00062f08
SUB ESP,0xc
PUSH EAX
CALL 0x0002d300
ADD ESP,0x18
POP EBX
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffd5293]
PUSH EAX
CALL 0x00019e90
ADD ESP,0x10
SUB ESP,0xc
PUSH EAX
CALL 0x0002d300
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00062ed0(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  uVar1 = gdk_display_get_default();\n  iVar2 = gdk_display_get_name(uVar1);\n  if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }\n  pcVar3 = getenv("DISPLAY");\n  FUN_0002d300(pcVar3);\n  return;\n}\n\n" comment (function_definition "void FUN_00062ed0(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  uVar1 = gdk_display_get_default();\n  iVar2 = gdk_display_get_name(uVar1);\n  if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }\n  pcVar3 = getenv("DISPLAY");\n  FUN_0002d300(pcVar3);\n  return;\n}" primitive_type (function_declarator "FUN_00062ed0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  uVar1 = gdk_display_get_default();\n  iVar2 = gdk_display_get_name(uVar1);\n  if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }\n  pcVar3 = getenv("DISPLAY");\n  FUN_0002d300(pcVar3);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = gdk_display_get_name(uVar1);" (assignment_expression "iVar2 = gdk_display_get_name(uVar1)" identifier = (call_expression "gdk_display_get_name(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0002d300(iVar2);\n    return;\n  }" { (expression_statement "FUN_0002d300(iVar2);" (call_expression "FUN_0002d300(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar3 = getenv("DISPLAY");" (assignment_expression "pcVar3 = getenv("DISPLAY")" identifier = (call_expression "getenv("DISPLAY")" identifier (argument_list "("DISPLAY")" ( (string_literal ""DISPLAY"" " string_content ") )))) ;) (expression_statement "FUN_0002d300(pcVar3);" (call_expression "FUN_0002d300(pcVar3)" identifier (argument_list "(pcVar3)" ( 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\nchar * platform_get_x_display(void)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  \n  uVar1 = gdk_display_get_default();\n  pcVar2 = (char *)gdk_display_get_name(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    pcVar2 = dupstr(pcVar2);\n    return pcVar2;\n  }\n  pcVar2 = getenv("DISPLAY");\n  pcVar2 = dupstr(pcVar2);\n  return pcVar2;\n}\n\n" comment comment (function_definition "char * platform_get_x_display(void)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  \n  uVar1 = gdk_display_get_default();\n  pcVar2 = (char *)gdk_display_get_name(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    pcVar2 = dupstr(pcVar2);\n    return pcVar2;\n  }\n  pcVar2 = getenv("DISPLAY");\n  pcVar2 = dupstr(pcVar2);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* platform_get_x_display(void)" * (function_declarator "platform_get_x_display(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined4 uVar1;\n  char *pcVar2;\n  \n  uVar1 = gdk_display_get_default();\n  pcVar2 = (char *)gdk_display_get_name(uVar1);\n  if (pcVar2 != (char *)0x0) {\n    pcVar2 = dupstr(pcVar2);\n    return pcVar2;\n  }\n  pcVar2 = getenv("DISPLAY");\n  pcVar2 = dupstr(pcVar2);\n  return pcVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = (char *)gdk_display_get_name(uVar1);" (assignment_expression "pcVar2 = (char *)gdk_display_get_name(uVar1)" identifier = (cast_expression "(char *)gdk_display_get_name(uVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gdk_display_get_name(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    pcVar2 = dupstr(pcVar2);\n    return pcVar2;\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = dupstr(pcVar2);\n    return pcVar2;\n  }" { (expression_statement "pcVar2 = dupstr(pcVar2);" (assignment_expression "pcVar2 = dupstr(pcVar2)" identifier = (call_expression "dupstr(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pcVar2 = getenv("DISPLAY");" (assignment_expression "pcVar2 = getenv("DISPLAY")" identifier = (call_expression "getenv("DISPLAY")" identifier (argument_list "("DISPLAY")" ( (string_literal ""DISPLAY"" " string_content ") )))) ;) (expression_statement "pcVar2 = dupstr(pcVar2);" (assignment_expression "pcVar2 = dupstr(pcVar2)" identifier = (call_expression "dupstr(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "void FUN_00062ed0(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  uVar1 = gdk_display_get_default();\n  iVar2 = gdk_display_get_name(uVar1);\n  if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }\n  pcVar3 = getenv("DISPLAY");\n  FUN_0002d300(pcVar3);\n  return;\n}\n\n" (function_definition "void FUN_00062ed0(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  uVar1 = gdk_display_get_default();\n  iVar2 = gdk_display_get_name(uVar1);\n  if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }\n  pcVar3 = getenv("DISPLAY");\n  FUN_0002d300(pcVar3);\n  return;\n}" primitive_type (function_declarator "FUN_00062ed0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  uVar1 = gdk_display_get_default();\n  iVar2 = gdk_display_get_name(uVar1);\n  if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }\n  pcVar3 = getenv("DISPLAY");\n  FUN_0002d300(pcVar3);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = gdk_display_get_name(uVar1);" (assignment_expression "iVar2 = gdk_display_get_name(uVar1)" identifier = (call_expression "gdk_display_get_name(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0002d300(iVar2);\n    return;\n  }" { (expression_statement "FUN_0002d300(iVar2);" (call_expression "FUN_0002d300(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar3 = getenv("DISPLAY");" (assignment_expression "pcVar3 = getenv("DISPLAY")" identifier = (call_expression "getenv("DISPLAY")" identifier (argument_list "("DISPLAY")" ( (string_literal ""DISPLAY"" " string_content ") )))) ;) (expression_statement "FUN_0002d300(pcVar3);" (call_expression "FUN_0002d300(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00062ed0(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  uVar1 = gdk_display_get_default();\n  iVar2 = gdk_display_get_name(uVar1);\n  if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }\n  pcVar3 = getenv("DISPLAY");\n  FUN_0002d300(pcVar3);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00062ed0(void)" (identifier "FUN_00062ed0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  uVar1 = gdk_display_get_default();\n  iVar2 = gdk_display_get_name(uVar1);\n  if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }\n  pcVar3 = getenv("DISPLAY");\n  FUN_0002d300(pcVar3);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" (identifier "uVar1") (= "=") (call_expression "gdk_display_get_default()" (identifier "gdk_display_get_default") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = gdk_display_get_name(uVar1);" (assignment_expression "iVar2 = gdk_display_get_name(uVar1)" (identifier "iVar2") (= "=") (call_expression "gdk_display_get_name(uVar1)" (identifier "gdk_display_get_name") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    FUN_0002d300(iVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0002d300(iVar2);\n    return;\n  }" ({ "{") (expression_statement "FUN_0002d300(iVar2);" (call_expression "FUN_0002d300(iVar2)" (identifier "FUN_0002d300") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar3 = getenv("DISPLAY");" (assignment_expression "pcVar3 = getenv("DISPLAY")" (identifier "pcVar3") (= "=") (call_expression "getenv("DISPLAY")" (identifier "getenv") (argument_list "("DISPLAY")" (( "(") (string_literal ""DISPLAY"" (" """) (string_content "DISPLAY") (" """)) () ")")))) (; ";")) (expression_statement "FUN_0002d300(pcVar3);" (call_expression "FUN_0002d300(pcVar3)" (identifier "FUN_0002d300") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

char * function_1(void)

{
  type_1 uVar1;
  char *var_3;
  
  uVar1 = var_1();
  var_3 = (char *)var_2(uVar1);
  if (var_3 != (char *)0x0) {
    var_3 = var_4(var_3);
    return var_3;
  }
  var_3 = var_5("DISPLAY");
  var_3 = var_4(var_3);
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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 (string_literal (string_content)))))) (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(void)

{
  undefined4 uVar1;
  int iVar2;
  char *pcVar3;
  
  uVar1 = gdk_display_get_default();
  iVar2 = gdk_display_get_name(uVar1);
  if (iVar2 != 0) {
    FUN_0002d300(iVar2);
    return;
  }
  pcVar3 = getenv("DISPLAY");
  FUN_0002d300(pcVar3);
  return;
}

