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

CURLcode Curl_ssl_shutdown(connectdata *conn,int sockindex)

{
  int iVar1;
  CURLcode CVar2;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(conn,sockindex);
  CVar2 = CURLE_SSL_SHUTDOWN_FAILED;
  if (iVar1 == 0) {
    conn->ssl[sockindex].use = false;
    conn->ssl[sockindex].state = ssl_connection_none;
    conn->recv[sockindex] = (Curl_recv *)(unaff_EDI + -0x5a026);
    conn->send[sockindex] = (Curl_send *)(unaff_EDI + -0x5a156);
    CVar2 = CURLE_OK;
  }
  return CVar2;
}



undefined4 FUN_00081fe0(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  int unaff_EDI;
  
  FUN_0002eb2c();
  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);
  uVar2 = 0x50;
  if (iVar1 == 0) {
    iVar1 = param_2 * 0x10 + param_1;
    *(undefined1 *)(iVar1 + 0x1b4) = 0;
    *(undefined4 *)(iVar1 + 0x1b8) = 0;
    param_1 = param_1 + param_2 * 4;
    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;
    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;
    uVar2 = 0;
  }
  return uVar2;
}


PUSH EDI
CALL 0x0002eb2c
ADD EDI,0x347fa
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
SUB ESP,0x8
LEA EAX,[EDI + 0x914]
MOV EAX,dword ptr [EAX]
PUSH ESI
PUSH EBX
CALL dword ptr [EAX + 0x20]
MOV EDX,0x50
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00082047
MOV EAX,ESI
LEA EDX,[EDI + 0xfff717e0]
SHL EAX,0x4
ADD EAX,EBX
MOV byte ptr [EAX + 0x1b4],0x0
MOV dword ptr [EAX + 0x1b8],0x0
LEA EAX,[EBX + ESI*0x4]
MOV dword ptr [EAX + 0x1a4],EDX
LEA EDX,[EDI + 0xfff716b0]
MOV dword ptr [EAX + 0x1ac],EDX
XOR EDX,EDX
POP EBX
MOV EAX,EDX
POP ESI
POP EDI
RET
(translation_unit "undefined4 FUN_00081fe0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0002eb2c();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);\n  uVar2 = 0x50;\n  if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_00081fe0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0002eb2c();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);\n  uVar2 = 0x50;\n  if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00081fe0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0002eb2c();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);\n  uVar2 = 0x50;\n  if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0002eb2c();" (call_expression "FUN_0002eb2c()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);" (assignment_expression "iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2)" identifier = (call_expression "(**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2)" (parenthesized_expression "(**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))" ( (pointer_expression "**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" * (pointer_expression "*(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" * (cast_expression "(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x3510e) + 0x20)" ( (binary_expression "*(int *)(unaff_EDI + 0x3510e) + 0x20" (pointer_expression "*(int *)(unaff_EDI + 0x3510e)" * (cast_expression "(int *)(unaff_EDI + 0x3510e)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3510e)" ( (binary_expression "unaff_EDI + 0x3510e" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = 0x50;" (assignment_expression "uVar2 = 0x50" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }" { (expression_statement "iVar1 = param_2 * 0x10 + param_1;" (assignment_expression "iVar1 = param_2 * 0x10 + param_1" identifier = (binary_expression "param_2 * 0x10 + param_1" (binary_expression "param_2 * 0x10" identifier * number_literal) + identifier)) ;) (expression_statement "*(undefined1 *)(iVar1 + 0x1b4) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 0x1b4) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 0x1b4)" * (cast_expression "(undefined1 *)(iVar1 + 0x1b4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1b4)" ( (binary_expression "iVar1 + 0x1b4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1b8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1b8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar1 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1b8)" ( (binary_expression "iVar1 + 0x1b8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1 = param_1 + param_2 * 4;" (assignment_expression "param_1 = param_1 + param_2 * 4" identifier = (binary_expression "param_1 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal))) ;) (expression_statement "*(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;" (assignment_expression "*(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026" (pointer_expression "*(int *)(param_1 + 0x1a4)" * (cast_expression "(int *)(param_1 + 0x1a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a4)" ( (binary_expression "param_1 + 0x1a4" identifier + number_literal) )))) = (binary_expression "unaff_EDI + -0x5a026" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;" (assignment_expression "*(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156" (pointer_expression "*(int *)(param_1 + 0x1ac)" * (cast_expression "(int *)(param_1 + 0x1ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ac)" ( (binary_expression "param_1 + 0x1ac" identifier + number_literal) )))) = (binary_expression "unaff_EDI + -0x5a156" identifier + number_literal)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode Curl_ssl_shutdown(connectdata *conn,int sockindex)\n\n{\n  int iVar1;\n  CURLcode CVar2;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(conn,sockindex);\n  CVar2 = CURLE_SSL_SHUTDOWN_FAILED;\n  if (iVar1 == 0) {\n    conn->ssl[sockindex].use = false;\n    conn->ssl[sockindex].state = ssl_connection_none;\n    conn->recv[sockindex] = (Curl_recv *)(unaff_EDI + -0x5a026);\n    conn->send[sockindex] = (Curl_send *)(unaff_EDI + -0x5a156);\n    CVar2 = CURLE_OK;\n  }\n  return CVar2;\n}\n\n" comment comment (function_definition "CURLcode Curl_ssl_shutdown(connectdata *conn,int sockindex)\n\n{\n  int iVar1;\n  CURLcode CVar2;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(conn,sockindex);\n  CVar2 = CURLE_SSL_SHUTDOWN_FAILED;\n  if (iVar1 == 0) {\n    conn->ssl[sockindex].use = false;\n    conn->ssl[sockindex].state = ssl_connection_none;\n    conn->recv[sockindex] = (Curl_recv *)(unaff_EDI + -0x5a026);\n    conn->send[sockindex] = (Curl_send *)(unaff_EDI + -0x5a156);\n    CVar2 = CURLE_OK;\n  }\n  return CVar2;\n}" type_identifier (function_declarator "Curl_ssl_shutdown(connectdata *conn,int sockindex)" identifier (parameter_list "(connectdata *conn,int sockindex)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "int sockindex" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  CURLcode CVar2;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(conn,sockindex);\n  CVar2 = CURLE_SSL_SHUTDOWN_FAILED;\n  if (iVar1 == 0) {\n    conn->ssl[sockindex].use = false;\n    conn->ssl[sockindex].state = ssl_connection_none;\n    conn->recv[sockindex] = (Curl_recv *)(unaff_EDI + -0x5a026);\n    conn->send[sockindex] = (Curl_send *)(unaff_EDI + -0x5a156);\n    CVar2 = CURLE_OK;\n  }\n  return CVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(conn,sockindex);" (assignment_expression "iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(conn,sockindex)" identifier = (call_expression "(**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(conn,sockindex)" (parenthesized_expression "(**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))" ( (pointer_expression "**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" * (pointer_expression "*(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" * (cast_expression "(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x3510e) + 0x20)" ( (binary_expression "*(int *)(unaff_EDI + 0x3510e) + 0x20" (pointer_expression "*(int *)(unaff_EDI + 0x3510e)" * (cast_expression "(int *)(unaff_EDI + 0x3510e)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3510e)" ( (binary_expression "unaff_EDI + 0x3510e" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(conn,sockindex)" ( identifier , identifier )))) ;) (expression_statement "CVar2 = CURLE_SSL_SHUTDOWN_FAILED;" (assignment_expression "CVar2 = CURLE_SSL_SHUTDOWN_FAILED" identifier = identifier) ;) (if_statement "if (iVar1 == 0) {\n    conn->ssl[sockindex].use = false;\n    conn->ssl[sockindex].state = ssl_connection_none;\n    conn->recv[sockindex] = (Curl_recv *)(unaff_EDI + -0x5a026);\n    conn->send[sockindex] = (Curl_send *)(unaff_EDI + -0x5a156);\n    CVar2 = CURLE_OK;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    conn->ssl[sockindex].use = false;\n    conn->ssl[sockindex].state = ssl_connection_none;\n    conn->recv[sockindex] = (Curl_recv *)(unaff_EDI + -0x5a026);\n    conn->send[sockindex] = (Curl_send *)(unaff_EDI + -0x5a156);\n    CVar2 = CURLE_OK;\n  }" { (expression_statement "conn->ssl[sockindex].use = false;" (assignment_expression "conn->ssl[sockindex].use = false" (field_expression "conn->ssl[sockindex].use" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) = false) ;) (expression_statement "conn->ssl[sockindex].state = ssl_connection_none;" (assignment_expression "conn->ssl[sockindex].state = ssl_connection_none" (field_expression "conn->ssl[sockindex].state" (subscript_expression "conn->ssl[sockindex]" (field_expression "conn->ssl" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "conn->recv[sockindex] = (Curl_recv *)(unaff_EDI + -0x5a026);" (assignment_expression "conn->recv[sockindex] = (Curl_recv *)(unaff_EDI + -0x5a026)" (subscript_expression "conn->recv[sockindex]" (field_expression "conn->recv" identifier -> field_identifier) [ identifier ]) = (cast_expression "(Curl_recv *)(unaff_EDI + -0x5a026)" ( (type_descriptor "Curl_recv *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + -0x5a026)" ( (binary_expression "unaff_EDI + -0x5a026" identifier + number_literal) )))) ;) (expression_statement "conn->send[sockindex] = (Curl_send *)(unaff_EDI + -0x5a156);" (assignment_expression "conn->send[sockindex] = (Curl_send *)(unaff_EDI + -0x5a156)" (subscript_expression "conn->send[sockindex]" (field_expression "conn->send" identifier -> field_identifier) [ identifier ]) = (cast_expression "(Curl_send *)(unaff_EDI + -0x5a156)" ( (type_descriptor "Curl_send *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + -0x5a156)" ( (binary_expression "unaff_EDI + -0x5a156" identifier + number_literal) )))) ;) (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) })) (return_statement "return CVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_00081fe0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0002eb2c();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);\n  uVar2 = 0x50;\n  if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_00081fe0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0002eb2c();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);\n  uVar2 = 0x50;\n  if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00081fe0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0002eb2c();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);\n  uVar2 = 0x50;\n  if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_0002eb2c();" (call_expression "FUN_0002eb2c()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);" (assignment_expression "iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2)" identifier = (call_expression "(**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2)" (parenthesized_expression "(**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))" ( (pointer_expression "**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" * (pointer_expression "*(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" * (cast_expression "(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(unaff_EDI + 0x3510e) + 0x20)" ( (binary_expression "*(int *)(unaff_EDI + 0x3510e) + 0x20" (pointer_expression "*(int *)(unaff_EDI + 0x3510e)" * (cast_expression "(int *)(unaff_EDI + 0x3510e)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x3510e)" ( (binary_expression "unaff_EDI + 0x3510e" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = 0x50;" (assignment_expression "uVar2 = 0x50" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }" { (expression_statement "iVar1 = param_2 * 0x10 + param_1;" (assignment_expression "iVar1 = param_2 * 0x10 + param_1" identifier = (binary_expression "param_2 * 0x10 + param_1" (binary_expression "param_2 * 0x10" identifier * number_literal) + identifier)) ;) (expression_statement "*(undefined1 *)(iVar1 + 0x1b4) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 0x1b4) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 0x1b4)" * (cast_expression "(undefined1 *)(iVar1 + 0x1b4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1b4)" ( (binary_expression "iVar1 + 0x1b4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1b8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1b8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1b8)" * (cast_expression "(undefined4 *)(iVar1 + 0x1b8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1b8)" ( (binary_expression "iVar1 + 0x1b8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1 = param_1 + param_2 * 4;" (assignment_expression "param_1 = param_1 + param_2 * 4" identifier = (binary_expression "param_1 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal))) ;) (expression_statement "*(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;" (assignment_expression "*(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026" (pointer_expression "*(int *)(param_1 + 0x1a4)" * (cast_expression "(int *)(param_1 + 0x1a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a4)" ( (binary_expression "param_1 + 0x1a4" identifier + number_literal) )))) = (binary_expression "unaff_EDI + -0x5a026" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;" (assignment_expression "*(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156" (pointer_expression "*(int *)(param_1 + 0x1ac)" * (cast_expression "(int *)(param_1 + 0x1ac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ac)" ( (binary_expression "param_1 + 0x1ac" identifier + number_literal) )))) = (binary_expression "unaff_EDI + -0x5a156" identifier + number_literal)) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_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) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00081fe0(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0002eb2c();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);\n  uVar2 = 0x50;\n  if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_00081fe0(int param_1,int param_2)" (identifier "FUN_00081fe0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int unaff_EDI;\n  \n  FUN_0002eb2c();\n  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);\n  uVar2 = 0x50;\n  if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_0002eb2c();" (call_expression "FUN_0002eb2c()" (identifier "FUN_0002eb2c") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);" (assignment_expression "iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2)" (parenthesized_expression "(**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))" (( "(") (pointer_expression "**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" (* "*") (pointer_expression "*(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" (* "*") (cast_expression "(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(unaff_EDI + 0x3510e) + 0x20)" (( "(") (binary_expression "*(int *)(unaff_EDI + 0x3510e) + 0x20" (pointer_expression "*(int *)(unaff_EDI + 0x3510e)" (* "*") (cast_expression "(int *)(unaff_EDI + 0x3510e)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x3510e)" (( "(") (binary_expression "unaff_EDI + 0x3510e" (identifier "unaff_EDI") (+ "+") (number_literal "0x3510e")) () ")")))) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar2 = 0x50;" (assignment_expression "uVar2 = 0x50" (identifier "uVar2") (= "=") (number_literal "0x50")) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = param_2 * 0x10 + param_1;\n    *(undefined1 *)(iVar1 + 0x1b4) = 0;\n    *(undefined4 *)(iVar1 + 0x1b8) = 0;\n    param_1 = param_1 + param_2 * 4;\n    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;\n    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "iVar1 = param_2 * 0x10 + param_1;" (assignment_expression "iVar1 = param_2 * 0x10 + param_1" (identifier "iVar1") (= "=") (binary_expression "param_2 * 0x10 + param_1" (binary_expression "param_2 * 0x10" (identifier "param_2") (* "*") (number_literal "0x10")) (+ "+") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + 0x1b4) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 0x1b4) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 0x1b4)" (* "*") (cast_expression "(undefined1 *)(iVar1 + 0x1b4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1b4)" (( "(") (binary_expression "iVar1 + 0x1b4" (identifier "iVar1") (+ "+") (number_literal "0x1b4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x1b8) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1b8) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1b8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1b8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1b8)" (( "(") (binary_expression "iVar1 + 0x1b8" (identifier "iVar1") (+ "+") (number_literal "0x1b8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1 = param_1 + param_2 * 4;" (assignment_expression "param_1 = param_1 + param_2 * 4" (identifier "param_1") (= "=") (binary_expression "param_1 + param_2 * 4" (identifier "param_1") (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4")))) (; ";")) (expression_statement "*(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;" (assignment_expression "*(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026" (pointer_expression "*(int *)(param_1 + 0x1a4)" (* "*") (cast_expression "(int *)(param_1 + 0x1a4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a4)" (( "(") (binary_expression "param_1 + 0x1a4" (identifier "param_1") (+ "+") (number_literal "0x1a4")) () ")")))) (= "=") (binary_expression "unaff_EDI + -0x5a026" (identifier "unaff_EDI") (+ "+") (number_literal "-0x5a026"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;" (assignment_expression "*(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156" (pointer_expression "*(int *)(param_1 + 0x1ac)" (* "*") (cast_expression "(int *)(param_1 + 0x1ac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1ac)" (( "(") (binary_expression "param_1 + 0x1ac" (identifier "param_1") (+ "+") (number_literal "0x1ac")) () ")")))) (= "=") (binary_expression "unaff_EDI + -0x5a156" (identifier "unaff_EDI") (+ "+") (number_literal "-0x5a156"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

type_1 function_1(type_2 *conn,int sockindex)

{
  int var_3;
  type_1 CVar2;
  int var_2;
  
  var_1();
  var_3 = (**(type_3 **)(*(int *)(var_2 + 0x3510e) + 0x20))(conn,sockindex);
  CVar2 = CURLE_SSL_SHUTDOWN_FAILED;
  if (var_3 == 0) {
    conn->ssl[sockindex].use = false;
    conn->ssl[sockindex].state = ssl_connection_none;
    conn->recv[sockindex] = (type_4 *)(var_2 + -0x5a026);
    conn->send[sockindex] = (type_5 *)(var_2 + -0x5a156);
    CVar2 = CURLE_OK;
  }
  return CVar2;
}


(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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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: (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))))))) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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: (number_literal))) (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))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  int unaff_EDI;
  
  FUN_0002eb2c();
  iVar1 = (**(code **)(*(int *)(unaff_EDI + 0x3510e) + 0x20))(param_1,param_2);
  uVar2 = 0x50;
  if (iVar1 == 0) {
    iVar1 = param_2 * 0x10 + param_1;
    *(undefined1 *)(iVar1 + 0x1b4) = 0;
    *(undefined4 *)(iVar1 + 0x1b8) = 0;
    param_1 = param_1 + param_2 * 4;
    *(int *)(param_1 + 0x1a4) = unaff_EDI + -0x5a026;
    *(int *)(param_1 + 0x1ac) = unaff_EDI + -0x5a156;
    uVar2 = 0;
  }
  return uVar2;
}

