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

void x11_free_display(X11Display *disp)

{
  uchar *b;
  
  safefree(disp->hostname);
  safefree(disp->unixsocketpath);
  b = disp->localauthdata;
  if (b != (uchar *)0x0) {
    smemclr(b,disp->localauthdatalen);
    b = disp->localauthdata;
  }
  safefree(b);
  sk_addr_free(disp->addr);
  safefree(disp);
  return;
}



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

void FUN_000c4a50(int param_1)

{
  int iVar1;
  
  FUN_00032b40(*(undefined4 *)(param_1 + 4));
  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));
  iVar1 = *(int *)(param_1 + 0x24);
  if (iVar1 != 0) {
    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));
    iVar1 = *(int *)(param_1 + 0x24);
  }
  FUN_00032b40(iVar1);
  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));
  FUN_00032b40(param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x0001c520
ADD EBX,0x75cf9
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
PUSH dword ptr [ESI + 0x4]
CALL 0x00032b40
POP EDX
PUSH dword ptr [ESI + 0x10]
CALL 0x00032b40
MOV EAX,dword ptr [ESI + 0x24]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000c4a91
SUB ESP,0x8
PUSH dword ptr [ESI + 0x28]
PUSH EAX
CALL 0x00032c20
MOV EAX,dword ptr [ESI + 0x24]
ADD ESP,0x10
SUB ESP,0xc
PUSH EAX
CALL 0x00032b40
POP EAX
PUSH dword ptr [ESI + 0x14]
CALL 0x000bbbd0
MOV dword ptr [ESP],ESI
CALL 0x00032b40
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000c4a50(int param_1)\n\n{\n  int iVar1;\n  \n  FUN_00032b40(*(undefined4 *)(param_1 + 4));\n  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  FUN_00032b40(iVar1);\n  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));\n  FUN_00032b40(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_000c4a50(int param_1)\n\n{\n  int iVar1;\n  \n  FUN_00032b40(*(undefined4 *)(param_1 + 4));\n  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  FUN_00032b40(iVar1);\n  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));\n  FUN_00032b40(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000c4a50(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  FUN_00032b40(*(undefined4 *)(param_1 + 4));\n  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  FUN_00032b40(iVar1);\n  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));\n  FUN_00032b40(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "FUN_00032b40(*(undefined4 *)(param_1 + 4));" (call_expression "FUN_00032b40(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00032b40(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_00032b40(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" { (expression_statement "FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));" (call_expression "FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28))" identifier (argument_list "(iVar1,*(undefined4 *)(param_1 + 0x28))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_00032b40(iVar1);" (call_expression "FUN_00032b40(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00032b40(param_1);" (call_expression "FUN_00032b40(param_1)" identifier (argument_list "(param_1)" ( 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/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid x11_free_display(X11Display *disp)\n\n{\n  uchar *b;\n  \n  safefree(disp->hostname);\n  safefree(disp->unixsocketpath);\n  b = disp->localauthdata;\n  if (b != (uchar *)0x0) {\n    smemclr(b,disp->localauthdatalen);\n    b = disp->localauthdata;\n  }\n  safefree(b);\n  sk_addr_free(disp->addr);\n  safefree(disp);\n  return;\n}\n\n" comment comment comment (function_definition "void x11_free_display(X11Display *disp)\n\n{\n  uchar *b;\n  \n  safefree(disp->hostname);\n  safefree(disp->unixsocketpath);\n  b = disp->localauthdata;\n  if (b != (uchar *)0x0) {\n    smemclr(b,disp->localauthdatalen);\n    b = disp->localauthdata;\n  }\n  safefree(b);\n  sk_addr_free(disp->addr);\n  safefree(disp);\n  return;\n}" primitive_type (function_declarator "x11_free_display(X11Display *disp)" identifier (parameter_list "(X11Display *disp)" ( (parameter_declaration "X11Display *disp" type_identifier (pointer_declarator "*disp" * identifier)) ))) (compound_statement "{\n  uchar *b;\n  \n  safefree(disp->hostname);\n  safefree(disp->unixsocketpath);\n  b = disp->localauthdata;\n  if (b != (uchar *)0x0) {\n    smemclr(b,disp->localauthdatalen);\n    b = disp->localauthdata;\n  }\n  safefree(b);\n  sk_addr_free(disp->addr);\n  safefree(disp);\n  return;\n}" { (declaration "uchar *b;" type_identifier (pointer_declarator "*b" * identifier) ;) (expression_statement "safefree(disp->hostname);" (call_expression "safefree(disp->hostname)" identifier (argument_list "(disp->hostname)" ( (field_expression "disp->hostname" identifier -> field_identifier) ))) ;) (expression_statement "safefree(disp->unixsocketpath);" (call_expression "safefree(disp->unixsocketpath)" identifier (argument_list "(disp->unixsocketpath)" ( (field_expression "disp->unixsocketpath" identifier -> field_identifier) ))) ;) (expression_statement "b = disp->localauthdata;" (assignment_expression "b = disp->localauthdata" identifier = (field_expression "disp->localauthdata" identifier -> field_identifier)) ;) (if_statement "if (b != (uchar *)0x0) {\n    smemclr(b,disp->localauthdatalen);\n    b = disp->localauthdata;\n  }" if (parenthesized_expression "(b != (uchar *)0x0)" ( (binary_expression "b != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    smemclr(b,disp->localauthdatalen);\n    b = disp->localauthdata;\n  }" { (expression_statement "smemclr(b,disp->localauthdatalen);" (call_expression "smemclr(b,disp->localauthdatalen)" identifier (argument_list "(b,disp->localauthdatalen)" ( identifier , (field_expression "disp->localauthdatalen" identifier -> field_identifier) ))) ;) (expression_statement "b = disp->localauthdata;" (assignment_expression "b = disp->localauthdata" identifier = (field_expression "disp->localauthdata" identifier -> field_identifier)) ;) })) (expression_statement "safefree(b);" (call_expression "safefree(b)" identifier (argument_list "(b)" ( identifier ))) ;) (expression_statement "sk_addr_free(disp->addr);" (call_expression "sk_addr_free(disp->addr)" identifier (argument_list "(disp->addr)" ( (field_expression "disp->addr" identifier -> field_identifier) ))) ;) (expression_statement "safefree(disp);" (call_expression "safefree(disp)" identifier (argument_list "(disp)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000c4a50(int param_1)\n\n{\n  int iVar1;\n  \n  FUN_00032b40(*(undefined4 *)(param_1 + 4));\n  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  FUN_00032b40(iVar1);\n  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));\n  FUN_00032b40(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000c4a50(int param_1)\n\n{\n  int iVar1;\n  \n  FUN_00032b40(*(undefined4 *)(param_1 + 4));\n  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  FUN_00032b40(iVar1);\n  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));\n  FUN_00032b40(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000c4a50(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  FUN_00032b40(*(undefined4 *)(param_1 + 4));\n  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  FUN_00032b40(iVar1);\n  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));\n  FUN_00032b40(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "FUN_00032b40(*(undefined4 *)(param_1 + 4));" (call_expression "FUN_00032b40(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00032b40(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_00032b40(*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" { (expression_statement "FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));" (call_expression "FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28))" identifier (argument_list "(iVar1,*(undefined4 *)(param_1 + 0x28))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_00032b40(iVar1);" (call_expression "FUN_00032b40(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00032b40(param_1);" (call_expression "FUN_00032b40(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000c4a50(int param_1)\n\n{\n  int iVar1;\n  \n  FUN_00032b40(*(undefined4 *)(param_1 + 4));\n  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  FUN_00032b40(iVar1);\n  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));\n  FUN_00032b40(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000c4a50(int param_1)" (identifier "FUN_000c4a50") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  FUN_00032b40(*(undefined4 *)(param_1 + 4));\n  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  FUN_00032b40(iVar1);\n  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));\n  FUN_00032b40(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "FUN_00032b40(*(undefined4 *)(param_1 + 4));" (call_expression "FUN_00032b40(*(undefined4 *)(param_1 + 4))" (identifier "FUN_00032b40") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00032b40(*(undefined4 *)(param_1 + 0x10));" (call_expression "FUN_00032b40(*(undefined4 *)(param_1 + 0x10))" (identifier "FUN_00032b40") (argument_list "(*(undefined4 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" ({ "{") (expression_statement "FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));" (call_expression "FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28))" (identifier "FUN_00032c20") (argument_list "(iVar1,*(undefined4 *)(param_1 + 0x28))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_00032b40(iVar1);" (call_expression "FUN_00032b40(iVar1)" (identifier "FUN_00032b40") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_000bbbd0") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00032b40(param_1);" (call_expression "FUN_00032b40(param_1)" (identifier "FUN_00032b40") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *disp)

{
  type_2 *var_2;
  
  var_1(disp->hostname);
  var_1(disp->unixsocketpath);
  var_2 = disp->localauthdata;
  if (var_2 != (type_2 *)0x0) {
    var_3(var_2,disp->localauthdatalen);
    var_2 = disp->localauthdata;
  }
  var_1(var_2);
  var_4(disp->addr);
  var_1(disp);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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) (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)))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (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(int param_1)

{
  int iVar1;
  
  FUN_00032b40(*(undefined4 *)(param_1 + 4));
  FUN_00032b40(*(undefined4 *)(param_1 + 0x10));
  iVar1 = *(int *)(param_1 + 0x24);
  if (iVar1 != 0) {
    FUN_00032c20(iVar1,*(undefined4 *)(param_1 + 0x28));
    iVar1 = *(int *)(param_1 + 0x24);
  }
  FUN_00032b40(iVar1);
  FUN_000bbbd0(*(undefined4 *)(param_1 + 0x14));
  FUN_00032b40(param_1);
  return;
}

