
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: _Bool setup_dir(FTS * fts, FTS * fts) */

_Bool __regparm3 setup_dir(FTS *fts,FTS *fts_1)

{
  _ftsent *p_Var1;
  _Bool _Var2;
  
  if (((uint)fts & 0x102) == 0) {
    p_Var1 = (_ftsent *)malloc(0x1c);
    fts_1->fts_cur = p_Var1;
    _Var2 = false;
    if (p_Var1 != (_ftsent *)0x0) {
      cycle_check_init((cycle_check_state *)p_Var1);
      return true;
    }
  }
  else {
    p_Var1 = (_ftsent *)
             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,
                             (Hash_data_freer)PTR_free_00045fc4);
    _Var2 = p_Var1 != (_ftsent *)0x0;
    fts_1->fts_cur = p_Var1;
  }
  return _Var2;
}



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

bool __regparm3 FUN_00022250(uint param_1,int *param_2)

{
  int iVar1;
  void *pvVar2;
  bool bVar3;
  
  if ((param_1 & 0x102) == 0) {
    pvVar2 = malloc(0x1c);
    *param_2 = (int)pvVar2;
    bVar3 = false;
    if (pvVar2 != (void *)0x0) {
      FUN_00034900(pvVar2);
      return true;
    }
  }
  else {
    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);
    bVar3 = iVar1 != 0;
    *param_2 = iVar1;
  }
  return bVar3;
}


PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00014070
ADD EBX,0x23da7
SUB ESP,0x4
TEST EAX,0x102
JZ 0x000222a0
SUB ESP,0xc
LEA EAX,[EBX + 0xfffdba50]
PUSH dword ptr [EBX + 0xffffffc4]
PUSH EAX
LEA EAX,[EBX + 0xfffdba90]
PUSH EAX
PUSH 0x0
PUSH 0x1f
CALL 0x000187c0
ADD ESP,0x20
TEST EAX,EAX
MOV dword ptr [ESI],EAX
SETNZ AL
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH 0x1c
CALL 0x00012320
ADD ESP,0x10
MOV EDX,EAX
MOV dword ptr [ESI],EAX
XOR EAX,EAX
TEST EDX,EDX
JZ 0x00022293
SUB ESP,0xc
PUSH EDX
CALL 0x00034900
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_00022250(uint param_1,int *param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }\n  return bVar3;\n}\n\n" comment (function_definition "bool __regparm3 FUN_00022250(uint param_1,int *param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }\n  return bVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00022250(uint param_1,int *param_2)" identifier (parameter_list "(uint param_1,int *param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }\n  return bVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (if_statement "if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }" if (parenthesized_expression "((param_1 & 0x102) == 0)" ( (binary_expression "(param_1 & 0x102) == 0" (parenthesized_expression "(param_1 & 0x102)" ( (binary_expression "param_1 & 0x102" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }" { (expression_statement "pvVar2 = malloc(0x1c);" (assignment_expression "pvVar2 = malloc(0x1c)" identifier = (call_expression "malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) (expression_statement "*param_2 = (int)pvVar2;" (assignment_expression "*param_2 = (int)pvVar2" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00034900(pvVar2);\n      return true;\n    }" { (expression_statement "FUN_00034900(pvVar2);" (call_expression "FUN_00034900(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (return_statement "return true;" return true ;) })) }) (else_clause "else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }" else (compound_statement "{\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }" { (expression_statement "iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);" (assignment_expression "iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4)" identifier = (call_expression "FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4)" identifier (argument_list "(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4)" ( number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "bVar3 = iVar1 != 0;" (assignment_expression "bVar3 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: _Bool setup_dir(FTS * fts, FTS * fts) */\n\n_Bool __regparm3 setup_dir(FTS *fts,FTS *fts_1)\n\n{\n  _ftsent *p_Var1;\n  _Bool _Var2;\n  \n  if (((uint)fts & 0x102) == 0) {\n    p_Var1 = (_ftsent *)malloc(0x1c);\n    fts_1->fts_cur = p_Var1;\n    _Var2 = false;\n    if (p_Var1 != (_ftsent *)0x0) {\n      cycle_check_init((cycle_check_state *)p_Var1);\n      return true;\n    }\n  }\n  else {\n    p_Var1 = (_ftsent *)\n             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4);\n    _Var2 = p_Var1 != (_ftsent *)0x0;\n    fts_1->fts_cur = p_Var1;\n  }\n  return _Var2;\n}\n\n" comment comment (function_definition "_Bool __regparm3 setup_dir(FTS *fts,FTS *fts_1)\n\n{\n  _ftsent *p_Var1;\n  _Bool _Var2;\n  \n  if (((uint)fts & 0x102) == 0) {\n    p_Var1 = (_ftsent *)malloc(0x1c);\n    fts_1->fts_cur = p_Var1;\n    _Var2 = false;\n    if (p_Var1 != (_ftsent *)0x0) {\n      cycle_check_init((cycle_check_state *)p_Var1);\n      return true;\n    }\n  }\n  else {\n    p_Var1 = (_ftsent *)\n             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4);\n    _Var2 = p_Var1 != (_ftsent *)0x0;\n    fts_1->fts_cur = p_Var1;\n  }\n  return _Var2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "setup_dir(FTS *fts,FTS *fts_1)" identifier (parameter_list "(FTS *fts,FTS *fts_1)" ( (parameter_declaration "FTS *fts" type_identifier (pointer_declarator "*fts" * identifier)) , (parameter_declaration "FTS *fts_1" type_identifier (pointer_declarator "*fts_1" * identifier)) ))) (compound_statement "{\n  _ftsent *p_Var1;\n  _Bool _Var2;\n  \n  if (((uint)fts & 0x102) == 0) {\n    p_Var1 = (_ftsent *)malloc(0x1c);\n    fts_1->fts_cur = p_Var1;\n    _Var2 = false;\n    if (p_Var1 != (_ftsent *)0x0) {\n      cycle_check_init((cycle_check_state *)p_Var1);\n      return true;\n    }\n  }\n  else {\n    p_Var1 = (_ftsent *)\n             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4);\n    _Var2 = p_Var1 != (_ftsent *)0x0;\n    fts_1->fts_cur = p_Var1;\n  }\n  return _Var2;\n}" { (declaration "_ftsent *p_Var1;" type_identifier (pointer_declarator "*p_Var1" * identifier) ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (if_statement "if (((uint)fts & 0x102) == 0) {\n    p_Var1 = (_ftsent *)malloc(0x1c);\n    fts_1->fts_cur = p_Var1;\n    _Var2 = false;\n    if (p_Var1 != (_ftsent *)0x0) {\n      cycle_check_init((cycle_check_state *)p_Var1);\n      return true;\n    }\n  }\n  else {\n    p_Var1 = (_ftsent *)\n             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4);\n    _Var2 = p_Var1 != (_ftsent *)0x0;\n    fts_1->fts_cur = p_Var1;\n  }" if (parenthesized_expression "(((uint)fts & 0x102) == 0)" ( (binary_expression "((uint)fts & 0x102) == 0" (parenthesized_expression "((uint)fts & 0x102)" ( (binary_expression "(uint)fts & 0x102" (cast_expression "(uint)fts" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    p_Var1 = (_ftsent *)malloc(0x1c);\n    fts_1->fts_cur = p_Var1;\n    _Var2 = false;\n    if (p_Var1 != (_ftsent *)0x0) {\n      cycle_check_init((cycle_check_state *)p_Var1);\n      return true;\n    }\n  }" { (expression_statement "p_Var1 = (_ftsent *)malloc(0x1c);" (assignment_expression "p_Var1 = (_ftsent *)malloc(0x1c)" identifier = (cast_expression "(_ftsent *)malloc(0x1c)" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (expression_statement "fts_1->fts_cur = p_Var1;" (assignment_expression "fts_1->fts_cur = p_Var1" (field_expression "fts_1->fts_cur" identifier -> field_identifier) = identifier) ;) (expression_statement "_Var2 = false;" (assignment_expression "_Var2 = false" identifier = false) ;) (if_statement "if (p_Var1 != (_ftsent *)0x0) {\n      cycle_check_init((cycle_check_state *)p_Var1);\n      return true;\n    }" if (parenthesized_expression "(p_Var1 != (_ftsent *)0x0)" ( (binary_expression "p_Var1 != (_ftsent *)0x0" identifier != (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      cycle_check_init((cycle_check_state *)p_Var1);\n      return true;\n    }" { (expression_statement "cycle_check_init((cycle_check_state *)p_Var1);" (call_expression "cycle_check_init((cycle_check_state *)p_Var1)" identifier (argument_list "((cycle_check_state *)p_Var1)" ( (cast_expression "(cycle_check_state *)p_Var1" ( (type_descriptor "cycle_check_state *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return true;" return true ;) })) }) (else_clause "else {\n    p_Var1 = (_ftsent *)\n             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4);\n    _Var2 = p_Var1 != (_ftsent *)0x0;\n    fts_1->fts_cur = p_Var1;\n  }" else (compound_statement "{\n    p_Var1 = (_ftsent *)\n             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4);\n    _Var2 = p_Var1 != (_ftsent *)0x0;\n    fts_1->fts_cur = p_Var1;\n  }" { (expression_statement "p_Var1 = (_ftsent *)\n             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4);" (assignment_expression "p_Var1 = (_ftsent *)\n             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4)" identifier = (cast_expression "(_ftsent *)\n             hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4)" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4)" identifier (argument_list "(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_00045fc4)" ( number_literal , (cast_expression "(Hash_tuning *)0x0" ( (type_descriptor "Hash_tuning *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , (cast_expression "(Hash_data_freer)PTR_free_00045fc4" ( (type_descriptor "Hash_data_freer" type_identifier) ) identifier) ))))) ;) (expression_statement "_Var2 = p_Var1 != (_ftsent *)0x0;" (assignment_expression "_Var2 = p_Var1 != (_ftsent *)0x0" identifier = (binary_expression "p_Var1 != (_ftsent *)0x0" identifier != (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (expression_statement "fts_1->fts_cur = p_Var1;" (assignment_expression "fts_1->fts_cur = p_Var1" (field_expression "fts_1->fts_cur" identifier -> field_identifier) = identifier) ;) }))) (return_statement "return _Var2;" return identifier ;) })))
(translation_unit "bool __regparm3 FUN_00022250(uint param_1,int *param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }\n  return bVar3;\n}\n\n" (function_definition "bool __regparm3 FUN_00022250(uint param_1,int *param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }\n  return bVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00022250(uint param_1,int *param_2)" identifier (parameter_list "(uint param_1,int *param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }\n  return bVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (if_statement "if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }" if (parenthesized_expression "((param_1 & 0x102) == 0)" ( (binary_expression "(param_1 & 0x102) == 0" (parenthesized_expression "(param_1 & 0x102)" ( (binary_expression "param_1 & 0x102" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }" { (expression_statement "pvVar2 = malloc(0x1c);" (assignment_expression "pvVar2 = malloc(0x1c)" identifier = (call_expression "malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) (expression_statement "*param_2 = (int)pvVar2;" (assignment_expression "*param_2 = (int)pvVar2" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00034900(pvVar2);\n      return true;\n    }" { (expression_statement "FUN_00034900(pvVar2);" (call_expression "FUN_00034900(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (return_statement "return true;" return true ;) })) }) (else_clause "else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }" else (compound_statement "{\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }" { (expression_statement "iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);" (assignment_expression "iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4)" identifier = (call_expression "FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4)" identifier (argument_list "(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4)" ( number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "bVar3 = iVar1 != 0;" (assignment_expression "bVar3 = iVar1 != 0" identifier = (binary_expression "iVar1 != 0" identifier != number_literal)) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) }))) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return BOOL ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "bool __regparm3 FUN_00022250(uint param_1,int *param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }\n  return bVar3;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00022250(uint param_1,int *param_2)" (identifier "FUN_00022250") (parameter_list "(uint param_1,int *param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }\n  return bVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (if_statement "if ((param_1 & 0x102) == 0) {\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }\n  else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }" (if "if") (parenthesized_expression "((param_1 & 0x102) == 0)" (( "(") (binary_expression "(param_1 & 0x102) == 0" (parenthesized_expression "(param_1 & 0x102)" (( "(") (binary_expression "param_1 & 0x102" (identifier "param_1") (& "&") (number_literal "0x102")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pvVar2 = malloc(0x1c);\n    *param_2 = (int)pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }\n  }" ({ "{") (expression_statement "pvVar2 = malloc(0x1c);" (assignment_expression "pvVar2 = malloc(0x1c)" (identifier "pvVar2") (= "=") (call_expression "malloc(0x1c)" (identifier "malloc") (argument_list "(0x1c)" (( "(") (number_literal "0x1c") () ")")))) (; ";")) (expression_statement "*param_2 = (int)pvVar2;" (assignment_expression "*param_2 = (int)pvVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2"))) (; ";")) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (if_statement "if (pvVar2 != (void *)0x0) {\n      FUN_00034900(pvVar2);\n      return true;\n    }" (if "if") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      FUN_00034900(pvVar2);\n      return true;\n    }" ({ "{") (expression_statement "FUN_00034900(pvVar2);" (call_expression "FUN_00034900(pvVar2)" (identifier "FUN_00034900") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")"))) (; ";")) (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }" (else "else") (compound_statement "{\n    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);\n    bVar3 = iVar1 != 0;\n    *param_2 = iVar1;\n  }" ({ "{") (expression_statement "iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);" (assignment_expression "iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4)" (identifier "iVar1") (= "=") (call_expression "FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4)" (identifier "FUN_000187c0") (argument_list "(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4)" (( "(") (number_literal "0x1f") (, ",") (number_literal "0") (, ",") (identifier "FUN_00021a90") (, ",") (identifier "FUN_00021a50") (, ",") (identifier "PTR_free_00045fc4") () ")")))) (; ";")) (expression_statement "bVar3 = iVar1 != 0;" (assignment_expression "bVar3 = iVar1 != 0" (identifier "bVar3") (= "=") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar1")) (; ";")) (} "}")))) (return_statement "return bVar3;" (return "return") (identifier "bVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: _Bool setup_dir(FTS * fts, FTS * fts) */

type_1 __regparm3 function_1(type_2 *fts,type_2 *fts_1)

{
  type_3 *var_2;
  type_1 _Var2;
  
  if (((type_4)fts & 0x102) == 0) {
    var_2 = (type_3 *)var_1(0x1c);
    fts_1->fts_cur = var_2;
    _Var2 = false;
    if (var_2 != (type_3 *)0x0) {
      var_3((type_5 *)var_2);
      return true;
    }
  }
  else {
    var_2 = (type_3 *)
             var_4(0x1f,(type_6 *)0x0,AD_hash,AD_compare,
                             (type_7)PTR_free_00045fc4);
    _Var2 = var_2 != (type_3 *)0x0;
    fts_1->fts_cur = var_2;
  }
  return _Var2;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (true))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (return_statement (identifier)))))

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

bool __regparm3 MASKED(uint param_1,int *param_2)

{
  int iVar1;
  void *pvVar2;
  bool bVar3;
  
  if ((param_1 & 0x102) == 0) {
    pvVar2 = malloc(0x1c);
    *param_2 = (int)pvVar2;
    bVar3 = false;
    if (pvVar2 != (void *)0x0) {
      FUN_00034900(pvVar2);
      return true;
    }
  }
  else {
    iVar1 = FUN_000187c0(0x1f,0,FUN_00021a90,FUN_00021a50,PTR_free_00045fc4);
    bVar3 = iVar1 != 0;
    *param_2 = iVar1;
  }
  return bVar3;
}

