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

int rpl_vfprintf(FILE *fp,char *format,va_list args)

{
  int iVar1;
  int iVar2;
  char *__ptr;
  size_t sVar3;
  int *piVar4;
  size_t sVar5;
  int in_GS_OFFSET;
  size_t lenbuf;
  char buf [2000];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  lenbuf = 2000;
  __ptr = vasnprintf(buf,&lenbuf,format,args);
  sVar5 = lenbuf;
  if (__ptr != (char *)0x0) {
    sVar3 = fwrite(__ptr,1,lenbuf,(FILE *)fp);
    if (sVar3 < sVar5) {
      sVar5 = 0xffffffff;
      if (__ptr != buf) {
        piVar4 = __errno_location();
        iVar2 = *piVar4;
        free(__ptr);
        *piVar4 = iVar2;
      }
      goto LAB_0001f788;
    }
    if (__ptr != buf) {
      free(__ptr);
    }
    if (-1 < (int)sVar5) goto LAB_0001f788;
    piVar4 = __errno_location();
    *piVar4 = 0x4b;
  }
  sVar5 = 0xffffffff;
  fseterr(fp);
LAB_0001f788:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return sVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

uint FUN_0001f700(FILE *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined1 *__ptr;
  size_t sVar2;
  int *piVar3;
  uint uVar4;
  int in_GS_OFFSET;
  uint local_7f4;
  undefined1 local_7f0 [2000];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1f709;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_7f4 = 2000;
  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);
  uVar4 = local_7f4;
  if (__ptr != (undefined1 *)0x0) {
    sVar2 = fwrite(__ptr,1,local_7f4,param_1);
    if (sVar2 < uVar4) {
      uVar4 = 0xffffffff;
      if (__ptr != local_7f0) {
        piVar3 = __errno_location();
        iVar1 = *piVar3;
        free(__ptr);
        *piVar3 = iVar1;
      }
      goto LAB_0001f788;
    }
    if (__ptr != local_7f0) {
      free(__ptr);
    }
    if (-1 < (int)uVar4) goto LAB_0001f788;
    piVar3 = __errno_location();
    *piVar3 = 0x4b;
  }
  uVar4 = 0xffffffff;
  FUN_00021480(param_1);
LAB_0001f788:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00024400();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012f20
ADD EBX,0xe8f7
SUB ESP,0x7fc
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x7ec],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x810]
MOV dword ptr [ESP + 0x18],0x7d0
PUSH dword ptr [ESP + 0x818]
PUSH dword ptr [ESP + 0x818]
LEA EAX,[ESP + 0x20]
PUSH EAX
LEA EDI,[ESP + 0x28]
PUSH EDI
CALL 0x00021490
MOV ESI,dword ptr [ESP + 0x28]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001f7d9
PUSH EBP
PUSH ESI
PUSH 0x1
PUSH EAX
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x000121a0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
CMP EAX,ESI
JC 0x0001f7a8
CMP EDX,EDI
JZ 0x0001f784
SUB ESP,0xc
PUSH EDX
CALL 0x000120d0
ADD ESP,0x10
TEST ESI,ESI
JS 0x0001f7ce
MOV ECX,dword ptr [ESP + 0x7ec]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0001f7ec
ADD ESP,0x7fc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,0xffffffff
CMP EDX,EDI
JZ 0x0001f788
CALL 0x00012310
SUB ESP,0xc
MOV EDX,dword ptr [ESP + 0x18]
MOV EBP,dword ptr [EAX]
MOV EDI,EAX
PUSH EDX
CALL 0x000120d0
MOV dword ptr [EDI],EBP
ADD ESP,0x10
JMP 0x0001f788
CALL 0x00012310
MOV dword ptr [EAX],0x4b
SUB ESP,0xc
MOV ESI,0xffffffff
PUSH EBP
CALL 0x00021480
ADD ESP,0x10
JMP 0x0001f788
CALL 0x00024400
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_0001f700(FILE *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined1 *__ptr;\n  size_t sVar2;\n  int *piVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_7f4;\n  undefined1 local_7f0 [2000];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f709;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_7f4 = 2000;\n  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);\n  uVar4 = local_7f4;\n  if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }\n  uVar4 = 0xffffffff;\n  FUN_00021480(param_1);\nLAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00024400();\n}\n\n" comment (function_definition "uint FUN_0001f700(FILE *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined1 *__ptr;\n  size_t sVar2;\n  int *piVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_7f4;\n  undefined1 local_7f0 [2000];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f709;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_7f4 = 2000;\n  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);\n  uVar4 = local_7f4;\n  if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }\n  uVar4 = 0xffffffff;\n  FUN_00021480(param_1);\nLAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00024400();\n}" type_identifier (function_declarator "FUN_0001f700(FILE *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(FILE *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *__ptr;\n  size_t sVar2;\n  int *piVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_7f4;\n  undefined1 local_7f0 [2000];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f709;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_7f4 = 2000;\n  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);\n  uVar4 = local_7f4;\n  if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }\n  uVar4 = 0xffffffff;\n  FUN_00021480(param_1);\nLAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00024400();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_7f4;" type_identifier identifier ;) (declaration "undefined1 local_7f0 [2000];" type_identifier (array_declarator "local_7f0 [2000]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1f709;" (assignment_expression "uStack_14 = 0x1f709" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "local_7f4 = 2000;" (assignment_expression "local_7f4 = 2000" identifier = number_literal) ;) (expression_statement "__ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);" (assignment_expression "__ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3)" identifier = (cast_expression "(undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00021490(local_7f0,&local_7f4,param_2,param_3)" identifier (argument_list "(local_7f0,&local_7f4,param_2,param_3)" ( identifier , (pointer_expression "&local_7f4" & identifier) , identifier , identifier ))))) ;) (expression_statement "uVar4 = local_7f4;" (assignment_expression "uVar4 = local_7f4" identifier = identifier) ;) (if_statement "if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }" if (parenthesized_expression "(__ptr != (undefined1 *)0x0)" ( (binary_expression "__ptr != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }" { (expression_statement "sVar2 = fwrite(__ptr,1,local_7f4,param_1);" (assignment_expression "sVar2 = fwrite(__ptr,1,local_7f4,param_1)" identifier = (call_expression "fwrite(__ptr,1,local_7f4,param_1)" identifier (argument_list "(__ptr,1,local_7f4,param_1)" ( identifier , number_literal , identifier , identifier )))) ;) (if_statement "if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }" if (parenthesized_expression "(sVar2 < uVar4)" ( (binary_expression "sVar2 < uVar4" identifier < identifier) )) (compound_statement "{\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }" if (parenthesized_expression "(__ptr != local_7f0)" ( (binary_expression "__ptr != local_7f0" identifier != identifier) )) (compound_statement "{\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) })) (goto_statement "goto LAB_0001f788;" goto statement_identifier ;) })) (if_statement "if (__ptr != local_7f0) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != local_7f0)" ( (binary_expression "__ptr != local_7f0" identifier != identifier) )) (compound_statement "{\n      free(__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (if_statement "if (-1 < (int)uVar4) goto LAB_0001f788;" if (parenthesized_expression "(-1 < (int)uVar4)" ( (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0001f788;" goto statement_identifier ;)) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar3 = 0x4b;" (assignment_expression "*piVar3 = 0x4b" (pointer_expression "*piVar3" * identifier) = number_literal) ;) })) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (expression_statement "FUN_00021480(param_1);" (call_expression "FUN_00021480(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (labeled_statement "LAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) comment (expression_statement "FUN_00024400();" (call_expression "FUN_00024400()" 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\nint rpl_vfprintf(FILE *fp,char *format,va_list args)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__ptr;\n  size_t sVar3;\n  int *piVar4;\n  size_t sVar5;\n  int in_GS_OFFSET;\n  size_t lenbuf;\n  char buf [2000];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  lenbuf = 2000;\n  __ptr = vasnprintf(buf,&lenbuf,format,args);\n  sVar5 = lenbuf;\n  if (__ptr != (char *)0x0) {\n    sVar3 = fwrite(__ptr,1,lenbuf,(FILE *)fp);\n    if (sVar3 < sVar5) {\n      sVar5 = 0xffffffff;\n      if (__ptr != buf) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        free(__ptr);\n        *piVar4 = iVar2;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != buf) {\n      free(__ptr);\n    }\n    if (-1 < (int)sVar5) goto LAB_0001f788;\n    piVar4 = __errno_location();\n    *piVar4 = 0x4b;\n  }\n  sVar5 = 0xffffffff;\n  fseterr(fp);\nLAB_0001f788:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "int rpl_vfprintf(FILE *fp,char *format,va_list args)\n\n{\n  int iVar1;\n  int iVar2;\n  char *__ptr;\n  size_t sVar3;\n  int *piVar4;\n  size_t sVar5;\n  int in_GS_OFFSET;\n  size_t lenbuf;\n  char buf [2000];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  lenbuf = 2000;\n  __ptr = vasnprintf(buf,&lenbuf,format,args);\n  sVar5 = lenbuf;\n  if (__ptr != (char *)0x0) {\n    sVar3 = fwrite(__ptr,1,lenbuf,(FILE *)fp);\n    if (sVar3 < sVar5) {\n      sVar5 = 0xffffffff;\n      if (__ptr != buf) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        free(__ptr);\n        *piVar4 = iVar2;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != buf) {\n      free(__ptr);\n    }\n    if (-1 < (int)sVar5) goto LAB_0001f788;\n    piVar4 = __errno_location();\n    *piVar4 = 0x4b;\n  }\n  sVar5 = 0xffffffff;\n  fseterr(fp);\nLAB_0001f788:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "rpl_vfprintf(FILE *fp,char *format,va_list args)" identifier (parameter_list "(FILE *fp,char *format,va_list args)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "char *format" primitive_type (pointer_declarator "*format" * identifier)) , (parameter_declaration "va_list args" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *__ptr;\n  size_t sVar3;\n  int *piVar4;\n  size_t sVar5;\n  int in_GS_OFFSET;\n  size_t lenbuf;\n  char buf [2000];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  lenbuf = 2000;\n  __ptr = vasnprintf(buf,&lenbuf,format,args);\n  sVar5 = lenbuf;\n  if (__ptr != (char *)0x0) {\n    sVar3 = fwrite(__ptr,1,lenbuf,(FILE *)fp);\n    if (sVar3 < sVar5) {\n      sVar5 = 0xffffffff;\n      if (__ptr != buf) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        free(__ptr);\n        *piVar4 = iVar2;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != buf) {\n      free(__ptr);\n    }\n    if (-1 < (int)sVar5) goto LAB_0001f788;\n    piVar4 = __errno_location();\n    *piVar4 = 0x4b;\n  }\n  sVar5 = 0xffffffff;\n  fseterr(fp);\nLAB_0001f788:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar5;\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 "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t lenbuf;" primitive_type identifier ;) (declaration "char buf [2000];" primitive_type (array_declarator "buf [2000]" identifier [ number_literal ]) ;) (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 "lenbuf = 2000;" (assignment_expression "lenbuf = 2000" identifier = number_literal) ;) (expression_statement "__ptr = vasnprintf(buf,&lenbuf,format,args);" (assignment_expression "__ptr = vasnprintf(buf,&lenbuf,format,args)" identifier = (call_expression "vasnprintf(buf,&lenbuf,format,args)" identifier (argument_list "(buf,&lenbuf,format,args)" ( identifier , (pointer_expression "&lenbuf" & identifier) , identifier , identifier )))) ;) (expression_statement "sVar5 = lenbuf;" (assignment_expression "sVar5 = lenbuf" identifier = identifier) ;) (if_statement "if (__ptr != (char *)0x0) {\n    sVar3 = fwrite(__ptr,1,lenbuf,(FILE *)fp);\n    if (sVar3 < sVar5) {\n      sVar5 = 0xffffffff;\n      if (__ptr != buf) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        free(__ptr);\n        *piVar4 = iVar2;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != buf) {\n      free(__ptr);\n    }\n    if (-1 < (int)sVar5) goto LAB_0001f788;\n    piVar4 = __errno_location();\n    *piVar4 = 0x4b;\n  }" if (parenthesized_expression "(__ptr != (char *)0x0)" ( (binary_expression "__ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar3 = fwrite(__ptr,1,lenbuf,(FILE *)fp);\n    if (sVar3 < sVar5) {\n      sVar5 = 0xffffffff;\n      if (__ptr != buf) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        free(__ptr);\n        *piVar4 = iVar2;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != buf) {\n      free(__ptr);\n    }\n    if (-1 < (int)sVar5) goto LAB_0001f788;\n    piVar4 = __errno_location();\n    *piVar4 = 0x4b;\n  }" { (expression_statement "sVar3 = fwrite(__ptr,1,lenbuf,(FILE *)fp);" (assignment_expression "sVar3 = fwrite(__ptr,1,lenbuf,(FILE *)fp)" identifier = (call_expression "fwrite(__ptr,1,lenbuf,(FILE *)fp)" identifier (argument_list "(__ptr,1,lenbuf,(FILE *)fp)" ( identifier , number_literal , identifier , (cast_expression "(FILE *)fp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (sVar3 < sVar5) {\n      sVar5 = 0xffffffff;\n      if (__ptr != buf) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        free(__ptr);\n        *piVar4 = iVar2;\n      }\n      goto LAB_0001f788;\n    }" if (parenthesized_expression "(sVar3 < sVar5)" ( (binary_expression "sVar3 < sVar5" identifier < identifier) )) (compound_statement "{\n      sVar5 = 0xffffffff;\n      if (__ptr != buf) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        free(__ptr);\n        *piVar4 = iVar2;\n      }\n      goto LAB_0001f788;\n    }" { (expression_statement "sVar5 = 0xffffffff;" (assignment_expression "sVar5 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (__ptr != buf) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        free(__ptr);\n        *piVar4 = iVar2;\n      }" if (parenthesized_expression "(__ptr != buf)" ( (binary_expression "__ptr != buf" identifier != identifier) )) (compound_statement "{\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        free(__ptr);\n        *piVar4 = iVar2;\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "*piVar4 = iVar2;" (assignment_expression "*piVar4 = iVar2" (pointer_expression "*piVar4" * identifier) = identifier) ;) })) (goto_statement "goto LAB_0001f788;" goto statement_identifier ;) })) (if_statement "if (__ptr != buf) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != buf)" ( (binary_expression "__ptr != buf" identifier != identifier) )) (compound_statement "{\n      free(__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (if_statement "if (-1 < (int)sVar5) goto LAB_0001f788;" if (parenthesized_expression "(-1 < (int)sVar5)" ( (binary_expression "-1 < (int)sVar5" number_literal < (cast_expression "(int)sVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0001f788;" goto statement_identifier ;)) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar4 = 0x4b;" (assignment_expression "*piVar4 = 0x4b" (pointer_expression "*piVar4" * identifier) = number_literal) ;) })) (expression_statement "sVar5 = 0xffffffff;" (assignment_expression "sVar5 = 0xffffffff" identifier = number_literal) ;) (expression_statement "fseterr(fp);" (call_expression "fseterr(fp)" identifier (argument_list "(fp)" ( identifier ))) ;) (labeled_statement "LAB_0001f788:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar5;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return sVar5;\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 sVar5;\n  }" { (return_statement "return sVar5;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "uint FUN_0001f700(FILE *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined1 *__ptr;\n  size_t sVar2;\n  int *piVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_7f4;\n  undefined1 local_7f0 [2000];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f709;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_7f4 = 2000;\n  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);\n  uVar4 = local_7f4;\n  if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }\n  uVar4 = 0xffffffff;\n  FUN_00021480(param_1);\nLAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00024400();\n}\n\n" (function_definition "uint FUN_0001f700(FILE *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined1 *__ptr;\n  size_t sVar2;\n  int *piVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_7f4;\n  undefined1 local_7f0 [2000];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f709;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_7f4 = 2000;\n  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);\n  uVar4 = local_7f4;\n  if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }\n  uVar4 = 0xffffffff;\n  FUN_00021480(param_1);\nLAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00024400();\n}" type_identifier (function_declarator "FUN_0001f700(FILE *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(FILE *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *__ptr;\n  size_t sVar2;\n  int *piVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_7f4;\n  undefined1 local_7f0 [2000];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f709;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_7f4 = 2000;\n  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);\n  uVar4 = local_7f4;\n  if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }\n  uVar4 = 0xffffffff;\n  FUN_00021480(param_1);\nLAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00024400();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_7f4;" type_identifier identifier ;) (declaration "undefined1 local_7f0 [2000];" type_identifier (array_declarator "local_7f0 [2000]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1f709;" (assignment_expression "uStack_14 = 0x1f709" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "local_7f4 = 2000;" (assignment_expression "local_7f4 = 2000" identifier = number_literal) ;) (expression_statement "__ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);" (assignment_expression "__ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3)" identifier = (cast_expression "(undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00021490(local_7f0,&local_7f4,param_2,param_3)" identifier (argument_list "(local_7f0,&local_7f4,param_2,param_3)" ( identifier , (pointer_expression "&local_7f4" & identifier) , identifier , identifier ))))) ;) (expression_statement "uVar4 = local_7f4;" (assignment_expression "uVar4 = local_7f4" identifier = identifier) ;) (if_statement "if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }" if (parenthesized_expression "(__ptr != (undefined1 *)0x0)" ( (binary_expression "__ptr != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }" { (expression_statement "sVar2 = fwrite(__ptr,1,local_7f4,param_1);" (assignment_expression "sVar2 = fwrite(__ptr,1,local_7f4,param_1)" identifier = (call_expression "fwrite(__ptr,1,local_7f4,param_1)" identifier (argument_list "(__ptr,1,local_7f4,param_1)" ( identifier , number_literal , identifier , identifier )))) ;) (if_statement "if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }" if (parenthesized_expression "(sVar2 < uVar4)" ( (binary_expression "sVar2 < uVar4" identifier < identifier) )) (compound_statement "{\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }" if (parenthesized_expression "(__ptr != local_7f0)" ( (binary_expression "__ptr != local_7f0" identifier != identifier) )) (compound_statement "{\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) })) (goto_statement "goto LAB_0001f788;" goto statement_identifier ;) })) (if_statement "if (__ptr != local_7f0) {\n      free(__ptr);\n    }" if (parenthesized_expression "(__ptr != local_7f0)" ( (binary_expression "__ptr != local_7f0" identifier != identifier) )) (compound_statement "{\n      free(__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (if_statement "if (-1 < (int)uVar4) goto LAB_0001f788;" if (parenthesized_expression "(-1 < (int)uVar4)" ( (binary_expression "-1 < (int)uVar4" number_literal < (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0001f788;" goto statement_identifier ;)) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar3 = 0x4b;" (assignment_expression "*piVar3 = 0x4b" (pointer_expression "*piVar3" * identifier) = number_literal) ;) })) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (expression_statement "FUN_00021480(param_1);" (call_expression "FUN_00021480(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (labeled_statement "LAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) (expression_statement "FUN_00024400();" (call_expression "FUN_00024400()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (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 "uint FUN_0001f700(FILE *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined1 *__ptr;\n  size_t sVar2;\n  int *piVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_7f4;\n  undefined1 local_7f0 [2000];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f709;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_7f4 = 2000;\n  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);\n  uVar4 = local_7f4;\n  if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }\n  uVar4 = 0xffffffff;\n  FUN_00021480(param_1);\nLAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00024400();\n}" (type_identifier "uint") (function_declarator "FUN_0001f700(FILE *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0001f700") (parameter_list "(FILE *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined1 *__ptr;\n  size_t sVar2;\n  int *piVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  uint local_7f4;\n  undefined1 local_7f0 [2000];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1f709;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_7f4 = 2000;\n  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);\n  uVar4 = local_7f4;\n  if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }\n  uVar4 = 0xffffffff;\n  FUN_00021480(param_1);\nLAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00024400();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 *__ptr;" (type_identifier "undefined1") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_7f4;" (type_identifier "uint") (identifier "local_7f4") (; ";")) (declaration "undefined1 local_7f0 [2000];" (type_identifier "undefined1") (array_declarator "local_7f0 [2000]" (identifier "local_7f0") ([ "[") (number_literal "2000") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1f709;" (assignment_expression "uStack_14 = 0x1f709" (identifier "uStack_14") (= "=") (number_literal "0x1f709")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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 "local_7f4 = 2000;" (assignment_expression "local_7f4 = 2000" (identifier "local_7f4") (= "=") (number_literal "2000")) (; ";")) (expression_statement "__ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);" (assignment_expression "__ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3)" (identifier "__ptr") (= "=") (cast_expression "(undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00021490(local_7f0,&local_7f4,param_2,param_3)" (identifier "FUN_00021490") (argument_list "(local_7f0,&local_7f4,param_2,param_3)" (( "(") (identifier "local_7f0") (, ",") (pointer_expression "&local_7f4" (& "&") (identifier "local_7f4")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))))) (; ";")) (expression_statement "uVar4 = local_7f4;" (assignment_expression "uVar4 = local_7f4" (identifier "uVar4") (= "=") (identifier "local_7f4")) (; ";")) (if_statement "if (__ptr != (undefined1 *)0x0) {\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }" (if "if") (parenthesized_expression "(__ptr != (undefined1 *)0x0)" (( "(") (binary_expression "__ptr != (undefined1 *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar2 = fwrite(__ptr,1,local_7f4,param_1);\n    if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }\n    if (__ptr != local_7f0) {\n      free(__ptr);\n    }\n    if (-1 < (int)uVar4) goto LAB_0001f788;\n    piVar3 = __errno_location();\n    *piVar3 = 0x4b;\n  }" ({ "{") (expression_statement "sVar2 = fwrite(__ptr,1,local_7f4,param_1);" (assignment_expression "sVar2 = fwrite(__ptr,1,local_7f4,param_1)" (identifier "sVar2") (= "=") (call_expression "fwrite(__ptr,1,local_7f4,param_1)" (identifier "fwrite") (argument_list "(__ptr,1,local_7f4,param_1)" (( "(") (identifier "__ptr") (, ",") (number_literal "1") (, ",") (identifier "local_7f4") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (sVar2 < uVar4) {\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }" (if "if") (parenthesized_expression "(sVar2 < uVar4)" (( "(") (binary_expression "sVar2 < uVar4" (identifier "sVar2") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n      uVar4 = 0xffffffff;\n      if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }\n      goto LAB_0001f788;\n    }" ({ "{") (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if (__ptr != local_7f0) {\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }" (if "if") (parenthesized_expression "(__ptr != local_7f0)" (( "(") (binary_expression "__ptr != local_7f0" (identifier "__ptr") (!= "!=") (identifier "local_7f0")) () ")")) (compound_statement "{\n        piVar3 = __errno_location();\n        iVar1 = *piVar3;\n        free(__ptr);\n        *piVar3 = iVar1;\n      }" ({ "{") (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (goto_statement "goto LAB_0001f788;" (goto "goto") (statement_identifier "LAB_0001f788") (; ";")) (} "}"))) (if_statement "if (__ptr != local_7f0) {\n      free(__ptr);\n    }" (if "if") (parenthesized_expression "(__ptr != local_7f0)" (( "(") (binary_expression "__ptr != local_7f0" (identifier "__ptr") (!= "!=") (identifier "local_7f0")) () ")")) (compound_statement "{\n      free(__ptr);\n    }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (if_statement "if (-1 < (int)uVar4) goto LAB_0001f788;" (if "if") (parenthesized_expression "(-1 < (int)uVar4)" (( "(") (binary_expression "-1 < (int)uVar4" (number_literal "-1") (< "<") (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4"))) () ")")) (goto_statement "goto LAB_0001f788;" (goto "goto") (statement_identifier "LAB_0001f788") (; ";"))) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar3 = 0x4b;" (assignment_expression "*piVar3 = 0x4b" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (number_literal "0x4b")) (; ";")) (} "}"))) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "FUN_00021480(param_1);" (call_expression "FUN_00021480(param_1)" (identifier "FUN_00021480") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (labeled_statement "LAB_0001f788:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (statement_identifier "LAB_0001f788") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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 uVar4;\n  }" ({ "{") (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))) (expression_statement "FUN_00024400();" (call_expression "FUN_00024400()" (identifier "FUN_00024400") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int function_1(type_1 *fp,char *format,type_2 args)

{
  int var_11;
  int iVar2;
  char *var_3;
  size_t var_5;
  int *piVar4;
  size_t var_6;
  int var_1;
  size_t lenbuf;
  char var_7 [2000];
  
  var_11 = *(int *)(var_1 + 0x14);
  lenbuf = 2000;
  var_3 = var_2(var_7,&lenbuf,format,args);
  var_6 = lenbuf;
  if (var_3 != (char *)0x0) {
    var_5 = var_4(var_3,1,lenbuf,(type_1 *)fp);
    if (var_5 < var_6) {
      var_6 = 0xffffffff;
      if (var_3 != var_7) {
        piVar4 = var_8();
        iVar2 = *piVar4;
        var_9(var_3);
        *piVar4 = iVar2;
      }
      goto LAB_0001f788;
    }
    if (var_3 != var_7) {
      var_9(var_3);
    }
    if (-1 < (int)var_6) goto LAB_0001f788;
    piVar4 = var_8();
    *piVar4 = 0x4b;
  }
  var_6 = 0xffffffff;
  var_10(fp);
LAB_0001f788:
  if (var_11 == *(int *)(var_1 + 0x14)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


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

uint MASKED(FILE *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined1 *__ptr;
  size_t sVar2;
  int *piVar3;
  uint uVar4;
  int in_GS_OFFSET;
  uint local_7f4;
  undefined1 local_7f0 [2000];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1f709;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_7f4 = 2000;
  __ptr = (undefined1 *)FUN_00021490(local_7f0,&local_7f4,param_2,param_3);
  uVar4 = local_7f4;
  if (__ptr != (undefined1 *)0x0) {
    sVar2 = fwrite(__ptr,1,local_7f4,param_1);
    if (sVar2 < uVar4) {
      uVar4 = 0xffffffff;
      if (__ptr != local_7f0) {
        piVar3 = __errno_location();
        iVar1 = *piVar3;
        free(__ptr);
        *piVar3 = iVar1;
      }
      goto LAB_0001f788;
    }
    if (__ptr != local_7f0) {
      free(__ptr);
    }
    if (-1 < (int)uVar4) goto LAB_0001f788;
    piVar3 = __errno_location();
    *piVar3 = 0x4b;
  }
  uVar4 = 0xffffffff;
  FUN_00021480(param_1);
LAB_0001f788:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00024400();
}

