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

int Curl_strncasecompare(char *first,char *second,size_t max)

{
  char cVar1;
  char cVar2;
  
  cVar1 = *first;
  for (; (cVar1 != '\0' && (*second != '\0')); second = second + 1) {
    if (max == 0) {
      return 1;
    }
    cVar1 = Curl_raw_toupper(cVar1);
    cVar2 = Curl_raw_toupper(*second);
    if (cVar1 != cVar2) goto LAB_0003b9a0;
    first = first + 1;
    cVar1 = *first;
    max = max - 1;
  }
  if (max == 0) {
    return 1;
  }
LAB_0003b9a0:
  cVar1 = Curl_raw_toupper(*first);
  cVar2 = Curl_raw_toupper(*second);
  return (uint)(cVar1 == cVar2);
}



bool __regparm2 FUN_0003b920(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)

{
  char cVar1;
  char cVar2;
  char *unaff_retaddr;
  
  entry(param_2,0x3b929);
  cVar1 = *unaff_retaddr;
  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {
    if (param_4 == 0) {
      return true;
    }
    cVar1 = FUN_0003b820((int)cVar1);
    cVar2 = FUN_0003b820((int)*param_3);
    if (cVar1 != cVar2) goto LAB_0003b9a0;
    unaff_retaddr = unaff_retaddr + 1;
    cVar1 = *unaff_retaddr;
    param_4 = param_4 + -1;
  }
  if (param_4 == 0) {
    return true;
  }
LAB_0003b9a0:
  cVar1 = FUN_0003b820((int)*unaff_retaddr);
  cVar2 = FUN_0003b820((int)*param_3);
  return cVar1 == cVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x74eb7
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x38]
MOVSX EAX,byte ptr [EDI]
TEST AL,AL
JNZ 0x0003b985
JMP 0x0003b98a
TEST EBP,EBP
JZ 0x0003b98e
SUB ESP,0xc
PUSH EAX
CALL 0x0003b820
MOV byte ptr [ESP + 0x1f],AL
MOVSX EAX,byte ptr [ESI]
MOV dword ptr [ESP],EAX
CALL 0x0003b820
ADD ESP,0x10
CMP byte ptr [ESP + 0xf],AL
JNZ 0x0003b9a0
ADD EDI,0x1
MOVSX EAX,byte ptr [EDI]
SUB EBP,0x1
ADD ESI,0x1
TEST AL,AL
JZ 0x0003b98a
CMP byte ptr [ESI],0x0
JNZ 0x0003b950
TEST EBP,EBP
JNZ 0x0003b9a0
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVSX EAX,byte ptr [EDI]
SUB ESP,0xc
PUSH EAX
CALL 0x0003b820
MOV EDI,EAX
MOVSX EAX,byte ptr [ESI]
MOV dword ptr [ESP],EAX
CALL 0x0003b820
MOV ECX,EDI
ADD ESP,0x10
CMP CL,AL
SETZ AL
ADD ESP,0x1c
POP EBX
MOVZX EAX,AL
POP ESI
POP EDI
POP EBP
RET
(translation_unit "bool __regparm2 FUN_0003b920(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)\n\n{\n  char cVar1;\n  char cVar2;\n  char *unaff_retaddr;\n  \n  entry(param_2,0x3b929);\n  cVar1 = *unaff_retaddr;\n  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }\n  if (param_4 == 0) {\n    return true;\n  }\nLAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);\n  cVar2 = FUN_0003b820((int)*param_3);\n  return cVar1 == cVar2;\n}\n\n" (function_definition "bool __regparm2 FUN_0003b920(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)\n\n{\n  char cVar1;\n  char cVar2;\n  char *unaff_retaddr;\n  \n  entry(param_2,0x3b929);\n  cVar1 = *unaff_retaddr;\n  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }\n  if (param_4 == 0) {\n    return true;\n  }\nLAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);\n  cVar2 = FUN_0003b820((int)*param_3);\n  return cVar1 == cVar2;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0003b920(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  char *unaff_retaddr;\n  \n  entry(param_2,0x3b929);\n  cVar1 = *unaff_retaddr;\n  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }\n  if (param_4 == 0) {\n    return true;\n  }\nLAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);\n  cVar2 = FUN_0003b820((int)*param_3);\n  return cVar1 == cVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x3b929);" (call_expression "entry(param_2,0x3b929)" identifier (argument_list "(param_2,0x3b929)" ( identifier , number_literal ))) ;) (expression_statement "cVar1 = *unaff_retaddr;" (assignment_expression "cVar1 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (for_statement "for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }" for ( ; (parenthesized_expression "(cVar1 != '\0' && (*param_3 != '\0'))" ( (binary_expression "cVar1 != '\0' && (*param_3 != '\0')" (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*param_3 != '\0')" ( (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) ; (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ) (compound_statement "{\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }" { (if_statement "if (param_4 == 0) {\n      return true;\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      return true;\n    }" { (return_statement "return true;" return true ;) })) (expression_statement "cVar1 = FUN_0003b820((int)cVar1);" (assignment_expression "cVar1 = FUN_0003b820((int)cVar1)" identifier = (call_expression "FUN_0003b820((int)cVar1)" identifier (argument_list "((int)cVar1)" ( (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "cVar2 = FUN_0003b820((int)*param_3);" (assignment_expression "cVar2 = FUN_0003b820((int)*param_3)" identifier = (call_expression "FUN_0003b820((int)*param_3)" identifier (argument_list "((int)*param_3)" ( (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) )))) ;) (if_statement "if (cVar1 != cVar2) goto LAB_0003b9a0;" if (parenthesized_expression "(cVar1 != cVar2)" ( (binary_expression "cVar1 != cVar2" identifier != identifier) )) (goto_statement "goto LAB_0003b9a0;" goto statement_identifier ;)) (expression_statement "unaff_retaddr = unaff_retaddr + 1;" (assignment_expression "unaff_retaddr = unaff_retaddr + 1" identifier = (binary_expression "unaff_retaddr + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *unaff_retaddr;" (assignment_expression "cVar1 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "param_4 = param_4 + -1;" (assignment_expression "param_4 = param_4 + -1" identifier = (binary_expression "param_4 + -1" identifier + number_literal)) ;) })) (if_statement "if (param_4 == 0) {\n    return true;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (labeled_statement "LAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);" statement_identifier : (expression_statement "cVar1 = FUN_0003b820((int)*unaff_retaddr);" (assignment_expression "cVar1 = FUN_0003b820((int)*unaff_retaddr)" identifier = (call_expression "FUN_0003b820((int)*unaff_retaddr)" identifier (argument_list "((int)*unaff_retaddr)" ( (cast_expression "(int)*unaff_retaddr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*unaff_retaddr" * identifier)) )))) ;)) (expression_statement "cVar2 = FUN_0003b820((int)*param_3);" (assignment_expression "cVar2 = FUN_0003b820((int)*param_3)" identifier = (call_expression "FUN_0003b820((int)*param_3)" identifier (argument_list "((int)*param_3)" ( (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) )))) ;) (return_statement "return cVar1 == cVar2;" return (binary_expression "cVar1 == cVar2" identifier == identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint Curl_strncasecompare(char *first,char *second,size_t max)\n\n{\n  char cVar1;\n  char cVar2;\n  \n  cVar1 = *first;\n  for (; (cVar1 != '\0' && (*second != '\0')); second = second + 1) {\n    if (max == 0) {\n      return 1;\n    }\n    cVar1 = Curl_raw_toupper(cVar1);\n    cVar2 = Curl_raw_toupper(*second);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    first = first + 1;\n    cVar1 = *first;\n    max = max - 1;\n  }\n  if (max == 0) {\n    return 1;\n  }\nLAB_0003b9a0:\n  cVar1 = Curl_raw_toupper(*first);\n  cVar2 = Curl_raw_toupper(*second);\n  return (uint)(cVar1 == cVar2);\n}\n\n" comment (function_definition "int Curl_strncasecompare(char *first,char *second,size_t max)\n\n{\n  char cVar1;\n  char cVar2;\n  \n  cVar1 = *first;\n  for (; (cVar1 != '\0' && (*second != '\0')); second = second + 1) {\n    if (max == 0) {\n      return 1;\n    }\n    cVar1 = Curl_raw_toupper(cVar1);\n    cVar2 = Curl_raw_toupper(*second);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    first = first + 1;\n    cVar1 = *first;\n    max = max - 1;\n  }\n  if (max == 0) {\n    return 1;\n  }\nLAB_0003b9a0:\n  cVar1 = Curl_raw_toupper(*first);\n  cVar2 = Curl_raw_toupper(*second);\n  return (uint)(cVar1 == cVar2);\n}" primitive_type (function_declarator "Curl_strncasecompare(char *first,char *second,size_t max)" identifier (parameter_list "(char *first,char *second,size_t max)" ( (parameter_declaration "char *first" primitive_type (pointer_declarator "*first" * identifier)) , (parameter_declaration "char *second" primitive_type (pointer_declarator "*second" * identifier)) , (parameter_declaration "size_t max" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  \n  cVar1 = *first;\n  for (; (cVar1 != '\0' && (*second != '\0')); second = second + 1) {\n    if (max == 0) {\n      return 1;\n    }\n    cVar1 = Curl_raw_toupper(cVar1);\n    cVar2 = Curl_raw_toupper(*second);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    first = first + 1;\n    cVar1 = *first;\n    max = max - 1;\n  }\n  if (max == 0) {\n    return 1;\n  }\nLAB_0003b9a0:\n  cVar1 = Curl_raw_toupper(*first);\n  cVar2 = Curl_raw_toupper(*second);\n  return (uint)(cVar1 == cVar2);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "cVar1 = *first;" (assignment_expression "cVar1 = *first" identifier = (pointer_expression "*first" * identifier)) ;) (for_statement "for (; (cVar1 != '\0' && (*second != '\0')); second = second + 1) {\n    if (max == 0) {\n      return 1;\n    }\n    cVar1 = Curl_raw_toupper(cVar1);\n    cVar2 = Curl_raw_toupper(*second);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    first = first + 1;\n    cVar1 = *first;\n    max = max - 1;\n  }" for ( ; (parenthesized_expression "(cVar1 != '\0' && (*second != '\0'))" ( (binary_expression "cVar1 != '\0' && (*second != '\0')" (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*second != '\0')" ( (binary_expression "*second != '\0'" (pointer_expression "*second" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) ; (assignment_expression "second = second + 1" identifier = (binary_expression "second + 1" identifier + number_literal)) ) (compound_statement "{\n    if (max == 0) {\n      return 1;\n    }\n    cVar1 = Curl_raw_toupper(cVar1);\n    cVar2 = Curl_raw_toupper(*second);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    first = first + 1;\n    cVar1 = *first;\n    max = max - 1;\n  }" { (if_statement "if (max == 0) {\n      return 1;\n    }" if (parenthesized_expression "(max == 0)" ( (binary_expression "max == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "cVar1 = Curl_raw_toupper(cVar1);" (assignment_expression "cVar1 = Curl_raw_toupper(cVar1)" identifier = (call_expression "Curl_raw_toupper(cVar1)" identifier (argument_list "(cVar1)" ( identifier )))) ;) (expression_statement "cVar2 = Curl_raw_toupper(*second);" (assignment_expression "cVar2 = Curl_raw_toupper(*second)" identifier = (call_expression "Curl_raw_toupper(*second)" identifier (argument_list "(*second)" ( (pointer_expression "*second" * identifier) )))) ;) (if_statement "if (cVar1 != cVar2) goto LAB_0003b9a0;" if (parenthesized_expression "(cVar1 != cVar2)" ( (binary_expression "cVar1 != cVar2" identifier != identifier) )) (goto_statement "goto LAB_0003b9a0;" goto statement_identifier ;)) (expression_statement "first = first + 1;" (assignment_expression "first = first + 1" identifier = (binary_expression "first + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *first;" (assignment_expression "cVar1 = *first" identifier = (pointer_expression "*first" * identifier)) ;) (expression_statement "max = max - 1;" (assignment_expression "max = max - 1" identifier = (binary_expression "max - 1" identifier - number_literal)) ;) })) (if_statement "if (max == 0) {\n    return 1;\n  }" if (parenthesized_expression "(max == 0)" ( (binary_expression "max == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (labeled_statement "LAB_0003b9a0:\n  cVar1 = Curl_raw_toupper(*first);" statement_identifier : (expression_statement "cVar1 = Curl_raw_toupper(*first);" (assignment_expression "cVar1 = Curl_raw_toupper(*first)" identifier = (call_expression "Curl_raw_toupper(*first)" identifier (argument_list "(*first)" ( (pointer_expression "*first" * identifier) )))) ;)) (expression_statement "cVar2 = Curl_raw_toupper(*second);" (assignment_expression "cVar2 = Curl_raw_toupper(*second)" identifier = (call_expression "Curl_raw_toupper(*second)" identifier (argument_list "(*second)" ( (pointer_expression "*second" * identifier) )))) ;) (return_statement "return (uint)(cVar1 == cVar2);" return (call_expression "(uint)(cVar1 == cVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(cVar1 == cVar2)" ( (binary_expression "cVar1 == cVar2" identifier == identifier) ))) ;) })))
(translation_unit "bool __regparm2 FUN_0003b920(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)\n\n{\n  char cVar1;\n  char cVar2;\n  char *unaff_retaddr;\n  \n  entry(param_2,0x3b929);\n  cVar1 = *unaff_retaddr;\n  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }\n  if (param_4 == 0) {\n    return true;\n  }\nLAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);\n  cVar2 = FUN_0003b820((int)*param_3);\n  return cVar1 == cVar2;\n}\n\n" (function_definition "bool __regparm2 FUN_0003b920(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)\n\n{\n  char cVar1;\n  char cVar2;\n  char *unaff_retaddr;\n  \n  entry(param_2,0x3b929);\n  cVar1 = *unaff_retaddr;\n  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }\n  if (param_4 == 0) {\n    return true;\n  }\nLAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);\n  cVar2 = FUN_0003b820((int)*param_3);\n  return cVar1 == cVar2;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0003b920(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  char *unaff_retaddr;\n  \n  entry(param_2,0x3b929);\n  cVar1 = *unaff_retaddr;\n  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }\n  if (param_4 == 0) {\n    return true;\n  }\nLAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);\n  cVar2 = FUN_0003b820((int)*param_3);\n  return cVar1 == cVar2;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x3b929);" (call_expression "entry(param_2,0x3b929)" identifier (argument_list "(param_2,0x3b929)" ( identifier , number_literal ))) ;) (expression_statement "cVar1 = *unaff_retaddr;" (assignment_expression "cVar1 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (for_statement "for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }" for ( ; (parenthesized_expression "(cVar1 != '\0' && (*param_3 != '\0'))" ( (binary_expression "cVar1 != '\0' && (*param_3 != '\0')" (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(*param_3 != '\0')" ( (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) ; (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ) (compound_statement "{\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }" { (if_statement "if (param_4 == 0) {\n      return true;\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      return true;\n    }" { (return_statement "return true;" return true ;) })) (expression_statement "cVar1 = FUN_0003b820((int)cVar1);" (assignment_expression "cVar1 = FUN_0003b820((int)cVar1)" identifier = (call_expression "FUN_0003b820((int)cVar1)" identifier (argument_list "((int)cVar1)" ( (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (expression_statement "cVar2 = FUN_0003b820((int)*param_3);" (assignment_expression "cVar2 = FUN_0003b820((int)*param_3)" identifier = (call_expression "FUN_0003b820((int)*param_3)" identifier (argument_list "((int)*param_3)" ( (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) )))) ;) (if_statement "if (cVar1 != cVar2) goto LAB_0003b9a0;" if (parenthesized_expression "(cVar1 != cVar2)" ( (binary_expression "cVar1 != cVar2" identifier != identifier) )) (goto_statement "goto LAB_0003b9a0;" goto statement_identifier ;)) (expression_statement "unaff_retaddr = unaff_retaddr + 1;" (assignment_expression "unaff_retaddr = unaff_retaddr + 1" identifier = (binary_expression "unaff_retaddr + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *unaff_retaddr;" (assignment_expression "cVar1 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (expression_statement "param_4 = param_4 + -1;" (assignment_expression "param_4 = param_4 + -1" identifier = (binary_expression "param_4 + -1" identifier + number_literal)) ;) })) (if_statement "if (param_4 == 0) {\n    return true;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (labeled_statement "LAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);" statement_identifier : (expression_statement "cVar1 = FUN_0003b820((int)*unaff_retaddr);" (assignment_expression "cVar1 = FUN_0003b820((int)*unaff_retaddr)" identifier = (call_expression "FUN_0003b820((int)*unaff_retaddr)" identifier (argument_list "((int)*unaff_retaddr)" ( (cast_expression "(int)*unaff_retaddr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*unaff_retaddr" * identifier)) )))) ;)) (expression_statement "cVar2 = FUN_0003b820((int)*param_3);" (assignment_expression "cVar2 = FUN_0003b820((int)*param_3)" identifier = (call_expression "FUN_0003b820((int)*param_3)" identifier (argument_list "((int)*param_3)" ( (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) )))) ;) (return_statement "return cVar1 == cVar2;" return (binary_expression "cVar1 == cVar2" identifier == identifier) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (for_statement for ( ; (parenthesized_expression ( (binary_expression (binary_expression IDENT != (char_literal ' escape_sequence ')) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return BOOL ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return BOOL ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) )))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) )))) ;) (return_statement return (binary_expression IDENT == IDENT) ;) })))
(function_definition "bool __regparm2 FUN_0003b920(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)\n\n{\n  char cVar1;\n  char cVar2;\n  char *unaff_retaddr;\n  \n  entry(param_2,0x3b929);\n  cVar1 = *unaff_retaddr;\n  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }\n  if (param_4 == 0) {\n    return true;\n  }\nLAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);\n  cVar2 = FUN_0003b820((int)*param_3);\n  return cVar1 == cVar2;\n}" (primitive_type "bool") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0003b920(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)" (identifier "FUN_0003b920") (parameter_list "(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  char cVar1;\n  char cVar2;\n  char *unaff_retaddr;\n  \n  entry(param_2,0x3b929);\n  cVar1 = *unaff_retaddr;\n  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }\n  if (param_4 == 0) {\n    return true;\n  }\nLAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);\n  cVar2 = FUN_0003b820((int)*param_3);\n  return cVar1 == cVar2;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "char *unaff_retaddr;" (primitive_type "char") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "entry(param_2,0x3b929);" (call_expression "entry(param_2,0x3b929)" (identifier "entry") (argument_list "(param_2,0x3b929)" (( "(") (identifier "param_2") (, ",") (number_literal "0x3b929") () ")"))) (; ";")) (expression_statement "cVar1 = *unaff_retaddr;" (assignment_expression "cVar1 = *unaff_retaddr" (identifier "cVar1") (= "=") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) (; ";")) (for_statement "for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }" (for "for") (( "(") (; ";") (parenthesized_expression "(cVar1 != '\0' && (*param_3 != '\0'))" (( "(") (binary_expression "cVar1 != '\0' && (*param_3 != '\0')" (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (&& "&&") (parenthesized_expression "(*param_3 != '\0')" (( "(") (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (; ";") (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) () ")") (compound_statement "{\n    if (param_4 == 0) {\n      return true;\n    }\n    cVar1 = FUN_0003b820((int)cVar1);\n    cVar2 = FUN_0003b820((int)*param_3);\n    if (cVar1 != cVar2) goto LAB_0003b9a0;\n    unaff_retaddr = unaff_retaddr + 1;\n    cVar1 = *unaff_retaddr;\n    param_4 = param_4 + -1;\n  }" ({ "{") (if_statement "if (param_4 == 0) {\n      return true;\n    }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return true;\n    }" ({ "{") (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (expression_statement "cVar1 = FUN_0003b820((int)cVar1);" (assignment_expression "cVar1 = FUN_0003b820((int)cVar1)" (identifier "cVar1") (= "=") (call_expression "FUN_0003b820((int)cVar1)" (identifier "FUN_0003b820") (argument_list "((int)cVar1)" (( "(") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) () ")")))) (; ";")) (expression_statement "cVar2 = FUN_0003b820((int)*param_3);" (assignment_expression "cVar2 = FUN_0003b820((int)*param_3)" (identifier "cVar2") (= "=") (call_expression "FUN_0003b820((int)*param_3)" (identifier "FUN_0003b820") (argument_list "((int)*param_3)" (( "(") (cast_expression "(int)*param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")")))) (; ";")) (if_statement "if (cVar1 != cVar2) goto LAB_0003b9a0;" (if "if") (parenthesized_expression "(cVar1 != cVar2)" (( "(") (binary_expression "cVar1 != cVar2" (identifier "cVar1") (!= "!=") (identifier "cVar2")) () ")")) (goto_statement "goto LAB_0003b9a0;" (goto "goto") (statement_identifier "LAB_0003b9a0") (; ";"))) (expression_statement "unaff_retaddr = unaff_retaddr + 1;" (assignment_expression "unaff_retaddr = unaff_retaddr + 1" (identifier "unaff_retaddr") (= "=") (binary_expression "unaff_retaddr + 1" (identifier "unaff_retaddr") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *unaff_retaddr;" (assignment_expression "cVar1 = *unaff_retaddr" (identifier "cVar1") (= "=") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) (; ";")) (expression_statement "param_4 = param_4 + -1;" (assignment_expression "param_4 = param_4 + -1" (identifier "param_4") (= "=") (binary_expression "param_4 + -1" (identifier "param_4") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (if_statement "if (param_4 == 0) {\n    return true;\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return true;\n  }" ({ "{") (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (labeled_statement "LAB_0003b9a0:\n  cVar1 = FUN_0003b820((int)*unaff_retaddr);" (statement_identifier "LAB_0003b9a0") (: ":") (expression_statement "cVar1 = FUN_0003b820((int)*unaff_retaddr);" (assignment_expression "cVar1 = FUN_0003b820((int)*unaff_retaddr)" (identifier "cVar1") (= "=") (call_expression "FUN_0003b820((int)*unaff_retaddr)" (identifier "FUN_0003b820") (argument_list "((int)*unaff_retaddr)" (( "(") (cast_expression "(int)*unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) () ")")))) (; ";"))) (expression_statement "cVar2 = FUN_0003b820((int)*param_3);" (assignment_expression "cVar2 = FUN_0003b820((int)*param_3)" (identifier "cVar2") (= "=") (call_expression "FUN_0003b820((int)*param_3)" (identifier "FUN_0003b820") (argument_list "((int)*param_3)" (( "(") (cast_expression "(int)*param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")")))) (; ";")) (return_statement "return cVar1 == cVar2;" (return "return") (binary_expression "cVar1 == cVar2" (identifier "cVar1") (== "==") (identifier "cVar2")) (; ";")) (} "}")))

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

int function_1(char *var_6,char *var_2,size_t var_3)

{
  char var_1;
  char var_5;
  
  var_1 = *var_6;
  for (; (var_1 != '\0' && (*var_2 != '\0')); var_2 = var_2 + 1) {
    if (var_3 == 0) {
      return 1;
    }
    var_1 = var_4(var_1);
    var_5 = var_4(*var_2);
    if (var_1 != var_5) goto LAB_0003b9a0;
    var_6 = var_6 + 1;
    var_1 = *var_6;
    var_3 = var_3 - 1;
  }
  if (var_3 == 0) {
    return 1;
  }
LAB_0003b9a0:
  var_1 = var_4(*var_6);
  var_5 = var_4(*var_2);
  return (uint)(var_1 == var_5);
}


(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: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (for_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (char_literal (escape_sequence))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (true)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (true)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))))) (return_statement (binary_expression left: (identifier) right: (identifier))))))

bool __regparm2 MASKED(undefined4 param_1,undefined4 param_2,char *param_3,int param_4)

{
  char cVar1;
  char cVar2;
  char *unaff_retaddr;
  
  entry(param_2,0x3b929);
  cVar1 = *unaff_retaddr;
  for (; (cVar1 != '\0' && (*param_3 != '\0')); param_3 = param_3 + 1) {
    if (param_4 == 0) {
      return true;
    }
    cVar1 = FUN_0003b820((int)cVar1);
    cVar2 = FUN_0003b820((int)*param_3);
    if (cVar1 != cVar2) goto LAB_0003b9a0;
    unaff_retaddr = unaff_retaddr + 1;
    cVar1 = *unaff_retaddr;
    param_4 = param_4 + -1;
  }
  if (param_4 == 0) {
    return true;
  }
LAB_0003b9a0:
  cVar1 = FUN_0003b820((int)*unaff_retaddr);
  cVar2 = FUN_0003b820((int)*param_3);
  return cVar1 == cVar2;
}

