
/* 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 https_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)

{
  int iVar1;
  
  if ((conn->handler->flags & 1) == 0) {
    return 0;
  }
  iVar1 = Curl_ssl_getsock(conn,socks,numsocks);
  return iVar1;
}



void __regparm2
FUN_00020ed0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int unaff_retaddr;
  
  entry(param_2,0x20ed8);
  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {
    return;
  }
  FUN_0007b220(unaff_retaddr,param_3,param_4);
  return;
}


PUSH EBX
XOR EAX,EAX
CALL 0x00019ed0
ADD EBX,0x8f908
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [EDX + 0x27c]
TEST byte ptr [ECX + 0x44],0x1
JNZ 0x00020f00
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
PUSH EDX
CALL 0x0007b220
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "void __regparm2\nFUN_00020ed0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x20ed8);\n  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }\n  FUN_0007b220(unaff_retaddr,param_3,param_4);\n  return;\n}\n\n" (function_definition "void __regparm2\nFUN_00020ed0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x20ed8);\n  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }\n  FUN_0007b220(unaff_retaddr,param_3,param_4);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00020ed0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int unaff_retaddr;\n  \n  entry(param_2,0x20ed8);\n  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }\n  FUN_0007b220(unaff_retaddr,param_3,param_4);\n  return;\n}" { (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x20ed8);" (call_expression "entry(param_2,0x20ed8)" identifier (argument_list "(param_2,0x20ed8)" ( identifier , number_literal ))) ;) (if_statement "if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0)" ( (binary_expression "(*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0" (parenthesized_expression "(*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1)" ( (binary_expression "*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1" (pointer_expression "*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44)" * (cast_expression "(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_retaddr + 0x27c) + 0x44)" ( (binary_expression "*(int *)(unaff_retaddr + 0x27c) + 0x44" (pointer_expression "*(int *)(unaff_retaddr + 0x27c)" * (cast_expression "(int *)(unaff_retaddr + 0x27c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x27c)" ( (binary_expression "unaff_retaddr + 0x27c" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0007b220(unaff_retaddr,param_3,param_4);" (call_expression "FUN_0007b220(unaff_retaddr,param_3,param_4)" identifier (argument_list "(unaff_retaddr,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(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 https_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)\n\n{\n  int iVar1;\n  \n  if ((conn->handler->flags & 1) == 0) {\n    return 0;\n  }\n  iVar1 = Curl_ssl_getsock(conn,socks,numsocks);\n  return iVar1;\n}\n\n" comment comment comment (function_definition "int https_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)\n\n{\n  int iVar1;\n  \n  if ((conn->handler->flags & 1) == 0) {\n    return 0;\n  }\n  iVar1 = Curl_ssl_getsock(conn,socks,numsocks);\n  return iVar1;\n}" primitive_type (function_declarator "https_getsock(connectdata *conn,curl_socket_t *socks,int numsocks)" identifier (parameter_list "(connectdata *conn,curl_socket_t *socks,int numsocks)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "curl_socket_t *socks" type_identifier (pointer_declarator "*socks" * identifier)) , (parameter_declaration "int numsocks" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((conn->handler->flags & 1) == 0) {\n    return 0;\n  }\n  iVar1 = Curl_ssl_getsock(conn,socks,numsocks);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((conn->handler->flags & 1) == 0) {\n    return 0;\n  }" if (parenthesized_expression "((conn->handler->flags & 1) == 0)" ( (binary_expression "(conn->handler->flags & 1) == 0" (parenthesized_expression "(conn->handler->flags & 1)" ( (binary_expression "conn->handler->flags & 1" (field_expression "conn->handler->flags" (field_expression "conn->handler" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = Curl_ssl_getsock(conn,socks,numsocks);" (assignment_expression "iVar1 = Curl_ssl_getsock(conn,socks,numsocks)" identifier = (call_expression "Curl_ssl_getsock(conn,socks,numsocks)" identifier (argument_list "(conn,socks,numsocks)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void __regparm2\nFUN_00020ed0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x20ed8);\n  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }\n  FUN_0007b220(unaff_retaddr,param_3,param_4);\n  return;\n}\n\n" (function_definition "void __regparm2\nFUN_00020ed0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x20ed8);\n  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }\n  FUN_0007b220(unaff_retaddr,param_3,param_4);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00020ed0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int unaff_retaddr;\n  \n  entry(param_2,0x20ed8);\n  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }\n  FUN_0007b220(unaff_retaddr,param_3,param_4);\n  return;\n}" { (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x20ed8);" (call_expression "entry(param_2,0x20ed8)" identifier (argument_list "(param_2,0x20ed8)" ( identifier , number_literal ))) ;) (if_statement "if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0)" ( (binary_expression "(*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0" (parenthesized_expression "(*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1)" ( (binary_expression "*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1" (pointer_expression "*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44)" * (cast_expression "(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(unaff_retaddr + 0x27c) + 0x44)" ( (binary_expression "*(int *)(unaff_retaddr + 0x27c) + 0x44" (pointer_expression "*(int *)(unaff_retaddr + 0x27c)" * (cast_expression "(int *)(unaff_retaddr + 0x27c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x27c)" ( (binary_expression "unaff_retaddr + 0x27c" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0007b220(unaff_retaddr,param_3,param_4);" (call_expression "FUN_0007b220(unaff_retaddr,param_3,param_4)" identifier (argument_list "(unaff_retaddr,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm2\nFUN_00020ed0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int unaff_retaddr;\n  \n  entry(param_2,0x20ed8);\n  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }\n  FUN_0007b220(unaff_retaddr,param_3,param_4);\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00020ed0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00020ed0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int unaff_retaddr;\n  \n  entry(param_2,0x20ed8);\n  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }\n  FUN_0007b220(unaff_retaddr,param_3,param_4);\n  return;\n}" ({ "{") (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x20ed8);" (call_expression "entry(param_2,0x20ed8)" (identifier "entry") (argument_list "(param_2,0x20ed8)" (( "(") (identifier "param_2") (, ",") (number_literal "0x20ed8") () ")"))) (; ";")) (if_statement "if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0" (parenthesized_expression "(*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1)" (( "(") (binary_expression "*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1" (pointer_expression "*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44)" (* "*") (cast_expression "(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(unaff_retaddr + 0x27c) + 0x44)" (( "(") (binary_expression "*(int *)(unaff_retaddr + 0x27c) + 0x44" (pointer_expression "*(int *)(unaff_retaddr + 0x27c)" (* "*") (cast_expression "(int *)(unaff_retaddr + 0x27c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x27c)" (( "(") (binary_expression "unaff_retaddr + 0x27c" (identifier "unaff_retaddr") (+ "+") (number_literal "0x27c")) () ")")))) (+ "+") (number_literal "0x44")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0007b220(unaff_retaddr,param_3,param_4);" (call_expression "FUN_0007b220(unaff_retaddr,param_3,param_4)" (identifier "FUN_0007b220") (argument_list "(unaff_retaddr,param_3,param_4)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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 *conn,type_2 *socks,int numsocks)

{
  int iVar1;
  
  if ((conn->handler->flags & 1) == 0) {
    return 0;
  }
  iVar1 = var_1(conn,socks,numsocks);
  return iVar1;
}


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

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

{
  int unaff_retaddr;
  
  entry(param_2,0x20ed8);
  if ((*(byte *)(*(int *)(unaff_retaddr + 0x27c) + 0x44) & 1) == 0) {
    return;
  }
  FUN_0007b220(unaff_retaddr,param_3,param_4);
  return;
}

