
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

_Bool MHD_check_response_header_token_ci
                (MHD_Response *response,char *key,char *token,size_t token_len)

{
  _Bool _Var1;
  int iVar2;
  MHD_HTTP_Header *pMVar3;
  
  if ((((key != (char *)0x0) && (*key != '\0')) && (token != (char *)0x0)) && (*token != '\0')) {
    for (pMVar3 = response->first_header; pMVar3 != (MHD_HTTP_Header *)0x0; pMVar3 = pMVar3->next) {
      while ((pMVar3->kind != MHD_HEADER_KIND ||
             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))) {
        pMVar3 = pMVar3->next;
        if (pMVar3 == (MHD_HTTP_Header *)0x0) {
          return false;
        }
      }
      _Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len);
      if (_Var1) {
        return _Var1;
      }
    }
  }
  return false;
}



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

undefined4 FUN_00022cf0(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  
  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&
     (*param_3 != '\0')) {
    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {
      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {
        piVar3 = (int *)*piVar3;
        if (piVar3 == (int *)0x0) {
          return 0;
        }
      }
      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);
      if ((char)uVar2 != '\0') {
        return uVar2;
      }
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013810
ADD EBX,0x120e7
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x24]
MOV EBP,dword ptr [ESP + 0x28]
TEST EDI,EDI
JZ 0x00022d70
CMP byte ptr [EDI],0x0
JZ 0x00022d70
TEST EBP,EBP
JZ 0x00022d70
CMP byte ptr [EBP],0x0
JZ 0x00022d70
MOV EAX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JNZ 0x00022d36
JMP 0x00022d70
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x00022d70
CMP dword ptr [ESI + 0xc],0x1
JNZ 0x00022d30
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESI + 0x4]
CALL 0x00021ee0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00022d30
SUB ESP,0x4
PUSH dword ptr [ESP + 0x30]
PUSH EBP
PUSH dword ptr [ESI + 0x8]
CALL 0x00022010
ADD ESP,0x10
TEST AL,AL
JNZ 0x00022d72
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JNZ 0x00022d36
LEA ESI,[ESI]
XOR EAX,EAX
ADD ESP,0xc
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_00022cf0(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00022cf0(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00022cf0(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }" if (parenthesized_expression "((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0'))" ( (binary_expression "(((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')" (parenthesized_expression "(((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0))" ( (binary_expression "((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)" (parenthesized_expression "((param_2 != (char *)0x0) && (*param_2 != '\0'))" ( (binary_expression "(param_2 != (char *)0x0) && (*param_2 != '\0')" (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(*param_3 != '\0')" ( (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }" { (for_statement "for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }" for ( (assignment_expression "piVar3 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ; (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ) (compound_statement "{\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }" { (while_statement "while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }" while (parenthesized_expression "((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0)))" ( (parenthesized_expression "(piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))" ( (binary_expression "piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0)" (binary_expression "piVar3[3] != 1" (subscript_expression "piVar3[3]" identifier [ number_literal ]) != number_literal) || (parenthesized_expression "(iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_00021ee0(piVar3[1],param_2)" identifier = (call_expression "FUN_00021ee0(piVar3[1],param_2)" identifier (argument_list "(piVar3[1],param_2)" ( (subscript_expression "piVar3[1]" identifier [ number_literal ]) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) )) (compound_statement "{\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }" { (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n          return 0;\n        }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "uVar2 = FUN_00022010(piVar3[2],param_3,param_4);" (assignment_expression "uVar2 = FUN_00022010(piVar3[2],param_3,param_4)" identifier = (call_expression "FUN_00022010(piVar3[2],param_3,param_4)" identifier (argument_list "(piVar3[2],param_3,param_4)" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) , identifier , identifier )))) ;) (if_statement "if ((char)uVar2 != '\0') {\n        return uVar2;\n      }" if (parenthesized_expression "((char)uVar2 != '\0')" ( (binary_expression "(char)uVar2 != '\0'" (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */\n/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */\n/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */\n\n_Bool MHD_check_response_header_token_ci\n                (MHD_Response *response,char *key,char *token,size_t token_len)\n\n{\n  _Bool _Var1;\n  int iVar2;\n  MHD_HTTP_Header *pMVar3;\n  \n  if ((((key != (char *)0x0) && (*key != '\0')) && (token != (char *)0x0)) && (*token != '\0')) {\n    for (pMVar3 = response->first_header; pMVar3 != (MHD_HTTP_Header *)0x0; pMVar3 = pMVar3->next) {\n      while ((pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))) {\n        pMVar3 = pMVar3->next;\n        if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }\n      }\n      _Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len);\n      if (_Var1) {\n        return _Var1;\n      }\n    }\n  }\n  return false;\n}\n\n" comment comment comment comment comment (function_definition "_Bool MHD_check_response_header_token_ci\n                (MHD_Response *response,char *key,char *token,size_t token_len)\n\n{\n  _Bool _Var1;\n  int iVar2;\n  MHD_HTTP_Header *pMVar3;\n  \n  if ((((key != (char *)0x0) && (*key != '\0')) && (token != (char *)0x0)) && (*token != '\0')) {\n    for (pMVar3 = response->first_header; pMVar3 != (MHD_HTTP_Header *)0x0; pMVar3 = pMVar3->next) {\n      while ((pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))) {\n        pMVar3 = pMVar3->next;\n        if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }\n      }\n      _Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len);\n      if (_Var1) {\n        return _Var1;\n      }\n    }\n  }\n  return false;\n}" type_identifier (function_declarator "MHD_check_response_header_token_ci\n                (MHD_Response *response,char *key,char *token,size_t token_len)" identifier (parameter_list "(MHD_Response *response,char *key,char *token,size_t token_len)" ( (parameter_declaration "MHD_Response *response" type_identifier (pointer_declarator "*response" * identifier)) , (parameter_declaration "char *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "char *token" primitive_type (pointer_declarator "*token" * identifier)) , (parameter_declaration "size_t token_len" primitive_type identifier) ))) (compound_statement "{\n  _Bool _Var1;\n  int iVar2;\n  MHD_HTTP_Header *pMVar3;\n  \n  if ((((key != (char *)0x0) && (*key != '\0')) && (token != (char *)0x0)) && (*token != '\0')) {\n    for (pMVar3 = response->first_header; pMVar3 != (MHD_HTTP_Header *)0x0; pMVar3 = pMVar3->next) {\n      while ((pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))) {\n        pMVar3 = pMVar3->next;\n        if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }\n      }\n      _Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len);\n      if (_Var1) {\n        return _Var1;\n      }\n    }\n  }\n  return false;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "MHD_HTTP_Header *pMVar3;" type_identifier (pointer_declarator "*pMVar3" * identifier) ;) (if_statement "if ((((key != (char *)0x0) && (*key != '\0')) && (token != (char *)0x0)) && (*token != '\0')) {\n    for (pMVar3 = response->first_header; pMVar3 != (MHD_HTTP_Header *)0x0; pMVar3 = pMVar3->next) {\n      while ((pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))) {\n        pMVar3 = pMVar3->next;\n        if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }\n      }\n      _Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len);\n      if (_Var1) {\n        return _Var1;\n      }\n    }\n  }" if (parenthesized_expression "((((key != (char *)0x0) && (*key != '\0')) && (token != (char *)0x0)) && (*token != '\0'))" ( (binary_expression "(((key != (char *)0x0) && (*key != '\0')) && (token != (char *)0x0)) && (*token != '\0')" (parenthesized_expression "(((key != (char *)0x0) && (*key != '\0')) && (token != (char *)0x0))" ( (binary_expression "((key != (char *)0x0) && (*key != '\0')) && (token != (char *)0x0)" (parenthesized_expression "((key != (char *)0x0) && (*key != '\0'))" ( (binary_expression "(key != (char *)0x0) && (*key != '\0')" (parenthesized_expression "(key != (char *)0x0)" ( (binary_expression "key != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*key != '\0')" ( (binary_expression "*key != '\0'" (pointer_expression "*key" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(token != (char *)0x0)" ( (binary_expression "token != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(*token != '\0')" ( (binary_expression "*token != '\0'" (pointer_expression "*token" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    for (pMVar3 = response->first_header; pMVar3 != (MHD_HTTP_Header *)0x0; pMVar3 = pMVar3->next) {\n      while ((pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))) {\n        pMVar3 = pMVar3->next;\n        if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }\n      }\n      _Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len);\n      if (_Var1) {\n        return _Var1;\n      }\n    }\n  }" { (for_statement "for (pMVar3 = response->first_header; pMVar3 != (MHD_HTTP_Header *)0x0; pMVar3 = pMVar3->next) {\n      while ((pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))) {\n        pMVar3 = pMVar3->next;\n        if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }\n      }\n      _Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len);\n      if (_Var1) {\n        return _Var1;\n      }\n    }" for ( (assignment_expression "pMVar3 = response->first_header" identifier = (field_expression "response->first_header" identifier -> field_identifier)) ; (binary_expression "pMVar3 != (MHD_HTTP_Header *)0x0" identifier != (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pMVar3 = pMVar3->next" identifier = (field_expression "pMVar3->next" identifier -> field_identifier)) ) (compound_statement "{\n      while ((pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))) {\n        pMVar3 = pMVar3->next;\n        if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }\n      }\n      _Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len);\n      if (_Var1) {\n        return _Var1;\n      }\n    }" { (while_statement "while ((pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))) {\n        pMVar3 = pMVar3->next;\n        if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }\n      }" while (parenthesized_expression "((pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0)))" ( (parenthesized_expression "(pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0))" ( (binary_expression "pMVar3->kind != MHD_HEADER_KIND ||\n             (iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0)" (binary_expression "pMVar3->kind != MHD_HEADER_KIND" (field_expression "pMVar3->kind" identifier -> field_identifier) != identifier) || (parenthesized_expression "(iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0)" ( (comma_expression "iVar2 = MHD_str_equal_caseless_(pMVar3->header,key), iVar2 == 0" (assignment_expression "iVar2 = MHD_str_equal_caseless_(pMVar3->header,key)" identifier = (call_expression "MHD_str_equal_caseless_(pMVar3->header,key)" identifier (argument_list "(pMVar3->header,key)" ( (field_expression "pMVar3->header" identifier -> field_identifier) , identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) )) (compound_statement "{\n        pMVar3 = pMVar3->next;\n        if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }\n      }" { (expression_statement "pMVar3 = pMVar3->next;" (assignment_expression "pMVar3 = pMVar3->next" identifier = (field_expression "pMVar3->next" identifier -> field_identifier)) ;) (if_statement "if (pMVar3 == (MHD_HTTP_Header *)0x0) {\n          return false;\n        }" if (parenthesized_expression "(pMVar3 == (MHD_HTTP_Header *)0x0)" ( (binary_expression "pMVar3 == (MHD_HTTP_Header *)0x0" identifier == (cast_expression "(MHD_HTTP_Header *)0x0" ( (type_descriptor "MHD_HTTP_Header *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return false;\n        }" { (return_statement "return false;" return false ;) })) })) (expression_statement "_Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len);" (assignment_expression "_Var1 = MHD_str_has_token_caseless_(pMVar3->value,token,token_len)" identifier = (call_expression "MHD_str_has_token_caseless_(pMVar3->value,token,token_len)" identifier (argument_list "(pMVar3->value,token,token_len)" ( (field_expression "pMVar3->value" identifier -> field_identifier) , identifier , identifier )))) ;) (if_statement "if (_Var1) {\n        return _Var1;\n      }" if (parenthesized_expression "(_Var1)" ( identifier )) (compound_statement "{\n        return _Var1;\n      }" { (return_statement "return _Var1;" return identifier ;) })) })) })) (return_statement "return false;" return false ;) })))
(translation_unit "undefined4 FUN_00022cf0(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00022cf0(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00022cf0(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }" if (parenthesized_expression "((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0'))" ( (binary_expression "(((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')" (parenthesized_expression "(((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0))" ( (binary_expression "((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)" (parenthesized_expression "((param_2 != (char *)0x0) && (*param_2 != '\0'))" ( (binary_expression "(param_2 != (char *)0x0) && (*param_2 != '\0')" (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(*param_3 != '\0')" ( (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }" { (for_statement "for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }" for ( (assignment_expression "piVar3 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ; (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ) (compound_statement "{\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }" { (while_statement "while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }" while (parenthesized_expression "((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0)))" ( (parenthesized_expression "(piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))" ( (binary_expression "piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0)" (binary_expression "piVar3[3] != 1" (subscript_expression "piVar3[3]" identifier [ number_literal ]) != number_literal) || (parenthesized_expression "(iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_00021ee0(piVar3[1],param_2)" identifier = (call_expression "FUN_00021ee0(piVar3[1],param_2)" identifier (argument_list "(piVar3[1],param_2)" ( (subscript_expression "piVar3[1]" identifier [ number_literal ]) , identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) )) (compound_statement "{\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }" { (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n          return 0;\n        }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "uVar2 = FUN_00022010(piVar3[2],param_3,param_4);" (assignment_expression "uVar2 = FUN_00022010(piVar3[2],param_3,param_4)" identifier = (call_expression "FUN_00022010(piVar3[2],param_3,param_4)" identifier (argument_list "(piVar3[2],param_3,param_4)" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) , identifier , identifier )))) ;) (if_statement "if ((char)uVar2 != '\0') {\n        return uVar2;\n      }" if (parenthesized_expression "((char)uVar2 != '\0')" ( (binary_expression "(char)uVar2 != '\0'" (cast_expression "(char)uVar2" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return uVar2;\n      }" { (return_statement "return uVar2;" return identifier ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (for_statement for ( (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ) (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00022cf0(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00022cf0(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)" (identifier "FUN_00022cf0") (parameter_list "(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (if_statement "if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')) {\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0'))" (( "(") (binary_expression "(((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&\n     (*param_3 != '\0')" (parenthesized_expression "(((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0))" (( "(") (binary_expression "((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)" (parenthesized_expression "((param_2 != (char *)0x0) && (*param_2 != '\0'))" (( "(") (binary_expression "(param_2 != (char *)0x0) && (*param_2 != '\0')" (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*param_2 != '\0')" (( "(") (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 != (char *)0x0)" (( "(") (binary_expression "param_3 != (char *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*param_3 != '\0')" (( "(") (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }\n  }" ({ "{") (for_statement "for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }" (for "for") (( "(") (assignment_expression "piVar3 = (int *)*param_1" (identifier "piVar3") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar3 = (int *)*piVar3" (identifier "piVar3") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) () ")") (compound_statement "{\n      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }\n      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);\n      if ((char)uVar2 != '\0') {\n        return uVar2;\n      }\n    }" ({ "{") (while_statement "while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }" (while "while") (parenthesized_expression "((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0)))" (( "(") (parenthesized_expression "(piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))" (( "(") (binary_expression "piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0)" (binary_expression "piVar3[3] != 1" (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "1")) (|| "||") (parenthesized_expression "(iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_00021ee0(piVar3[1],param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00021ee0(piVar3[1],param_2)" (identifier "FUN_00021ee0") (argument_list "(piVar3[1],param_2)" (( "(") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) () ")")) (compound_statement "{\n        piVar3 = (int *)*piVar3;\n        if (piVar3 == (int *)0x0) {\n          return 0;\n        }\n      }" ({ "{") (expression_statement "piVar3 = (int *)*piVar3;" (assignment_expression "piVar3 = (int *)*piVar3" (identifier "piVar3") (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar2 = FUN_00022010(piVar3[2],param_3,param_4);" (assignment_expression "uVar2 = FUN_00022010(piVar3[2],param_3,param_4)" (identifier "uVar2") (= "=") (call_expression "FUN_00022010(piVar3[2],param_3,param_4)" (identifier "FUN_00022010") (argument_list "(piVar3[2],param_3,param_4)" (( "(") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if ((char)uVar2 != '\0') {\n        return uVar2;\n      }" (if "if") (parenthesized_expression "((char)uVar2 != '\0')" (( "(") (binary_expression "(char)uVar2 != '\0'" (cast_expression "(char)uVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        return uVar2;\n      }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "MHD_FLAG": Some values do not have unique names */
/* WARNING: Enum "gnutls_pk_algorithm_t": Some values do not have unique names */
/* WARNING: Enum "gnutls_certificate_type_t": Some values do not have unique names */

type_1 function_1
                (type_2 *response,char *var_1,char *var_2,size_t token_len)

{
  type_1 _Var1;
  int var_6;
  type_3 *var_3;
  
  if ((((var_1 != (char *)0x0) && (*var_1 != '\0')) && (var_2 != (char *)0x0)) && (*var_2 != '\0')) {
    for (var_3 = response->first_header; var_3 != (type_3 *)0x0; var_3 = var_3->next) {
      while ((var_3->kind != var_4 ||
             (var_6 = var_5(var_3->header,var_1), var_6 == 0))) {
        var_3 = var_3->next;
        if (var_3 == (type_3 *)0x0) {
          return false;
        }
      }
      _Var1 = var_7(var_3->value,var_2,token_len);
      if (_Var1) {
        return _Var1;
      }
    }
  }
  return false;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (for_statement initializer: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) condition: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) body: (compound_statement (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal))))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier)))))))) (return_statement (number_literal)))))

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

undefined4 MASKED(undefined4 *param_1,char *param_2,char *param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  
  if ((((param_2 != (char *)0x0) && (*param_2 != '\0')) && (param_3 != (char *)0x0)) &&
     (*param_3 != '\0')) {
    for (piVar3 = (int *)*param_1; piVar3 != (int *)0x0; piVar3 = (int *)*piVar3) {
      while ((piVar3[3] != 1 || (iVar1 = FUN_00021ee0(piVar3[1],param_2), iVar1 == 0))) {
        piVar3 = (int *)*piVar3;
        if (piVar3 == (int *)0x0) {
          return 0;
        }
      }
      uVar2 = FUN_00022010(piVar3[2],param_3,param_4);
      if ((char)uVar2 != '\0') {
        return uVar2;
      }
    }
  }
  return 0;
}

