
/* 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 */

int sk_localproxy_write_oob(Socket s,char *data,int len)

{
  int iVar1;
  
  if (s[0xf] == (socket_function_table *)0x0) {
    bufchain_add((bufchain *)(s + 6),data,len);
    localproxy_try_send((Local_Proxy_Socket)s);
    iVar1 = bufchain_size((bufchain *)(s + 6));
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");
}



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

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

{
  if (*(int *)(param_1 + 0x3c) == 0) {
    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);
    FUN_0009cc70();
    FUN_0002e5e0(param_1 + 0x18);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");
}


JMP 0x0009d160
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid thunk_FUN_0009d160(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}\n\n" comment (function_definition "void thunk_FUN_0009d160(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}" primitive_type (function_declarator "thunk_FUN_0009d160(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  if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}" { (if_statement "if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x3c) == 0" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }" { (expression_statement "FUN_0002e9c0(param_1 + 0x18,param_2,param_3);" (call_expression "FUN_0002e9c0(param_1 + 0x18,param_2,param_3)" identifier (argument_list "(param_1 + 0x18,param_2,param_3)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "FUN_0009cc70();" (call_expression "FUN_0009cc70()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0002e5e0(param_1 + 0x18);" (call_expression "FUN_0002e5e0(param_1 + 0x18)" identifier (argument_list "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");" (call_expression "__assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write")" identifier (argument_list "("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write")" ( (string_literal ""ps->outgoingeof == EOF_NO"" " string_content ") , (string_literal ""unix/uxproxy.c"" " string_content ") , number_literal , (string_literal ""sk_localproxy_write"" " string_content ") ))) ;) })))
(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\nint sk_localproxy_write_oob(Socket s,char *data,int len)\n\n{\n  int iVar1;\n  \n  if (s[0xf] == (socket_function_table *)0x0) {\n    bufchain_add((bufchain *)(s + 6),data,len);\n    localproxy_try_send((Local_Proxy_Socket)s);\n    iVar1 = bufchain_size((bufchain *)(s + 6));\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}\n\n" comment comment comment (function_definition "int sk_localproxy_write_oob(Socket s,char *data,int len)\n\n{\n  int iVar1;\n  \n  if (s[0xf] == (socket_function_table *)0x0) {\n    bufchain_add((bufchain *)(s + 6),data,len);\n    localproxy_try_send((Local_Proxy_Socket)s);\n    iVar1 = bufchain_size((bufchain *)(s + 6));\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}" primitive_type (function_declarator "sk_localproxy_write_oob(Socket s,char *data,int len)" identifier (parameter_list "(Socket s,char *data,int len)" ( (parameter_declaration "Socket s" type_identifier 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  if (s[0xf] == (socket_function_table *)0x0) {\n    bufchain_add((bufchain *)(s + 6),data,len);\n    localproxy_try_send((Local_Proxy_Socket)s);\n    iVar1 = bufchain_size((bufchain *)(s + 6));\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (s[0xf] == (socket_function_table *)0x0) {\n    bufchain_add((bufchain *)(s + 6),data,len);\n    localproxy_try_send((Local_Proxy_Socket)s);\n    iVar1 = bufchain_size((bufchain *)(s + 6));\n    return iVar1;\n  }" if (parenthesized_expression "(s[0xf] == (socket_function_table *)0x0)" ( (binary_expression "s[0xf] == (socket_function_table *)0x0" (subscript_expression "s[0xf]" identifier [ number_literal ]) == (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    bufchain_add((bufchain *)(s + 6),data,len);\n    localproxy_try_send((Local_Proxy_Socket)s);\n    iVar1 = bufchain_size((bufchain *)(s + 6));\n    return iVar1;\n  }" { (expression_statement "bufchain_add((bufchain *)(s + 6),data,len);" (call_expression "bufchain_add((bufchain *)(s + 6),data,len)" identifier (argument_list "((bufchain *)(s + 6),data,len)" ( (cast_expression "(bufchain *)(s + 6)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(s + 6)" ( (binary_expression "s + 6" identifier + number_literal) ))) , identifier , identifier ))) ;) (expression_statement "localproxy_try_send((Local_Proxy_Socket)s);" (call_expression "localproxy_try_send((Local_Proxy_Socket)s)" identifier (argument_list "((Local_Proxy_Socket)s)" ( (cast_expression "(Local_Proxy_Socket)s" ( (type_descriptor "Local_Proxy_Socket" type_identifier) ) identifier) ))) ;) (expression_statement "iVar1 = bufchain_size((bufchain *)(s + 6));" (assignment_expression "iVar1 = bufchain_size((bufchain *)(s + 6))" identifier = (call_expression "bufchain_size((bufchain *)(s + 6))" identifier (argument_list "((bufchain *)(s + 6))" ( (cast_expression "(bufchain *)(s + 6)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(s + 6)" ( (binary_expression "s + 6" identifier + number_literal) ))) )))) ;) (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");" (call_expression "__assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write")" identifier (argument_list "("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write")" ( (string_literal ""ps->outgoingeof == EOF_NO"" " string_content ") , (string_literal ""unix/uxproxy.c"" " string_content ") , number_literal , (string_literal ""sk_localproxy_write"" " string_content ") ))) ;) })))
(translation_unit "void thunk_FUN_0009d160(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }\n                    \n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}\n\n" (function_definition "void thunk_FUN_0009d160(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }\n                    \n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}" primitive_type (function_declarator "thunk_FUN_0009d160(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  if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }\n                    \n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}" { (if_statement "if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x3c) == 0" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }" { (expression_statement "FUN_0002e9c0(param_1 + 0x18,param_2,param_3);" (call_expression "FUN_0002e9c0(param_1 + 0x18,param_2,param_3)" identifier (argument_list "(param_1 + 0x18,param_2,param_3)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "FUN_0009cc70();" (call_expression "FUN_0009cc70()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0002e5e0(param_1 + 0x18);" (call_expression "FUN_0002e5e0(param_1 + 0x18)" identifier (argument_list "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "__assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");" (call_expression "__assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write")" identifier (argument_list "("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write")" ( (string_literal ""ps->outgoingeof == EOF_NO"" " string_content ") , (string_literal ""unix/uxproxy.c"" " string_content ") , number_literal , (string_literal ""sk_localproxy_write"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void thunk_FUN_0009d160(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }\n                    \n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}" (primitive_type "void") (function_declarator "thunk_FUN_0009d160(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "thunk_FUN_0009d160") (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  if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }\n                    \n  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0x3c) == 0) {\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x3c) == 0" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);\n    FUN_0009cc70();\n    FUN_0002e5e0(param_1 + 0x18);\n    return;\n  }" ({ "{") (expression_statement "FUN_0002e9c0(param_1 + 0x18,param_2,param_3);" (call_expression "FUN_0002e9c0(param_1 + 0x18,param_2,param_3)" (identifier "FUN_0002e9c0") (argument_list "(param_1 + 0x18,param_2,param_3)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "FUN_0009cc70();" (call_expression "FUN_0009cc70()" (identifier "FUN_0009cc70") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0002e5e0(param_1 + 0x18);" (call_expression "FUN_0002e5e0(param_1 + 0x18)" (identifier "FUN_0002e5e0") (argument_list "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");" (call_expression "__assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write")" (identifier "__assert_fail") (argument_list "("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write")" (( "(") (string_literal ""ps->outgoingeof == EOF_NO"" (" """) (string_content "ps->outgoingeof == EOF_NO") (" """)) (, ",") (string_literal ""unix/uxproxy.c"" (" """) (string_content "unix/uxproxy.c") (" """)) (, ",") (number_literal "0xb6") (, ",") (string_literal ""sk_localproxy_write"" (" """) (string_content "sk_localproxy_write") (" """)) () ")"))) (; ";")) (} "}")))

/* 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 */

int function_1(type_1 var_2,char *data,int len)

{
  int iVar1;
  
  if (var_2[0xf] == (type_2 *)0x0) {
    var_1((type_3 *)(var_2 + 6),data,len);
    var_3((type_4)var_2);
    iVar1 = var_4((type_3 *)(var_2 + 6));
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_5("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");
}


(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 (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: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

/* 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)

{
  if (*(int *)(param_1 + 0x3c) == 0) {
    FUN_0002e9c0(param_1 + 0x18,param_2,param_3);
    FUN_0009cc70();
    FUN_0002e5e0(param_1 + 0x18);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("ps->outgoingeof == EOF_NO","unix/uxproxy.c",0xb6,"sk_localproxy_write");
}

