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

int app_passwd(char *arg1,char *arg2,char **pass1,char **pass2)

{
  int iVar1;
  char *pcVar2;
  uint uVar3;
  
  if ((arg2 == (char *)0x0) || (arg1 == (char *)0x0)) {
    if (arg1 == (char *)0x0) {
      if (pass1 != (char **)0x0) {
        *pass1 = (char *)0x0;
        goto joined_r0x0007c131;
      }
      if (arg2 != (char *)0x0) {
        iVar1 = 0;
        goto LAB_0007c0e2;
      }
    }
    else {
      pcVar2 = app_get_pass(arg1,0);
      *pass1 = pcVar2;
      if (pcVar2 == (char *)0x0) {
        return 0;
      }
joined_r0x0007c131:
      if (arg2 != (char *)0x0) goto LAB_0007c112;
    }
    uVar3 = 1;
    if (pass2 != (char **)0x0) {
      *pass2 = (char *)0x0;
      return uVar3;
    }
  }
  else {
    iVar1 = strcmp(arg1,arg2);
    pcVar2 = app_get_pass(arg1,(uint)(iVar1 == 0));
    *pass1 = pcVar2;
    if (pcVar2 == (char *)0x0) {
      return 0;
    }
    if (iVar1 == 0) {
      iVar1 = 2;
    }
    else {
LAB_0007c112:
      iVar1 = 0;
    }
LAB_0007c0e2:
    pcVar2 = app_get_pass(arg2,iVar1);
    *pass2 = pcVar2;
    uVar3 = (uint)(pcVar2 != (char *)0x0);
  }
  return uVar3;
}



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

bool FUN_0007c090(char *param_1,char *param_2,int *param_3,int *param_4)

