
/* WARNING: Variable defined which should be unmapped: pp */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int plug_proxy_accepting(void)

{
  Proxy_Socket pSVar1;
  int iVar2;
  Proxy_Plug pp;
  accept_fn_t in_stack_00000008;
  accept_ctx_t in_stack_0000000c;
  
  pSVar1 = pp->proxy_socket;
  if (pSVar1->state == 0) {
                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar2 = (*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c);
    return iVar2;
  }
  pSVar1->accepting_constructor = in_stack_00000008;
  pSVar1->accepting_ctx = in_stack_0000000c;
                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar2 = (*pSVar1->negotiate)(pSVar1,3);
  return iVar2;
}



void FUN_0001e810(int param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if (*(int *)(iVar1 + 0x44) == 0) {
                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();
    return;
  }
  *(undefined4 *)(iVar1 + 0x6c) = param_2;
  *(undefined4 *)(iVar1 + 0x70) = param_3;
                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(iVar1 + 0x4c))();
  return;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX + 0x4]
CMP dword ptr [EAX + 0x44],0x0
JNZ 0x0001e838
MOV EAX,dword ptr [EAX + 0xc]
MOV EDX,dword ptr [EAX]
MOV dword ptr [ESP + 0x4],EAX
JMP dword ptr [EDX + 0x10]
MOV dword ptr [EAX + 0x6c],ECX
MOV dword ptr [EAX + 0x70],EDX
MOV dword ptr [ESP + 0x8],0x3
MOV dword ptr [ESP + 0x4],EAX
JMP dword ptr [EAX + 0x4c]
(translation_unit "void FUN_0001e810(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(iVar1 + 0x6c) = param_2;\n  *(undefined4 *)(iVar1 + 0x70) = param_3;\n                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(iVar1 + 0x4c))();\n  return;\n}\n\n" (function_definition "void FUN_0001e810(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(iVar1 + 0x6c) = param_2;\n  *(undefined4 *)(iVar1 + 0x70) = param_3;\n                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(iVar1 + 0x4c))();\n  return;\n}" primitive_type (function_declarator "FUN_0001e810(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(iVar1 + 0x6c) = param_2;\n  *(undefined4 *)(iVar1 + 0x70) = param_3;\n                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(iVar1 + 0x4c))();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x44) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x44) == 0" (pointer_expression "*(int *)(iVar1 + 0x44)" * (cast_expression "(int *)(iVar1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }" { comment comment (expression_statement "(**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();" (call_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 0x10))()" (parenthesized_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 0x10))" ( (pointer_expression "**(code **)(**(int **)(iVar1 + 0xc) + 0x10)" * (pointer_expression "*(code **)(**(int **)(iVar1 + 0xc) + 0x10)" * (cast_expression "(code **)(**(int **)(iVar1 + 0xc) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(iVar1 + 0xc) + 0x10)" ( (binary_expression "**(int **)(iVar1 + 0xc) + 0x10" (pointer_expression "**(int **)(iVar1 + 0xc)" * (pointer_expression "*(int **)(iVar1 + 0xc)" * (cast_expression "(int **)(iVar1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(iVar1 + 0x6c) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6c) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x6c)" * (cast_expression "(undefined4 *)(iVar1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6c)" ( (binary_expression "iVar1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x70) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x70) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x70)" * (cast_expression "(undefined4 *)(iVar1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x70)" ( (binary_expression "iVar1 + 0x70" identifier + number_literal) )))) = identifier) ;) comment comment (expression_statement "(**(code **)(iVar1 + 0x4c))();" (call_expression "(**(code **)(iVar1 + 0x4c))()" (parenthesized_expression "(**(code **)(iVar1 + 0x4c))" ( (pointer_expression "**(code **)(iVar1 + 0x4c)" * (pointer_expression "*(code **)(iVar1 + 0x4c)" * (cast_expression "(code **)(iVar1 + 0x4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x4c)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Variable defined which should be unmapped: pp */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint plug_proxy_accepting(void)\n\n{\n  Proxy_Socket pSVar1;\n  int iVar2;\n  Proxy_Plug pp;\n  accept_fn_t in_stack_00000008;\n  accept_ctx_t in_stack_0000000c;\n  \n  pSVar1 = pp->proxy_socket;\n  if (pSVar1->state == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c);\n    return iVar2;\n  }\n  pSVar1->accepting_constructor = in_stack_00000008;\n  pSVar1->accepting_ctx = in_stack_0000000c;\n                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar2 = (*pSVar1->negotiate)(pSVar1,3);\n  return iVar2;\n}\n\n" comment comment comment (function_definition "int plug_proxy_accepting(void)\n\n{\n  Proxy_Socket pSVar1;\n  int iVar2;\n  Proxy_Plug pp;\n  accept_fn_t in_stack_00000008;\n  accept_ctx_t in_stack_0000000c;\n  \n  pSVar1 = pp->proxy_socket;\n  if (pSVar1->state == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c);\n    return iVar2;\n  }\n  pSVar1->accepting_constructor = in_stack_00000008;\n  pSVar1->accepting_ctx = in_stack_0000000c;\n                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar2 = (*pSVar1->negotiate)(pSVar1,3);\n  return iVar2;\n}" primitive_type (function_declarator "plug_proxy_accepting(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  Proxy_Socket pSVar1;\n  int iVar2;\n  Proxy_Plug pp;\n  accept_fn_t in_stack_00000008;\n  accept_ctx_t in_stack_0000000c;\n  \n  pSVar1 = pp->proxy_socket;\n  if (pSVar1->state == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c);\n    return iVar2;\n  }\n  pSVar1->accepting_constructor = in_stack_00000008;\n  pSVar1->accepting_ctx = in_stack_0000000c;\n                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar2 = (*pSVar1->negotiate)(pSVar1,3);\n  return iVar2;\n}" { (declaration "Proxy_Socket pSVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Proxy_Plug pp;" type_identifier identifier ;) (declaration "accept_fn_t in_stack_00000008;" type_identifier identifier ;) (declaration "accept_ctx_t in_stack_0000000c;" type_identifier identifier ;) (expression_statement "pSVar1 = pp->proxy_socket;" (assignment_expression "pSVar1 = pp->proxy_socket" identifier = (field_expression "pp->proxy_socket" identifier -> field_identifier)) ;) (if_statement "if (pSVar1->state == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c);\n    return iVar2;\n  }" if (parenthesized_expression "(pSVar1->state == 0)" ( (binary_expression "pSVar1->state == 0" (field_expression "pSVar1->state" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar2 = (*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c);\n    return iVar2;\n  }" { comment comment (expression_statement "iVar2 = (*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c);" (assignment_expression "iVar2 = (*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c)" identifier = (call_expression "(*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c)" (parenthesized_expression "(*(*pSVar1->plug)->accepting)" ( (pointer_expression "*(*pSVar1->plug)->accepting" * (field_expression "(*pSVar1->plug)->accepting" (parenthesized_expression "(*pSVar1->plug)" ( (pointer_expression "*pSVar1->plug" * (field_expression "pSVar1->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(pSVar1->plug,in_stack_00000008,in_stack_0000000c)" ( (field_expression "pSVar1->plug" identifier -> field_identifier) , identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "pSVar1->accepting_constructor = in_stack_00000008;" (assignment_expression "pSVar1->accepting_constructor = in_stack_00000008" (field_expression "pSVar1->accepting_constructor" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar1->accepting_ctx = in_stack_0000000c;" (assignment_expression "pSVar1->accepting_ctx = in_stack_0000000c" (field_expression "pSVar1->accepting_ctx" identifier -> field_identifier) = identifier) ;) comment comment (expression_statement "iVar2 = (*pSVar1->negotiate)(pSVar1,3);" (assignment_expression "iVar2 = (*pSVar1->negotiate)(pSVar1,3)" identifier = (call_expression "(*pSVar1->negotiate)(pSVar1,3)" (parenthesized_expression "(*pSVar1->negotiate)" ( (pointer_expression "*pSVar1->negotiate" * (field_expression "pSVar1->negotiate" identifier -> field_identifier)) )) (argument_list "(pSVar1,3)" ( identifier , number_literal )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "void FUN_0001e810(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(iVar1 + 0x6c) = param_2;\n  *(undefined4 *)(iVar1 + 0x70) = param_3;\n                    \n                    \n  (**(code **)(iVar1 + 0x4c))();\n  return;\n}\n\n" (function_definition "void FUN_0001e810(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(iVar1 + 0x6c) = param_2;\n  *(undefined4 *)(iVar1 + 0x70) = param_3;\n                    \n                    \n  (**(code **)(iVar1 + 0x4c))();\n  return;\n}" primitive_type (function_declarator "FUN_0001e810(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(iVar1 + 0x6c) = param_2;\n  *(undefined4 *)(iVar1 + 0x70) = param_3;\n                    \n                    \n  (**(code **)(iVar1 + 0x4c))();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x44) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x44) == 0" (pointer_expression "*(int *)(iVar1 + 0x44)" * (cast_expression "(int *)(iVar1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n                    \n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }" { (expression_statement "(**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();" (call_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 0x10))()" (parenthesized_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 0x10))" ( (pointer_expression "**(code **)(**(int **)(iVar1 + 0xc) + 0x10)" * (pointer_expression "*(code **)(**(int **)(iVar1 + 0xc) + 0x10)" * (cast_expression "(code **)(**(int **)(iVar1 + 0xc) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(iVar1 + 0xc) + 0x10)" ( (binary_expression "**(int **)(iVar1 + 0xc) + 0x10" (pointer_expression "**(int **)(iVar1 + 0xc)" * (pointer_expression "*(int **)(iVar1 + 0xc)" * (cast_expression "(int **)(iVar1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(iVar1 + 0x6c) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6c) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x6c)" * (cast_expression "(undefined4 *)(iVar1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x6c)" ( (binary_expression "iVar1 + 0x6c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x70) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x70) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x70)" * (cast_expression "(undefined4 *)(iVar1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x70)" ( (binary_expression "iVar1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "(**(code **)(iVar1 + 0x4c))();" (call_expression "(**(code **)(iVar1 + 0x4c))()" (parenthesized_expression "(**(code **)(iVar1 + 0x4c))" ( (pointer_expression "**(code **)(iVar1 + 0x4c)" * (pointer_expression "*(code **)(iVar1 + 0x4c)" * (cast_expression "(code **)(iVar1 + 0x4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x4c)" ( (binary_expression "iVar1 + 0x4c" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (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) ))) (compound_statement { (declaration TYPE IDENT ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (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 ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 IDENT + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001e810(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(iVar1 + 0x6c) = param_2;\n  *(undefined4 *)(iVar1 + 0x70) = param_3;\n                    \n                    \n  (**(code **)(iVar1 + 0x4c))();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001e810(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0001e810") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (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")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (*(int *)(iVar1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(iVar1 + 0x6c) = param_2;\n  *(undefined4 *)(iVar1 + 0x70) = param_3;\n                    \n                    \n  (**(code **)(iVar1 + 0x4c))();\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x44) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x44) == 0" (pointer_expression "*(int *)(iVar1 + 0x44)" (* "*") (cast_expression "(int *)(iVar1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x44)" (( "(") (binary_expression "iVar1 + 0x44" (identifier "iVar1") (+ "+") (number_literal "0x44")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();" (call_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 0x10))()" (parenthesized_expression "(**(code **)(**(int **)(iVar1 + 0xc) + 0x10))" (( "(") (pointer_expression "**(code **)(**(int **)(iVar1 + 0xc) + 0x10)" (* "*") (pointer_expression "*(code **)(**(int **)(iVar1 + 0xc) + 0x10)" (* "*") (cast_expression "(code **)(**(int **)(iVar1 + 0xc) + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(iVar1 + 0xc) + 0x10)" (( "(") (binary_expression "**(int **)(iVar1 + 0xc) + 0x10" (pointer_expression "**(int **)(iVar1 + 0xc)" (* "*") (pointer_expression "*(int **)(iVar1 + 0xc)" (* "*") (cast_expression "(int **)(iVar1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar1 + 0x6c) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x6c) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x6c)" (( "(") (binary_expression "iVar1 + 0x6c" (identifier "iVar1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x70) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x70) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x70)" (( "(") (binary_expression "iVar1 + 0x70" (identifier "iVar1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "(**(code **)(iVar1 + 0x4c))();" (call_expression "(**(code **)(iVar1 + 0x4c))()" (parenthesized_expression "(**(code **)(iVar1 + 0x4c))" (( "(") (pointer_expression "**(code **)(iVar1 + 0x4c)" (* "*") (pointer_expression "*(code **)(iVar1 + 0x4c)" (* "*") (cast_expression "(code **)(iVar1 + 0x4c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x4c)" (( "(") (binary_expression "iVar1 + 0x4c" (identifier "iVar1") (+ "+") (number_literal "0x4c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Variable defined which should be unmapped: pp */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int function_1(void)

{
  type_1 pSVar1;
  int iVar2;
  type_2 pp;
  type_3 in_stack_00000008;
  type_4 in_stack_0000000c;
  
  pSVar1 = pp->proxy_socket;
  if (pSVar1->state == 0) {
                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar2 = (*(*pSVar1->plug)->accepting)(pSVar1->plug,in_stack_00000008,in_stack_0000000c);
    return iVar2;
  }
  pSVar1->accepting_constructor = in_stack_00000008;
  pSVar1->accepting_ctx = in_stack_0000000c;
                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar2 = (*pSVar1->negotiate)(pSVar1,3);
  return iVar2;
}


(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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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: (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))))) right: (number_literal))) consequence: (compound_statement (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))) (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: (identifier))) (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: (identifier))) (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: (identifier) right: (number_literal))))))) arguments: (argument_list))) (return_statement))))

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

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if (*(int *)(iVar1 + 0x44) == 0) {
                    /* WARNING: Could not recover jumptable at 0x0001e82e. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(**(int **)(iVar1 + 0xc) + 0x10))();
    return;
  }
  *(undefined4 *)(iVar1 + 0x6c) = param_2;
  *(undefined4 *)(iVar1 + 0x70) = param_3;
                    /* WARNING: Could not recover jumptable at 0x0001e84a. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(iVar1 + 0x4c))();
  return;
}

