
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void sk_proxy_write_eof(Socket s)

{
  if (s[0x11] == (socket_function_table *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(s[2]->plug + 0x10))();
    return;
  }
  s[0x10] = (socket_function_table *)0x1;
  return;
}



void FUN_0001c970(int param_1)

{
  if (*(int *)(param_1 + 0x44) == 0) {
                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(**(int **)(param_1 + 8) + 0x10))();
    return;
  }
  *(undefined4 *)(param_1 + 0x40) = 1;
  return;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [EAX + 0x44]
TEST EDX,EDX
JNZ 0x0001c990
MOV EAX,dword ptr [EAX + 0x8]
MOV EDX,dword ptr [EAX]
MOV dword ptr [ESP + 0x4],EAX
JMP dword ptr [EDX + 0x10]
MOV dword ptr [EAX + 0x40],0x1
RET
(translation_unit "void FUN_0001c970(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x40) = 1;\n  return;\n}\n\n" (function_definition "void FUN_0001c970(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x40) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_0001c970(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x40) = 1;\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }" { comment comment (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 0x10))();" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 0x10))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 0x10))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 0x10)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 0x10)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 0x10)" ( (binary_expression "**(int **)(param_1 + 8) + 0x10" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 1" (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) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid sk_proxy_write_eof(Socket s)\n\n{\n  if (s[0x11] == (socket_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(s[2]->plug + 0x10))();\n    return;\n  }\n  s[0x10] = (socket_function_table *)0x1;\n  return;\n}\n\n" comment (function_definition "void sk_proxy_write_eof(Socket s)\n\n{\n  if (s[0x11] == (socket_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(s[2]->plug + 0x10))();\n    return;\n  }\n  s[0x10] = (socket_function_table *)0x1;\n  return;\n}" primitive_type (function_declarator "sk_proxy_write_eof(Socket s)" identifier (parameter_list "(Socket s)" ( (parameter_declaration "Socket s" type_identifier identifier) ))) (compound_statement "{\n  if (s[0x11] == (socket_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(s[2]->plug + 0x10))();\n    return;\n  }\n  s[0x10] = (socket_function_table *)0x1;\n  return;\n}" { (if_statement "if (s[0x11] == (socket_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(s[2]->plug + 0x10))();\n    return;\n  }" if (parenthesized_expression "(s[0x11] == (socket_function_table *)0x0)" ( (binary_expression "s[0x11] == (socket_function_table *)0x0" (subscript_expression "s[0x11]" identifier [ number_literal ]) == (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (**(code **)(s[2]->plug + 0x10))();\n    return;\n  }" { comment comment (expression_statement "(**(code **)(s[2]->plug + 0x10))();" (call_expression "(**(code **)(s[2]->plug + 0x10))()" (parenthesized_expression "(**(code **)(s[2]->plug + 0x10))" ( (pointer_expression "**(code **)(s[2]->plug + 0x10)" * (pointer_expression "*(code **)(s[2]->plug + 0x10)" * (cast_expression "(code **)(s[2]->plug + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(s[2]->plug + 0x10)" ( (binary_expression "s[2]->plug + 0x10" (field_expression "s[2]->plug" (subscript_expression "s[2]" identifier [ number_literal ]) -> field_identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "s[0x10] = (socket_function_table *)0x1;" (assignment_expression "s[0x10] = (socket_function_table *)0x1" (subscript_expression "s[0x10]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)0x1" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001c970(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x40) = 1;\n  return;\n}\n\n" (function_definition "void FUN_0001c970(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x40) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_0001c970(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x40) = 1;\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 0x10))();" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 0x10))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 0x10))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 0x10)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 0x10)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 0x10)" ( (binary_expression "**(int **)(param_1 + 8) + 0x10" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 1" (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) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (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 (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) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_0001c970(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x40) = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001c970(int param_1)" (identifier "FUN_0001c970") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }\n  *(undefined4 *)(param_1 + 0x40) = 1;\n  return;\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n    (**(code **)(**(int **)(param_1 + 8) + 0x10))();\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(param_1 + 8) + 0x10))();" (call_expression "(**(code **)(**(int **)(param_1 + 8) + 0x10))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 0x10))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 0x10)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 0x10)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 8) + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 8) + 0x10)" (( "(") (binary_expression "**(int **)(param_1 + 8) + 0x10" (pointer_expression "**(int **)(param_1 + 8)" (* "*") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x40) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x40) = 1" (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 "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 s)

{
  if (s[0x11] == (type_2 *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(type_3 **)(s[2]->plug + 0x10))();
    return;
  }
  s[0x10] = (type_2 *)0x1;
  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 (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: (number_literal))) (return_statement))))

void MASKED(int param_1)

{
  if (*(int *)(param_1 + 0x44) == 0) {
                    /* WARNING: Could not recover jumptable at 0x0001c984. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (**(code **)(**(int **)(param_1 + 8) + 0x10))();
    return;
  }
  *(undefined4 *)(param_1 + 0x40) = 1;
  return;
}

