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

void replace_buffer(char *filename)

{
  filestruct **ppfVar1;
  undo *puVar2;
  openfilestruct *poVar3;
  filestruct *pfVar4;
  int fd;
  char *pcVar5;
  int in_GS_OFFSET;
  FILE *f;
  int local_20;
  undefined4 uStack_14;
  
  pfVar4 = cutbuffer;
  uStack_14 = 0x1b199;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  fd = open_file(filename,false,true,&f);
  if (-1 < fd) {
    add_undo(COUPLE_BEGIN);
    pcVar5 = (char *)dcgettext(0,"spelling correction",5);
    puVar2 = openfile->undotop;
    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);
    cutbuffer = (filestruct *)0x0;
    puVar2->strdata = pcVar5;
    poVar3 = openfile;
    ppfVar1 = &openfile->fileage;
    openfile->current_x = 0;
    poVar3->current = *ppfVar1;
    add_undo(CUT_TO_EOF);
    do_cut_text(false,false,true,false);
    update_undo(CUT_TO_EOF);
    free_filestruct(cutbuffer);
    cutbuffer = pfVar4;
    read_file(f,fd,filename,true);
    add_undo(COUPLE_END);
    pcVar5 = (char *)dcgettext(0,"spelling correction",5);
    puVar2 = openfile->undotop;
    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);
    puVar2->strdata = pcVar5;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_0001b190(undefined4 param_1)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uVar5 = DAT_0006b64c;
  uStack_14 = 0x1b199;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);
  if (-1 < iVar3) {
    FUN_00030000(0x12);
    uVar4 = dcgettext(0,"spelling correction",5);
    iVar2 = *(int *)(DAT_0006b640 + 0x40);
    uVar4 = FUN_00035640(0,uVar4);
    DAT_0006b64c = 0;
    *(undefined4 *)(iVar2 + 0xc) = uVar4;
    iVar2 = DAT_0006b640;
    puVar1 = (undefined4 *)(DAT_0006b640 + 4);
    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;
    *(undefined4 *)(iVar2 + 0x10) = *puVar1;
    FUN_00030000(0xf);
    FUN_000188c0(0,0,1,0);
    FUN_000308c0(0xf);
    FUN_00025720(DAT_0006b64c);
    DAT_0006b64c = uVar5;
    FUN_0001a890(local_24,iVar3,param_1,1);
    FUN_00030000(0x13);
    uVar5 = dcgettext(0,"spelling correction",5);
    iVar3 = *(int *)(DAT_0006b640 + 0x40);
    uVar5 = FUN_00035640(0,uVar5);
    *(undefined4 *)(iVar3 + 0xc) = uVar5;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0004be20();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014e20
ADD EBX,0x4fa37
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x40]
LEA ESI,[EBX + 0xa7c]
MOV EAX,dword ptr [ESI]
MOV dword ptr [ESP],EAX
LEA EAX,[ESP + 0x18]
PUSH EAX
PUSH 0x1
PUSH 0x0
PUSH EBP
CALL 0x0001ae80
ADD ESP,0x10
TEST EAX,EAX
JS 0x0001b2ad
SUB ESP,0xc
MOV EDI,EAX
PUSH 0x12
CALL 0x00030000
ADD ESP,0xc
LEA ECX,[EBX + 0xfffe1890]
PUSH 0x5
PUSH ECX
MOV dword ptr [ESP + 0x18],ECX
PUSH 0x0
CALL 0x000132e0
LEA EDX,[EBX + 0xa70]
MOV ECX,dword ptr [EDX]
MOV dword ptr [ESP + 0x18],EDX
MOV ECX,dword ptr [ECX + 0x40]
MOV dword ptr [ESP + 0x14],ECX
POP EDX
POP ECX
PUSH EAX
PUSH 0x0
CALL 0x00035640
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ESI],0x0
MOV dword ptr [ECX + 0xc],EAX
MOV EAX,dword ptr [EDX]
MOV dword ptr [ESP + 0x14],EDX
MOV EDX,dword ptr [EAX + 0x4]
MOV dword ptr [EAX + 0x1c],0x0
MOV dword ptr [EAX + 0x10],EDX
MOV dword ptr [ESP],0xf
CALL 0x00030000
PUSH 0x0
PUSH 0x1
PUSH 0x0
PUSH 0x0
CALL 0x000188c0
ADD ESP,0x14
PUSH 0xf
CALL 0x000308c0
POP EAX
PUSH dword ptr [ESI]
CALL 0x00025720
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESI],EAX
PUSH 0x1
PUSH EBP
PUSH EDI
PUSH dword ptr [ESP + 0x34]
CALL 0x0001a890
ADD ESP,0x14
PUSH 0x13
CALL 0x00030000
ADD ESP,0xc
PUSH 0x5
MOV ECX,dword ptr [ESP + 0x14]
PUSH ECX
PUSH 0x0
CALL 0x000132e0
MOV EDX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [EDX]
MOV ESI,dword ptr [EDX + 0x40]
POP EDX
POP ECX
PUSH EAX
PUSH 0x0
CALL 0x00035640
ADD ESP,0x10
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0001b2c2
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0004be20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001b190(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uVar5 = DAT_0006b64c;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);\n  if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004be20();\n}\n\n" comment (function_definition "void FUN_0001b190(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uVar5 = DAT_0006b64c;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);\n  if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004be20();\n}" primitive_type (function_declarator "FUN_0001b190(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uVar5 = DAT_0006b64c;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);\n  if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004be20();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uVar5 = DAT_0006b64c;" (assignment_expression "uVar5 = DAT_0006b64c" identifier = identifier) ;) (expression_statement "uStack_14 = 0x1b199;" (assignment_expression "uStack_14 = 0x1b199" 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 "iVar3 = FUN_0001ae80(param_1,0,1,&local_24);" (assignment_expression "iVar3 = FUN_0001ae80(param_1,0,1,&local_24)" identifier = (call_expression "FUN_0001ae80(param_1,0,1,&local_24)" identifier (argument_list "(param_1,0,1,&local_24)" ( identifier , number_literal , number_literal , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }" { (expression_statement "FUN_00030000(0x12);" (call_expression "FUN_00030000(0x12)" identifier (argument_list "(0x12)" ( number_literal ))) ;) (expression_statement "uVar4 = dcgettext(0,"spelling correction",5);" (assignment_expression "uVar4 = dcgettext(0,"spelling correction",5)" identifier = (call_expression "dcgettext(0,"spelling correction",5)" identifier (argument_list "(0,"spelling correction",5)" ( number_literal , (string_literal ""spelling correction"" " string_content ") , number_literal )))) ;) (expression_statement "iVar2 = *(int *)(DAT_0006b640 + 0x40);" (assignment_expression "iVar2 = *(int *)(DAT_0006b640 + 0x40)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x40)" * (cast_expression "(int *)(DAT_0006b640 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x40)" ( (binary_expression "DAT_0006b640 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = FUN_00035640(0,uVar4);" (assignment_expression "uVar4 = FUN_00035640(0,uVar4)" identifier = (call_expression "FUN_00035640(0,uVar4)" identifier (argument_list "(0,uVar4)" ( number_literal , identifier )))) ;) (expression_statement "DAT_0006b64c = 0;" (assignment_expression "DAT_0006b64c = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = uVar4;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = uVar4" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = DAT_0006b640;" (assignment_expression "iVar2 = DAT_0006b640" identifier = identifier) ;) (expression_statement "puVar1 = (undefined4 *)(DAT_0006b640 + 4);" (assignment_expression "puVar1 = (undefined4 *)(DAT_0006b640 + 4)" identifier = (cast_expression "(undefined4 *)(DAT_0006b640 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(DAT_0006b640 + 0x1c)" * (cast_expression "(undefined4 *)(DAT_0006b640 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x1c)" ( (binary_expression "DAT_0006b640 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = *puVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = *puVar1" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "FUN_00030000(0xf);" (call_expression "FUN_00030000(0xf)" identifier (argument_list "(0xf)" ( number_literal ))) ;) (expression_statement "FUN_000188c0(0,0,1,0);" (call_expression "FUN_000188c0(0,0,1,0)" identifier (argument_list "(0,0,1,0)" ( number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "FUN_000308c0(0xf);" (call_expression "FUN_000308c0(0xf)" identifier (argument_list "(0xf)" ( number_literal ))) ;) (expression_statement "FUN_00025720(DAT_0006b64c);" (call_expression "FUN_00025720(DAT_0006b64c)" identifier (argument_list "(DAT_0006b64c)" ( identifier ))) ;) (expression_statement "DAT_0006b64c = uVar5;" (assignment_expression "DAT_0006b64c = uVar5" identifier = identifier) ;) (expression_statement "FUN_0001a890(local_24,iVar3,param_1,1);" (call_expression "FUN_0001a890(local_24,iVar3,param_1,1)" identifier (argument_list "(local_24,iVar3,param_1,1)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "FUN_00030000(0x13);" (call_expression "FUN_00030000(0x13)" identifier (argument_list "(0x13)" ( number_literal ))) ;) (expression_statement "uVar5 = dcgettext(0,"spelling correction",5);" (assignment_expression "uVar5 = dcgettext(0,"spelling correction",5)" identifier = (call_expression "dcgettext(0,"spelling correction",5)" identifier (argument_list "(0,"spelling correction",5)" ( number_literal , (string_literal ""spelling correction"" " string_content ") , number_literal )))) ;) (expression_statement "iVar3 = *(int *)(DAT_0006b640 + 0x40);" (assignment_expression "iVar3 = *(int *)(DAT_0006b640 + 0x40)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x40)" * (cast_expression "(int *)(DAT_0006b640 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x40)" ( (binary_expression "DAT_0006b640 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = FUN_00035640(0,uVar5);" (assignment_expression "uVar5 = FUN_00035640(0,uVar5)" identifier = (call_expression "FUN_00035640(0,uVar5)" identifier (argument_list "(0,uVar5)" ( number_literal , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0004be20();" (call_expression "FUN_0004be20()" 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\nvoid replace_buffer(char *filename)\n\n{\n  filestruct **ppfVar1;\n  undo *puVar2;\n  openfilestruct *poVar3;\n  filestruct *pfVar4;\n  int fd;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  FILE *f;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pfVar4 = cutbuffer;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  fd = open_file(filename,false,true,&f);\n  if (-1 < fd) {\n    add_undo(COUPLE_BEGIN);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    cutbuffer = (filestruct *)0x0;\n    puVar2->strdata = pcVar5;\n    poVar3 = openfile;\n    ppfVar1 = &openfile->fileage;\n    openfile->current_x = 0;\n    poVar3->current = *ppfVar1;\n    add_undo(CUT_TO_EOF);\n    do_cut_text(false,false,true,false);\n    update_undo(CUT_TO_EOF);\n    free_filestruct(cutbuffer);\n    cutbuffer = pfVar4;\n    read_file(f,fd,filename,true);\n    add_undo(COUPLE_END);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    puVar2->strdata = pcVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void replace_buffer(char *filename)\n\n{\n  filestruct **ppfVar1;\n  undo *puVar2;\n  openfilestruct *poVar3;\n  filestruct *pfVar4;\n  int fd;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  FILE *f;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pfVar4 = cutbuffer;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  fd = open_file(filename,false,true,&f);\n  if (-1 < fd) {\n    add_undo(COUPLE_BEGIN);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    cutbuffer = (filestruct *)0x0;\n    puVar2->strdata = pcVar5;\n    poVar3 = openfile;\n    ppfVar1 = &openfile->fileage;\n    openfile->current_x = 0;\n    poVar3->current = *ppfVar1;\n    add_undo(CUT_TO_EOF);\n    do_cut_text(false,false,true,false);\n    update_undo(CUT_TO_EOF);\n    free_filestruct(cutbuffer);\n    cutbuffer = pfVar4;\n    read_file(f,fd,filename,true);\n    add_undo(COUPLE_END);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    puVar2->strdata = pcVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "replace_buffer(char *filename)" identifier (parameter_list "(char *filename)" ( (parameter_declaration "char *filename" primitive_type (pointer_declarator "*filename" * identifier)) ))) (compound_statement "{\n  filestruct **ppfVar1;\n  undo *puVar2;\n  openfilestruct *poVar3;\n  filestruct *pfVar4;\n  int fd;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  FILE *f;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pfVar4 = cutbuffer;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  fd = open_file(filename,false,true,&f);\n  if (-1 < fd) {\n    add_undo(COUPLE_BEGIN);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    cutbuffer = (filestruct *)0x0;\n    puVar2->strdata = pcVar5;\n    poVar3 = openfile;\n    ppfVar1 = &openfile->fileage;\n    openfile->current_x = 0;\n    poVar3->current = *ppfVar1;\n    add_undo(CUT_TO_EOF);\n    do_cut_text(false,false,true,false);\n    update_undo(CUT_TO_EOF);\n    free_filestruct(cutbuffer);\n    cutbuffer = pfVar4;\n    read_file(f,fd,filename,true);\n    add_undo(COUPLE_END);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    puVar2->strdata = pcVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "filestruct **ppfVar1;" type_identifier (pointer_declarator "**ppfVar1" * (pointer_declarator "*ppfVar1" * identifier)) ;) (declaration "undo *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "openfilestruct *poVar3;" type_identifier (pointer_declarator "*poVar3" * identifier) ;) (declaration "filestruct *pfVar4;" type_identifier (pointer_declarator "*pfVar4" * identifier) ;) (declaration "int fd;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "FILE *f;" type_identifier (pointer_declarator "*f" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "pfVar4 = cutbuffer;" (assignment_expression "pfVar4 = cutbuffer" identifier = identifier) ;) (expression_statement "uStack_14 = 0x1b199;" (assignment_expression "uStack_14 = 0x1b199" 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 "fd = open_file(filename,false,true,&f);" (assignment_expression "fd = open_file(filename,false,true,&f)" identifier = (call_expression "open_file(filename,false,true,&f)" identifier (argument_list "(filename,false,true,&f)" ( identifier , false , true , (pointer_expression "&f" & identifier) )))) ;) (if_statement "if (-1 < fd) {\n    add_undo(COUPLE_BEGIN);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    cutbuffer = (filestruct *)0x0;\n    puVar2->strdata = pcVar5;\n    poVar3 = openfile;\n    ppfVar1 = &openfile->fileage;\n    openfile->current_x = 0;\n    poVar3->current = *ppfVar1;\n    add_undo(CUT_TO_EOF);\n    do_cut_text(false,false,true,false);\n    update_undo(CUT_TO_EOF);\n    free_filestruct(cutbuffer);\n    cutbuffer = pfVar4;\n    read_file(f,fd,filename,true);\n    add_undo(COUPLE_END);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    puVar2->strdata = pcVar5;\n  }" if (parenthesized_expression "(-1 < fd)" ( (binary_expression "-1 < fd" number_literal < identifier) )) (compound_statement "{\n    add_undo(COUPLE_BEGIN);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    cutbuffer = (filestruct *)0x0;\n    puVar2->strdata = pcVar5;\n    poVar3 = openfile;\n    ppfVar1 = &openfile->fileage;\n    openfile->current_x = 0;\n    poVar3->current = *ppfVar1;\n    add_undo(CUT_TO_EOF);\n    do_cut_text(false,false,true,false);\n    update_undo(CUT_TO_EOF);\n    free_filestruct(cutbuffer);\n    cutbuffer = pfVar4;\n    read_file(f,fd,filename,true);\n    add_undo(COUPLE_END);\n    pcVar5 = (char *)dcgettext(0,"spelling correction",5);\n    puVar2 = openfile->undotop;\n    pcVar5 = mallocstrcpy((char *)0x0,pcVar5);\n    puVar2->strdata = pcVar5;\n  }" { (expression_statement "add_undo(COUPLE_BEGIN);" (call_expression "add_undo(COUPLE_BEGIN)" identifier (argument_list "(COUPLE_BEGIN)" ( identifier ))) ;) (expression_statement "pcVar5 = (char *)dcgettext(0,"spelling correction",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"spelling correction",5)" identifier = (cast_expression "(char *)dcgettext(0,"spelling correction",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"spelling correction",5)" identifier (argument_list "(0,"spelling correction",5)" ( number_literal , (string_literal ""spelling correction"" " string_content ") , number_literal ))))) ;) (expression_statement "puVar2 = openfile->undotop;" (assignment_expression "puVar2 = openfile->undotop" identifier = (field_expression "openfile->undotop" identifier -> field_identifier)) ;) (expression_statement "pcVar5 = mallocstrcpy((char *)0x0,pcVar5);" (assignment_expression "pcVar5 = mallocstrcpy((char *)0x0,pcVar5)" identifier = (call_expression "mallocstrcpy((char *)0x0,pcVar5)" identifier (argument_list "((char *)0x0,pcVar5)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (expression_statement "cutbuffer = (filestruct *)0x0;" (assignment_expression "cutbuffer = (filestruct *)0x0" identifier = (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar2->strdata = pcVar5;" (assignment_expression "puVar2->strdata = pcVar5" (field_expression "puVar2->strdata" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar3 = openfile;" (assignment_expression "poVar3 = openfile" identifier = identifier) ;) (expression_statement "ppfVar1 = &openfile->fileage;" (assignment_expression "ppfVar1 = &openfile->fileage" identifier = (pointer_expression "&openfile->fileage" & (field_expression "openfile->fileage" identifier -> field_identifier))) ;) (expression_statement "openfile->current_x = 0;" (assignment_expression "openfile->current_x = 0" (field_expression "openfile->current_x" identifier -> field_identifier) = number_literal) ;) (expression_statement "poVar3->current = *ppfVar1;" (assignment_expression "poVar3->current = *ppfVar1" (field_expression "poVar3->current" identifier -> field_identifier) = (pointer_expression "*ppfVar1" * identifier)) ;) (expression_statement "add_undo(CUT_TO_EOF);" (call_expression "add_undo(CUT_TO_EOF)" identifier (argument_list "(CUT_TO_EOF)" ( identifier ))) ;) (expression_statement "do_cut_text(false,false,true,false);" (call_expression "do_cut_text(false,false,true,false)" identifier (argument_list "(false,false,true,false)" ( false , false , true , false ))) ;) (expression_statement "update_undo(CUT_TO_EOF);" (call_expression "update_undo(CUT_TO_EOF)" identifier (argument_list "(CUT_TO_EOF)" ( identifier ))) ;) (expression_statement "free_filestruct(cutbuffer);" (call_expression "free_filestruct(cutbuffer)" identifier (argument_list "(cutbuffer)" ( identifier ))) ;) (expression_statement "cutbuffer = pfVar4;" (assignment_expression "cutbuffer = pfVar4" identifier = identifier) ;) (expression_statement "read_file(f,fd,filename,true);" (call_expression "read_file(f,fd,filename,true)" identifier (argument_list "(f,fd,filename,true)" ( identifier , identifier , identifier , true ))) ;) (expression_statement "add_undo(COUPLE_END);" (call_expression "add_undo(COUPLE_END)" identifier (argument_list "(COUPLE_END)" ( identifier ))) ;) (expression_statement "pcVar5 = (char *)dcgettext(0,"spelling correction",5);" (assignment_expression "pcVar5 = (char *)dcgettext(0,"spelling correction",5)" identifier = (cast_expression "(char *)dcgettext(0,"spelling correction",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"spelling correction",5)" identifier (argument_list "(0,"spelling correction",5)" ( number_literal , (string_literal ""spelling correction"" " string_content ") , number_literal ))))) ;) (expression_statement "puVar2 = openfile->undotop;" (assignment_expression "puVar2 = openfile->undotop" identifier = (field_expression "openfile->undotop" identifier -> field_identifier)) ;) (expression_statement "pcVar5 = mallocstrcpy((char *)0x0,pcVar5);" (assignment_expression "pcVar5 = mallocstrcpy((char *)0x0,pcVar5)" identifier = (call_expression "mallocstrcpy((char *)0x0,pcVar5)" identifier (argument_list "((char *)0x0,pcVar5)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (expression_statement "puVar2->strdata = pcVar5;" (assignment_expression "puVar2->strdata = pcVar5" (field_expression "puVar2->strdata" identifier -> field_identifier) = identifier) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0001b190(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uVar5 = DAT_0006b64c;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);\n  if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}\n\n" (function_definition "void FUN_0001b190(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uVar5 = DAT_0006b64c;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);\n  if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" primitive_type (function_declarator "FUN_0001b190(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uVar5 = DAT_0006b64c;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);\n  if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uVar5 = DAT_0006b64c;" (assignment_expression "uVar5 = DAT_0006b64c" identifier = identifier) ;) (expression_statement "uStack_14 = 0x1b199;" (assignment_expression "uStack_14 = 0x1b199" 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 "iVar3 = FUN_0001ae80(param_1,0,1,&local_24);" (assignment_expression "iVar3 = FUN_0001ae80(param_1,0,1,&local_24)" identifier = (call_expression "FUN_0001ae80(param_1,0,1,&local_24)" identifier (argument_list "(param_1,0,1,&local_24)" ( identifier , number_literal , number_literal , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }" { (expression_statement "FUN_00030000(0x12);" (call_expression "FUN_00030000(0x12)" identifier (argument_list "(0x12)" ( number_literal ))) ;) (expression_statement "uVar4 = dcgettext(0,"spelling correction",5);" (assignment_expression "uVar4 = dcgettext(0,"spelling correction",5)" identifier = (call_expression "dcgettext(0,"spelling correction",5)" identifier (argument_list "(0,"spelling correction",5)" ( number_literal , (string_literal ""spelling correction"" " string_content ") , number_literal )))) ;) (expression_statement "iVar2 = *(int *)(DAT_0006b640 + 0x40);" (assignment_expression "iVar2 = *(int *)(DAT_0006b640 + 0x40)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x40)" * (cast_expression "(int *)(DAT_0006b640 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x40)" ( (binary_expression "DAT_0006b640 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = FUN_00035640(0,uVar4);" (assignment_expression "uVar4 = FUN_00035640(0,uVar4)" identifier = (call_expression "FUN_00035640(0,uVar4)" identifier (argument_list "(0,uVar4)" ( number_literal , identifier )))) ;) (expression_statement "DAT_0006b64c = 0;" (assignment_expression "DAT_0006b64c = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = uVar4;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = uVar4" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = DAT_0006b640;" (assignment_expression "iVar2 = DAT_0006b640" identifier = identifier) ;) (expression_statement "puVar1 = (undefined4 *)(DAT_0006b640 + 4);" (assignment_expression "puVar1 = (undefined4 *)(DAT_0006b640 + 4)" identifier = (cast_expression "(undefined4 *)(DAT_0006b640 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(DAT_0006b640 + 0x1c)" * (cast_expression "(undefined4 *)(DAT_0006b640 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x1c)" ( (binary_expression "DAT_0006b640 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = *puVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = *puVar1" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "FUN_00030000(0xf);" (call_expression "FUN_00030000(0xf)" identifier (argument_list "(0xf)" ( number_literal ))) ;) (expression_statement "FUN_000188c0(0,0,1,0);" (call_expression "FUN_000188c0(0,0,1,0)" identifier (argument_list "(0,0,1,0)" ( number_literal , number_literal , number_literal , number_literal ))) ;) (expression_statement "FUN_000308c0(0xf);" (call_expression "FUN_000308c0(0xf)" identifier (argument_list "(0xf)" ( number_literal ))) ;) (expression_statement "FUN_00025720(DAT_0006b64c);" (call_expression "FUN_00025720(DAT_0006b64c)" identifier (argument_list "(DAT_0006b64c)" ( identifier ))) ;) (expression_statement "DAT_0006b64c = uVar5;" (assignment_expression "DAT_0006b64c = uVar5" identifier = identifier) ;) (expression_statement "FUN_0001a890(local_24,iVar3,param_1,1);" (call_expression "FUN_0001a890(local_24,iVar3,param_1,1)" identifier (argument_list "(local_24,iVar3,param_1,1)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "FUN_00030000(0x13);" (call_expression "FUN_00030000(0x13)" identifier (argument_list "(0x13)" ( number_literal ))) ;) (expression_statement "uVar5 = dcgettext(0,"spelling correction",5);" (assignment_expression "uVar5 = dcgettext(0,"spelling correction",5)" identifier = (call_expression "dcgettext(0,"spelling correction",5)" identifier (argument_list "(0,"spelling correction",5)" ( number_literal , (string_literal ""spelling correction"" " string_content ") , number_literal )))) ;) (expression_statement "iVar3 = *(int *)(DAT_0006b640 + 0x40);" (assignment_expression "iVar3 = *(int *)(DAT_0006b640 + 0x40)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x40)" * (cast_expression "(int *)(DAT_0006b640 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x40)" ( (binary_expression "DAT_0006b640 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = FUN_00035640(0,uVar5);" (assignment_expression "uVar5 = FUN_00035640(0,uVar5)" identifier = (call_expression "FUN_00035640(0,uVar5)" identifier (argument_list "(0,uVar5)" ( number_literal , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0004be20();" (call_expression "FUN_0004be20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = 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 ( IDENT , LIT , LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , 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 )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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) )))) = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , 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 )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (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 ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0001b190(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uVar5 = DAT_0006b64c;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);\n  if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" (primitive_type "void") (function_declarator "FUN_0001b190(undefined4 param_1)" (identifier "FUN_0001b190") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uVar5 = DAT_0006b64c;\n  uStack_14 = 0x1b199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);\n  if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uVar5 = DAT_0006b64c;" (assignment_expression "uVar5 = DAT_0006b64c" (identifier "uVar5") (= "=") (identifier "DAT_0006b64c")) (; ";")) (expression_statement "uStack_14 = 0x1b199;" (assignment_expression "uStack_14 = 0x1b199" (identifier "uStack_14") (= "=") (number_literal "0x1b199")) (; ";")) (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 "iVar3 = FUN_0001ae80(param_1,0,1,&local_24);" (assignment_expression "iVar3 = FUN_0001ae80(param_1,0,1,&local_24)" (identifier "iVar3") (= "=") (call_expression "FUN_0001ae80(param_1,0,1,&local_24)" (identifier "FUN_0001ae80") (argument_list "(param_1,0,1,&local_24)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (-1 < iVar3) {\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    FUN_00030000(0x12);\n    uVar4 = dcgettext(0,"spelling correction",5);\n    iVar2 = *(int *)(DAT_0006b640 + 0x40);\n    uVar4 = FUN_00035640(0,uVar4);\n    DAT_0006b64c = 0;\n    *(undefined4 *)(iVar2 + 0xc) = uVar4;\n    iVar2 = DAT_0006b640;\n    puVar1 = (undefined4 *)(DAT_0006b640 + 4);\n    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;\n    *(undefined4 *)(iVar2 + 0x10) = *puVar1;\n    FUN_00030000(0xf);\n    FUN_000188c0(0,0,1,0);\n    FUN_000308c0(0xf);\n    FUN_00025720(DAT_0006b64c);\n    DAT_0006b64c = uVar5;\n    FUN_0001a890(local_24,iVar3,param_1,1);\n    FUN_00030000(0x13);\n    uVar5 = dcgettext(0,"spelling correction",5);\n    iVar3 = *(int *)(DAT_0006b640 + 0x40);\n    uVar5 = FUN_00035640(0,uVar5);\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n  }" ({ "{") (expression_statement "FUN_00030000(0x12);" (call_expression "FUN_00030000(0x12)" (identifier "FUN_00030000") (argument_list "(0x12)" (( "(") (number_literal "0x12") () ")"))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"spelling correction",5);" (assignment_expression "uVar4 = dcgettext(0,"spelling correction",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"spelling correction",5)" (identifier "dcgettext") (argument_list "(0,"spelling correction",5)" (( "(") (number_literal "0") (, ",") (string_literal ""spelling correction"" (" """) (string_content "spelling correction") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "iVar2 = *(int *)(DAT_0006b640 + 0x40);" (assignment_expression "iVar2 = *(int *)(DAT_0006b640 + 0x40)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(DAT_0006b640 + 0x40)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x40)" (( "(") (binary_expression "DAT_0006b640 + 0x40" (identifier "DAT_0006b640") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "uVar4 = FUN_00035640(0,uVar4);" (assignment_expression "uVar4 = FUN_00035640(0,uVar4)" (identifier "uVar4") (= "=") (call_expression "FUN_00035640(0,uVar4)" (identifier "FUN_00035640") (argument_list "(0,uVar4)" (( "(") (number_literal "0") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "DAT_0006b64c = 0;" (assignment_expression "DAT_0006b64c = 0" (identifier "DAT_0006b64c") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0xc) = uVar4;" (assignment_expression "*(undefined4 *)(iVar2 + 0xc) = uVar4" (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "iVar2 = DAT_0006b640;" (assignment_expression "iVar2 = DAT_0006b640" (identifier "iVar2") (= "=") (identifier "DAT_0006b640")) (; ";")) (expression_statement "puVar1 = (undefined4 *)(DAT_0006b640 + 4);" (assignment_expression "puVar1 = (undefined4 *)(DAT_0006b640 + 4)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(DAT_0006b640 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 4)" (( "(") (binary_expression "DAT_0006b640 + 4" (identifier "DAT_0006b640") (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(DAT_0006b640 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(DAT_0006b640 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(DAT_0006b640 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x1c)" (( "(") (binary_expression "DAT_0006b640 + 0x1c" (identifier "DAT_0006b640") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = *puVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = *puVar1" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "FUN_00030000(0xf);" (call_expression "FUN_00030000(0xf)" (identifier "FUN_00030000") (argument_list "(0xf)" (( "(") (number_literal "0xf") () ")"))) (; ";")) (expression_statement "FUN_000188c0(0,0,1,0);" (call_expression "FUN_000188c0(0,0,1,0)" (identifier "FUN_000188c0") (argument_list "(0,0,1,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000308c0(0xf);" (call_expression "FUN_000308c0(0xf)" (identifier "FUN_000308c0") (argument_list "(0xf)" (( "(") (number_literal "0xf") () ")"))) (; ";")) (expression_statement "FUN_00025720(DAT_0006b64c);" (call_expression "FUN_00025720(DAT_0006b64c)" (identifier "FUN_00025720") (argument_list "(DAT_0006b64c)" (( "(") (identifier "DAT_0006b64c") () ")"))) (; ";")) (expression_statement "DAT_0006b64c = uVar5;" (assignment_expression "DAT_0006b64c = uVar5" (identifier "DAT_0006b64c") (= "=") (identifier "uVar5")) (; ";")) (expression_statement "FUN_0001a890(local_24,iVar3,param_1,1);" (call_expression "FUN_0001a890(local_24,iVar3,param_1,1)" (identifier "FUN_0001a890") (argument_list "(local_24,iVar3,param_1,1)" (( "(") (identifier "local_24") (, ",") (identifier "iVar3") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "FUN_00030000(0x13);" (call_expression "FUN_00030000(0x13)" (identifier "FUN_00030000") (argument_list "(0x13)" (( "(") (number_literal "0x13") () ")"))) (; ";")) (expression_statement "uVar5 = dcgettext(0,"spelling correction",5);" (assignment_expression "uVar5 = dcgettext(0,"spelling correction",5)" (identifier "uVar5") (= "=") (call_expression "dcgettext(0,"spelling correction",5)" (identifier "dcgettext") (argument_list "(0,"spelling correction",5)" (( "(") (number_literal "0") (, ",") (string_literal ""spelling correction"" (" """) (string_content "spelling correction") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "iVar3 = *(int *)(DAT_0006b640 + 0x40);" (assignment_expression "iVar3 = *(int *)(DAT_0006b640 + 0x40)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(DAT_0006b640 + 0x40)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x40)" (( "(") (binary_expression "DAT_0006b640 + 0x40" (identifier "DAT_0006b640") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "uVar5 = FUN_00035640(0,uVar5);" (assignment_expression "uVar5 = FUN_00035640(0,uVar5)" (identifier "uVar5") (= "=") (call_expression "FUN_00035640(0,uVar5)" (identifier "FUN_00035640") (argument_list "(0,uVar5)" (( "(") (number_literal "0") (, ",") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0004be20();" (call_expression "FUN_0004be20()" (identifier "FUN_0004be20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(char *filename)

{
  type_1 **ppfVar1;
  type_2 *puVar2;
  type_3 *poVar3;
  type_1 *pfVar4;
  int var_3;
  char *pcVar5;
  int var_1;
  type_4 *f;
  int var_11;
  type_5 uStack_14;
  
  pfVar4 = cutbuffer;
  uStack_14 = 0x1b199;
  var_11 = *(int *)(var_1 + 0x14);
  var_3 = var_2(filename,false,true,&f);
  if (-1 < var_3) {
    var_4(COUPLE_BEGIN);
    pcVar5 = (char *)var_5(0,"spelling correction",5);
    puVar2 = openfile->undotop;
    pcVar5 = var_6((char *)0x0,pcVar5);
    cutbuffer = (type_1 *)0x0;
    puVar2->strdata = pcVar5;
    poVar3 = openfile;
    ppfVar1 = &openfile->fileage;
    openfile->current_x = 0;
    poVar3->current = *ppfVar1;
    var_4(CUT_TO_EOF);
    var_7(false,false,true,false);
    var_8(CUT_TO_EOF);
    var_9(cutbuffer);
    cutbuffer = pfVar4;
    var_10(f,var_3,filename,true);
    var_4(COUPLE_END);
    pcVar5 = (char *)var_5(0,"spelling correction",5);
    puVar2 = openfile->undotop;
    pcVar5 = var_6((char *)0x0,pcVar5);
    puVar2->strdata = pcVar5;
  }
  if (var_11 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


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

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

void MASKED(undefined4 param_1)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uVar5 = DAT_0006b64c;
  uStack_14 = 0x1b199;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = FUN_0001ae80(param_1,0,1,&local_24);
  if (-1 < iVar3) {
    FUN_00030000(0x12);
    uVar4 = dcgettext(0,"spelling correction",5);
    iVar2 = *(int *)(DAT_0006b640 + 0x40);
    uVar4 = FUN_00035640(0,uVar4);
    DAT_0006b64c = 0;
    *(undefined4 *)(iVar2 + 0xc) = uVar4;
    iVar2 = DAT_0006b640;
    puVar1 = (undefined4 *)(DAT_0006b640 + 4);
    *(undefined4 *)(DAT_0006b640 + 0x1c) = 0;
    *(undefined4 *)(iVar2 + 0x10) = *puVar1;
    FUN_00030000(0xf);
    FUN_000188c0(0,0,1,0);
    FUN_000308c0(0xf);
    FUN_00025720(DAT_0006b64c);
    DAT_0006b64c = uVar5;
    FUN_0001a890(local_24,iVar3,param_1,1);
    FUN_00030000(0x13);
    uVar5 = dcgettext(0,"spelling correction",5);
    iVar3 = *(int *)(DAT_0006b640 + 0x40);
    uVar5 = FUN_00035640(0,uVar5);
    *(undefined4 *)(iVar3 + 0xc) = uVar5;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0004be20();
}

