
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::collate<char>::do_compare(char const*, char const*, char const*, char const*) const */

int __thiscall
std::collate<char>::do_compare
          (collate<char> *this,char *param_1,char *param_2,char *param_3,char *param_4)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  char *pcVar4;
  size_t sVar5;
  int iVar6;
  char *pcVar7;
  char *pcVar8;
  allocator *in_stack_ffffffb4;
  undefined1 local_1d [13];
  
  pcVar3 = std::string::_S_construct<char_const*>(param_1,param_2,local_1d,0);
                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */
  pcVar4 = std::string::_S_construct<char_const*>(param_3,param_4,local_1d,0);
  iVar1 = *(int *)(pcVar3 + -0xc);
  iVar2 = *(int *)(pcVar4 + -0xc);
  pcVar7 = pcVar3;
  pcVar8 = pcVar4;
  do {
    iVar6 = _M_compare((char *)this,pcVar7);
    if (iVar6 != 0) {
LAB_003c0404:
      if (pcVar4 != &DAT_005f308c) {
        std::string::_Rep::_M_dispose(in_stack_ffffffb4);
      }
      if (pcVar3 != &DAT_005f308c) {
        std::string::_Rep::_M_dispose(in_stack_ffffffb4);
      }
      return iVar6;
    }
    sVar5 = strlen(pcVar7);
    pcVar7 = pcVar7 + sVar5;
    sVar5 = strlen(pcVar8);
    pcVar8 = pcVar8 + sVar5;
    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;
    if (pcVar3 + iVar1 == pcVar7) {
      iVar6 = -1;
      goto LAB_003c0404;
    }
    if (pcVar4 + iVar2 == pcVar8) {
      iVar6 = 1;
      goto LAB_003c0404;
    }
    pcVar7 = pcVar7 + 1;
    pcVar8 = pcVar8 + 1;
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int FUN_003c0350(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                undefined4 param_5)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  char *pcVar4;
  size_t sVar5;
  int iVar6;
  char *pcVar7;
  char *pcVar8;
  undefined1 local_1d [13];
  
  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);
                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */
  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);
  iVar1 = *(int *)(pcVar3 + -0xc);
  iVar2 = *(int *)(pcVar4 + -0xc);
  pcVar7 = pcVar3;
  pcVar8 = pcVar4;
  do {
    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);
    if (iVar6 != 0) {
LAB_003c0404:
      if (pcVar4 != &DAT_005f308c) {
        FUN_003c0300();
      }
      if (pcVar3 != &DAT_005f308c) {
        FUN_003c0300();
      }
      return iVar6;
    }
    sVar5 = strlen(pcVar7);
    pcVar7 = pcVar7 + sVar5;
    sVar5 = strlen(pcVar8);
    pcVar8 = pcVar8 + sVar5;
    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;
    if (pcVar3 + iVar1 == pcVar7) {
      iVar6 = -1;
      goto LAB_003c0404;
    }
    if (pcVar4 + iVar2 == pcVar8) {
      iVar6 = 1;
      goto LAB_003c0404;
    }
    pcVar7 = pcVar7 + 1;
    pcVar8 = pcVar8 + 1;
  } while( true );
}


