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

void x11_receive(Plug plug,int urgent,char *data,int len)

{
  int iVar1;
  
  iVar1 = sshfwd_write((ssh_channel *)plug[0x13],data,len);
  if (0 < iVar1) {
    plug[0xe] = (plug_function_table *)0x1;
    plug[0x10] = (plug_function_table *)0x0;
                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(plug[0x14]->log + 0x18))();
    return;
  }
  return;
}



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

void FUN_000c40e0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  
  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);
  if (0 < iVar1) {
    *(undefined4 *)(param_1 + 0x38) = 1;
    *(undefined4 *)(param_1 + 0x40) = 0;
                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();
    return;
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x0001c520
ADD EBX,0x76669
SUB ESP,0x8
MOV ESI,dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESI + 0x4c]
CALL 0x000525c0
ADD ESP,0x10
TEST EAX,EAX
JLE 0x000c4138
MOV EAX,dword ptr [ESI + 0x50]
MOV dword ptr [ESI + 0x38],0x1
MOV dword ptr [ESI + 0x40],0x0
MOV EDX,dword ptr [EAX]
MOV dword ptr [ESP + 0x14],0x1
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [EDX + 0x18]
ADD ESP,0x4
POP EBX
POP ESI
JMP EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000c40e0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);\n  if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000c40e0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);\n  if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000c40e0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);\n  if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);" (assignment_expression "iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4)" identifier = (call_expression "FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x4c),param_3,param_4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) , identifier , identifier )))) ;) (if_statement "if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x38) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x38) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x38)" * (cast_expression "(undefined4 *)(param_1 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = number_literal) ;) comment comment (expression_statement "(**(code **)(**(int **)(param_1 + 0x50) + 0x18))();" (call_expression "(**(code **)(**(int **)(param_1 + 0x50) + 0x18))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x50) + 0x18))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x50) + 0x18)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x50) + 0x18)" * (cast_expression "(code **)(**(int **)(param_1 + 0x50) + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x50) + 0x18)" ( (binary_expression "**(int **)(param_1 + 0x50) + 0x18" (pointer_expression "**(int **)(param_1 + 0x50)" * (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid x11_receive(Plug plug,int urgent,char *data,int len)\n\n{\n  int iVar1;\n  \n  iVar1 = sshfwd_write((ssh_channel *)plug[0x13],data,len);\n  if (0 < iVar1) {\n    plug[0xe] = (plug_function_table *)0x1;\n    plug[0x10] = (plug_function_table *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(plug[0x14]->log + 0x18))();\n    return;\n  }\n  return;\n}\n\n" comment comment (function_definition "void x11_receive(Plug plug,int urgent,char *data,int len)\n\n{\n  int iVar1;\n  \n  iVar1 = sshfwd_write((ssh_channel *)plug[0x13],data,len);\n  if (0 < iVar1) {\n    plug[0xe] = (plug_function_table *)0x1;\n    plug[0x10] = (plug_function_table *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(plug[0x14]->log + 0x18))();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "x11_receive(Plug plug,int urgent,char *data,int len)" identifier (parameter_list "(Plug plug,int urgent,char *data,int len)" ( (parameter_declaration "Plug plug" type_identifier identifier) , (parameter_declaration "int urgent" primitive_type identifier) , (parameter_declaration "char *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sshfwd_write((ssh_channel *)plug[0x13],data,len);\n  if (0 < iVar1) {\n    plug[0xe] = (plug_function_table *)0x1;\n    plug[0x10] = (plug_function_table *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(plug[0x14]->log + 0x18))();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sshfwd_write((ssh_channel *)plug[0x13],data,len);" (assignment_expression "iVar1 = sshfwd_write((ssh_channel *)plug[0x13],data,len)" identifier = (call_expression "sshfwd_write((ssh_channel *)plug[0x13],data,len)" identifier (argument_list "((ssh_channel *)plug[0x13],data,len)" ( (cast_expression "(ssh_channel *)plug[0x13]" ( (type_descriptor "ssh_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plug[0x13]" identifier [ number_literal ])) , identifier , identifier )))) ;) (if_statement "if (0 < iVar1) {\n    plug[0xe] = (plug_function_table *)0x1;\n    plug[0x10] = (plug_function_table *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(plug[0x14]->log + 0x18))();\n    return;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    plug[0xe] = (plug_function_table *)0x1;\n    plug[0x10] = (plug_function_table *)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(plug[0x14]->log + 0x18))();\n    return;\n  }" { (expression_statement "plug[0xe] = (plug_function_table *)0x1;" (assignment_expression "plug[0xe] = (plug_function_table *)0x1" (subscript_expression "plug[0xe]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)0x1" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "plug[0x10] = (plug_function_table *)0x0;" (assignment_expression "plug[0x10] = (plug_function_table *)0x0" (subscript_expression "plug[0x10]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) comment comment (expression_statement "(**(code **)(plug[0x14]->log + 0x18))();" (call_expression "(**(code **)(plug[0x14]->log + 0x18))()" (parenthesized_expression "(**(code **)(plug[0x14]->log + 0x18))" ( (pointer_expression "**(code **)(plug[0x14]->log + 0x18)" * (pointer_expression "*(code **)(plug[0x14]->log + 0x18)" * (cast_expression "(code **)(plug[0x14]->log + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(plug[0x14]->log + 0x18)" ( (binary_expression "plug[0x14]->log + 0x18" (field_expression "plug[0x14]->log" (subscript_expression "plug[0x14]" identifier [ number_literal ]) -> field_identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000c40e0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);\n  if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000c40e0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);\n  if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000c40e0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);\n  if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);" (assignment_expression "iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4)" identifier = (call_expression "FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x4c),param_3,param_4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) , identifier , identifier )))) ;) (if_statement "if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x38) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x38) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x38)" * (cast_expression "(undefined4 *)(param_1 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(**(code **)(**(int **)(param_1 + 0x50) + 0x18))();" (call_expression "(**(code **)(**(int **)(param_1 + 0x50) + 0x18))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x50) + 0x18))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x50) + 0x18)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x50) + 0x18)" * (cast_expression "(code **)(**(int **)(param_1 + 0x50) + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x50) + 0x18)" ( (binary_expression "**(int **)(param_1 + 0x50) + 0x18" (pointer_expression "**(int **)(param_1 + 0x50)" * (pointer_expression "*(int **)(param_1 + 0x50)" * (cast_expression "(int **)(param_1 + 0x50)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_000c40e0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);\n  if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000c40e0(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_000c40e0") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);\n  if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);" (assignment_expression "iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4)" (identifier "iVar1") (= "=") (call_expression "FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4)" (identifier "FUN_000525c0") (argument_list "(*(undefined4 *)(param_1 + 0x4c),param_3,param_4)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (0 < iVar1) {\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }" (if "if") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x38) = 1;\n    *(undefined4 *)(param_1 + 0x40) = 0;\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();\n    return;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x38) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x38) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(**(code **)(**(int **)(param_1 + 0x50) + 0x18))();" (call_expression "(**(code **)(**(int **)(param_1 + 0x50) + 0x18))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x50) + 0x18))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0x50) + 0x18)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0x50) + 0x18)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0x50) + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0x50) + 0x18)" (( "(") (binary_expression "**(int **)(param_1 + 0x50) + 0x18" (pointer_expression "**(int **)(param_1 + 0x50)" (* "*") (pointer_expression "*(int **)(param_1 + 0x50)" (* "*") (cast_expression "(int **)(param_1 + 0x50)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 plug,int urgent,char *data,int len)

{
  int var_2;
  
  var_2 = var_1((type_2 *)plug[0x13],data,len);
  if (0 < var_2) {
    plug[0xe] = (type_3 *)0x1;
    plug[0x10] = (type_3 *)0x0;
                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(type_4 **)(plug[0x14]->log + 0x18))();
    return;
  }
  return;
}


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

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

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  
  iVar1 = FUN_000525c0(*(undefined4 *)(param_1 + 0x4c),param_3,param_4);
  if (0 < iVar1) {
    *(undefined4 *)(param_1 + 0x38) = 1;
    *(undefined4 *)(param_1 + 0x40) = 0;
                    /* WARNING: Could not recover jumptable at 0x000c4132. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(**(int **)(param_1 + 0x50) + 0x18))();
    return;
  }
  return;
}