{
  int iVar1;
  
  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {
    if (param_1 == (char *)0x0) {
      if (param_3 != (int *)0x0) {
        *param_3 = 0;
      }
    }
    else {
      iVar1 = FUN_0007bd80();
      *param_3 = iVar1;
      if (iVar1 == 0) {
        return false;
      }
    }
    if (param_2 == (char *)0x0) {
      if (param_4 == (int *)0x0) {
        return true;
      }
      *param_4 = 0;
      return true;
    }
  }
  else {
    strcmp(param_1,param_2);
    iVar1 = FUN_0007bd80();
    *param_3 = iVar1;
    if (iVar1 == 0) {
      return false;
    }
  }
  iVar1 = FUN_0007bd80();
  *param_4 = iVar1;
  return iVar1 != 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0002c850
ADD EBX,0x489df
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x24]
MOV EBP,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x28]
TEST ESI,ESI
JZ 0x0007c100
TEST EBP,EBP
JZ 0x0007c100
SUB ESP,0x8
PUSH ESI
PUSH EBP
CALL 0x0002bce0
ADD ESP,0x10
XOR EDX,EDX
TEST EAX,EAX
MOV EBX,EAX
MOV EAX,EBP
SETZ DL
CALL 0x0007bd80
MOV dword ptr [EDI],EAX
TEST EAX,EAX
JZ 0x0007c158
TEST EBX,EBX
JNZ 0x0007c112
MOV EDX,0x2
MOV EAX,ESI
CALL 0x0007bd80
MOV ECX,dword ptr [ESP + 0x2c]
TEST EAX,EAX
MOV dword ptr [ECX],EAX
SETNZ AL
MOVZX EAX,AL
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EBP,EBP
JNZ 0x0007c120
TEST EDI,EDI
JZ 0x0007c168
MOV dword ptr [EDI],0x0
TEST ESI,ESI
JZ 0x0007c133
XOR EDX,EDX
JMP 0x0007c0e2
XOR EDX,EDX
MOV EAX,EBP
CALL 0x0007bd80
MOV dword ptr [EDI],EAX
TEST EAX,EAX
JZ 0x0007c158
TEST ESI,ESI
JNZ 0x0007c112
MOV EDX,dword ptr [ESP + 0x2c]
MOV EAX,0x1
TEST EDX,EDX
JZ 0x0007c0f7
MOV ECX,dword ptr [ESP + 0x2c]
MOV dword ptr [ECX],0x0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST ESI,ESI
JZ 0x0007c133
XOR EDX,EDX
JMP 0x0007c0e2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_0007c090(char *param_1,char *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  \n  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }\n  iVar1 = FUN_0007bd80();\n  *param_4 = iVar1;\n  return iVar1 != 0;\n}\n\n" comment (function_definition "bool FUN_0007c090(char *param_1,char *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  \n  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }\n  iVar1 = FUN_0007bd80();\n  *param_4 = iVar1;\n  return iVar1 != 0;\n}" primitive_type (function_declarator "FUN_0007c090(char *param_1,char *param_2,int *param_3,int *param_4)" identifier (parameter_list "(char *param_1,char *param_2,int *param_3,int *param_4)" ( (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 "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }\n  iVar1 = FUN_0007bd80();\n  *param_4 = iVar1;\n  return iVar1 != 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }" if (parenthesized_expression "((param_2 == (char *)0x0) || (param_1 == (char *)0x0))" ( (binary_expression "(param_2 == (char *)0x0) || (param_1 == (char *)0x0)" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }" { (if_statement "if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }" { (if_statement "if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }" if (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_3 = 0;\n      }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) }) (else_clause "else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }" { (expression_statement "iVar1 = FUN_0007bd80();" (assignment_expression "iVar1 = FUN_0007bd80()" identifier = (call_expression "FUN_0007bd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) {\n        return false;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) }))) (if_statement "if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }" { (if_statement "if (param_4 == (int *)0x0) {\n        return true;\n      }" if (parenthesized_expression "(param_4 == (int *)0x0)" ( (binary_expression "param_4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (return_statement "return true;" return true ;) })) }) (else_clause "else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }" else (compound_statement "{\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }" { (expression_statement "strcmp(param_1,param_2);" (call_expression "strcmp(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = FUN_0007bd80();" (assignment_expression "iVar1 = FUN_0007bd80()" identifier = (call_expression "FUN_0007bd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      return false;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }))) (expression_statement "iVar1 = FUN_0007bd80();" (assignment_expression "iVar1 = FUN_0007bd80()" identifier = (call_expression "FUN_0007bd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint app_passwd(char *arg1,char *arg2,char **pass1,char **pass2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if ((arg2 == (char *)0x0) || (arg1 == (char *)0x0)) {\n    if (arg1 == (char *)0x0) {\n      if (pass1 != (char **)0x0) {\n        *pass1 = (char *)0x0;\n        goto joined_r0x0007c131;\n      }\n      if (arg2 != (char *)0x0) {\n        iVar1 = 0;\n        goto LAB_0007c0e2;\n      }\n    }\n    else {\n      pcVar2 = app_get_pass(arg1,0);\n      *pass1 = pcVar2;\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\njoined_r0x0007c131:\n      if (arg2 != (char *)0x0) goto LAB_0007c112;\n    }\n    uVar3 = 1;\n    if (pass2 != (char **)0x0) {\n      *pass2 = (char *)0x0;\n      return uVar3;\n    }\n  }\n  else {\n    iVar1 = strcmp(arg1,arg2);\n    pcVar2 = app_get_pass(arg1,(uint)(iVar1 == 0));\n    *pass1 = pcVar2;\n    if (pcVar2 == (char *)0x0) {\n      return 0;\n    }\n    if (iVar1 == 0) {\n      iVar1 = 2;\n    }\n    else {\nLAB_0007c112:\n      iVar1 = 0;\n    }\nLAB_0007c0e2:\n    pcVar2 = app_get_pass(arg2,iVar1);\n    *pass2 = pcVar2;\n    uVar3 = (uint)(pcVar2 != (char *)0x0);\n  }\n  return uVar3;\n}\n\n" comment comment (function_definition "int app_passwd(char *arg1,char *arg2,char **pass1,char **pass2)\n\n{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if ((arg2 == (char *)0x0) || (arg1 == (char *)0x0)) {\n    if (arg1 == (char *)0x0) {\n      if (pass1 != (char **)0x0) {\n        *pass1 = (char *)0x0;\n        goto joined_r0x0007c131;\n      }\n      if (arg2 != (char *)0x0) {\n        iVar1 = 0;\n        goto LAB_0007c0e2;\n      }\n    }\n    else {\n      pcVar2 = app_get_pass(arg1,0);\n      *pass1 = pcVar2;\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\njoined_r0x0007c131:\n      if (arg2 != (char *)0x0) goto LAB_0007c112;\n    }\n    uVar3 = 1;\n    if (pass2 != (char **)0x0) {\n      *pass2 = (char *)0x0;\n      return uVar3;\n    }\n  }\n  else {\n    iVar1 = strcmp(arg1,arg2);\n    pcVar2 = app_get_pass(arg1,(uint)(iVar1 == 0));\n    *pass1 = pcVar2;\n    if (pcVar2 == (char *)0x0) {\n      return 0;\n    }\n    if (iVar1 == 0) {\n      iVar1 = 2;\n    }\n    else {\nLAB_0007c112:\n      iVar1 = 0;\n    }\nLAB_0007c0e2:\n    pcVar2 = app_get_pass(arg2,iVar1);\n    *pass2 = pcVar2;\n    uVar3 = (uint)(pcVar2 != (char *)0x0);\n  }\n  return uVar3;\n}" primitive_type (function_declarator "app_passwd(char *arg1,char *arg2,char **pass1,char **pass2)" identifier (parameter_list "(char *arg1,char *arg2,char **pass1,char **pass2)" ( (parameter_declaration "char *arg1" primitive_type (pointer_declarator "*arg1" * identifier)) , (parameter_declaration "char *arg2" primitive_type (pointer_declarator "*arg2" * identifier)) , (parameter_declaration "char **pass1" primitive_type (pointer_declarator "**pass1" * (pointer_declarator "*pass1" * identifier))) , (parameter_declaration "char **pass2" primitive_type (pointer_declarator "**pass2" * (pointer_declarator "*pass2" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  if ((arg2 == (char *)0x0) || (arg1 == (char *)0x0)) {\n    if (arg1 == (char *)0x0) {\n      if (pass1 != (char **)0x0) {\n        *pass1 = (char *)0x0;\n        goto joined_r0x0007c131;\n      }\n      if (arg2 != (char *)0x0) {\n        iVar1 = 0;\n        goto LAB_0007c0e2;\n      }\n    }\n    else {\n      pcVar2 = app_get_pass(arg1,0);\n      *pass1 = pcVar2;\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\njoined_r0x0007c131:\n      if (arg2 != (char *)0x0) goto LAB_0007c112;\n    }\n    uVar3 = 1;\n    if (pass2 != (char **)0x0) {\n      *pass2 = (char *)0x0;\n      return uVar3;\n    }\n  }\n  else {\n    iVar1 = strcmp(arg1,arg2);\n    pcVar2 = app_get_pass(arg1,(uint)(iVar1 == 0));\n    *pass1 = pcVar2;\n    if (pcVar2 == (char *)0x0) {\n      return 0;\n    }\n    if (iVar1 == 0) {\n      iVar1 = 2;\n    }\n    else {\nLAB_0007c112:\n      iVar1 = 0;\n    }\nLAB_0007c0e2:\n    pcVar2 = app_get_pass(arg2,iVar1);\n    *pass2 = pcVar2;\n    uVar3 = (uint)(pcVar2 != (char *)0x0);\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if ((arg2 == (char *)0x0) || (arg1 == (char *)0x0)) {\n    if (arg1 == (char *)0x0) {\n      if (pass1 != (char **)0x0) {\n        *pass1 = (char *)0x0;\n        goto joined_r0x0007c131;\n      }\n      if (arg2 != (char *)0x0) {\n        iVar1 = 0;\n        goto LAB_0007c0e2;\n      }\n    }\n    else {\n      pcVar2 = app_get_pass(arg1,0);\n      *pass1 = pcVar2;\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\njoined_r0x0007c131:\n      if (arg2 != (char *)0x0) goto LAB_0007c112;\n    }\n    uVar3 = 1;\n    if (pass2 != (char **)0x0) {\n      *pass2 = (char *)0x0;\n      return uVar3;\n    }\n  }\n  else {\n    iVar1 = strcmp(arg1,arg2);\n    pcVar2 = app_get_pass(arg1,(uint)(iVar1 == 0));\n    *pass1 = pcVar2;\n    if (pcVar2 == (char *)0x0) {\n      return 0;\n    }\n    if (iVar1 == 0) {\n      iVar1 = 2;\n    }\n    else {\nLAB_0007c112:\n      iVar1 = 0;\n    }\nLAB_0007c0e2:\n    pcVar2 = app_get_pass(arg2,iVar1);\n    *pass2 = pcVar2;\n    uVar3 = (uint)(pcVar2 != (char *)0x0);\n  }" if (parenthesized_expression "((arg2 == (char *)0x0) || (arg1 == (char *)0x0))" ( (binary_expression "(arg2 == (char *)0x0) || (arg1 == (char *)0x0)" (parenthesized_expression "(arg2 == (char *)0x0)" ( (binary_expression "arg2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(arg1 == (char *)0x0)" ( (binary_expression "arg1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (arg1 == (char *)0x0) {\n      if (pass1 != (char **)0x0) {\n        *pass1 = (char *)0x0;\n        goto joined_r0x0007c131;\n      }\n      if (arg2 != (char *)0x0) {\n        iVar1 = 0;\n        goto LAB_0007c0e2;\n      }\n    }\n    else {\n      pcVar2 = app_get_pass(arg1,0);\n      *pass1 = pcVar2;\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\njoined_r0x0007c131:\n      if (arg2 != (char *)0x0) goto LAB_0007c112;\n    }\n    uVar3 = 1;\n    if (pass2 != (char **)0x0) {\n      *pass2 = (char *)0x0;\n      return uVar3;\n    }\n  }" { (if_statement "if (arg1 == (char *)0x0) {\n      if (pass1 != (char **)0x0) {\n        *pass1 = (char *)0x0;\n        goto joined_r0x0007c131;\n      }\n      if (arg2 != (char *)0x0) {\n        iVar1 = 0;\n        goto LAB_0007c0e2;\n      }\n    }\n    else {\n      pcVar2 = app_get_pass(arg1,0);\n      *pass1 = pcVar2;\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\njoined_r0x0007c131:\n      if (arg2 != (char *)0x0) goto LAB_0007c112;\n    }" if (parenthesized_expression "(arg1 == (char *)0x0)" ( (binary_expression "arg1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (pass1 != (char **)0x0) {\n        *pass1 = (char *)0x0;\n        goto joined_r0x0007c131;\n      }\n      if (arg2 != (char *)0x0) {\n        iVar1 = 0;\n        goto LAB_0007c0e2;\n      }\n    }" { (if_statement "if (pass1 != (char **)0x0) {\n        *pass1 = (char *)0x0;\n        goto joined_r0x0007c131;\n      }" if (parenthesized_expression "(pass1 != (char **)0x0)" ( (binary_expression "pass1 != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n        *pass1 = (char *)0x0;\n        goto joined_r0x0007c131;\n      }" { (expression_statement "*pass1 = (char *)0x0;" (assignment_expression "*pass1 = (char *)0x0" (pointer_expression "*pass1" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto joined_r0x0007c131;" goto statement_identifier ;) })) (if_statement "if (arg2 != (char *)0x0) {\n        iVar1 = 0;\n        goto LAB_0007c0e2;\n      }" if (parenthesized_expression "(arg2 != (char *)0x0)" ( (binary_expression "arg2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar1 = 0;\n        goto LAB_0007c0e2;\n      }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0007c0e2;" goto statement_identifier ;) })) }) (else_clause "else {\n      pcVar2 = app_get_pass(arg1,0);\n      *pass1 = pcVar2;\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\njoined_r0x0007c131:\n      if (arg2 != (char *)0x0) goto LAB_0007c112;\n    }" else (compound_statement "{\n      pcVar2 = app_get_pass(arg1,0);\n      *pass1 = pcVar2;\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\njoined_r0x0007c131:\n      if (arg2 != (char *)0x0) goto LAB_0007c112;\n    }" { (expression_statement "pcVar2 = app_get_pass(arg1,0);" (assignment_expression "pcVar2 = app_get_pass(arg1,0)" identifier = (call_expression "app_get_pass(arg1,0)" identifier (argument_list "(arg1,0)" ( identifier , number_literal )))) ;) (expression_statement "*pass1 = pcVar2;" (assignment_expression "*pass1 = pcVar2" (pointer_expression "*pass1" * identifier) = identifier) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (labeled_statement "joined_r0x0007c131:\n      if (arg2 != (char *)0x0) goto LAB_0007c112;" statement_identifier : (if_statement "if (arg2 != (char *)0x0) goto LAB_0007c112;" if (parenthesized_expression "(arg2 != (char *)0x0)" ( (binary_expression "arg2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0007c112;" goto statement_identifier ;))) }))) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (pass2 != (char **)0x0) {\n      *pass2 = (char *)0x0;\n      return uVar3;\n    }" if (parenthesized_expression "(pass2 != (char **)0x0)" ( (binary_expression "pass2 != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      *pass2 = (char *)0x0;\n      return uVar3;\n    }" { (expression_statement "*pass2 = (char *)0x0;" (assignment_expression "*pass2 = (char *)0x0" (pointer_expression "*pass2" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return uVar3;" return identifier ;) })) }) (else_clause "else {\n    iVar1 = strcmp(arg1,arg2);\n    pcVar2 = app_get_pass(arg1,(uint)(iVar1 == 0));\n    *pass1 = pcVar2;\n    if (pcVar2 == (char *)0x0) {\n      return 0;\n    }\n    if (iVar1 == 0) {\n      iVar1 = 2;\n    }\n    else {\nLAB_0007c112:\n      iVar1 = 0;\n    }\nLAB_0007c0e2:\n    pcVar2 = app_get_pass(arg2,iVar1);\n    *pass2 = pcVar2;\n    uVar3 = (uint)(pcVar2 != (char *)0x0);\n  }" else (compound_statement "{\n    iVar1 = strcmp(arg1,arg2);\n    pcVar2 = app_get_pass(arg1,(uint)(iVar1 == 0));\n    *pass1 = pcVar2;\n    if (pcVar2 == (char *)0x0) {\n      return 0;\n    }\n    if (iVar1 == 0) {\n      iVar1 = 2;\n    }\n    else {\nLAB_0007c112:\n      iVar1 = 0;\n    }\nLAB_0007c0e2:\n    pcVar2 = app_get_pass(arg2,iVar1);\n    *pass2 = pcVar2;\n    uVar3 = (uint)(pcVar2 != (char *)0x0);\n  }" { (expression_statement "iVar1 = strcmp(arg1,arg2);" (assignment_expression "iVar1 = strcmp(arg1,arg2)" identifier = (call_expression "strcmp(arg1,arg2)" identifier (argument_list "(arg1,arg2)" ( identifier , identifier )))) ;) (expression_statement "pcVar2 = app_get_pass(arg1,(uint)(iVar1 == 0));" (assignment_expression "pcVar2 = app_get_pass(arg1,(uint)(iVar1 == 0))" identifier = (call_expression "app_get_pass(arg1,(uint)(iVar1 == 0))" identifier (argument_list "(arg1,(uint)(iVar1 == 0))" ( identifier , (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) )))) ;) (expression_statement "*pass1 = pcVar2;" (assignment_expression "*pass1 = pcVar2" (pointer_expression "*pass1" * identifier) = identifier) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 == 0) {\n      iVar1 = 2;\n    }\n    else {\nLAB_0007c112:\n      iVar1 = 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = 2;\n    }" { (expression_statement "iVar1 = 2;" (assignment_expression "iVar1 = 2" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0007c112:\n      iVar1 = 0;\n    }" else (compound_statement "{\nLAB_0007c112:\n      iVar1 = 0;\n    }" { (labeled_statement "LAB_0007c112:\n      iVar1 = 0;" statement_identifier : (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;)) }))) (labeled_statement "LAB_0007c0e2:\n    pcVar2 = app_get_pass(arg2,iVar1);" statement_identifier : (expression_statement "pcVar2 = app_get_pass(arg2,iVar1);" (assignment_expression "pcVar2 = app_get_pass(arg2,iVar1)" identifier = (call_expression "app_get_pass(arg2,iVar1)" identifier (argument_list "(arg2,iVar1)" ( identifier , identifier )))) ;)) (expression_statement "*pass2 = pcVar2;" (assignment_expression "*pass2 = pcVar2" (pointer_expression "*pass2" * identifier) = identifier) ;) (expression_statement "uVar3 = (uint)(pcVar2 != (char *)0x0);" (assignment_expression "uVar3 = (uint)(pcVar2 != (char *)0x0)" identifier = (call_expression "(uint)(pcVar2 != (char *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )))) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "bool FUN_0007c090(char *param_1,char *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  \n  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }\n  iVar1 = FUN_0007bd80();\n  *param_4 = iVar1;\n  return iVar1 != 0;\n}\n\n" (function_definition "bool FUN_0007c090(char *param_1,char *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  \n  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }\n  iVar1 = FUN_0007bd80();\n  *param_4 = iVar1;\n  return iVar1 != 0;\n}" primitive_type (function_declarator "FUN_0007c090(char *param_1,char *param_2,int *param_3,int *param_4)" identifier (parameter_list "(char *param_1,char *param_2,int *param_3,int *param_4)" ( (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 "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }\n  iVar1 = FUN_0007bd80();\n  *param_4 = iVar1;\n  return iVar1 != 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }" if (parenthesized_expression "((param_2 == (char *)0x0) || (param_1 == (char *)0x0))" ( (binary_expression "(param_2 == (char *)0x0) || (param_1 == (char *)0x0)" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }" { (if_statement "if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }" { (if_statement "if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }" if (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *param_3 = 0;\n      }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) }) (else_clause "else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }" { (expression_statement "iVar1 = FUN_0007bd80();" (assignment_expression "iVar1 = FUN_0007bd80()" identifier = (call_expression "FUN_0007bd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) {\n        return false;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) }))) (if_statement "if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }" { (if_statement "if (param_4 == (int *)0x0) {\n        return true;\n      }" if (parenthesized_expression "(param_4 == (int *)0x0)" ( (binary_expression "param_4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (return_statement "return true;" return true ;) })) }) (else_clause "else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }" else (compound_statement "{\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }" { (expression_statement "strcmp(param_1,param_2);" (call_expression "strcmp(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = FUN_0007bd80();" (assignment_expression "iVar1 = FUN_0007bd80()" identifier = (call_expression "FUN_0007bd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (iVar1 == 0) {\n      return false;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) }))) (expression_statement "iVar1 = FUN_0007bd80();" (assignment_expression "iVar1 = FUN_0007bd80()" identifier = (call_expression "FUN_0007bd80()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (return_statement "return iVar1 != 0;" return (binary_expression "iVar1 != 0" identifier != number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return BOOL ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return BOOL ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return BOOL ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return (binary_expression IDENT != LIT) ;) })))
(function_definition "bool FUN_0007c090(char *param_1,char *param_2,int *param_3,int *param_4)\n\n{\n  int iVar1;\n  \n  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }\n  iVar1 = FUN_0007bd80();\n  *param_4 = iVar1;\n  return iVar1 != 0;\n}" (primitive_type "bool") (function_declarator "FUN_0007c090(char *param_1,char *param_2,int *param_3,int *param_4)" (identifier "FUN_0007c090") (parameter_list "(char *param_1,char *param_2,int *param_3,int *param_4)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }\n  iVar1 = FUN_0007bd80();\n  *param_4 = iVar1;\n  return iVar1 != 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }\n  else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 == (char *)0x0) || (param_1 == (char *)0x0))" (( "(") (binary_expression "(param_2 == (char *)0x0) || (param_1 == (char *)0x0)" (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }\n    if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }\n  }" ({ "{") (if_statement "if (param_1 == (char *)0x0) {\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }\n    else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }\n    }" ({ "{") (if_statement "if (param_3 != (int *)0x0) {\n        *param_3 = 0;\n      }" (if "if") (parenthesized_expression "(param_3 != (int *)0x0)" (( "(") (binary_expression "param_3 != (int *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *param_3 = 0;\n      }" ({ "{") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }" (else "else") (compound_statement "{\n      iVar1 = FUN_0007bd80();\n      *param_3 = iVar1;\n      if (iVar1 == 0) {\n        return false;\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_0007bd80();" (assignment_expression "iVar1 = FUN_0007bd80()" (identifier "iVar1") (= "=") (call_expression "FUN_0007bd80()" (identifier "FUN_0007bd80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) {\n        return false;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return false;\n      }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_2 == (char *)0x0) {\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (param_4 == (int *)0x0) {\n        return true;\n      }\n      *param_4 = 0;\n      return true;\n    }" ({ "{") (if_statement "if (param_4 == (int *)0x0) {\n        return true;\n      }" (if "if") (parenthesized_expression "(param_4 == (int *)0x0)" (( "(") (binary_expression "param_4 == (int *)0x0" (identifier "param_4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return true;\n      }" ({ "{") (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }" (else "else") (compound_statement "{\n    strcmp(param_1,param_2);\n    iVar1 = FUN_0007bd80();\n    *param_3 = iVar1;\n    if (iVar1 == 0) {\n      return false;\n    }\n  }" ({ "{") (expression_statement "strcmp(param_1,param_2);" (call_expression "strcmp(param_1,param_2)" (identifier "strcmp") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_0007bd80();" (assignment_expression "iVar1 = FUN_0007bd80()" (identifier "iVar1") (= "=") (call_expression "FUN_0007bd80()" (identifier "FUN_0007bd80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) {\n      return false;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return false;\n    }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar1 = FUN_0007bd80();" (assignment_expression "iVar1 = FUN_0007bd80()" (identifier "iVar1") (= "=") (call_expression "FUN_0007bd80()" (identifier "FUN_0007bd80") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return iVar1 != 0;" (return "return") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (; ";")) (} "}")))

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

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

{
  int var_8;
  char *var_5;
  type_1 uVar3;
  
  if ((var_1 == (char *)0x0) || (var_2 == (char *)0x0)) {
    if (var_2 == (char *)0x0) {
      if (var_3 != (char **)0x0) {
        *var_3 = (char *)0x0;
        goto joined_r0x0007c131;
      }
      if (var_1 != (char *)0x0) {
        var_8 = 0;
        goto LAB_0007c0e2;
      }
    }
    else {
      var_5 = var_4(var_2,0);
      *var_3 = var_5;
      if (var_5 == (char *)0x0) {
        return 0;
      }
joined_r0x0007c131:
      if (var_1 != (char *)0x0) goto LAB_0007c112;
    }
    uVar3 = 1;
    if (var_6 != (char **)0x0) {
      *var_6 = (char *)0x0;
      return uVar3;
    }
  }
  else {
    var_8 = var_7(var_2,var_1);
    var_5 = var_4(var_2,(type_1)(var_8 == 0));
    *var_3 = var_5;
    if (var_5 == (char *)0x0) {
      return 0;
    }
    if (var_8 == 0) {
      var_8 = 2;
    }
    else {
LAB_0007c112:
      var_8 = 0;
    }
LAB_0007c0e2:
    var_5 = var_4(var_1,var_8);
    *var_6 = var_5;
    uVar3 = (type_1)(var_5 != (char *)0x0);
  }
  return uVar3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (false))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (true)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (true))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (false))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

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

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

{
  int iVar1;
  
  if ((param_2 == (char *)0x0) || (param_1 == (char *)0x0)) {
    if (param_1 == (char *)0x0) {
      if (param_3 != (int *)0x0) {
        *param_3 = 0;
      }
    }
    else {
      iVar1 = FUN_0007bd80();
      *param_3 = iVar1;
      if (iVar1 == 0) {
        return false;
      }
    }
    if (param_2 == (char *)0x0) {
      if (param_4 == (int *)0x0) {
        return true;
      }
      *param_4 = 0;
      return true;
    }
  }
  else {
    strcmp(param_1,param_2);
    iVar1 = FUN_0007bd80();
    *param_3 = iVar1;
    if (iVar1 == 0) {
      return false;
    }
  }
  iVar1 = FUN_0007bd80();
  *param_4 = iVar1;
  return iVar1 != 0;
}