CALL 0x00074f02
ADD EAX,0x229cab
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
LEA EDX,[EBP + -0x19]
PUSH EBX
MOV EDI,EAX
MOV EBX,EDI
SUB ESP,0x3c
MOV dword ptr [EBP + -0x2c],EAX
PUSH 0x0
PUSH EDX
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EBP + 0xc]
MOV dword ptr [EBP + -0x3c],EDX
CALL 0x003e7ab0
ADD ESP,0x10
PUSH 0x0
MOV ESI,EAX
PUSH dword ptr [EBP + -0x3c]
PUSH dword ptr [EBP + 0x18]
PUSH dword ptr [EBP + 0x14]
MOV dword ptr [EBP + -0x40],EAX
CALL 0x003e7ab0
MOV EBX,dword ptr [ESI + -0xc]
MOV EDX,dword ptr [EAX + -0xc]
MOV EDI,EAX
MOV dword ptr [EBP + -0x44],EAX
ADD ESP,0x10
ADD EBX,ESI
ADD EDX,EAX
MOV dword ptr [EBP + -0x30],EBX
MOV dword ptr [EBP + -0x34],EDX
JMP 0x003c03eb
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x2c]
MOV dword ptr [EBP + -0x38],EAX
PUSH ESI
CALL 0x00039330
MOV dword ptr [ESP],EDI
ADD ESI,EAX
CALL 0x00039330
ADD ESP,0x10
ADD EDI,EAX
CMP dword ptr [EBP + -0x30],ESI
JNZ 0x003c03db
CMP dword ptr [EBP + -0x34],EDI
MOV ECX,dword ptr [EBP + -0x38]
JZ 0x003c0404
CMP dword ptr [EBP + -0x30],ESI
JZ 0x003c0430
CMP dword ptr [EBP + -0x34],EDI
JZ 0x003c0440
ADD ESI,0x1
ADD EDI,0x1
SUB ESP,0x4
MOV EBX,dword ptr [EBP + -0x2c]
PUSH EDI
PUSH ESI
PUSH dword ptr [EBP + 0x8]
CALL 0x003fc7b0
ADD ESP,0x10
MOV ECX,EAX
TEST EAX,EAX
JZ 0x003c03b0
MOV EDX,dword ptr [EBP + -0x2c]
MOV EAX,dword ptr [EBP + -0x44]
LEA ESI,[EDX + 0x9080]
SUB EAX,0xc
CMP EAX,ESI
JNZ 0x003c0450
MOV EAX,dword ptr [EBP + -0x40]
SUB EAX,0xc
CMP EAX,ESI
JNZ 0x003c0460
LEA ESP,[EBP + -0xc]
MOV EAX,ECX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,0xffffffff
JMP 0x003c0404
MOV ECX,0x1
JMP 0x003c0404
MOV EDX,dword ptr [EBP + -0x3c]
MOV dword ptr [EBP + -0x2c],ECX
CALL 0x003c0300
MOV ECX,dword ptr [EBP + -0x2c]
JMP 0x003c0417
MOV EDX,dword ptr [EBP + -0x3c]
MOV dword ptr [EBP + -0x2c],ECX
CALL 0x003c0300
MOV ECX,dword ptr [EBP + -0x2c]
JMP 0x003c0421
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint FUN_003c0350(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  undefined1 local_1d [13];\n  \n  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);\n                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */\n  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}\n\n" comment (function_definition "int FUN_003c0350(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  undefined1 local_1d [13];\n  \n  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);\n                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */\n  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_003c0350(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  undefined1 local_1d [13];\n  \n  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);\n                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */\n  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined1 local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);" (assignment_expression "pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0)" identifier = (cast_expression "(char *)FUN_003e7ab0(param_2,param_3,local_1d,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003e7ab0(param_2,param_3,local_1d,0)" identifier (argument_list "(param_2,param_3,local_1d,0)" ( identifier , identifier , identifier , number_literal ))))) ;) comment (expression_statement "pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);" (assignment_expression "pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0)" identifier = (cast_expression "(char *)FUN_003e7ab0(param_4,param_5,local_1d,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003e7ab0(param_4,param_5,local_1d,0)" identifier (argument_list "(param_4,param_5,local_1d,0)" ( identifier , identifier , identifier , number_literal ))))) ;) (expression_statement "iVar1 = *(int *)(pcVar3 + -0xc);" (assignment_expression "iVar1 = *(int *)(pcVar3 + -0xc)" identifier = (pointer_expression "*(int *)(pcVar3 + -0xc)" * (cast_expression "(int *)(pcVar3 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + -0xc)" ( (binary_expression "pcVar3 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(pcVar4 + -0xc);" (assignment_expression "iVar2 = *(int *)(pcVar4 + -0xc)" identifier = (pointer_expression "*(int *)(pcVar4 + -0xc)" * (cast_expression "(int *)(pcVar4 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + -0xc)" ( (binary_expression "pcVar4 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "pcVar7 = pcVar3;" (assignment_expression "pcVar7 = pcVar3" identifier = identifier) ;) (expression_statement "pcVar8 = pcVar4;" (assignment_expression "pcVar8 = pcVar4" identifier = identifier) ;) (do_statement "do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );" do (compound_statement "{\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  }" { (expression_statement "iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);" (assignment_expression "iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8)" identifier = (call_expression "FUN_003fc7b0(param_1,pcVar7,pcVar8)" identifier (argument_list "(param_1,pcVar7,pcVar8)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }" { (labeled_statement "LAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }" statement_identifier : (if_statement "if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }" if (parenthesized_expression "(pcVar4 != &DAT_005f308c)" ( (binary_expression "pcVar4 != &DAT_005f308c" identifier != (pointer_expression "&DAT_005f308c" & identifier)) )) (compound_statement "{\n        FUN_003c0300();\n      }" { (expression_statement "FUN_003c0300();" (call_expression "FUN_003c0300()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }" if (parenthesized_expression "(pcVar3 != &DAT_005f308c)" ( (binary_expression "pcVar3 != &DAT_005f308c" identifier != (pointer_expression "&DAT_005f308c" & identifier)) )) (compound_statement "{\n        FUN_003c0300();\n      }" { (expression_statement "FUN_003c0300();" (call_expression "FUN_003c0300()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return iVar6;" return identifier ;) })) (expression_statement "sVar5 = strlen(pcVar7);" (assignment_expression "sVar5 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "pcVar7 = pcVar7 + sVar5;" (assignment_expression "pcVar7 = pcVar7 + sVar5" identifier = (binary_expression "pcVar7 + sVar5" identifier + identifier)) ;) (expression_statement "sVar5 = strlen(pcVar8);" (assignment_expression "sVar5 = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "pcVar8 = pcVar8 + sVar5;" (assignment_expression "pcVar8 = pcVar8 + sVar5" identifier = (binary_expression "pcVar8 + sVar5" identifier + identifier)) ;) (if_statement "if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;" if (parenthesized_expression "((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8))" ( (binary_expression "(pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)" (parenthesized_expression "(pcVar3 + iVar1 == pcVar7)" ( (binary_expression "pcVar3 + iVar1 == pcVar7" (binary_expression "pcVar3 + iVar1" identifier + identifier) == identifier) )) && (parenthesized_expression "(pcVar4 + iVar2 == pcVar8)" ( (binary_expression "pcVar4 + iVar2 == pcVar8" (binary_expression "pcVar4 + iVar2" identifier + identifier) == identifier) ))) )) (goto_statement "goto LAB_003c0404;" goto statement_identifier ;)) (if_statement "if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }" if (parenthesized_expression "(pcVar3 + iVar1 == pcVar7)" ( (binary_expression "pcVar3 + iVar1 == pcVar7" (binary_expression "pcVar3 + iVar1" identifier + identifier) == identifier) )) (compound_statement "{\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }" { (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_003c0404;" goto statement_identifier ;) })) (if_statement "if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }" if (parenthesized_expression "(pcVar4 + iVar2 == pcVar8)" ( (binary_expression "pcVar4 + iVar2 == pcVar8" (binary_expression "pcVar4 + iVar2" identifier + identifier) == identifier) )) (compound_statement "{\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_003c0404;" goto statement_identifier ;) })) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* std::collate<char>::do_compare(char const*, char const*, char const*, char const*) const */\n\nint __thiscall\nstd::collate<char>::do_compare\n          (collate<char> *this,char *param_1,char *param_2,char *param_3,char *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  allocator *in_stack_ffffffb4;\n  undefined1 local_1d [13];\n  \n  pcVar3 = std::string::_S_construct<char_const*>(param_1,param_2,local_1d,0);\n                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */\n  pcVar4 = std::string::_S_construct<char_const*>(param_3,param_4,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = _M_compare((char *)this,pcVar7);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}\n\n" comment comment (function_definition "int __thiscall\nstd::collate<char>::do_compare\n          (collate<char> *this,char *param_1,char *param_2,char *param_3,char *param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  allocator *in_stack_ffffffb4;\n  undefined1 local_1d [13];\n  \n  pcVar3 = std::string::_S_construct<char_const*>(param_1,param_2,local_1d,0);\n                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */\n  pcVar4 = std::string::_S_construct<char_const*>(param_3,param_4,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = _M_compare((char *)this,pcVar7);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::collate<char>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_compare\n          (collate<char> *this,char *param_1,char *param_2,char *param_3,char *param_4)" identifier (parameter_list "(collate<char> *this,char *param_1,char *param_2,char *param_3,char *param_4)" ( (parameter_declaration "collate<char> *this" type_identifier (ERROR "<char>" < primitive_type >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (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 "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  allocator *in_stack_ffffffb4;\n  undefined1 local_1d [13];\n  \n  pcVar3 = std::string::_S_construct<char_const*>(param_1,param_2,local_1d,0);\n                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */\n  pcVar4 = std::string::_S_construct<char_const*>(param_3,param_4,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = _M_compare((char *)this,pcVar7);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "allocator *in_stack_ffffffb4;" type_identifier (pointer_declarator "*in_stack_ffffffb4" * identifier) ;) (declaration "undefined1 local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (ERROR "pcVar3 = std::" (assignment_expression "pcVar3 = std" identifier = identifier) : :) (labeled_statement "string::_S_construct<char_const*>(param_1,param_2,local_1d,0);" statement_identifier : (ERROR ":" :) (expression_statement "_S_construct<char_const*>(param_1,param_2,local_1d,0);" (binary_expression "_S_construct<char_const*>(param_1,param_2,local_1d,0)" (binary_expression "_S_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(param_1,param_2,local_1d,0)" ( (comma_expression "param_1,param_2,local_1d,0" identifier , (comma_expression "param_2,local_1d,0" identifier , (comma_expression "local_1d,0" identifier , number_literal))) ))) ;)) comment (ERROR "pcVar4 = std::" (assignment_expression "pcVar4 = std" identifier = identifier) : :) (labeled_statement "string::_S_construct<char_const*>(param_3,param_4,local_1d,0);" statement_identifier : (ERROR ":" :) (expression_statement "_S_construct<char_const*>(param_3,param_4,local_1d,0);" (binary_expression "_S_construct<char_const*>(param_3,param_4,local_1d,0)" (binary_expression "_S_construct<char_const" identifier < identifier) (ERROR "*" *) > (parenthesized_expression "(param_3,param_4,local_1d,0)" ( (comma_expression "param_3,param_4,local_1d,0" identifier , (comma_expression "param_4,local_1d,0" identifier , (comma_expression "local_1d,0" identifier , number_literal))) ))) ;)) (expression_statement "iVar1 = *(int *)(pcVar3 + -0xc);" (assignment_expression "iVar1 = *(int *)(pcVar3 + -0xc)" identifier = (pointer_expression "*(int *)(pcVar3 + -0xc)" * (cast_expression "(int *)(pcVar3 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + -0xc)" ( (binary_expression "pcVar3 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(pcVar4 + -0xc);" (assignment_expression "iVar2 = *(int *)(pcVar4 + -0xc)" identifier = (pointer_expression "*(int *)(pcVar4 + -0xc)" * (cast_expression "(int *)(pcVar4 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + -0xc)" ( (binary_expression "pcVar4 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "pcVar7 = pcVar3;" (assignment_expression "pcVar7 = pcVar3" identifier = identifier) ;) (expression_statement "pcVar8 = pcVar4;" (assignment_expression "pcVar8 = pcVar4" identifier = identifier) ;) (do_statement "do {\n    iVar6 = _M_compare((char *)this,pcVar7);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );" do (compound_statement "{\n    iVar6 = _M_compare((char *)this,pcVar7);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  }" { (expression_statement "iVar6 = _M_compare((char *)this,pcVar7);" (assignment_expression "iVar6 = _M_compare((char *)this,pcVar7)" identifier = (call_expression "_M_compare((char *)this,pcVar7)" identifier (argument_list "((char *)this,pcVar7)" ( (cast_expression "(char *)this" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      return iVar6;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }\n      return iVar6;\n    }" { (labeled_statement "LAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }" statement_identifier : (if_statement "if (pcVar4 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }" if (parenthesized_expression "(pcVar4 != &DAT_005f308c)" ( (binary_expression "pcVar4 != &DAT_005f308c" identifier != (pointer_expression "&DAT_005f308c" & identifier)) )) (compound_statement "{\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }" { (labeled_statement "std::string::_Rep::_M_dispose(in_stack_ffffffb4);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_dispose(in_stack_ffffffb4);" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_dispose(in_stack_ffffffb4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_dispose(in_stack_ffffffb4);" (call_expression "_M_dispose(in_stack_ffffffb4)" identifier (argument_list "(in_stack_ffffffb4)" ( identifier ))) ;)))) }))) (if_statement "if (pcVar3 != &DAT_005f308c) {\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }" if (parenthesized_expression "(pcVar3 != &DAT_005f308c)" ( (binary_expression "pcVar3 != &DAT_005f308c" identifier != (pointer_expression "&DAT_005f308c" & identifier)) )) (compound_statement "{\n        std::string::_Rep::_M_dispose(in_stack_ffffffb4);\n      }" { (labeled_statement "std::string::_Rep::_M_dispose(in_stack_ffffffb4);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_dispose(in_stack_ffffffb4);" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_dispose(in_stack_ffffffb4);" statement_identifier : (ERROR ":" :) (expression_statement "_M_dispose(in_stack_ffffffb4);" (call_expression "_M_dispose(in_stack_ffffffb4)" identifier (argument_list "(in_stack_ffffffb4)" ( identifier ))) ;)))) })) (return_statement "return iVar6;" return identifier ;) })) (expression_statement "sVar5 = strlen(pcVar7);" (assignment_expression "sVar5 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "pcVar7 = pcVar7 + sVar5;" (assignment_expression "pcVar7 = pcVar7 + sVar5" identifier = (binary_expression "pcVar7 + sVar5" identifier + identifier)) ;) (expression_statement "sVar5 = strlen(pcVar8);" (assignment_expression "sVar5 = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "pcVar8 = pcVar8 + sVar5;" (assignment_expression "pcVar8 = pcVar8 + sVar5" identifier = (binary_expression "pcVar8 + sVar5" identifier + identifier)) ;) (if_statement "if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;" if (parenthesized_expression "((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8))" ( (binary_expression "(pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)" (parenthesized_expression "(pcVar3 + iVar1 == pcVar7)" ( (binary_expression "pcVar3 + iVar1 == pcVar7" (binary_expression "pcVar3 + iVar1" identifier + identifier) == identifier) )) && (parenthesized_expression "(pcVar4 + iVar2 == pcVar8)" ( (binary_expression "pcVar4 + iVar2 == pcVar8" (binary_expression "pcVar4 + iVar2" identifier + identifier) == identifier) ))) )) (goto_statement "goto LAB_003c0404;" goto statement_identifier ;)) (if_statement "if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }" if (parenthesized_expression "(pcVar3 + iVar1 == pcVar7)" ( (binary_expression "pcVar3 + iVar1 == pcVar7" (binary_expression "pcVar3 + iVar1" identifier + identifier) == identifier) )) (compound_statement "{\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }" { (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_003c0404;" goto statement_identifier ;) })) (if_statement "if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }" if (parenthesized_expression "(pcVar4 + iVar2 == pcVar8)" ( (binary_expression "pcVar4 + iVar2 == pcVar8" (binary_expression "pcVar4 + iVar2" identifier + identifier) == identifier) )) (compound_statement "{\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_003c0404;" goto statement_identifier ;) })) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int FUN_003c0350(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  undefined1 local_1d [13];\n  \n  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);\n                    \n  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}\n\n" (function_definition "int FUN_003c0350(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  undefined1 local_1d [13];\n  \n  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);\n                    \n  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}" primitive_type (function_declarator "FUN_003c0350(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  undefined1 local_1d [13];\n  \n  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);\n                    \n  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined1 local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);" (assignment_expression "pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0)" identifier = (cast_expression "(char *)FUN_003e7ab0(param_2,param_3,local_1d,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003e7ab0(param_2,param_3,local_1d,0)" identifier (argument_list "(param_2,param_3,local_1d,0)" ( identifier , identifier , identifier , number_literal ))))) ;) (expression_statement "pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);" (assignment_expression "pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0)" identifier = (cast_expression "(char *)FUN_003e7ab0(param_4,param_5,local_1d,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003e7ab0(param_4,param_5,local_1d,0)" identifier (argument_list "(param_4,param_5,local_1d,0)" ( identifier , identifier , identifier , number_literal ))))) ;) (expression_statement "iVar1 = *(int *)(pcVar3 + -0xc);" (assignment_expression "iVar1 = *(int *)(pcVar3 + -0xc)" identifier = (pointer_expression "*(int *)(pcVar3 + -0xc)" * (cast_expression "(int *)(pcVar3 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + -0xc)" ( (binary_expression "pcVar3 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(pcVar4 + -0xc);" (assignment_expression "iVar2 = *(int *)(pcVar4 + -0xc)" identifier = (pointer_expression "*(int *)(pcVar4 + -0xc)" * (cast_expression "(int *)(pcVar4 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + -0xc)" ( (binary_expression "pcVar4 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "pcVar7 = pcVar3;" (assignment_expression "pcVar7 = pcVar3" identifier = identifier) ;) (expression_statement "pcVar8 = pcVar4;" (assignment_expression "pcVar8 = pcVar4" identifier = identifier) ;) (do_statement "do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );" do (compound_statement "{\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  }" { (expression_statement "iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);" (assignment_expression "iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8)" identifier = (call_expression "FUN_003fc7b0(param_1,pcVar7,pcVar8)" identifier (argument_list "(param_1,pcVar7,pcVar8)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }" { (labeled_statement "LAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }" statement_identifier : (if_statement "if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }" if (parenthesized_expression "(pcVar4 != &DAT_005f308c)" ( (binary_expression "pcVar4 != &DAT_005f308c" identifier != (pointer_expression "&DAT_005f308c" & identifier)) )) (compound_statement "{\n        FUN_003c0300();\n      }" { (expression_statement "FUN_003c0300();" (call_expression "FUN_003c0300()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }" if (parenthesized_expression "(pcVar3 != &DAT_005f308c)" ( (binary_expression "pcVar3 != &DAT_005f308c" identifier != (pointer_expression "&DAT_005f308c" & identifier)) )) (compound_statement "{\n        FUN_003c0300();\n      }" { (expression_statement "FUN_003c0300();" (call_expression "FUN_003c0300()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return iVar6;" return identifier ;) })) (expression_statement "sVar5 = strlen(pcVar7);" (assignment_expression "sVar5 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "pcVar7 = pcVar7 + sVar5;" (assignment_expression "pcVar7 = pcVar7 + sVar5" identifier = (binary_expression "pcVar7 + sVar5" identifier + identifier)) ;) (expression_statement "sVar5 = strlen(pcVar8);" (assignment_expression "sVar5 = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "pcVar8 = pcVar8 + sVar5;" (assignment_expression "pcVar8 = pcVar8 + sVar5" identifier = (binary_expression "pcVar8 + sVar5" identifier + identifier)) ;) (if_statement "if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;" if (parenthesized_expression "((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8))" ( (binary_expression "(pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)" (parenthesized_expression "(pcVar3 + iVar1 == pcVar7)" ( (binary_expression "pcVar3 + iVar1 == pcVar7" (binary_expression "pcVar3 + iVar1" identifier + identifier) == identifier) )) && (parenthesized_expression "(pcVar4 + iVar2 == pcVar8)" ( (binary_expression "pcVar4 + iVar2 == pcVar8" (binary_expression "pcVar4 + iVar2" identifier + identifier) == identifier) ))) )) (goto_statement "goto LAB_003c0404;" goto statement_identifier ;)) (if_statement "if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }" if (parenthesized_expression "(pcVar3 + iVar1 == pcVar7)" ( (binary_expression "pcVar3 + iVar1 == pcVar7" (binary_expression "pcVar3 + iVar1" identifier + identifier) == identifier) )) (compound_statement "{\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }" { (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_003c0404;" goto statement_identifier ;) })) (if_statement "if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }" if (parenthesized_expression "(pcVar4 + iVar2 == pcVar8)" ( (binary_expression "pcVar4 + iVar2 == pcVar8" (binary_expression "pcVar4 + iVar2" identifier + identifier) == identifier) )) (compound_statement "{\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_003c0404;" goto statement_identifier ;) })) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))))) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression & IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) == IDENT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) == IDENT) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int FUN_003c0350(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  undefined1 local_1d [13];\n  \n  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);\n                    \n  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}" (primitive_type "int") (function_declarator "FUN_003c0350(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" (identifier "FUN_003c0350") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t sVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  undefined1 local_1d [13];\n  \n  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);\n                    \n  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);\n  iVar1 = *(int *)(pcVar3 + -0xc);\n  iVar2 = *(int *)(pcVar4 + -0xc);\n  pcVar7 = pcVar3;\n  pcVar8 = pcVar4;\n  do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "undefined1 local_1d [13];" (type_identifier "undefined1") (array_declarator "local_1d [13]" (identifier "local_1d") ([ "[") (number_literal "13") (] "]")) (; ";")) (expression_statement "pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);" (assignment_expression "pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0)" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_003e7ab0(param_2,param_3,local_1d,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003e7ab0(param_2,param_3,local_1d,0)" (identifier "FUN_003e7ab0") (argument_list "(param_2,param_3,local_1d,0)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "local_1d") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);" (assignment_expression "pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0)" (identifier "pcVar4") (= "=") (cast_expression "(char *)FUN_003e7ab0(param_4,param_5,local_1d,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003e7ab0(param_4,param_5,local_1d,0)" (identifier "FUN_003e7ab0") (argument_list "(param_4,param_5,local_1d,0)" (( "(") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "local_1d") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(pcVar3 + -0xc);" (assignment_expression "iVar1 = *(int *)(pcVar3 + -0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(pcVar3 + -0xc)" (* "*") (cast_expression "(int *)(pcVar3 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar3 + -0xc)" (( "(") (binary_expression "pcVar3 + -0xc" (identifier "pcVar3") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(pcVar4 + -0xc);" (assignment_expression "iVar2 = *(int *)(pcVar4 + -0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(pcVar4 + -0xc)" (* "*") (cast_expression "(int *)(pcVar4 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar4 + -0xc)" (( "(") (binary_expression "pcVar4 + -0xc" (identifier "pcVar4") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (expression_statement "pcVar7 = pcVar3;" (assignment_expression "pcVar7 = pcVar3" (identifier "pcVar7") (= "=") (identifier "pcVar3")) (; ";")) (expression_statement "pcVar8 = pcVar4;" (assignment_expression "pcVar8 = pcVar4" (identifier "pcVar8") (= "=") (identifier "pcVar4")) (; ";")) (do_statement "do {\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  } while( true );" (do "do") (compound_statement "{\n    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);\n    if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }\n    sVar5 = strlen(pcVar7);\n    pcVar7 = pcVar7 + sVar5;\n    sVar5 = strlen(pcVar8);\n    pcVar8 = pcVar8 + sVar5;\n    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;\n    if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }\n    if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }\n    pcVar7 = pcVar7 + 1;\n    pcVar8 = pcVar8 + 1;\n  }" ({ "{") (expression_statement "iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);" (assignment_expression "iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8)" (identifier "iVar6") (= "=") (call_expression "FUN_003fc7b0(param_1,pcVar7,pcVar8)" (identifier "FUN_003fc7b0") (argument_list "(param_1,pcVar7,pcVar8)" (( "(") (identifier "param_1") (, ",") (identifier "pcVar7") (, ",") (identifier "pcVar8") () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }\n      return iVar6;\n    }" ({ "{") (labeled_statement "LAB_003c0404:\n      if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }" (statement_identifier "LAB_003c0404") (: ":") (if_statement "if (pcVar4 != &DAT_005f308c) {\n        FUN_003c0300();\n      }" (if "if") (parenthesized_expression "(pcVar4 != &DAT_005f308c)" (( "(") (binary_expression "pcVar4 != &DAT_005f308c" (identifier "pcVar4") (!= "!=") (pointer_expression "&DAT_005f308c" (& "&") (identifier "DAT_005f308c"))) () ")")) (compound_statement "{\n        FUN_003c0300();\n      }" ({ "{") (expression_statement "FUN_003c0300();" (call_expression "FUN_003c0300()" (identifier "FUN_003c0300") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (pcVar3 != &DAT_005f308c) {\n        FUN_003c0300();\n      }" (if "if") (parenthesized_expression "(pcVar3 != &DAT_005f308c)" (( "(") (binary_expression "pcVar3 != &DAT_005f308c" (identifier "pcVar3") (!= "!=") (pointer_expression "&DAT_005f308c" (& "&") (identifier "DAT_005f308c"))) () ")")) (compound_statement "{\n        FUN_003c0300();\n      }" ({ "{") (expression_statement "FUN_003c0300();" (call_expression "FUN_003c0300()" (identifier "FUN_003c0300") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}"))) (expression_statement "sVar5 = strlen(pcVar7);" (assignment_expression "sVar5 = strlen(pcVar7)" (identifier "sVar5") (= "=") (call_expression "strlen(pcVar7)" (identifier "strlen") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")")))) (; ";")) (expression_statement "pcVar7 = pcVar7 + sVar5;" (assignment_expression "pcVar7 = pcVar7 + sVar5" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + sVar5" (identifier "pcVar7") (+ "+") (identifier "sVar5"))) (; ";")) (expression_statement "sVar5 = strlen(pcVar8);" (assignment_expression "sVar5 = strlen(pcVar8)" (identifier "sVar5") (= "=") (call_expression "strlen(pcVar8)" (identifier "strlen") (argument_list "(pcVar8)" (( "(") (identifier "pcVar8") () ")")))) (; ";")) (expression_statement "pcVar8 = pcVar8 + sVar5;" (assignment_expression "pcVar8 = pcVar8 + sVar5" (identifier "pcVar8") (= "=") (binary_expression "pcVar8 + sVar5" (identifier "pcVar8") (+ "+") (identifier "sVar5"))) (; ";")) (if_statement "if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;" (if "if") (parenthesized_expression "((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8))" (( "(") (binary_expression "(pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)" (parenthesized_expression "(pcVar3 + iVar1 == pcVar7)" (( "(") (binary_expression "pcVar3 + iVar1 == pcVar7" (binary_expression "pcVar3 + iVar1" (identifier "pcVar3") (+ "+") (identifier "iVar1")) (== "==") (identifier "pcVar7")) () ")")) (&& "&&") (parenthesized_expression "(pcVar4 + iVar2 == pcVar8)" (( "(") (binary_expression "pcVar4 + iVar2 == pcVar8" (binary_expression "pcVar4 + iVar2" (identifier "pcVar4") (+ "+") (identifier "iVar2")) (== "==") (identifier "pcVar8")) () ")"))) () ")")) (goto_statement "goto LAB_003c0404;" (goto "goto") (statement_identifier "LAB_003c0404") (; ";"))) (if_statement "if (pcVar3 + iVar1 == pcVar7) {\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }" (if "if") (parenthesized_expression "(pcVar3 + iVar1 == pcVar7)" (( "(") (binary_expression "pcVar3 + iVar1 == pcVar7" (binary_expression "pcVar3 + iVar1" (identifier "pcVar3") (+ "+") (identifier "iVar1")) (== "==") (identifier "pcVar7")) () ")")) (compound_statement "{\n      iVar6 = -1;\n      goto LAB_003c0404;\n    }" ({ "{") (expression_statement "iVar6 = -1;" (assignment_expression "iVar6 = -1" (identifier "iVar6") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_003c0404;" (goto "goto") (statement_identifier "LAB_003c0404") (; ";")) (} "}"))) (if_statement "if (pcVar4 + iVar2 == pcVar8) {\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }" (if "if") (parenthesized_expression "(pcVar4 + iVar2 == pcVar8)" (( "(") (binary_expression "pcVar4 + iVar2 == pcVar8" (binary_expression "pcVar4 + iVar2" (identifier "pcVar4") (+ "+") (identifier "iVar2")) (== "==") (identifier "pcVar8")) () ")")) (compound_statement "{\n      iVar6 = 1;\n      goto LAB_003c0404;\n    }" ({ "{") (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_003c0404;" (goto "goto") (statement_identifier "LAB_003c0404") (; ";")) (} "}"))) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" (identifier "pcVar8") (= "=") (binary_expression "pcVar8 + 1" (identifier "pcVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::collate<char>::do_compare(char const*, char const*, char const*, char const*) const */

int __thiscall
std::type_1<char>::function_1
          (type_1<char> *this,char *param_1,char *param_2,char *param_3,char *param_4)

{
  int var_12;
  int var_13;
  char *var_3;
  char *var_4;
  size_t var_10;
  int var_6;
  char *var_9;
  char *var_11;
  type_2 *in_stack_ffffffb4;
  type_3 local_1d [13];
  
  var_3 = std::string::var_1<var_2*>(param_1,param_2,local_1d,0);
                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */
  var_4 = std::string::var_1<var_2*>(param_3,param_4,local_1d,0);
  var_12 = *(int *)(var_3 + -0xc);
  var_13 = *(int *)(var_4 + -0xc);
  var_9 = var_3;
  var_11 = var_4;
  do {
    var_6 = var_5((char *)this,var_9);
    if (var_6 != 0) {
LAB_003c0404:
      if (var_4 != &DAT_005f308c) {
        std::string::_Rep::var_7(in_stack_ffffffb4);
      }
      if (var_3 != &DAT_005f308c) {
        std::string::_Rep::var_7(in_stack_ffffffb4);
      }
      return var_6;
    }
    var_10 = var_8(var_9);
    var_9 = var_9 + var_10;
    var_10 = var_8(var_11);
    var_11 = var_11 + var_10;
    if ((var_3 + var_12 == var_9) && (var_4 + var_13 == var_11)) goto LAB_003c0404;
    if (var_3 + var_12 == var_9) {
      var_6 = -1;
      goto LAB_003c0404;
    }
    if (var_4 + var_13 == var_11) {
      var_6 = 1;
      goto LAB_003c0404;
    }
    var_9 = var_9 + 1;
    var_11 = var_11 + 1;
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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))) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (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) (identifier) (identifier) (number_literal)))))) (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) (identifier) (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: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (true))))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                undefined4 param_5)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  char *pcVar4;
  size_t sVar5;
  int iVar6;
  char *pcVar7;
  char *pcVar8;
  undefined1 local_1d [13];
  
  pcVar3 = (char *)FUN_003e7ab0(param_2,param_3,local_1d,0);
                    /* try { // try from 003c0391 to 003c0395 has its CatchHandler @ 003c0470 */
  pcVar4 = (char *)FUN_003e7ab0(param_4,param_5,local_1d,0);
  iVar1 = *(int *)(pcVar3 + -0xc);
  iVar2 = *(int *)(pcVar4 + -0xc);
  pcVar7 = pcVar3;
  pcVar8 = pcVar4;
  do {
    iVar6 = FUN_003fc7b0(param_1,pcVar7,pcVar8);
    if (iVar6 != 0) {
LAB_003c0404:
      if (pcVar4 != &DAT_005f308c) {
        FUN_003c0300();
      }
      if (pcVar3 != &DAT_005f308c) {
        FUN_003c0300();
      }
      return iVar6;
    }
    sVar5 = strlen(pcVar7);
    pcVar7 = pcVar7 + sVar5;
    sVar5 = strlen(pcVar8);
    pcVar8 = pcVar8 + sVar5;
    if ((pcVar3 + iVar1 == pcVar7) && (pcVar4 + iVar2 == pcVar8)) goto LAB_003c0404;
    if (pcVar3 + iVar1 == pcVar7) {
      iVar6 = -1;
      goto LAB_003c0404;
    }
    if (pcVar4 + iVar2 == pcVar8) {
      iVar6 = 1;
      goto LAB_003c0404;
    }
    pcVar7 = pcVar7 + 1;
    pcVar8 = pcVar8 + 1;
  } while( true );
}

