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

void __regparm3 generate_asm_file(int type,char *file)

{
  size_t sVar1;
  char *pcVar2;
  int iVar3;
  size_t sVar4;
  char *buf;
  char *pcVar5;
  char *tmp;
  char *pcVar6;
  char *__s;
  char *__dest;
  char *__s_00;
  char sym [30];
  
  sVar1 = strlen(file);
  pcVar2 = file + sVar1;
  if ((generate_asm_file::last_file == (char *)0x0) ||
     (iVar3 = filename_cmp(generate_asm_file::last_file,file), iVar3 != 0)) {
    sprintf(sym,"%sF%d",&DAT_0005db02,generate_asm_file::label_count);
    generate_asm_file::label_count = generate_asm_file::label_count + 1;
    sVar1 = strlen(file);
    sVar4 = strlen(sym);
    buf = (char *)xmalloc(sVar4 + 0xc + sVar1 * 2);
    __s_00 = buf + 1;
    *buf = '\"';
    __s = file;
    __dest = __s_00;
    if (file < pcVar2) {
      do {
        pcVar5 = strchr(__s,0x5c);
        if (pcVar5 == (char *)0x0) {
          __s_00 = __dest + ((int)pcVar2 - (int)__s);
          memcpy(__dest,__s,(int)pcVar2 - (int)__s);
          break;
        }
        pcVar5 = pcVar5 + (1 - (int)__s);
        pcVar6 = __s + (int)pcVar5;
        __s_00 = __dest + (int)pcVar5 + 1;
        memcpy(__dest,__s,(size_t)pcVar5);
        __dest[(int)pcVar5] = '\\';
        __s = pcVar6;
        __dest = __s_00;
      } while (pcVar6 < pcVar2);
    }
    sprintf(__s_00,"\",%d,0,0,%s\n",type,sym);
    temp_ilp(buf);
    s_stab_generic(0x73,".stab",".stabstr");
    restore_ilp();
    colon(sym);
    if (generate_asm_file::last_file != (char *)0x0) {
      free(generate_asm_file::last_file);
    }
    generate_asm_file::last_file = (char *)xstrdup(file);
    free(buf);
  }
  return;
}



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

void __regparm3 FUN_00036050(undefined4 param_1,char *param_2)

{
  size_t sVar1;
  char *pcVar2;
  int iVar3;
  size_t sVar4;
  undefined1 *__ptr;
  char *pcVar5;
  char *pcVar6;
  char *__s;
  char *__dest;
  char *__s_00;
  char local_3a [38];
  undefined4 uStack_14;
  
  uStack_14 = 0x3605b;
  sVar1 = strlen(param_2);
  pcVar2 = param_2 + sVar1;
  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {
    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);
    DAT_00088c8c = DAT_00088c8c + 1;
    sVar1 = strlen(param_2);
    sVar4 = strlen(local_3a);
    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);
    __s_00 = __ptr + 1;
    *__ptr = 0x22;
    __s = param_2;
    __dest = __s_00;
    if (param_2 < pcVar2) {
      do {
        pcVar5 = strchr(__s,0x5c);
        if (pcVar5 == (char *)0x0) {
          __s_00 = __dest + ((int)pcVar2 - (int)__s);
          memcpy(__dest,__s,(int)pcVar2 - (int)__s);
          break;
        }
        pcVar5 = pcVar5 + (1 - (int)__s);
        pcVar6 = __s + (int)pcVar5;
        __s_00 = __dest + (int)pcVar5 + 1;
        memcpy(__dest,__s,(size_t)pcVar5);
        __dest[(int)pcVar5] = '\\';
        __s = pcVar6;
        __dest = __s_00;
      } while (pcVar6 < pcVar2);
    }
    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);
    FUN_00035470(__ptr);
    FUN_00035b50();
    FUN_00035520();
    FUN_0003aaa0(local_3a);
    if (DAT_00088c90 != (void *)0x0) {
      free(DAT_00088c90);
    }
    DAT_00088c90 = (void *)xstrdup(param_2);
    free(__ptr);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00016000
