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

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

{
  int iVar1;
  
  if (s[0x11] == (socket_function_table *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (**(code **)(s[2]->plug + 0xc))();
    return iVar1;
  }
  bufchain_clear((bufchain *)(s + 6));
  bufchain_clear((bufchain *)(s + 9));
  bufchain_add((bufchain *)(s + 9),data,len);
  return len;
}



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

undefined4 FUN_000349f0(int param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  
  if (*(int *)(param_1 + 0x44) == 0) {
                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();
    return uVar1;
  }
  FUN_00032650(param_1 + 0x18);
  FUN_00032650(param_1 + 0x24);
  FUN_000326b0(param_1 + 0x24,param_2,param_3);
  return param_3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c520
ADD EBX,0x105d57
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
MOV EBP,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [ESI + 0x44]
TEST EAX,EAX
JNZ 0x00034a30
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [EAX]
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [EDX + 0xc]
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
JMP EAX
LEA EAX,[ESI + 0x18]
SUB ESP,0xc
ADD ESI,0x24
PUSH EAX
CALL 0x00032650
MOV dword ptr [ESP],ESI
CALL 0x00032650
ADD ESP,0xc
PUSH EDI
PUSH EBP
PUSH ESI
CALL 0x000326b0
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000349f0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }\n  FUN_00032650(param_1 + 0x18);\n  FUN_00032650(param_1 + 0x24);\n  FUN_000326b0(param_1 + 0x24,param_2,param_3);\n  return param_3;\n}\n\n" comment (function_definition "undefined4 FUN_000349f0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }\n  FUN_00032650(param_1 + 0x18);\n  FUN_00032650(param_1 + 0x24);\n  FUN_000326b0(param_1 + 0x24,param_2,param_3);\n  return param_3;\n}" type_identifier (function_declarator "FUN_000349f0(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  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }\n  FUN_00032650(param_1 + 0x18);\n  FUN_00032650(param_1 + 0x24);\n  FUN_000326b0(param_1 + 0x24,param_2,param_3);\n  return param_3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\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 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }" { comment comment (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))()" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 8) + 0xc))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 0xc)" ( (binary_expression "**(int **)(param_1 + 8) + 0xc" (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 uVar1;" return identifier ;) })) (expression_statement "FUN_00032650(param_1 + 0x18);" (call_expression "FUN_00032650(param_1 + 0x18)" identifier (argument_list "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))) ;) (expression_statement "FUN_00032650(param_1 + 0x24);" (call_expression "FUN_00032650(param_1 + 0x24)" identifier (argument_list "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))) ;) (expression_statement "FUN_000326b0(param_1 + 0x24,param_2,param_3);" (call_expression "FUN_000326b0(param_1 + 0x24,param_2,param_3)" identifier (argument_list "(param_1 + 0x24,param_2,param_3)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return param_3;" return identifier ;) })))
(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\nint sk_proxy_write_oob(Socket s,char *data,int len)\n\n{\n  int iVar1;\n  \n  if (s[0x11] == (socket_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (**(code **)(s[2]->plug + 0xc))();\n    return iVar1;\n  }\n  bufchain_clear((bufchain *)(s + 6));\n  bufchain_clear((bufchain *)(s + 9));\n  bufchain_add((bufchain *)(s + 9),data,len);\n  return len;\n}\n\n" comment comment (function_definition "int sk_proxy_write_oob(Socket s,char *data,int len)\n\n{\n  int iVar1;\n  \n  if (s[0x11] == (socket_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (**(code **)(s[2]->plug + 0xc))();\n    return iVar1;\n  }\n  bufchain_clear((bufchain *)(s + 6));\n  bufchain_clear((bufchain *)(s + 9));\n  bufchain_add((bufchain *)(s + 9),data,len);\n  return len;\n}" primitive_type (function_declarator "sk_proxy_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[0x11] == (socket_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (**(code **)(s[2]->plug + 0xc))();\n    return iVar1;\n  }\n  bufchain_clear((bufchain *)(s + 6));\n  bufchain_clear((bufchain *)(s + 9));\n  bufchain_add((bufchain *)(s + 9),data,len);\n  return len;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (s[0x11] == (socket_function_table *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (**(code **)(s[2]->plug + 0xc))();\n    return iVar1;\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 0x00034a28. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (**(code **)(s[2]->plug + 0xc))();\n    return iVar1;\n  }" { comment comment (expression_statement "iVar1 = (**(code **)(s[2]->plug + 0xc))();" (assignment_expression "iVar1 = (**(code **)(s[2]->plug + 0xc))()" identifier = (call_expression "(**(code **)(s[2]->plug + 0xc))()" (parenthesized_expression "(**(code **)(s[2]->plug + 0xc))" ( (pointer_expression "**(code **)(s[2]->plug + 0xc)" * (pointer_expression "*(code **)(s[2]->plug + 0xc)" * (cast_expression "(code **)(s[2]->plug + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(s[2]->plug + 0xc)" ( (binary_expression "s[2]->plug + 0xc" (field_expression "s[2]->plug" (subscript_expression "s[2]" identifier [ number_literal ]) -> field_identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "bufchain_clear((bufchain *)(s + 6));" (call_expression "bufchain_clear((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) ))) ))) ;) (expression_statement "bufchain_clear((bufchain *)(s + 9));" (call_expression "bufchain_clear((bufchain *)(s + 9))" identifier (argument_list "((bufchain *)(s + 9))" ( (cast_expression "(bufchain *)(s + 9)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(s + 9)" ( (binary_expression "s + 9" identifier + number_literal) ))) ))) ;) (expression_statement "bufchain_add((bufchain *)(s + 9),data,len);" (call_expression "bufchain_add((bufchain *)(s + 9),data,len)" identifier (argument_list "((bufchain *)(s + 9),data,len)" ( (cast_expression "(bufchain *)(s + 9)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(s + 9)" ( (binary_expression "s + 9" identifier + number_literal) ))) , identifier , identifier ))) ;) (return_statement "return len;" return identifier ;) })))
(translation_unit "undefined4 FUN_000349f0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }\n  FUN_00032650(param_1 + 0x18);\n  FUN_00032650(param_1 + 0x24);\n  FUN_000326b0(param_1 + 0x24,param_2,param_3);\n  return param_3;\n}\n\n" (function_definition "undefined4 FUN_000349f0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }\n  FUN_00032650(param_1 + 0x18);\n  FUN_00032650(param_1 + 0x24);\n  FUN_000326b0(param_1 + 0x24,param_2,param_3);\n  return param_3;\n}" type_identifier (function_declarator "FUN_000349f0(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  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }\n  FUN_00032650(param_1 + 0x18);\n  FUN_00032650(param_1 + 0x24);\n  FUN_000326b0(param_1 + 0x24,param_2,param_3);\n  return param_3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\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    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }" { (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))()" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 8) + 0xc))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 0xc)" * (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 0xc)" * (cast_expression "(code **)(**(int **)(param_1 + 8) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 8) + 0xc)" ( (binary_expression "**(int **)(param_1 + 8) + 0xc" (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 uVar1;" return identifier ;) })) (expression_statement "FUN_00032650(param_1 + 0x18);" (call_expression "FUN_00032650(param_1 + 0x18)" identifier (argument_list "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))) ;) (expression_statement "FUN_00032650(param_1 + 0x24);" (call_expression "FUN_00032650(param_1 + 0x24)" identifier (argument_list "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))) ;) (expression_statement "FUN_000326b0(param_1 + 0x24,param_2,param_3);" (call_expression "FUN_000326b0(param_1 + 0x24,param_2,param_3)" identifier (argument_list "(param_1 + 0x24,param_2,param_3)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return param_3;" return identifier ;) })))
(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 ;) (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 (assignment_expression IDENT = (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 IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000349f0(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }\n  FUN_00032650(param_1 + 0x18);\n  FUN_00032650(param_1 + 0x24);\n  FUN_000326b0(param_1 + 0x24,param_2,param_3);\n  return param_3;\n}" (type_identifier "undefined4") (function_declarator "FUN_000349f0(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_000349f0") (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  undefined4 uVar1;\n  \n  if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }\n  FUN_00032650(param_1 + 0x18);\n  FUN_00032650(param_1 + 0x24);\n  FUN_000326b0(param_1 + 0x24,param_2,param_3);\n  return param_3;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n                    \n                    \n    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\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    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))()" (identifier "uVar1") (= "=") (call_expression "(**(code **)(**(int **)(param_1 + 8) + 0xc))()" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 8) + 0xc))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 8) + 0xc)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 8) + 0xc)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 8) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 8) + 0xc)" (( "(") (binary_expression "**(int **)(param_1 + 8) + 0xc" (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 "0xc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "FUN_00032650(param_1 + 0x18);" (call_expression "FUN_00032650(param_1 + 0x18)" (identifier "FUN_00032650") (argument_list "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))) (; ";")) (expression_statement "FUN_00032650(param_1 + 0x24);" (call_expression "FUN_00032650(param_1 + 0x24)" (identifier "FUN_00032650") (argument_list "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))) (; ";")) (expression_statement "FUN_000326b0(param_1 + 0x24,param_2,param_3);" (call_expression "FUN_000326b0(param_1 + 0x24,param_2,param_3)" (identifier "FUN_000326b0") (argument_list "(param_1 + 0x24,param_2,param_3)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))

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

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

{
  int iVar1;
  
  if (var_2[0x11] == (type_2 *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (**(type_3 **)(var_2[2]->plug + 0xc))();
    return iVar1;
  }
  var_1((type_4 *)(var_2 + 6));
  var_1((type_4 *)(var_2 + 9));
  var_3((type_4 *)(var_2 + 9),data,len);
  return len;
}


(translation_unit (function_definition type: (type_identifier) 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: (type_identifier) declarator: (identifier)) (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 (assignment_expression left: (identifier) right: (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 (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (return_statement (identifier)))))

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

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

{
  undefined4 uVar1;
  
  if (*(int *)(param_1 + 0x44) == 0) {
                    /* WARNING: Could not recover jumptable at 0x00034a28. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar1 = (**(code **)(**(int **)(param_1 + 8) + 0xc))();
    return uVar1;
  }
  FUN_00032650(param_1 + 0x18);
  FUN_00032650(param_1 + 0x24);
  FUN_000326b0(param_1 + 0x24,param_2,param_3);
  return param_3;
}

