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

mode_change * mode_create_from_ref(char *ref_file)

{
  int iVar1;
  int iVar2;
  mode_change *pmVar3;
  int in_GS_OFFSET;
  stat ref_stats;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = __xstat64(3,ref_file,(stat64 *)&ref_stats);
  pmVar3 = (mode_change *)0x0;
  if (iVar2 == 0) {
    pmVar3 = (mode_change *)xmalloc(0x20);
    pmVar3->op = '=';
    pmVar3->flag = '\x01';
    pmVar3->affected = 0xfff;
    pmVar3->value = ref_stats.st_mode;
    pmVar3->mentioned = 0xfff;
    pmVar3[1].flag = '\0';
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pmVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined2 * FUN_000159c0(char *param_1)

{
  int iVar1;
  undefined2 *puVar2;
  int in_GS_OFFSET;
  stat64 local_70;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x159c7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = __xstat64(3,param_1,&local_70);
  puVar2 = (undefined2 *)0x0;
  if (iVar1 == 0) {
    puVar2 = (undefined2 *)FUN_000186e0(0x20);
    *puVar2 = 0x13d;
    *(undefined4 *)(puVar2 + 2) = 0xfff;
    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;
    *(undefined4 *)(puVar2 + 6) = 0xfff;
    *(undefined1 *)((int)puVar2 + 0x11) = 0;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001da00();
}


PUSH ESI
PUSH EBX
CALL 0x00012a10
ADD EBX,0xf639
SUB ESP,0x78
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x70],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x10]
PUSH EAX
PUSH dword ptr [ESP + 0x88]
PUSH 0x3
CALL 0x000124d0
ADD ESP,0x10
MOV EDX,EAX
XOR EAX,EAX
TEST EDX,EDX
JNZ 0x00015a28
MOV ESI,dword ptr [ESP + 0x1c]
SUB ESP,0xc
PUSH 0x20
CALL 0x000186e0
MOV EDX,0x13d
ADD ESP,0x10
MOV word ptr [EAX],DX
MOV dword ptr [EAX + 0x4],0xfff
MOV dword ptr [EAX + 0x8],ESI
MOV dword ptr [EAX + 0xc],0xfff
MOV byte ptr [EAX + 0x11],0x0
MOV ECX,dword ptr [ESP + 0x6c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x00015a3b
ADD ESP,0x74
POP EBX
POP ESI
RET
CALL 0x0001da00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined2 * FUN_000159c0(char *param_1)\n\n{\n  int iVar1;\n  undefined2 *puVar2;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x159c7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  puVar2 = (undefined2 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001da00();\n}\n\n" comment (function_definition "undefined2 * FUN_000159c0(char *param_1)\n\n{\n  int iVar1;\n  undefined2 *puVar2;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x159c7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  puVar2 = (undefined2 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001da00();\n}" type_identifier (pointer_declarator "* FUN_000159c0(char *param_1)" * (function_declarator "FUN_000159c0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined2 *puVar2;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x159c7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  puVar2 = (undefined2 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001da00();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined2 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat64 local_70;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x159c7;" (assignment_expression "uStack_c = 0x159c7" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = __xstat64(3,param_1,&local_70);" (assignment_expression "iVar1 = __xstat64(3,param_1,&local_70)" identifier = (call_expression "__xstat64(3,param_1,&local_70)" identifier (argument_list "(3,param_1,&local_70)" ( number_literal , identifier , (pointer_expression "&local_70" & identifier) )))) ;) (expression_statement "puVar2 = (undefined2 *)0x0;" (assignment_expression "puVar2 = (undefined2 *)0x0" identifier = (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }" { (expression_statement "puVar2 = (undefined2 *)FUN_000186e0(0x20);" (assignment_expression "puVar2 = (undefined2 *)FUN_000186e0(0x20)" identifier = (cast_expression "(undefined2 *)FUN_000186e0(0x20)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000186e0(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "*puVar2 = 0x13d;" (assignment_expression "*puVar2 = 0x13d" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar2 + 2) = 0xfff;" (assignment_expression "*(undefined4 *)(puVar2 + 2) = 0xfff" (pointer_expression "*(undefined4 *)(puVar2 + 2)" * (cast_expression "(undefined4 *)(puVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 2)" ( (binary_expression "puVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(__mode_t *)(puVar2 + 4) = local_70.st_mode;" (assignment_expression "*(__mode_t *)(puVar2 + 4) = local_70.st_mode" (pointer_expression "*(__mode_t *)(puVar2 + 4)" * (cast_expression "(__mode_t *)(puVar2 + 4)" ( (type_descriptor "__mode_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = (field_expression "local_70.st_mode" identifier . field_identifier)) ;) (expression_statement "*(undefined4 *)(puVar2 + 6) = 0xfff;" (assignment_expression "*(undefined4 *)(puVar2 + 6) = 0xfff" (pointer_expression "*(undefined4 *)(puVar2 + 6)" * (cast_expression "(undefined4 *)(puVar2 + 6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 6)" ( (binary_expression "puVar2 + 6" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)puVar2 + 0x11) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0x11) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0x11)" * (cast_expression "(undefined1 *)((int)puVar2 + 0x11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0x11)" ( (binary_expression "(int)puVar2 + 0x11" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) })) comment (expression_statement "FUN_0001da00();" (call_expression "FUN_0001da00()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nmode_change * mode_create_from_ref(char *ref_file)\n\n{\n  int iVar1;\n  int iVar2;\n  mode_change *pmVar3;\n  int in_GS_OFFSET;\n  stat ref_stats;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = __xstat64(3,ref_file,(stat64 *)&ref_stats);\n  pmVar3 = (mode_change *)0x0;\n  if (iVar2 == 0) {\n    pmVar3 = (mode_change *)xmalloc(0x20);\n    pmVar3->op = '=';\n    pmVar3->flag = '\x01';\n    pmVar3->affected = 0xfff;\n    pmVar3->value = ref_stats.st_mode;\n    pmVar3->mentioned = 0xfff;\n    pmVar3[1].flag = '\0';\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pmVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "mode_change * mode_create_from_ref(char *ref_file)\n\n{\n  int iVar1;\n  int iVar2;\n  mode_change *pmVar3;\n  int in_GS_OFFSET;\n  stat ref_stats;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = __xstat64(3,ref_file,(stat64 *)&ref_stats);\n  pmVar3 = (mode_change *)0x0;\n  if (iVar2 == 0) {\n    pmVar3 = (mode_change *)xmalloc(0x20);\n    pmVar3->op = '=';\n    pmVar3->flag = '\x01';\n    pmVar3->affected = 0xfff;\n    pmVar3->value = ref_stats.st_mode;\n    pmVar3->mentioned = 0xfff;\n    pmVar3[1].flag = '\0';\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pmVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (pointer_declarator "* mode_create_from_ref(char *ref_file)" * (function_declarator "mode_create_from_ref(char *ref_file)" identifier (parameter_list "(char *ref_file)" ( (parameter_declaration "char *ref_file" primitive_type (pointer_declarator "*ref_file" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  mode_change *pmVar3;\n  int in_GS_OFFSET;\n  stat ref_stats;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = __xstat64(3,ref_file,(stat64 *)&ref_stats);\n  pmVar3 = (mode_change *)0x0;\n  if (iVar2 == 0) {\n    pmVar3 = (mode_change *)xmalloc(0x20);\n    pmVar3->op = '=';\n    pmVar3->flag = '\x01';\n    pmVar3->affected = 0xfff;\n    pmVar3->value = ref_stats.st_mode;\n    pmVar3->mentioned = 0xfff;\n    pmVar3[1].flag = '\0';\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pmVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "mode_change *pmVar3;" type_identifier (pointer_declarator "*pmVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat ref_stats;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = __xstat64(3,ref_file,(stat64 *)&ref_stats);" (assignment_expression "iVar2 = __xstat64(3,ref_file,(stat64 *)&ref_stats)" identifier = (call_expression "__xstat64(3,ref_file,(stat64 *)&ref_stats)" identifier (argument_list "(3,ref_file,(stat64 *)&ref_stats)" ( number_literal , identifier , (cast_expression "(stat64 *)&ref_stats" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ref_stats" & identifier)) )))) ;) (expression_statement "pmVar3 = (mode_change *)0x0;" (assignment_expression "pmVar3 = (mode_change *)0x0" identifier = (cast_expression "(mode_change *)0x0" ( (type_descriptor "mode_change *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar2 == 0) {\n    pmVar3 = (mode_change *)xmalloc(0x20);\n    pmVar3->op = '=';\n    pmVar3->flag = '\x01';\n    pmVar3->affected = 0xfff;\n    pmVar3->value = ref_stats.st_mode;\n    pmVar3->mentioned = 0xfff;\n    pmVar3[1].flag = '\0';\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    pmVar3 = (mode_change *)xmalloc(0x20);\n    pmVar3->op = '=';\n    pmVar3->flag = '\x01';\n    pmVar3->affected = 0xfff;\n    pmVar3->value = ref_stats.st_mode;\n    pmVar3->mentioned = 0xfff;\n    pmVar3[1].flag = '\0';\n  }" { (expression_statement "pmVar3 = (mode_change *)xmalloc(0x20);" (assignment_expression "pmVar3 = (mode_change *)xmalloc(0x20)" identifier = (cast_expression "(mode_change *)xmalloc(0x20)" ( (type_descriptor "mode_change *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "pmVar3->op = '=';" (assignment_expression "pmVar3->op = '='" (field_expression "pmVar3->op" identifier -> field_identifier) = (char_literal "'='" ' character ')) ;) (expression_statement "pmVar3->flag = '\x01';" (assignment_expression "pmVar3->flag = '\x01'" (field_expression "pmVar3->flag" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "pmVar3->affected = 0xfff;" (assignment_expression "pmVar3->affected = 0xfff" (field_expression "pmVar3->affected" identifier -> field_identifier) = number_literal) ;) (expression_statement "pmVar3->value = ref_stats.st_mode;" (assignment_expression "pmVar3->value = ref_stats.st_mode" (field_expression "pmVar3->value" identifier -> field_identifier) = (field_expression "ref_stats.st_mode" identifier . field_identifier)) ;) (expression_statement "pmVar3->mentioned = 0xfff;" (assignment_expression "pmVar3->mentioned = 0xfff" (field_expression "pmVar3->mentioned" identifier -> field_identifier) = number_literal) ;) (expression_statement "pmVar3[1].flag = '\0';" (assignment_expression "pmVar3[1].flag = '\0'" (field_expression "pmVar3[1].flag" (subscript_expression "pmVar3[1]" identifier [ number_literal ]) . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pmVar3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pmVar3;\n  }" { (return_statement "return pmVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined2 * FUN_000159c0(char *param_1)\n\n{\n  int iVar1;\n  undefined2 *puVar2;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x159c7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  puVar2 = (undefined2 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_0001da00();\n}\n\n" (function_definition "undefined2 * FUN_000159c0(char *param_1)\n\n{\n  int iVar1;\n  undefined2 *puVar2;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x159c7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  puVar2 = (undefined2 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_0001da00();\n}" type_identifier (pointer_declarator "* FUN_000159c0(char *param_1)" * (function_declarator "FUN_000159c0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined2 *puVar2;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x159c7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  puVar2 = (undefined2 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_0001da00();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined2 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat64 local_70;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_c;" type_identifier identifier ;) (expression_statement "uStack_c = 0x159c7;" (assignment_expression "uStack_c = 0x159c7" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = __xstat64(3,param_1,&local_70);" (assignment_expression "iVar1 = __xstat64(3,param_1,&local_70)" identifier = (call_expression "__xstat64(3,param_1,&local_70)" identifier (argument_list "(3,param_1,&local_70)" ( number_literal , identifier , (pointer_expression "&local_70" & identifier) )))) ;) (expression_statement "puVar2 = (undefined2 *)0x0;" (assignment_expression "puVar2 = (undefined2 *)0x0" identifier = (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }" { (expression_statement "puVar2 = (undefined2 *)FUN_000186e0(0x20);" (assignment_expression "puVar2 = (undefined2 *)FUN_000186e0(0x20)" identifier = (cast_expression "(undefined2 *)FUN_000186e0(0x20)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000186e0(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "*puVar2 = 0x13d;" (assignment_expression "*puVar2 = 0x13d" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar2 + 2) = 0xfff;" (assignment_expression "*(undefined4 *)(puVar2 + 2) = 0xfff" (pointer_expression "*(undefined4 *)(puVar2 + 2)" * (cast_expression "(undefined4 *)(puVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 2)" ( (binary_expression "puVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(__mode_t *)(puVar2 + 4) = local_70.st_mode;" (assignment_expression "*(__mode_t *)(puVar2 + 4) = local_70.st_mode" (pointer_expression "*(__mode_t *)(puVar2 + 4)" * (cast_expression "(__mode_t *)(puVar2 + 4)" ( (type_descriptor "__mode_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = (field_expression "local_70.st_mode" identifier . field_identifier)) ;) (expression_statement "*(undefined4 *)(puVar2 + 6) = 0xfff;" (assignment_expression "*(undefined4 *)(puVar2 + 6) = 0xfff" (pointer_expression "*(undefined4 *)(puVar2 + 6)" * (cast_expression "(undefined4 *)(puVar2 + 6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 6)" ( (binary_expression "puVar2 + 6" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)puVar2 + 0x11) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0x11) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0x11)" * (cast_expression "(undefined1 *)((int)puVar2 + 0x11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + 0x11)" ( (binary_expression "(int)puVar2 + 0x11" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "FUN_0001da00();" (call_expression "FUN_0001da00()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_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 = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined2 * FUN_000159c0(char *param_1)\n\n{\n  int iVar1;\n  undefined2 *puVar2;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x159c7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  puVar2 = (undefined2 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_0001da00();\n}" (type_identifier "undefined2") (pointer_declarator "* FUN_000159c0(char *param_1)" (* "*") (function_declarator "FUN_000159c0(char *param_1)" (identifier "FUN_000159c0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined2 *puVar2;\n  int in_GS_OFFSET;\n  stat64 local_70;\n  int local_10;\n  undefined4 uStack_c;\n  \n  uStack_c = 0x159c7;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = __xstat64(3,param_1,&local_70);\n  puVar2 = (undefined2 *)0x0;\n  if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_0001da00();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined2 *puVar2;" (type_identifier "undefined2") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "stat64 local_70;" (type_identifier "stat64") (identifier "local_70") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_c;" (type_identifier "undefined4") (identifier "uStack_c") (; ";")) (expression_statement "uStack_c = 0x159c7;" (assignment_expression "uStack_c = 0x159c7" (identifier "uStack_c") (= "=") (number_literal "0x159c7")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = __xstat64(3,param_1,&local_70);" (assignment_expression "iVar1 = __xstat64(3,param_1,&local_70)" (identifier "iVar1") (= "=") (call_expression "__xstat64(3,param_1,&local_70)" (identifier "__xstat64") (argument_list "(3,param_1,&local_70)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (pointer_expression "&local_70" (& "&") (identifier "local_70")) () ")")))) (; ";")) (expression_statement "puVar2 = (undefined2 *)0x0;" (assignment_expression "puVar2 = (undefined2 *)0x0" (identifier "puVar2") (= "=") (cast_expression "(undefined2 *)0x0" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (iVar1 == 0) {\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (undefined2 *)FUN_000186e0(0x20);\n    *puVar2 = 0x13d;\n    *(undefined4 *)(puVar2 + 2) = 0xfff;\n    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;\n    *(undefined4 *)(puVar2 + 6) = 0xfff;\n    *(undefined1 *)((int)puVar2 + 0x11) = 0;\n  }" ({ "{") (expression_statement "puVar2 = (undefined2 *)FUN_000186e0(0x20);" (assignment_expression "puVar2 = (undefined2 *)FUN_000186e0(0x20)" (identifier "puVar2") (= "=") (cast_expression "(undefined2 *)FUN_000186e0(0x20)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000186e0(0x20)" (identifier "FUN_000186e0") (argument_list "(0x20)" (( "(") (number_literal "0x20") () ")"))))) (; ";")) (expression_statement "*puVar2 = 0x13d;" (assignment_expression "*puVar2 = 0x13d" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0x13d")) (; ";")) (expression_statement "*(undefined4 *)(puVar2 + 2) = 0xfff;" (assignment_expression "*(undefined4 *)(puVar2 + 2) = 0xfff" (pointer_expression "*(undefined4 *)(puVar2 + 2)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 2)" (( "(") (binary_expression "puVar2 + 2" (identifier "puVar2") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0xfff")) (; ";")) (expression_statement "*(__mode_t *)(puVar2 + 4) = local_70.st_mode;" (assignment_expression "*(__mode_t *)(puVar2 + 4) = local_70.st_mode" (pointer_expression "*(__mode_t *)(puVar2 + 4)" (* "*") (cast_expression "(__mode_t *)(puVar2 + 4)" (( "(") (type_descriptor "__mode_t *" (type_identifier "__mode_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (field_expression "local_70.st_mode" (identifier "local_70") (. ".") (field_identifier "st_mode"))) (; ";")) (expression_statement "*(undefined4 *)(puVar2 + 6) = 0xfff;" (assignment_expression "*(undefined4 *)(puVar2 + 6) = 0xfff" (pointer_expression "*(undefined4 *)(puVar2 + 6)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 6)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 6)" (( "(") (binary_expression "puVar2 + 6" (identifier "puVar2") (+ "+") (number_literal "6")) () ")")))) (= "=") (number_literal "0xfff")) (; ";")) (expression_statement "*(undefined1 *)((int)puVar2 + 0x11) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + 0x11) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + 0x11)" (* "*") (cast_expression "(undefined1 *)((int)puVar2 + 0x11)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + 0x11)" (( "(") (binary_expression "(int)puVar2 + 0x11" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (number_literal "0x11")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return puVar2;\n  }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "FUN_0001da00();" (call_expression "FUN_0001da00()" (identifier "FUN_0001da00") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 * function_1(char *ref_file)

{
  int var_5;
  int var_3;
  type_1 *pmVar3;
  int var_1;
  type_2 ref_stats;
  
  var_5 = *(int *)(var_1 + 0x14);
  var_3 = var_2(3,ref_file,(type_3 *)&ref_stats);
  pmVar3 = (type_1 *)0x0;
  if (var_3 == 0) {
    pmVar3 = (type_1 *)var_4(0x20);
    pmVar3->op = '=';
    pmVar3->flag = '\x01';
    pmVar3->affected = 0xfff;
    pmVar3->value = ref_stats.st_mode;
    pmVar3->mentioned = 0xfff;
    pmVar3[1].flag = '\0';
  }
  if (var_5 == *(int *)(var_1 + 0x14)) {
    return pmVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


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

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

undefined2 * MASKED(char *param_1)

{
  int iVar1;
  undefined2 *puVar2;
  int in_GS_OFFSET;
  stat64 local_70;
  int local_10;
  undefined4 uStack_c;
  
  uStack_c = 0x159c7;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = __xstat64(3,param_1,&local_70);
  puVar2 = (undefined2 *)0x0;
  if (iVar1 == 0) {
    puVar2 = (undefined2 *)FUN_000186e0(0x20);
    *puVar2 = 0x13d;
    *(undefined4 *)(puVar2 + 2) = 0xfff;
    *(__mode_t *)(puVar2 + 4) = local_70.st_mode;
    *(undefined4 *)(puVar2 + 6) = 0xfff;
    *(undefined1 *)((int)puVar2 + 0x11) = 0;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001da00();
}