ADD EBX,0x49fa5
SUB ESP,0x58
MOV dword ptr [ESP + 0x24],EAX
MOV dword ptr [ESP + 0x1c],EDX
PUSH EDX
CALL 0x00014430
ADD ESP,0x10
ADD EAX,ESI
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EBX + 0x8c90]
TEST EAX,EAX
JZ 0x0003609a
SUB ESP,0x8
PUSH ESI
PUSH EAX
CALL 0x00014100
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000361c6
LEA EAX,[EBX + 0xfffddb02]
PUSH dword ptr [EBX + 0x8c8c]
PUSH EAX
LEA EAX,[EBX + 0xfffe0d72]
PUSH EAX
LEA EAX,[ESP + 0x2e]
MOV dword ptr [ESP + 0x28],EAX
MOV EDI,EAX
PUSH EAX
CALL 0x00014670
MOV EBP,dword ptr [ESP + 0x20]
ADD dword ptr [EBX + 0x8c8c],0x1
MOV dword ptr [ESP],EBP
CALL 0x00014430
MOV dword ptr [ESP],EDI
MOV ESI,EAX
CALL 0x00014430
LEA EAX,[EAX + ESI*0x2 + 0xc]
MOV dword ptr [ESP],EAX
CALL 0x00014790
MOV dword ptr [ESP + 0x24],EAX
ADD ESP,0x10
LEA ESI,[EAX + 0x1]
MOV byte ptr [EAX],0x22
MOV EAX,dword ptr [ESP + 0xc]
CMP EBP,EAX
JC 0x00036123
JMP 0x0003614b
SUB EAX,EBP
SUB ESP,0x4
LEA EDI,[EAX + 0x1]
PUSH EDI
PUSH EBP
ADD EBP,EDI
ADD EDI,ESI
PUSH ESI
LEA ESI,[EDI + 0x1]
CALL 0x000140f0
ADD ESP,0x10
MOV byte ptr [EDI],0x5c
CMP dword ptr [ESP + 0xc],EBP
JBE 0x0003614b
SUB ESP,0x8
PUSH 0x5c
PUSH EBP
CALL 0x00014420
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00036100
MOV EDI,dword ptr [ESP + 0xc]
SUB ESP,0x4
SUB EDI,EBP
PUSH EDI
PUSH EBP
PUSH ESI
ADD ESI,EDI
CALL 0x000140f0
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0x1c]
LEA EAX,[EBX + 0xfffe0d78]
PUSH EDI
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
PUSH ESI
CALL 0x00014670
POP EDX
PUSH dword ptr [ESP + 0x20]
CALL 0x00035470
LEA ECX,[EBX + 0xfffe0d85]
LEA EDX,[EBX + 0xfffe0d8e]
MOV EAX,0x73
CALL 0x00035b50
CALL 0x00035520
MOV dword ptr [ESP],EDI
CALL 0x0003aaa0
MOV EAX,dword ptr [EBX + 0x8c90]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000361a7
SUB ESP,0xc
PUSH EAX
CALL 0x00014780
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
CALL 0x000142f0
MOV dword ptr [EBX + 0x8c90],EAX
POP EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x00014780
ADD ESP,0x10
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00036050(undefined4 param_1,char *param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  undefined1 *__ptr;\n  char *pcVar5;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char local_3a [38];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3605b;\n  sVar1 = strlen(param_2);\n  pcVar2 = param_2 + sVar1;\n  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00036050(undefined4 param_1,char *param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  undefined1 *__ptr;\n  char *pcVar5;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char local_3a [38];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3605b;\n  sVar1 = strlen(param_2);\n  pcVar2 = param_2 + sVar1;\n  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036050(undefined4 param_1,char *param_2)" identifier (parameter_list "(undefined4 param_1,char *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  undefined1 *__ptr;\n  char *pcVar5;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char local_3a [38];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3605b;\n  sVar1 = strlen(param_2);\n  pcVar2 = param_2 + sVar1;\n  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "undefined1 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "char local_3a [38];" primitive_type (array_declarator "local_3a [38]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3605b;" (assignment_expression "uStack_14 = 0x3605b" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar2 = param_2 + sVar1;" (assignment_expression "pcVar2 = param_2 + sVar1" identifier = (binary_expression "param_2 + sVar1" identifier + identifier)) ;) (if_statement "if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }" if (parenthesized_expression "((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0))" ( (binary_expression "(DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)" (parenthesized_expression "(DAT_00088c90 == (void *)0x0)" ( (binary_expression "DAT_00088c90 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)" ( (comma_expression "iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0" (assignment_expression "iVar3 = filename_cmp(DAT_00088c90,param_2)" identifier = (call_expression "filename_cmp(DAT_00088c90,param_2)" identifier (argument_list "(DAT_00088c90,param_2)" ( identifier , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }" { (expression_statement "sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);" (call_expression "sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c)" identifier (argument_list "(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c)" ( identifier , (string_literal ""%sF%d"" " string_content ") , (pointer_expression "&DAT_0005db02" & identifier) , identifier ))) ;) (expression_statement "DAT_00088c8c = DAT_00088c8c + 1;" (assignment_expression "DAT_00088c8c = DAT_00088c8c + 1" identifier = (binary_expression "DAT_00088c8c + 1" identifier + number_literal)) ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(local_3a);" (assignment_expression "sVar4 = strlen(local_3a)" identifier = (call_expression "strlen(local_3a)" identifier (argument_list "(local_3a)" ( identifier )))) ;) (expression_statement "__ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);" (assignment_expression "__ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2)" identifier = (cast_expression "(undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar4 + 0xc + sVar1 * 2)" identifier (argument_list "(sVar4 + 0xc + sVar1 * 2)" ( (binary_expression "sVar4 + 0xc + sVar1 * 2" (binary_expression "sVar4 + 0xc" identifier + number_literal) + (binary_expression "sVar1 * 2" identifier * number_literal)) ))))) ;) (expression_statement "__s_00 = __ptr + 1;" (assignment_expression "__s_00 = __ptr + 1" identifier = (binary_expression "__ptr + 1" identifier + number_literal)) ;) (expression_statement "*__ptr = 0x22;" (assignment_expression "*__ptr = 0x22" (pointer_expression "*__ptr" * identifier) = number_literal) ;) (expression_statement "__s = param_2;" (assignment_expression "__s = param_2" identifier = identifier) ;) (expression_statement "__dest = __s_00;" (assignment_expression "__dest = __s_00" identifier = identifier) ;) (if_statement "if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }" if (parenthesized_expression "(param_2 < pcVar2)" ( (binary_expression "param_2 < pcVar2" identifier < identifier) )) (compound_statement "{\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }" { (do_statement "do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);" do (compound_statement "{\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      }" { (expression_statement "pcVar5 = strchr(__s,0x5c);" (assignment_expression "pcVar5 = strchr(__s,0x5c)" identifier = (call_expression "strchr(__s,0x5c)" identifier (argument_list "(__s,0x5c)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }" { (expression_statement "__s_00 = __dest + ((int)pcVar2 - (int)__s);" (assignment_expression "__s_00 = __dest + ((int)pcVar2 - (int)__s)" identifier = (binary_expression "__dest + ((int)pcVar2 - (int)__s)" identifier + (parenthesized_expression "((int)pcVar2 - (int)__s)" ( (binary_expression "(int)pcVar2 - (int)__s" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "memcpy(__dest,__s,(int)pcVar2 - (int)__s);" (call_expression "memcpy(__dest,__s,(int)pcVar2 - (int)__s)" identifier (argument_list "(__dest,__s,(int)pcVar2 - (int)__s)" ( identifier , identifier , (binary_expression "(int)pcVar2 - (int)__s" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (break_statement "break;" break ;) })) (expression_statement "pcVar5 = pcVar5 + (1 - (int)__s);" (assignment_expression "pcVar5 = pcVar5 + (1 - (int)__s)" identifier = (binary_expression "pcVar5 + (1 - (int)__s)" identifier + (parenthesized_expression "(1 - (int)__s)" ( (binary_expression "1 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pcVar6 = __s + (int)pcVar5;" (assignment_expression "pcVar6 = __s + (int)pcVar5" identifier = (binary_expression "__s + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__s_00 = __dest + (int)pcVar5 + 1;" (assignment_expression "__s_00 = __dest + (int)pcVar5 + 1" identifier = (binary_expression "__dest + (int)pcVar5 + 1" (binary_expression "__dest + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) + number_literal)) ;) (expression_statement "memcpy(__dest,__s,(size_t)pcVar5);" (call_expression "memcpy(__dest,__s,(size_t)pcVar5)" identifier (argument_list "(__dest,__s,(size_t)pcVar5)" ( identifier , identifier , (cast_expression "(size_t)pcVar5" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;) (expression_statement "__dest[(int)pcVar5] = '\\';" (assignment_expression "__dest[(int)pcVar5] = '\\'" (subscript_expression "__dest[(int)pcVar5]" identifier [ (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) ]) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "__s = pcVar6;" (assignment_expression "__s = pcVar6" identifier = identifier) ;) (expression_statement "__dest = __s_00;" (assignment_expression "__dest = __s_00" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar6 < pcVar2)" ( (binary_expression "pcVar6 < pcVar2" identifier < identifier) )) ;) })) (expression_statement "sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);" (call_expression "sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a)" identifier (argument_list "(__s_00,"\",%d,0,0,%s\n",param_1,local_3a)" ( identifier , (string_literal ""\",%d,0,0,%s\n"" " escape_sequence string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "FUN_00035470(__ptr);" (call_expression "FUN_00035470(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "FUN_00035b50();" (call_expression "FUN_00035b50()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00035520();" (call_expression "FUN_00035520()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0003aaa0(local_3a);" (call_expression "FUN_0003aaa0(local_3a)" identifier (argument_list "(local_3a)" ( identifier ))) ;) (if_statement "if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }" if (parenthesized_expression "(DAT_00088c90 != (void *)0x0)" ( (binary_expression "DAT_00088c90 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(DAT_00088c90);\n    }" { (expression_statement "free(DAT_00088c90);" (call_expression "free(DAT_00088c90)" identifier (argument_list "(DAT_00088c90)" ( identifier ))) ;) })) (expression_statement "DAT_00088c90 = (void *)xstrdup(param_2);" (assignment_expression "DAT_00088c90 = (void *)xstrdup(param_2)" identifier = (cast_expression "(void *)xstrdup(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 generate_asm_file(int type,char *file)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  char *buf;\n  char *pcVar5;\n  char *tmp;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char sym [30];\n  \n  sVar1 = strlen(file);\n  pcVar2 = file + sVar1;\n  if ((generate_asm_file::last_file == (char *)0x0) ||\n     (iVar3 = filename_cmp(generate_asm_file::last_file,file), iVar3 != 0)) {\n    sprintf(sym,"%sF%d",&DAT_0005db02,generate_asm_file::label_count);\n    generate_asm_file::label_count = generate_asm_file::label_count + 1;\n    sVar1 = strlen(file);\n    sVar4 = strlen(sym);\n    buf = (char *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = buf + 1;\n    *buf = '\"';\n    __s = file;\n    __dest = __s_00;\n    if (file < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",type,sym);\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    colon(sym);\n    if (generate_asm_file::last_file != (char *)0x0) {\n      free(generate_asm_file::last_file);\n    }\n    generate_asm_file::last_file = (char *)xstrdup(file);\n    free(buf);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 generate_asm_file(int type,char *file)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  char *buf;\n  char *pcVar5;\n  char *tmp;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char sym [30];\n  \n  sVar1 = strlen(file);\n  pcVar2 = file + sVar1;\n  if ((generate_asm_file::last_file == (char *)0x0) ||\n     (iVar3 = filename_cmp(generate_asm_file::last_file,file), iVar3 != 0)) {\n    sprintf(sym,"%sF%d",&DAT_0005db02,generate_asm_file::label_count);\n    generate_asm_file::label_count = generate_asm_file::label_count + 1;\n    sVar1 = strlen(file);\n    sVar4 = strlen(sym);\n    buf = (char *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = buf + 1;\n    *buf = '\"';\n    __s = file;\n    __dest = __s_00;\n    if (file < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",type,sym);\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    colon(sym);\n    if (generate_asm_file::last_file != (char *)0x0) {\n      free(generate_asm_file::last_file);\n    }\n    generate_asm_file::last_file = (char *)xstrdup(file);\n    free(buf);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "generate_asm_file(int type,char *file)" identifier (parameter_list "(int type,char *file)" ( (parameter_declaration "int type" primitive_type identifier) , (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  char *buf;\n  char *pcVar5;\n  char *tmp;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char sym [30];\n  \n  sVar1 = strlen(file);\n  pcVar2 = file + sVar1;\n  if ((generate_asm_file::last_file == (char *)0x0) ||\n     (iVar3 = filename_cmp(generate_asm_file::last_file,file), iVar3 != 0)) {\n    sprintf(sym,"%sF%d",&DAT_0005db02,generate_asm_file::label_count);\n    generate_asm_file::label_count = generate_asm_file::label_count + 1;\n    sVar1 = strlen(file);\n    sVar4 = strlen(sym);\n    buf = (char *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = buf + 1;\n    *buf = '\"';\n    __s = file;\n    __dest = __s_00;\n    if (file < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",type,sym);\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    colon(sym);\n    if (generate_asm_file::last_file != (char *)0x0) {\n      free(generate_asm_file::last_file);\n    }\n    generate_asm_file::last_file = (char *)xstrdup(file);\n    free(buf);\n  }\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "char *buf;" primitive_type (pointer_declarator "*buf" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *tmp;" primitive_type (pointer_declarator "*tmp" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "char sym [30];" primitive_type (array_declarator "sym [30]" identifier [ number_literal ]) ;) (expression_statement "sVar1 = strlen(file);" (assignment_expression "sVar1 = strlen(file)" identifier = (call_expression "strlen(file)" identifier (argument_list "(file)" ( identifier )))) ;) (expression_statement "pcVar2 = file + sVar1;" (assignment_expression "pcVar2 = file + sVar1" identifier = (binary_expression "file + sVar1" identifier + identifier)) ;) (if_statement "if ((generate_asm_file::last_file == (char *)0x0) ||\n     (iVar3 = filename_cmp(generate_asm_file::last_file,file), iVar3 != 0)) {\n    sprintf(sym,"%sF%d",&DAT_0005db02,generate_asm_file::label_count);\n    generate_asm_file::label_count = generate_asm_file::label_count + 1;\n    sVar1 = strlen(file);\n    sVar4 = strlen(sym);\n    buf = (char *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = buf + 1;\n    *buf = '\"';\n    __s = file;\n    __dest = __s_00;\n    if (file < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",type,sym);\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    colon(sym);\n    if (generate_asm_file::last_file != (char *)0x0) {\n      free(generate_asm_file::last_file);\n    }\n    generate_asm_file::last_file = (char *)xstrdup(file);\n    free(buf);\n  }" if (parenthesized_expression "((generate_asm_file::last_file == (char *)0x0) ||\n     (iVar3 = filename_cmp(generate_asm_file::last_file,file), iVar3 != 0))" ( (binary_expression "(generate_asm_file::last_file == (char *)0x0) ||\n     (iVar3 = filename_cmp(generate_asm_file::last_file,file), iVar3 != 0)" (parenthesized_expression "(generate_asm_file::last_file == (char *)0x0)" ( (binary_expression "generate_asm_file::last_file == (char *)0x0" identifier (ERROR "::last_file" : : identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar3 = filename_cmp(generate_asm_file::last_file,file), iVar3 != 0)" ( (comma_expression "iVar3 = filename_cmp(generate_asm_file::last_file,file), iVar3 != 0" (assignment_expression "iVar3 = filename_cmp(generate_asm_file::last_file,file)" identifier = (call_expression "filename_cmp(generate_asm_file::last_file,file)" identifier (argument_list "(generate_asm_file::last_file,file)" ( identifier (ERROR "::last_file" : : identifier) , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    sprintf(sym,"%sF%d",&DAT_0005db02,generate_asm_file::label_count);\n    generate_asm_file::label_count = generate_asm_file::label_count + 1;\n    sVar1 = strlen(file);\n    sVar4 = strlen(sym);\n    buf = (char *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = buf + 1;\n    *buf = '\"';\n    __s = file;\n    __dest = __s_00;\n    if (file < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",type,sym);\n    temp_ilp(buf);\n    s_stab_generic(0x73,".stab",".stabstr");\n    restore_ilp();\n    colon(sym);\n    if (generate_asm_file::last_file != (char *)0x0) {\n      free(generate_asm_file::last_file);\n    }\n    generate_asm_file::last_file = (char *)xstrdup(file);\n    free(buf);\n  }" { (expression_statement "sprintf(sym,"%sF%d",&DAT_0005db02,generate_asm_file::label_count);" (call_expression "sprintf(sym,"%sF%d",&DAT_0005db02,generate_asm_file::label_count)" identifier (argument_list "(sym,"%sF%d",&DAT_0005db02,generate_asm_file::label_count)" ( identifier , (string_literal ""%sF%d"" " string_content ") , (pointer_expression "&DAT_0005db02" & identifier) , identifier (ERROR "::label_count" : : identifier) ))) ;) (labeled_statement "generate_asm_file::label_count = generate_asm_file::label_count + 1;" statement_identifier (ERROR "::label_count = generate_asm_file:" : : (assignment_expression "label_count = generate_asm_file" identifier = identifier) :) : (expression_statement "label_count + 1;" (binary_expression "label_count + 1" identifier + number_literal) ;)) (expression_statement "sVar1 = strlen(file);" (assignment_expression "sVar1 = strlen(file)" identifier = (call_expression "strlen(file)" identifier (argument_list "(file)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(sym);" (assignment_expression "sVar4 = strlen(sym)" identifier = (call_expression "strlen(sym)" identifier (argument_list "(sym)" ( identifier )))) ;) (expression_statement "buf = (char *)xmalloc(sVar4 + 0xc + sVar1 * 2);" (assignment_expression "buf = (char *)xmalloc(sVar4 + 0xc + sVar1 * 2)" identifier = (cast_expression "(char *)xmalloc(sVar4 + 0xc + sVar1 * 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar4 + 0xc + sVar1 * 2)" identifier (argument_list "(sVar4 + 0xc + sVar1 * 2)" ( (binary_expression "sVar4 + 0xc + sVar1 * 2" (binary_expression "sVar4 + 0xc" identifier + number_literal) + (binary_expression "sVar1 * 2" identifier * number_literal)) ))))) ;) (expression_statement "__s_00 = buf + 1;" (assignment_expression "__s_00 = buf + 1" identifier = (binary_expression "buf + 1" identifier + number_literal)) ;) (expression_statement "*buf = '\"';" (assignment_expression "*buf = '\"'" (pointer_expression "*buf" * identifier) = (char_literal "'\"'" ' escape_sequence ')) ;) (expression_statement "__s = file;" (assignment_expression "__s = file" identifier = identifier) ;) (expression_statement "__dest = __s_00;" (assignment_expression "__dest = __s_00" identifier = identifier) ;) (if_statement "if (file < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }" if (parenthesized_expression "(file < pcVar2)" ( (binary_expression "file < pcVar2" identifier < identifier) )) (compound_statement "{\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }" { (do_statement "do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);" do (compound_statement "{\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      }" { (expression_statement "pcVar5 = strchr(__s,0x5c);" (assignment_expression "pcVar5 = strchr(__s,0x5c)" identifier = (call_expression "strchr(__s,0x5c)" identifier (argument_list "(__s,0x5c)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }" { (expression_statement "__s_00 = __dest + ((int)pcVar2 - (int)__s);" (assignment_expression "__s_00 = __dest + ((int)pcVar2 - (int)__s)" identifier = (binary_expression "__dest + ((int)pcVar2 - (int)__s)" identifier + (parenthesized_expression "((int)pcVar2 - (int)__s)" ( (binary_expression "(int)pcVar2 - (int)__s" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "memcpy(__dest,__s,(int)pcVar2 - (int)__s);" (call_expression "memcpy(__dest,__s,(int)pcVar2 - (int)__s)" identifier (argument_list "(__dest,__s,(int)pcVar2 - (int)__s)" ( identifier , identifier , (binary_expression "(int)pcVar2 - (int)__s" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (break_statement "break;" break ;) })) (expression_statement "pcVar5 = pcVar5 + (1 - (int)__s);" (assignment_expression "pcVar5 = pcVar5 + (1 - (int)__s)" identifier = (binary_expression "pcVar5 + (1 - (int)__s)" identifier + (parenthesized_expression "(1 - (int)__s)" ( (binary_expression "1 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pcVar6 = __s + (int)pcVar5;" (assignment_expression "pcVar6 = __s + (int)pcVar5" identifier = (binary_expression "__s + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__s_00 = __dest + (int)pcVar5 + 1;" (assignment_expression "__s_00 = __dest + (int)pcVar5 + 1" identifier = (binary_expression "__dest + (int)pcVar5 + 1" (binary_expression "__dest + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) + number_literal)) ;) (expression_statement "memcpy(__dest,__s,(size_t)pcVar5);" (call_expression "memcpy(__dest,__s,(size_t)pcVar5)" identifier (argument_list "(__dest,__s,(size_t)pcVar5)" ( identifier , identifier , (cast_expression "(size_t)pcVar5" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;) (expression_statement "__dest[(int)pcVar5] = '\\';" (assignment_expression "__dest[(int)pcVar5] = '\\'" (subscript_expression "__dest[(int)pcVar5]" identifier [ (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) ]) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "__s = pcVar6;" (assignment_expression "__s = pcVar6" identifier = identifier) ;) (expression_statement "__dest = __s_00;" (assignment_expression "__dest = __s_00" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar6 < pcVar2)" ( (binary_expression "pcVar6 < pcVar2" identifier < identifier) )) ;) })) (expression_statement "sprintf(__s_00,"\",%d,0,0,%s\n",type,sym);" (call_expression "sprintf(__s_00,"\",%d,0,0,%s\n",type,sym)" identifier (argument_list "(__s_00,"\",%d,0,0,%s\n",type,sym)" ( identifier , (string_literal ""\",%d,0,0,%s\n"" " escape_sequence string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "temp_ilp(buf);" (call_expression "temp_ilp(buf)" identifier (argument_list "(buf)" ( identifier ))) ;) (expression_statement "s_stab_generic(0x73,".stab",".stabstr");" (call_expression "s_stab_generic(0x73,".stab",".stabstr")" identifier (argument_list "(0x73,".stab",".stabstr")" ( number_literal , (string_literal "".stab"" " string_content ") , (string_literal "".stabstr"" " string_content ") ))) ;) (expression_statement "restore_ilp();" (call_expression "restore_ilp()" identifier (argument_list "()" ( ))) ;) (expression_statement "colon(sym);" (call_expression "colon(sym)" identifier (argument_list "(sym)" ( identifier ))) ;) (if_statement "if (generate_asm_file::last_file != (char *)0x0) {\n      free(generate_asm_file::last_file);\n    }" if (parenthesized_expression "(generate_asm_file::last_file != (char *)0x0)" ( (binary_expression "generate_asm_file::last_file != (char *)0x0" identifier (ERROR "::last_file" : : identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(generate_asm_file::last_file);\n    }" { (labeled_statement "free(generate_asm_file::last_file);" statement_identifier (ERROR "(generate_asm_file:" ( (type_descriptor "generate_asm_file" type_identifier) :) : (expression_statement "last_file);" identifier (ERROR ")" )) ;)) })) (labeled_statement "generate_asm_file::last_file = (char *)xstrdup(file);" statement_identifier : (ERROR ":" :) (expression_statement "last_file = (char *)xstrdup(file);" (assignment_expression "last_file = (char *)xstrdup(file)" identifier = (cast_expression "(char *)xstrdup(file)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(file)" identifier (argument_list "(file)" ( identifier ))))) ;)) (expression_statement "free(buf);" (call_expression "free(buf)" identifier (argument_list "(buf)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00036050(undefined4 param_1,char *param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  undefined1 *__ptr;\n  char *pcVar5;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char local_3a [38];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3605b;\n  sVar1 = strlen(param_2);\n  pcVar2 = param_2 + sVar1;\n  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00036050(undefined4 param_1,char *param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  undefined1 *__ptr;\n  char *pcVar5;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char local_3a [38];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3605b;\n  sVar1 = strlen(param_2);\n  pcVar2 = param_2 + sVar1;\n  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00036050(undefined4 param_1,char *param_2)" identifier (parameter_list "(undefined4 param_1,char *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  undefined1 *__ptr;\n  char *pcVar5;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char local_3a [38];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3605b;\n  sVar1 = strlen(param_2);\n  pcVar2 = param_2 + sVar1;\n  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "undefined1 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "char local_3a [38];" primitive_type (array_declarator "local_3a [38]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3605b;" (assignment_expression "uStack_14 = 0x3605b" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "pcVar2 = param_2 + sVar1;" (assignment_expression "pcVar2 = param_2 + sVar1" identifier = (binary_expression "param_2 + sVar1" identifier + identifier)) ;) (if_statement "if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }" if (parenthesized_expression "((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0))" ( (binary_expression "(DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)" (parenthesized_expression "(DAT_00088c90 == (void *)0x0)" ( (binary_expression "DAT_00088c90 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)" ( (comma_expression "iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0" (assignment_expression "iVar3 = filename_cmp(DAT_00088c90,param_2)" identifier = (call_expression "filename_cmp(DAT_00088c90,param_2)" identifier (argument_list "(DAT_00088c90,param_2)" ( identifier , identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }" { (expression_statement "sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);" (call_expression "sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c)" identifier (argument_list "(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c)" ( identifier , (string_literal ""%sF%d"" " string_content ") , (pointer_expression "&DAT_0005db02" & identifier) , identifier ))) ;) (expression_statement "DAT_00088c8c = DAT_00088c8c + 1;" (assignment_expression "DAT_00088c8c = DAT_00088c8c + 1" identifier = (binary_expression "DAT_00088c8c + 1" identifier + number_literal)) ;) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(local_3a);" (assignment_expression "sVar4 = strlen(local_3a)" identifier = (call_expression "strlen(local_3a)" identifier (argument_list "(local_3a)" ( identifier )))) ;) (expression_statement "__ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);" (assignment_expression "__ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2)" identifier = (cast_expression "(undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar4 + 0xc + sVar1 * 2)" identifier (argument_list "(sVar4 + 0xc + sVar1 * 2)" ( (binary_expression "sVar4 + 0xc + sVar1 * 2" (binary_expression "sVar4 + 0xc" identifier + number_literal) + (binary_expression "sVar1 * 2" identifier * number_literal)) ))))) ;) (expression_statement "__s_00 = __ptr + 1;" (assignment_expression "__s_00 = __ptr + 1" identifier = (binary_expression "__ptr + 1" identifier + number_literal)) ;) (expression_statement "*__ptr = 0x22;" (assignment_expression "*__ptr = 0x22" (pointer_expression "*__ptr" * identifier) = number_literal) ;) (expression_statement "__s = param_2;" (assignment_expression "__s = param_2" identifier = identifier) ;) (expression_statement "__dest = __s_00;" (assignment_expression "__dest = __s_00" identifier = identifier) ;) (if_statement "if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }" if (parenthesized_expression "(param_2 < pcVar2)" ( (binary_expression "param_2 < pcVar2" identifier < identifier) )) (compound_statement "{\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }" { (do_statement "do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);" do (compound_statement "{\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      }" { (expression_statement "pcVar5 = strchr(__s,0x5c);" (assignment_expression "pcVar5 = strchr(__s,0x5c)" identifier = (call_expression "strchr(__s,0x5c)" identifier (argument_list "(__s,0x5c)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }" { (expression_statement "__s_00 = __dest + ((int)pcVar2 - (int)__s);" (assignment_expression "__s_00 = __dest + ((int)pcVar2 - (int)__s)" identifier = (binary_expression "__dest + ((int)pcVar2 - (int)__s)" identifier + (parenthesized_expression "((int)pcVar2 - (int)__s)" ( (binary_expression "(int)pcVar2 - (int)__s" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "memcpy(__dest,__s,(int)pcVar2 - (int)__s);" (call_expression "memcpy(__dest,__s,(int)pcVar2 - (int)__s)" identifier (argument_list "(__dest,__s,(int)pcVar2 - (int)__s)" ( identifier , identifier , (binary_expression "(int)pcVar2 - (int)__s" (cast_expression "(int)pcVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (break_statement "break;" break ;) })) (expression_statement "pcVar5 = pcVar5 + (1 - (int)__s);" (assignment_expression "pcVar5 = pcVar5 + (1 - (int)__s)" identifier = (binary_expression "pcVar5 + (1 - (int)__s)" identifier + (parenthesized_expression "(1 - (int)__s)" ( (binary_expression "1 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pcVar6 = __s + (int)pcVar5;" (assignment_expression "pcVar6 = __s + (int)pcVar5" identifier = (binary_expression "__s + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__s_00 = __dest + (int)pcVar5 + 1;" (assignment_expression "__s_00 = __dest + (int)pcVar5 + 1" identifier = (binary_expression "__dest + (int)pcVar5 + 1" (binary_expression "__dest + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) + number_literal)) ;) (expression_statement "memcpy(__dest,__s,(size_t)pcVar5);" (call_expression "memcpy(__dest,__s,(size_t)pcVar5)" identifier (argument_list "(__dest,__s,(size_t)pcVar5)" ( identifier , identifier , (cast_expression "(size_t)pcVar5" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;) (expression_statement "__dest[(int)pcVar5] = '\\';" (assignment_expression "__dest[(int)pcVar5] = '\\'" (subscript_expression "__dest[(int)pcVar5]" identifier [ (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier) ]) = (char_literal "'\\'" ' escape_sequence ')) ;) (expression_statement "__s = pcVar6;" (assignment_expression "__s = pcVar6" identifier = identifier) ;) (expression_statement "__dest = __s_00;" (assignment_expression "__dest = __s_00" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar6 < pcVar2)" ( (binary_expression "pcVar6 < pcVar2" identifier < identifier) )) ;) })) (expression_statement "sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);" (call_expression "sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a)" identifier (argument_list "(__s_00,"\",%d,0,0,%s\n",param_1,local_3a)" ( identifier , (string_literal ""\",%d,0,0,%s\n"" " escape_sequence string_content escape_sequence ") , identifier , identifier ))) ;) (expression_statement "FUN_00035470(__ptr);" (call_expression "FUN_00035470(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "FUN_00035b50();" (call_expression "FUN_00035b50()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00035520();" (call_expression "FUN_00035520()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0003aaa0(local_3a);" (call_expression "FUN_0003aaa0(local_3a)" identifier (argument_list "(local_3a)" ( identifier ))) ;) (if_statement "if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }" if (parenthesized_expression "(DAT_00088c90 != (void *)0x0)" ( (binary_expression "DAT_00088c90 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free(DAT_00088c90);\n    }" { (expression_statement "free(DAT_00088c90);" (call_expression "free(DAT_00088c90)" identifier (argument_list "(DAT_00088c90)" ( identifier ))) ;) })) (expression_statement "DAT_00088c90 = (void *)xstrdup(param_2);" (assignment_expression "DAT_00088c90 = (void *)xstrdup(param_2)" identifier = (cast_expression "(void *)xstrdup(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (cast_expression ( (type_descriptor TYPE) ) IDENT) ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " escape_sequence string_content escape_sequence ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00036050(undefined4 param_1,char *param_2)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  undefined1 *__ptr;\n  char *pcVar5;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char local_3a [38];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3605b;\n  sVar1 = strlen(param_2);\n  pcVar2 = param_2 + sVar1;\n  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00036050(undefined4 param_1,char *param_2)" (identifier "FUN_00036050") (parameter_list "(undefined4 param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  int iVar3;\n  size_t sVar4;\n  undefined1 *__ptr;\n  char *pcVar5;\n  char *pcVar6;\n  char *__s;\n  char *__dest;\n  char *__s_00;\n  char local_3a [38];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3605b;\n  sVar1 = strlen(param_2);\n  pcVar2 = param_2 + sVar1;\n  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }\n  return;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "undefined1 *__ptr;" (type_identifier "undefined1") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "char *__s_00;" (primitive_type "char") (pointer_declarator "*__s_00" (* "*") (identifier "__s_00")) (; ";")) (declaration "char local_3a [38];" (primitive_type "char") (array_declarator "local_3a [38]" (identifier "local_3a") ([ "[") (number_literal "38") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x3605b;" (assignment_expression "uStack_14 = 0x3605b" (identifier "uStack_14") (= "=") (number_literal "0x3605b")) (; ";")) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pcVar2 = param_2 + sVar1;" (assignment_expression "pcVar2 = param_2 + sVar1" (identifier "pcVar2") (= "=") (binary_expression "param_2 + sVar1" (identifier "param_2") (+ "+") (identifier "sVar1"))) (; ";")) (if_statement "if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }" (if "if") (parenthesized_expression "((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0))" (( "(") (binary_expression "(DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)" (parenthesized_expression "(DAT_00088c90 == (void *)0x0)" (( "(") (binary_expression "DAT_00088c90 == (void *)0x0" (identifier "DAT_00088c90") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)" (( "(") (comma_expression "iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0" (assignment_expression "iVar3 = filename_cmp(DAT_00088c90,param_2)" (identifier "iVar3") (= "=") (call_expression "filename_cmp(DAT_00088c90,param_2)" (identifier "filename_cmp") (argument_list "(DAT_00088c90,param_2)" (( "(") (identifier "DAT_00088c90") (, ",") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);\n    DAT_00088c8c = DAT_00088c8c + 1;\n    sVar1 = strlen(param_2);\n    sVar4 = strlen(local_3a);\n    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);\n    __s_00 = __ptr + 1;\n    *__ptr = 0x22;\n    __s = param_2;\n    __dest = __s_00;\n    if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }\n    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);\n    FUN_00035470(__ptr);\n    FUN_00035b50();\n    FUN_00035520();\n    FUN_0003aaa0(local_3a);\n    if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }\n    DAT_00088c90 = (void *)xstrdup(param_2);\n    free(__ptr);\n  }" ({ "{") (expression_statement "sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);" (call_expression "sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c)" (identifier "sprintf") (argument_list "(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c)" (( "(") (identifier "local_3a") (, ",") (string_literal ""%sF%d"" (" """) (string_content "%sF%d") (" """)) (, ",") (pointer_expression "&DAT_0005db02" (& "&") (identifier "DAT_0005db02")) (, ",") (identifier "DAT_00088c8c") () ")"))) (; ";")) (expression_statement "DAT_00088c8c = DAT_00088c8c + 1;" (assignment_expression "DAT_00088c8c = DAT_00088c8c + 1" (identifier "DAT_00088c8c") (= "=") (binary_expression "DAT_00088c8c + 1" (identifier "DAT_00088c8c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "sVar1 = strlen(param_2);" (assignment_expression "sVar1 = strlen(param_2)" (identifier "sVar1") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "sVar4 = strlen(local_3a);" (assignment_expression "sVar4 = strlen(local_3a)" (identifier "sVar4") (= "=") (call_expression "strlen(local_3a)" (identifier "strlen") (argument_list "(local_3a)" (( "(") (identifier "local_3a") () ")")))) (; ";")) (expression_statement "__ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);" (assignment_expression "__ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2)" (identifier "__ptr") (= "=") (cast_expression "(undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar4 + 0xc + sVar1 * 2)" (identifier "xmalloc") (argument_list "(sVar4 + 0xc + sVar1 * 2)" (( "(") (binary_expression "sVar4 + 0xc + sVar1 * 2" (binary_expression "sVar4 + 0xc" (identifier "sVar4") (+ "+") (number_literal "0xc")) (+ "+") (binary_expression "sVar1 * 2" (identifier "sVar1") (* "*") (number_literal "2"))) () ")"))))) (; ";")) (expression_statement "__s_00 = __ptr + 1;" (assignment_expression "__s_00 = __ptr + 1" (identifier "__s_00") (= "=") (binary_expression "__ptr + 1" (identifier "__ptr") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*__ptr = 0x22;" (assignment_expression "*__ptr = 0x22" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (= "=") (number_literal "0x22")) (; ";")) (expression_statement "__s = param_2;" (assignment_expression "__s = param_2" (identifier "__s") (= "=") (identifier "param_2")) (; ";")) (expression_statement "__dest = __s_00;" (assignment_expression "__dest = __s_00" (identifier "__dest") (= "=") (identifier "__s_00")) (; ";")) (if_statement "if (param_2 < pcVar2) {\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }" (if "if") (parenthesized_expression "(param_2 < pcVar2)" (( "(") (binary_expression "param_2 < pcVar2" (identifier "param_2") (< "<") (identifier "pcVar2")) () ")")) (compound_statement "{\n      do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);\n    }" ({ "{") (do_statement "do {\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      } while (pcVar6 < pcVar2);" (do "do") (compound_statement "{\n        pcVar5 = strchr(__s,0x5c);\n        if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }\n        pcVar5 = pcVar5 + (1 - (int)__s);\n        pcVar6 = __s + (int)pcVar5;\n        __s_00 = __dest + (int)pcVar5 + 1;\n        memcpy(__dest,__s,(size_t)pcVar5);\n        __dest[(int)pcVar5] = '\\';\n        __s = pcVar6;\n        __dest = __s_00;\n      }" ({ "{") (expression_statement "pcVar5 = strchr(__s,0x5c);" (assignment_expression "pcVar5 = strchr(__s,0x5c)" (identifier "pcVar5") (= "=") (call_expression "strchr(__s,0x5c)" (identifier "strchr") (argument_list "(__s,0x5c)" (( "(") (identifier "__s") (, ",") (number_literal "0x5c") () ")")))) (; ";")) (if_statement "if (pcVar5 == (char *)0x0) {\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }" (if "if") (parenthesized_expression "(pcVar5 == (char *)0x0)" (( "(") (binary_expression "pcVar5 == (char *)0x0" (identifier "pcVar5") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          __s_00 = __dest + ((int)pcVar2 - (int)__s);\n          memcpy(__dest,__s,(int)pcVar2 - (int)__s);\n          break;\n        }" ({ "{") (expression_statement "__s_00 = __dest + ((int)pcVar2 - (int)__s);" (assignment_expression "__s_00 = __dest + ((int)pcVar2 - (int)__s)" (identifier "__s_00") (= "=") (binary_expression "__dest + ((int)pcVar2 - (int)__s)" (identifier "__dest") (+ "+") (parenthesized_expression "((int)pcVar2 - (int)__s)" (( "(") (binary_expression "(int)pcVar2 - (int)__s" (cast_expression "(int)pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar2")) (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) () ")")))) (; ";")) (expression_statement "memcpy(__dest,__s,(int)pcVar2 - (int)__s);" (call_expression "memcpy(__dest,__s,(int)pcVar2 - (int)__s)" (identifier "memcpy") (argument_list "(__dest,__s,(int)pcVar2 - (int)__s)" (( "(") (identifier "__dest") (, ",") (identifier "__s") (, ",") (binary_expression "(int)pcVar2 - (int)__s" (cast_expression "(int)pcVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar2")) (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "pcVar5 = pcVar5 + (1 - (int)__s);" (assignment_expression "pcVar5 = pcVar5 + (1 - (int)__s)" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + (1 - (int)__s)" (identifier "pcVar5") (+ "+") (parenthesized_expression "(1 - (int)__s)" (( "(") (binary_expression "1 - (int)__s" (number_literal "1") (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) () ")")))) (; ";")) (expression_statement "pcVar6 = __s + (int)pcVar5;" (assignment_expression "pcVar6 = __s + (int)pcVar5" (identifier "pcVar6") (= "=") (binary_expression "__s + (int)pcVar5" (identifier "__s") (+ "+") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5")))) (; ";")) (expression_statement "__s_00 = __dest + (int)pcVar5 + 1;" (assignment_expression "__s_00 = __dest + (int)pcVar5 + 1" (identifier "__s_00") (= "=") (binary_expression "__dest + (int)pcVar5 + 1" (binary_expression "__dest + (int)pcVar5" (identifier "__dest") (+ "+") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "memcpy(__dest,__s,(size_t)pcVar5);" (call_expression "memcpy(__dest,__s,(size_t)pcVar5)" (identifier "memcpy") (argument_list "(__dest,__s,(size_t)pcVar5)" (( "(") (identifier "__dest") (, ",") (identifier "__s") (, ",") (cast_expression "(size_t)pcVar5" (( "(") (type_descriptor "size_t" (primitive_type "size_t")) () ")") (identifier "pcVar5")) () ")"))) (; ";")) (expression_statement "__dest[(int)pcVar5] = '\\';" (assignment_expression "__dest[(int)pcVar5] = '\\'" (subscript_expression "__dest[(int)pcVar5]" (identifier "__dest") ([ "[") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5")) (] "]")) (= "=") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) (; ";")) (expression_statement "__s = pcVar6;" (assignment_expression "__s = pcVar6" (identifier "__s") (= "=") (identifier "pcVar6")) (; ";")) (expression_statement "__dest = __s_00;" (assignment_expression "__dest = __s_00" (identifier "__dest") (= "=") (identifier "__s_00")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar6 < pcVar2)" (( "(") (binary_expression "pcVar6 < pcVar2" (identifier "pcVar6") (< "<") (identifier "pcVar2")) () ")")) (; ";")) (} "}"))) (expression_statement "sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);" (call_expression "sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a)" (identifier "sprintf") (argument_list "(__s_00,"\",%d,0,0,%s\n",param_1,local_3a)" (( "(") (identifier "__s_00") (, ",") (string_literal ""\",%d,0,0,%s\n"" (" """) (escape_sequence "\"") (string_content ",%d,0,0,%s") (escape_sequence "\n") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "local_3a") () ")"))) (; ";")) (expression_statement "FUN_00035470(__ptr);" (call_expression "FUN_00035470(__ptr)" (identifier "FUN_00035470") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "FUN_00035b50();" (call_expression "FUN_00035b50()" (identifier "FUN_00035b50") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00035520();" (call_expression "FUN_00035520()" (identifier "FUN_00035520") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0003aaa0(local_3a);" (call_expression "FUN_0003aaa0(local_3a)" (identifier "FUN_0003aaa0") (argument_list "(local_3a)" (( "(") (identifier "local_3a") () ")"))) (; ";")) (if_statement "if (DAT_00088c90 != (void *)0x0) {\n      free(DAT_00088c90);\n    }" (if "if") (parenthesized_expression "(DAT_00088c90 != (void *)0x0)" (( "(") (binary_expression "DAT_00088c90 != (void *)0x0" (identifier "DAT_00088c90") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      free(DAT_00088c90);\n    }" ({ "{") (expression_statement "free(DAT_00088c90);" (call_expression "free(DAT_00088c90)" (identifier "free") (argument_list "(DAT_00088c90)" (( "(") (identifier "DAT_00088c90") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_00088c90 = (void *)xstrdup(param_2);" (assignment_expression "DAT_00088c90 = (void *)xstrdup(param_2)" (identifier "DAT_00088c90") (= "=") (cast_expression "(void *)xstrdup(param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xstrdup(param_2)" (identifier "xstrdup") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(int type,char *var_2)

{
  size_t var_3;
  char *var_11;
  int var_5;
  size_t var_9;
  char *var_10;
  char *var_13;
  char *tmp;
  char *var_17;
  char *var_16;
  char *var_14;
  char *__s_00;
  char sym [30];
  
  var_3 = var_1(var_2);
  var_11 = var_2 + var_3;
  if ((function_1::last_file == (char *)0x0) ||
     (var_5 = var_4(function_1::last_file,var_2), var_5 != 0)) {
    var_6(sym,"%sF%d",&DAT_0005db02,function_1::var_7);
    generate_asm_file::var_7 = function_1::var_7 + 1;
    var_3 = var_1(var_2);
    var_9 = var_1(sym);
    var_10 = (char *)var_8(var_9 + 0xc + var_3 * 2);
    __s_00 = var_10 + 1;
    *var_10 = '\"';
    var_16 = var_2;
    var_14 = __s_00;
    if (var_2 < var_11) {
      do {
        var_13 = var_12(var_16,0x5c);
        if (var_13 == (char *)0x0) {
          __s_00 = var_14 + ((int)var_11 - (int)var_16);
          var_15(var_14,var_16,(int)var_11 - (int)var_16);
          break;
        }
        var_13 = var_13 + (1 - (int)var_16);
        var_17 = var_16 + (int)var_13;
        __s_00 = var_14 + (int)var_13 + 1;
        var_15(var_14,var_16,(size_t)var_13);
        var_14[(int)var_13] = '\\';
        var_16 = var_17;
        var_14 = __s_00;
      } while (var_17 < var_11);
    }
    var_6(__s_00,"\",%d,0,0,%s\n",type,sym);
    var_18(var_10);
    var_19(0x73,".stab",".stabstr");
    var_20();
    var_21(sym);
    if (function_1::last_file != (char *)0x0) {
      free(function_1::last_file);
    }
    generate_asm_file::last_file = (char *)var_22(var_2);
    var_23(var_10);
  }
  return;
}


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

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

void __regparm3 MASKED(undefined4 param_1,char *param_2)

{
  size_t sVar1;
  char *pcVar2;
  int iVar3;
  size_t sVar4;
  undefined1 *__ptr;
  char *pcVar5;
  char *pcVar6;
  char *__s;
  char *__dest;
  char *__s_00;
  char local_3a [38];
  undefined4 uStack_14;
  
  uStack_14 = 0x3605b;
  sVar1 = strlen(param_2);
  pcVar2 = param_2 + sVar1;
  if ((DAT_00088c90 == (void *)0x0) || (iVar3 = filename_cmp(DAT_00088c90,param_2), iVar3 != 0)) {
    sprintf(local_3a,"%sF%d",&DAT_0005db02,DAT_00088c8c);
    DAT_00088c8c = DAT_00088c8c + 1;
    sVar1 = strlen(param_2);
    sVar4 = strlen(local_3a);
    __ptr = (undefined1 *)xmalloc(sVar4 + 0xc + sVar1 * 2);
    __s_00 = __ptr + 1;
    *__ptr = 0x22;
    __s = param_2;
    __dest = __s_00;
    if (param_2 < pcVar2) {
      do {
        pcVar5 = strchr(__s,0x5c);
        if (pcVar5 == (char *)0x0) {
          __s_00 = __dest + ((int)pcVar2 - (int)__s);
          memcpy(__dest,__s,(int)pcVar2 - (int)__s);
          break;
        }
        pcVar5 = pcVar5 + (1 - (int)__s);
        pcVar6 = __s + (int)pcVar5;
        __s_00 = __dest + (int)pcVar5 + 1;
        memcpy(__dest,__s,(size_t)pcVar5);
        __dest[(int)pcVar5] = '\\';
        __s = pcVar6;
        __dest = __s_00;
      } while (pcVar6 < pcVar2);
    }
    sprintf(__s_00,"\",%d,0,0,%s\n",param_1,local_3a);
    FUN_00035470(__ptr);
    FUN_00035b50();
    FUN_00035520();
    FUN_0003aaa0(local_3a);
    if (DAT_00088c90 != (void *)0x0) {
      free(DAT_00088c90);
    }
    DAT_00088c90 = (void *)xstrdup(param_2);
    free(__ptr);
  }
  return;
}

