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

void Curl_ssl_delsessionid(connectdata *conn,void *ssl_sessionid)

{
  void *pvVar1;
  size_t sVar2;
  curl_ssl_session *session;
  size_t sVar3;
  
  sVar2 = (conn->data->set).general_ssl.max_ssl_sessions;
  if (sVar2 != 0) {
    session = (conn->data->state).session;
    sVar3 = 0;
    pvVar1 = session->sessionid;
    while( true ) {
      if (ssl_sessionid == pvVar1) {
        Curl_ssl_kill_session(session);
        return;
      }
      sVar3 = sVar3 + 1;
      if (sVar3 == sVar2) break;
      pvVar1 = session[1].sessionid;
      session = session + 1;
    }
  }
  return;
}



void __regparm2 FUN_00081c00(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  
  piVar4 = (int *)entry(param_2,0x81c0c);
  iVar2 = *(int *)(*piVar4 + 0x8ec);
  if (iVar2 != 0) {
    iVar3 = *(int *)(*piVar4 + 0xc84);
    iVar5 = 0;
    iVar1 = *(int *)(iVar3 + 0xc);
    while( true ) {
      if (param_3 == iVar1) {
        FUN_00081b90(iVar3);
        return;
      }
      iVar5 = iVar5 + 1;
      if (iVar5 == iVar2) break;
      iVar1 = *(int *)(iVar3 + 0x54);
      iVar3 = iVar3 + 0x48;
    }
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x00019ed0
ADD EBX,0x34bd4
MOV EDI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX]
MOV ESI,dword ptr [EAX + 0x8ec]
TEST ESI,ESI
JZ 0x00081c49
MOV ECX,dword ptr [EAX + 0xc84]
XOR EDX,EDX
LEA EAX,[ECX + 0x48]
CMP EDI,dword ptr [ECX + 0xc]
JNZ 0x00081c42
JMP 0x00081c50
MOV ECX,EAX
ADD EAX,0x48
CMP dword ptr [EAX + -0x3c],EDI
JZ 0x00081c50
ADD EDX,0x1
CMP EDX,ESI
JNZ 0x00081c38
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH ECX
CALL 0x00081b90
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "void __regparm2 FUN_00081c00(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  piVar4 = (int *)entry(param_2,0x81c0c);\n  iVar2 = *(int *)(*piVar4 + 0x8ec);\n  if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm2 FUN_00081c00(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  piVar4 = (int *)entry(param_2,0x81c0c);\n  iVar2 = *(int *)(*piVar4 + 0x8ec);\n  if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00081c00(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  piVar4 = (int *)entry(param_2,0x81c0c);\n  iVar2 = *(int *)(*piVar4 + 0x8ec);\n  if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "piVar4 = (int *)entry(param_2,0x81c0c);" (assignment_expression "piVar4 = (int *)entry(param_2,0x81c0c)" identifier = (cast_expression "(int *)entry(param_2,0x81c0c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "entry(param_2,0x81c0c)" identifier (argument_list "(param_2,0x81c0c)" ( identifier , number_literal ))))) ;) (expression_statement "iVar2 = *(int *)(*piVar4 + 0x8ec);" (assignment_expression "iVar2 = *(int *)(*piVar4 + 0x8ec)" identifier = (pointer_expression "*(int *)(*piVar4 + 0x8ec)" * (cast_expression "(int *)(*piVar4 + 0x8ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + 0x8ec)" ( (binary_expression "*piVar4 + 0x8ec" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }" { (expression_statement "iVar3 = *(int *)(*piVar4 + 0xc84);" (assignment_expression "iVar3 = *(int *)(*piVar4 + 0xc84)" identifier = (pointer_expression "*(int *)(*piVar4 + 0xc84)" * (cast_expression "(int *)(*piVar4 + 0xc84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + 0xc84)" ( (binary_expression "*piVar4 + 0xc84" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }" { (if_statement "if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }" if (parenthesized_expression "(param_3 == iVar1)" ( (binary_expression "param_3 == iVar1" identifier == identifier) )) (compound_statement "{\n        FUN_00081b90(iVar3);\n        return;\n      }" { (expression_statement "FUN_00081b90(iVar3);" (call_expression "FUN_00081b90(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == iVar2) break;" if (parenthesized_expression "(iVar5 == iVar2)" ( (binary_expression "iVar5 == iVar2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(iVar3 + 0x54);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x54)" identifier = (pointer_expression "*(int *)(iVar3 + 0x54)" * (cast_expression "(int *)(iVar3 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x54)" ( (binary_expression "iVar3 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar3 + 0x48;" (assignment_expression "iVar3 = iVar3 + 0x48" identifier = (binary_expression "iVar3 + 0x48" identifier + number_literal)) ;) })) })) (return_statement "return;" return ;) })))
(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\nvoid Curl_ssl_delsessionid(connectdata *conn,void *ssl_sessionid)\n\n{\n  void *pvVar1;\n  size_t sVar2;\n  curl_ssl_session *session;\n  size_t sVar3;\n  \n  sVar2 = (conn->data->set).general_ssl.max_ssl_sessions;\n  if (sVar2 != 0) {\n    session = (conn->data->state).session;\n    sVar3 = 0;\n    pvVar1 = session->sessionid;\n    while( true ) {\n      if (ssl_sessionid == pvVar1) {\n        Curl_ssl_kill_session(session);\n        return;\n      }\n      sVar3 = sVar3 + 1;\n      if (sVar3 == sVar2) break;\n      pvVar1 = session[1].sessionid;\n      session = session + 1;\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void Curl_ssl_delsessionid(connectdata *conn,void *ssl_sessionid)\n\n{\n  void *pvVar1;\n  size_t sVar2;\n  curl_ssl_session *session;\n  size_t sVar3;\n  \n  sVar2 = (conn->data->set).general_ssl.max_ssl_sessions;\n  if (sVar2 != 0) {\n    session = (conn->data->state).session;\n    sVar3 = 0;\n    pvVar1 = session->sessionid;\n    while( true ) {\n      if (ssl_sessionid == pvVar1) {\n        Curl_ssl_kill_session(session);\n        return;\n      }\n      sVar3 = sVar3 + 1;\n      if (sVar3 == sVar2) break;\n      pvVar1 = session[1].sessionid;\n      session = session + 1;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "Curl_ssl_delsessionid(connectdata *conn,void *ssl_sessionid)" identifier (parameter_list "(connectdata *conn,void *ssl_sessionid)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "void *ssl_sessionid" primitive_type (pointer_declarator "*ssl_sessionid" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  size_t sVar2;\n  curl_ssl_session *session;\n  size_t sVar3;\n  \n  sVar2 = (conn->data->set).general_ssl.max_ssl_sessions;\n  if (sVar2 != 0) {\n    session = (conn->data->state).session;\n    sVar3 = 0;\n    pvVar1 = session->sessionid;\n    while( true ) {\n      if (ssl_sessionid == pvVar1) {\n        Curl_ssl_kill_session(session);\n        return;\n      }\n      sVar3 = sVar3 + 1;\n      if (sVar3 == sVar2) break;\n      pvVar1 = session[1].sessionid;\n      session = session + 1;\n    }\n  }\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "curl_ssl_session *session;" type_identifier (pointer_declarator "*session" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (expression_statement "sVar2 = (conn->data->set).general_ssl.max_ssl_sessions;" (assignment_expression "sVar2 = (conn->data->set).general_ssl.max_ssl_sessions" identifier = (field_expression "(conn->data->set).general_ssl.max_ssl_sessions" (field_expression "(conn->data->set).general_ssl" (parenthesized_expression "(conn->data->set)" ( (field_expression "conn->data->set" (field_expression "conn->data" identifier -> field_identifier) -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (sVar2 != 0) {\n    session = (conn->data->state).session;\n    sVar3 = 0;\n    pvVar1 = session->sessionid;\n    while( true ) {\n      if (ssl_sessionid == pvVar1) {\n        Curl_ssl_kill_session(session);\n        return;\n      }\n      sVar3 = sVar3 + 1;\n      if (sVar3 == sVar2) break;\n      pvVar1 = session[1].sessionid;\n      session = session + 1;\n    }\n  }" if (parenthesized_expression "(sVar2 != 0)" ( (binary_expression "sVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    session = (conn->data->state).session;\n    sVar3 = 0;\n    pvVar1 = session->sessionid;\n    while( true ) {\n      if (ssl_sessionid == pvVar1) {\n        Curl_ssl_kill_session(session);\n        return;\n      }\n      sVar3 = sVar3 + 1;\n      if (sVar3 == sVar2) break;\n      pvVar1 = session[1].sessionid;\n      session = session + 1;\n    }\n  }" { (expression_statement "session = (conn->data->state).session;" (assignment_expression "session = (conn->data->state).session" identifier = (field_expression "(conn->data->state).session" (parenthesized_expression "(conn->data->state)" ( (field_expression "conn->data->state" (field_expression "conn->data" identifier -> field_identifier) -> field_identifier) )) . field_identifier)) ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (expression_statement "pvVar1 = session->sessionid;" (assignment_expression "pvVar1 = session->sessionid" identifier = (field_expression "session->sessionid" identifier -> field_identifier)) ;) (while_statement "while( true ) {\n      if (ssl_sessionid == pvVar1) {\n        Curl_ssl_kill_session(session);\n        return;\n      }\n      sVar3 = sVar3 + 1;\n      if (sVar3 == sVar2) break;\n      pvVar1 = session[1].sessionid;\n      session = session + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (ssl_sessionid == pvVar1) {\n        Curl_ssl_kill_session(session);\n        return;\n      }\n      sVar3 = sVar3 + 1;\n      if (sVar3 == sVar2) break;\n      pvVar1 = session[1].sessionid;\n      session = session + 1;\n    }" { (if_statement "if (ssl_sessionid == pvVar1) {\n        Curl_ssl_kill_session(session);\n        return;\n      }" if (parenthesized_expression "(ssl_sessionid == pvVar1)" ( (binary_expression "ssl_sessionid == pvVar1" identifier == identifier) )) (compound_statement "{\n        Curl_ssl_kill_session(session);\n        return;\n      }" { (expression_statement "Curl_ssl_kill_session(session);" (call_expression "Curl_ssl_kill_session(session)" identifier (argument_list "(session)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) (if_statement "if (sVar3 == sVar2) break;" if (parenthesized_expression "(sVar3 == sVar2)" ( (binary_expression "sVar3 == sVar2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pvVar1 = session[1].sessionid;" (assignment_expression "pvVar1 = session[1].sessionid" identifier = (field_expression "session[1].sessionid" (subscript_expression "session[1]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "session = session + 1;" (assignment_expression "session = session + 1" identifier = (binary_expression "session + 1" identifier + number_literal)) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm2 FUN_00081c00(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  piVar4 = (int *)entry(param_2,0x81c0c);\n  iVar2 = *(int *)(*piVar4 + 0x8ec);\n  if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm2 FUN_00081c00(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  piVar4 = (int *)entry(param_2,0x81c0c);\n  iVar2 = *(int *)(*piVar4 + 0x8ec);\n  if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00081c00(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  piVar4 = (int *)entry(param_2,0x81c0c);\n  iVar2 = *(int *)(*piVar4 + 0x8ec);\n  if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "piVar4 = (int *)entry(param_2,0x81c0c);" (assignment_expression "piVar4 = (int *)entry(param_2,0x81c0c)" identifier = (cast_expression "(int *)entry(param_2,0x81c0c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "entry(param_2,0x81c0c)" identifier (argument_list "(param_2,0x81c0c)" ( identifier , number_literal ))))) ;) (expression_statement "iVar2 = *(int *)(*piVar4 + 0x8ec);" (assignment_expression "iVar2 = *(int *)(*piVar4 + 0x8ec)" identifier = (pointer_expression "*(int *)(*piVar4 + 0x8ec)" * (cast_expression "(int *)(*piVar4 + 0x8ec)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + 0x8ec)" ( (binary_expression "*piVar4 + 0x8ec" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (if_statement "if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }" { (expression_statement "iVar3 = *(int *)(*piVar4 + 0xc84);" (assignment_expression "iVar3 = *(int *)(*piVar4 + 0xc84)" identifier = (pointer_expression "*(int *)(*piVar4 + 0xc84)" * (cast_expression "(int *)(*piVar4 + 0xc84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar4 + 0xc84)" ( (binary_expression "*piVar4 + 0xc84" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }" { (if_statement "if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }" if (parenthesized_expression "(param_3 == iVar1)" ( (binary_expression "param_3 == iVar1" identifier == identifier) )) (compound_statement "{\n        FUN_00081b90(iVar3);\n        return;\n      }" { (expression_statement "FUN_00081b90(iVar3);" (call_expression "FUN_00081b90(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == iVar2) break;" if (parenthesized_expression "(iVar5 == iVar2)" ( (binary_expression "iVar5 == iVar2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(iVar3 + 0x54);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x54)" identifier = (pointer_expression "*(int *)(iVar3 + 0x54)" * (cast_expression "(int *)(iVar3 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x54)" ( (binary_expression "iVar3 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iVar3 + 0x48;" (assignment_expression "iVar3 = iVar3 + 0x48" identifier = (binary_expression "iVar3 + 0x48" identifier + number_literal)) ;) })) })) (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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (return_statement return ;) })))
(function_definition "void __regparm2 FUN_00081c00(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  piVar4 = (int *)entry(param_2,0x81c0c);\n  iVar2 = *(int *)(*piVar4 + 0x8ec);\n  if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00081c00(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_00081c00") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  piVar4 = (int *)entry(param_2,0x81c0c);\n  iVar2 = *(int *)(*piVar4 + 0x8ec);\n  if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "piVar4 = (int *)entry(param_2,0x81c0c);" (assignment_expression "piVar4 = (int *)entry(param_2,0x81c0c)" (identifier "piVar4") (= "=") (cast_expression "(int *)entry(param_2,0x81c0c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "entry(param_2,0x81c0c)" (identifier "entry") (argument_list "(param_2,0x81c0c)" (( "(") (identifier "param_2") (, ",") (number_literal "0x81c0c") () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(*piVar4 + 0x8ec);" (assignment_expression "iVar2 = *(int *)(*piVar4 + 0x8ec)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*piVar4 + 0x8ec)" (* "*") (cast_expression "(int *)(*piVar4 + 0x8ec)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar4 + 0x8ec)" (( "(") (binary_expression "*piVar4 + 0x8ec" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x8ec")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = *(int *)(*piVar4 + 0xc84);\n    iVar5 = 0;\n    iVar1 = *(int *)(iVar3 + 0xc);\n    while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(*piVar4 + 0xc84);" (assignment_expression "iVar3 = *(int *)(*piVar4 + 0xc84)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*piVar4 + 0xc84)" (* "*") (cast_expression "(int *)(*piVar4 + 0xc84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar4 + 0xc84)" (( "(") (binary_expression "*piVar4 + 0xc84" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0xc84")) () ")"))))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (while_statement "while( true ) {\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }\n      iVar5 = iVar5 + 1;\n      if (iVar5 == iVar2) break;\n      iVar1 = *(int *)(iVar3 + 0x54);\n      iVar3 = iVar3 + 0x48;\n    }" ({ "{") (if_statement "if (param_3 == iVar1) {\n        FUN_00081b90(iVar3);\n        return;\n      }" (if "if") (parenthesized_expression "(param_3 == iVar1)" (( "(") (binary_expression "param_3 == iVar1" (identifier "param_3") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n        FUN_00081b90(iVar3);\n        return;\n      }" ({ "{") (expression_statement "FUN_00081b90(iVar3);" (call_expression "FUN_00081b90(iVar3)" (identifier "FUN_00081b90") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar5 == iVar2) break;" (if "if") (parenthesized_expression "(iVar5 == iVar2)" (( "(") (binary_expression "iVar5 == iVar2" (identifier "iVar5") (== "==") (identifier "iVar2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *(int *)(iVar3 + 0x54);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0x54)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0x54)" (* "*") (cast_expression "(int *)(iVar3 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x54)" (( "(") (binary_expression "iVar3 + 0x54" (identifier "iVar3") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "iVar3 = iVar3 + 0x48;" (assignment_expression "iVar3 = iVar3 + 0x48" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 0x48" (identifier "iVar3") (+ "+") (number_literal "0x48"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *conn,void *var_2)

{
  void *var_3;
  size_t var_1;
  type_2 *var_6;
  size_t var_5;
  
  var_1 = (conn->data->set).general_ssl.max_ssl_sessions;
  if (var_1 != 0) {
    var_6 = (conn->data->state).var_6;
    var_5 = 0;
    var_3 = var_6->sessionid;
    while( true ) {
      if (var_2 == var_3) {
        var_4(var_6);
        return;
      }
      var_5 = var_5 + 1;
      if (var_5 == var_1) break;
      var_3 = var_6[1].sessionid;
      var_6 = var_6 + 1;
    }
  }
  return;
}


(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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement))))

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  
  piVar4 = (int *)entry(param_2,0x81c0c);
  iVar2 = *(int *)(*piVar4 + 0x8ec);
  if (iVar2 != 0) {
    iVar3 = *(int *)(*piVar4 + 0xc84);
    iVar5 = 0;
    iVar1 = *(int *)(iVar3 + 0xc);
    while( true ) {
      if (param_3 == iVar1) {
        FUN_00081b90(iVar3);
        return;
      }
      iVar5 = iVar5 + 1;
      if (iVar5 == iVar2) break;
      iVar1 = *(int *)(iVar3 + 0x54);
      iVar3 = iVar3 + 0x48;
    }
  }
  return;
}

