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

char * arg_str(arg_list *args)

{
  int iVar1;
  arg_list *paVar2;
  int iVar3;
  char *pcVar4;
  undefined *puVar5;
  int iVar6;
  char *pcVar7;
  int in_GS_OFFSET;
  char sval [30];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (arglist2 != (char *)0x0) {
    free(arglist2);
  }
  arglist2 = arglist1;
  if (args == (arg_list *)0x0) {
    pcVar4 = (char *)malloc(1);
    if (pcVar4 == (char *)0x0) {
LAB_0001b145:
                    /* WARNING: Subroutine does not return */
      out_of_memory();
    }
    *pcVar4 = '\0';
    goto LAB_0001b0ee;
  }
  paVar2 = args->next;
  if (paVar2 == (arg_list *)0x0) {
    pcVar4 = (char *)malloc(0xd);
    if (pcVar4 == (char *)0x0) goto LAB_0001b145;
    iVar3 = args->arg_is_var;
    *pcVar4 = '\0';
    iVar6 = args->av_name;
    if (iVar3 != 0) goto LAB_0001b0c7;
LAB_0001b094:
    pcVar7 = "%d";
  }
  else {
    pcVar4 = make_arg_str(paVar2->next,0x19);
    if (paVar2->arg_is_var == 0) {
      puVar5 = &DAT_00024c93;
      iVar6 = paVar2->av_name;
    }
    else {
      iVar6 = paVar2->av_name;
      puVar5 = &DAT_00024c92;
    }
    __snprintf_chk(sval,0x1e,1,0x1e,puVar5,iVar6);
    pcVar4 = strcat(pcVar4,sval);
    iVar6 = args->av_name;
    if (args->arg_is_var == 0) goto LAB_0001b094;
LAB_0001b0c7:
    pcVar7 = "*%d";
  }
  __snprintf_chk(sval,0x1e,1,0x1e,pcVar7,iVar6);
  pcVar4 = strcat(pcVar4,sval);
LAB_0001b0ee:
  arglist1 = pcVar4;
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_0001aff0(undefined4 *param_1)

{
  undefined4 *puVar1;
  int iVar2;
  char *pcVar3;
  undefined *puVar4;
  undefined4 uVar5;
  char *pcVar6;
  int in_GS_OFFSET;
  char local_3e [30];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1aff9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (DAT_0002c1dc != (void *)0x0) {
    free(DAT_0002c1dc);
  }
  DAT_0002c1dc = DAT_0002c1e0;
  if (param_1 == (undefined4 *)0x0) {
    pcVar3 = (char *)malloc(1);
    if (pcVar3 == (char *)0x0) {
LAB_0001b145:
                    /* WARNING: Subroutine does not return */
      FUN_0001ab50();
    }
    *pcVar3 = '\0';
    goto LAB_0001b0ee;
  }
  puVar1 = (undefined4 *)param_1[2];
  if (puVar1 == (undefined4 *)0x0) {
    pcVar3 = (char *)malloc(0xd);
    if (pcVar3 == (char *)0x0) goto LAB_0001b145;
    iVar2 = param_1[1];
    *pcVar3 = '\0';
    uVar5 = *param_1;
    if (iVar2 != 0) goto LAB_0001b0c7;
LAB_0001b094:
    pcVar6 = "%d";
  }
  else {
    pcVar3 = (char *)FUN_0001ac50();
    if (puVar1[1] == 0) {
      puVar4 = &DAT_00024c93;
      uVar5 = *puVar1;
    }
    else {
      uVar5 = *puVar1;
      puVar4 = &DAT_00024c92;
    }
    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);
    pcVar3 = strcat(pcVar3,local_3e);
    uVar5 = *param_1;
    if (param_1[1] == 0) goto LAB_0001b094;
LAB_0001b0c7:
    pcVar6 = "*%d";
  }
  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);
  pcVar3 = strcat(pcVar3,local_3e);
LAB_0001b0ee:
  DAT_0002c1e0 = pcVar3;
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00020960();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000117c0
ADD EBX,0x10f0b
SUB ESP,0x3c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [EBX + 0x2d8]
TEST EAX,EAX
JZ 0x0001b028
SUB ESP,0xc
PUSH EAX
CALL 0x000110a0
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0x2dc]
MOV dword ptr [EBX + 0x2d8],EAX
TEST ESI,ESI
JZ 0x0001b110
MOV EDI,dword ptr [ESI + 0x8]
TEST EDI,EDI
JZ 0x0001b0a0
MOV EAX,dword ptr [EDI + 0x8]
MOV EDX,0x19
CALL 0x0001ac50
MOV ECX,dword ptr [EDI + 0x4]
MOV EBP,EAX
TEST ECX,ECX
JZ 0x0001b130
SUB ESP,0x8
PUSH dword ptr [EDI]
LEA EAX,[EBX + 0xffff8d8e]
PUSH EAX
PUSH 0x1e
PUSH 0x1
PUSH 0x1e
LEA EDI,[ESP + 0x2a]
PUSH EDI
CALL 0x00011040
ADD ESP,0x20
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x00011150
MOV EDX,dword ptr [ESI + 0x4]
ADD ESP,0x10
MOV EBP,EAX
MOV EAX,dword ptr [ESI]
TEST EDX,EDX
JNZ 0x0001b0c7
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffff8b2c]
JMP 0x0001b0d1
SUB ESP,0xc
PUSH 0xd
CALL 0x00011180
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x0001b145
MOV EDX,dword ptr [ESI + 0x4]
MOV byte ptr [EAX],0x0
LEA EDI,[ESP + 0xe]
MOV EAX,dword ptr [ESI]
TEST EDX,EDX
JZ 0x0001b094
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xffff8d93]
PUSH EAX
PUSH 0x1e
PUSH 0x1
PUSH 0x1e
PUSH EDI
CALL 0x00011040
ADD ESP,0x20
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x00011150
ADD ESP,0x10
MOV dword ptr [EBX + 0x2dc],EAX
MOV ECX,dword ptr [ESP + 0x2c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0001b140
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x1
CALL 0x00011180
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001b145
MOV byte ptr [EAX],0x0
JMP 0x0001b0ee
SUB ESP,0x8
LEA EAX,[EBX + 0xffff8d8f]
PUSH dword ptr [EDI]
JMP 0x0001b068
CALL 0x00020960
CALL 0x0001ab50
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001aff0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  char local_3e [30];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1aff9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }\n  DAT_0002c1dc = DAT_0002c1e0;\n  if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }\n  puVar1 = (undefined4 *)param_1[2];\n  if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }\n  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);\n  pcVar3 = strcat(pcVar3,local_3e);\nLAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00020960();\n}\n\n" comment (function_definition "void FUN_0001aff0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  char local_3e [30];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1aff9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }\n  DAT_0002c1dc = DAT_0002c1e0;\n  if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }\n  puVar1 = (undefined4 *)param_1[2];\n  if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }\n  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);\n  pcVar3 = strcat(pcVar3,local_3e);\nLAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00020960();\n}" primitive_type (function_declarator "FUN_0001aff0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  char local_3e [30];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1aff9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }\n  DAT_0002c1dc = DAT_0002c1e0;\n  if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }\n  puVar1 = (undefined4 *)param_1[2];\n  if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }\n  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);\n  pcVar3 = strcat(pcVar3,local_3e);\nLAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00020960();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char local_3e [30];" primitive_type (array_declarator "local_3e [30]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1aff9;" (assignment_expression "uStack_14 = 0x1aff9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }" if (parenthesized_expression "(DAT_0002c1dc != (void *)0x0)" ( (binary_expression "DAT_0002c1dc != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(DAT_0002c1dc);\n  }" { (expression_statement "free(DAT_0002c1dc);" (call_expression "free(DAT_0002c1dc)" identifier (argument_list "(DAT_0002c1dc)" ( identifier ))) ;) })) (expression_statement "DAT_0002c1dc = DAT_0002c1e0;" (assignment_expression "DAT_0002c1dc = DAT_0002c1e0" identifier = identifier) ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }" { (expression_statement "pcVar3 = (char *)malloc(1);" (assignment_expression "pcVar3 = (char *)malloc(1)" identifier = (cast_expression "(char *)malloc(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ab50();\n    }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ab50();\n    }" { (labeled_statement "LAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      FUN_0001ab50();" statement_identifier : comment (expression_statement "FUN_0001ab50();" (call_expression "FUN_0001ab50()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0001b0ee;" goto statement_identifier ;) })) (expression_statement "puVar1 = (undefined4 *)param_1[2];" (assignment_expression "puVar1 = (undefined4 *)param_1[2]" identifier = (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }" { (expression_statement "pcVar3 = (char *)malloc(0xd);" (assignment_expression "pcVar3 = (char *)malloc(0xd)" identifier = (cast_expression "(char *)malloc(0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0xd)" identifier (argument_list "(0xd)" ( number_literal ))))) ;) (if_statement "if (pcVar3 == (char *)0x0) goto LAB_0001b145;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001b145;" goto statement_identifier ;)) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "uVar5 = *param_1;" (assignment_expression "uVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar2 != 0) goto LAB_0001b0c7;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001b0c7;" goto statement_identifier ;)) (labeled_statement "LAB_0001b094:\n    pcVar6 = "%d";" statement_identifier : (expression_statement "pcVar6 = "%d";" (assignment_expression "pcVar6 = "%d"" identifier = (string_literal ""%d"" " string_content ")) ;)) }) (else_clause "else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }" else (compound_statement "{\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }" { (expression_statement "pcVar3 = (char *)FUN_0001ac50();" (assignment_expression "pcVar3 = (char *)FUN_0001ac50()" identifier = (cast_expression "(char *)FUN_0001ac50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ac50()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }" { (expression_statement "puVar4 = &DAT_00024c93;" (assignment_expression "puVar4 = &DAT_00024c93" identifier = (pointer_expression "&DAT_00024c93" & identifier)) ;) (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) }) (else_clause "else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }" else (compound_statement "{\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }" { (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar4 = &DAT_00024c92;" (assignment_expression "puVar4 = &DAT_00024c92" identifier = (pointer_expression "&DAT_00024c92" & identifier)) ;) }))) (expression_statement "__snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);" (call_expression "__snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5)" identifier (argument_list "(local_3e,0x1e,1,0x1e,puVar4,uVar5)" ( identifier , number_literal , number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "pcVar3 = strcat(pcVar3,local_3e);" (assignment_expression "pcVar3 = strcat(pcVar3,local_3e)" identifier = (call_expression "strcat(pcVar3,local_3e)" identifier (argument_list "(pcVar3,local_3e)" ( identifier , identifier )))) ;) (expression_statement "uVar5 = *param_1;" (assignment_expression "uVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (param_1[1] == 0) goto LAB_0001b094;" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_0001b094;" goto statement_identifier ;)) (labeled_statement "LAB_0001b0c7:\n    pcVar6 = "*%d";" statement_identifier : (expression_statement "pcVar6 = "*%d";" (assignment_expression "pcVar6 = "*%d"" identifier = (string_literal ""*%d"" " string_content ")) ;)) }))) (expression_statement "__snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);" (call_expression "__snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5)" identifier (argument_list "(local_3e,0x1e,1,0x1e,pcVar6,uVar5)" ( identifier , number_literal , number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "pcVar3 = strcat(pcVar3,local_3e);" (assignment_expression "pcVar3 = strcat(pcVar3,local_3e)" identifier = (call_expression "strcat(pcVar3,local_3e)" identifier (argument_list "(pcVar3,local_3e)" ( identifier , identifier )))) ;) (labeled_statement "LAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;" statement_identifier : (expression_statement "DAT_0002c1e0 = pcVar3;" (assignment_expression "DAT_0002c1e0 = pcVar3" identifier = identifier) ;)) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_00020960();" (call_expression "FUN_00020960()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * arg_str(arg_list *args)\n\n{\n  int iVar1;\n  arg_list *paVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  char sval [30];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (arglist2 != (char *)0x0) {\n    free(arglist2);\n  }\n  arglist2 = arglist1;\n  if (args == (arg_list *)0x0) {\n    pcVar4 = (char *)malloc(1);\n    if (pcVar4 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n    *pcVar4 = '\0';\n    goto LAB_0001b0ee;\n  }\n  paVar2 = args->next;\n  if (paVar2 == (arg_list *)0x0) {\n    pcVar4 = (char *)malloc(0xd);\n    if (pcVar4 == (char *)0x0) goto LAB_0001b145;\n    iVar3 = args->arg_is_var;\n    *pcVar4 = '\0';\n    iVar6 = args->av_name;\n    if (iVar3 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar7 = "%d";\n  }\n  else {\n    pcVar4 = make_arg_str(paVar2->next,0x19);\n    if (paVar2->arg_is_var == 0) {\n      puVar5 = &DAT_00024c93;\n      iVar6 = paVar2->av_name;\n    }\n    else {\n      iVar6 = paVar2->av_name;\n      puVar5 = &DAT_00024c92;\n    }\n    __snprintf_chk(sval,0x1e,1,0x1e,puVar5,iVar6);\n    pcVar4 = strcat(pcVar4,sval);\n    iVar6 = args->av_name;\n    if (args->arg_is_var == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar7 = "*%d";\n  }\n  __snprintf_chk(sval,0x1e,1,0x1e,pcVar7,iVar6);\n  pcVar4 = strcat(pcVar4,sval);\nLAB_0001b0ee:\n  arglist1 = pcVar4;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "char * arg_str(arg_list *args)\n\n{\n  int iVar1;\n  arg_list *paVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  char sval [30];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (arglist2 != (char *)0x0) {\n    free(arglist2);\n  }\n  arglist2 = arglist1;\n  if (args == (arg_list *)0x0) {\n    pcVar4 = (char *)malloc(1);\n    if (pcVar4 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n    *pcVar4 = '\0';\n    goto LAB_0001b0ee;\n  }\n  paVar2 = args->next;\n  if (paVar2 == (arg_list *)0x0) {\n    pcVar4 = (char *)malloc(0xd);\n    if (pcVar4 == (char *)0x0) goto LAB_0001b145;\n    iVar3 = args->arg_is_var;\n    *pcVar4 = '\0';\n    iVar6 = args->av_name;\n    if (iVar3 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar7 = "%d";\n  }\n  else {\n    pcVar4 = make_arg_str(paVar2->next,0x19);\n    if (paVar2->arg_is_var == 0) {\n      puVar5 = &DAT_00024c93;\n      iVar6 = paVar2->av_name;\n    }\n    else {\n      iVar6 = paVar2->av_name;\n      puVar5 = &DAT_00024c92;\n    }\n    __snprintf_chk(sval,0x1e,1,0x1e,puVar5,iVar6);\n    pcVar4 = strcat(pcVar4,sval);\n    iVar6 = args->av_name;\n    if (args->arg_is_var == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar7 = "*%d";\n  }\n  __snprintf_chk(sval,0x1e,1,0x1e,pcVar7,iVar6);\n  pcVar4 = strcat(pcVar4,sval);\nLAB_0001b0ee:\n  arglist1 = pcVar4;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* arg_str(arg_list *args)" * (function_declarator "arg_str(arg_list *args)" identifier (parameter_list "(arg_list *args)" ( (parameter_declaration "arg_list *args" type_identifier (pointer_declarator "*args" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  arg_list *paVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined *puVar5;\n  int iVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  char sval [30];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (arglist2 != (char *)0x0) {\n    free(arglist2);\n  }\n  arglist2 = arglist1;\n  if (args == (arg_list *)0x0) {\n    pcVar4 = (char *)malloc(1);\n    if (pcVar4 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n    *pcVar4 = '\0';\n    goto LAB_0001b0ee;\n  }\n  paVar2 = args->next;\n  if (paVar2 == (arg_list *)0x0) {\n    pcVar4 = (char *)malloc(0xd);\n    if (pcVar4 == (char *)0x0) goto LAB_0001b145;\n    iVar3 = args->arg_is_var;\n    *pcVar4 = '\0';\n    iVar6 = args->av_name;\n    if (iVar3 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar7 = "%d";\n  }\n  else {\n    pcVar4 = make_arg_str(paVar2->next,0x19);\n    if (paVar2->arg_is_var == 0) {\n      puVar5 = &DAT_00024c93;\n      iVar6 = paVar2->av_name;\n    }\n    else {\n      iVar6 = paVar2->av_name;\n      puVar5 = &DAT_00024c92;\n    }\n    __snprintf_chk(sval,0x1e,1,0x1e,puVar5,iVar6);\n    pcVar4 = strcat(pcVar4,sval);\n    iVar6 = args->av_name;\n    if (args->arg_is_var == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar7 = "*%d";\n  }\n  __snprintf_chk(sval,0x1e,1,0x1e,pcVar7,iVar6);\n  pcVar4 = strcat(pcVar4,sval);\nLAB_0001b0ee:\n  arglist1 = pcVar4;\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "arg_list *paVar2;" type_identifier (pointer_declarator "*paVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char sval [30];" primitive_type (array_declarator "sval [30]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (arglist2 != (char *)0x0) {\n    free(arglist2);\n  }" if (parenthesized_expression "(arglist2 != (char *)0x0)" ( (binary_expression "arglist2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(arglist2);\n  }" { (expression_statement "free(arglist2);" (call_expression "free(arglist2)" identifier (argument_list "(arglist2)" ( identifier ))) ;) })) (expression_statement "arglist2 = arglist1;" (assignment_expression "arglist2 = arglist1" identifier = identifier) ;) (if_statement "if (args == (arg_list *)0x0) {\n    pcVar4 = (char *)malloc(1);\n    if (pcVar4 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n    *pcVar4 = '\0';\n    goto LAB_0001b0ee;\n  }" if (parenthesized_expression "(args == (arg_list *)0x0)" ( (binary_expression "args == (arg_list *)0x0" identifier == (cast_expression "(arg_list *)0x0" ( (type_descriptor "arg_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4 = (char *)malloc(1);\n    if (pcVar4 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n    *pcVar4 = '\0';\n    goto LAB_0001b0ee;\n  }" { (expression_statement "pcVar4 = (char *)malloc(1);" (assignment_expression "pcVar4 = (char *)malloc(1)" identifier = (cast_expression "(char *)malloc(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (if_statement "if (pcVar4 == (char *)0x0) {\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }" { (labeled_statement "LAB_0001b145:\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();" statement_identifier : comment (expression_statement "out_of_memory();" (call_expression "out_of_memory()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0001b0ee;" goto statement_identifier ;) })) (expression_statement "paVar2 = args->next;" (assignment_expression "paVar2 = args->next" identifier = (field_expression "args->next" identifier -> field_identifier)) ;) (if_statement "if (paVar2 == (arg_list *)0x0) {\n    pcVar4 = (char *)malloc(0xd);\n    if (pcVar4 == (char *)0x0) goto LAB_0001b145;\n    iVar3 = args->arg_is_var;\n    *pcVar4 = '\0';\n    iVar6 = args->av_name;\n    if (iVar3 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar7 = "%d";\n  }\n  else {\n    pcVar4 = make_arg_str(paVar2->next,0x19);\n    if (paVar2->arg_is_var == 0) {\n      puVar5 = &DAT_00024c93;\n      iVar6 = paVar2->av_name;\n    }\n    else {\n      iVar6 = paVar2->av_name;\n      puVar5 = &DAT_00024c92;\n    }\n    __snprintf_chk(sval,0x1e,1,0x1e,puVar5,iVar6);\n    pcVar4 = strcat(pcVar4,sval);\n    iVar6 = args->av_name;\n    if (args->arg_is_var == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar7 = "*%d";\n  }" if (parenthesized_expression "(paVar2 == (arg_list *)0x0)" ( (binary_expression "paVar2 == (arg_list *)0x0" identifier == (cast_expression "(arg_list *)0x0" ( (type_descriptor "arg_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4 = (char *)malloc(0xd);\n    if (pcVar4 == (char *)0x0) goto LAB_0001b145;\n    iVar3 = args->arg_is_var;\n    *pcVar4 = '\0';\n    iVar6 = args->av_name;\n    if (iVar3 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar7 = "%d";\n  }" { (expression_statement "pcVar4 = (char *)malloc(0xd);" (assignment_expression "pcVar4 = (char *)malloc(0xd)" identifier = (cast_expression "(char *)malloc(0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0xd)" identifier (argument_list "(0xd)" ( number_literal ))))) ;) (if_statement "if (pcVar4 == (char *)0x0) goto LAB_0001b145;" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001b145;" goto statement_identifier ;)) (expression_statement "iVar3 = args->arg_is_var;" (assignment_expression "iVar3 = args->arg_is_var" identifier = (field_expression "args->arg_is_var" identifier -> field_identifier)) ;) (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar6 = args->av_name;" (assignment_expression "iVar6 = args->av_name" identifier = (field_expression "args->av_name" identifier -> field_identifier)) ;) (if_statement "if (iVar3 != 0) goto LAB_0001b0c7;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001b0c7;" goto statement_identifier ;)) (labeled_statement "LAB_0001b094:\n    pcVar7 = "%d";" statement_identifier : (expression_statement "pcVar7 = "%d";" (assignment_expression "pcVar7 = "%d"" identifier = (string_literal ""%d"" " string_content ")) ;)) }) (else_clause "else {\n    pcVar4 = make_arg_str(paVar2->next,0x19);\n    if (paVar2->arg_is_var == 0) {\n      puVar5 = &DAT_00024c93;\n      iVar6 = paVar2->av_name;\n    }\n    else {\n      iVar6 = paVar2->av_name;\n      puVar5 = &DAT_00024c92;\n    }\n    __snprintf_chk(sval,0x1e,1,0x1e,puVar5,iVar6);\n    pcVar4 = strcat(pcVar4,sval);\n    iVar6 = args->av_name;\n    if (args->arg_is_var == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar7 = "*%d";\n  }" else (compound_statement "{\n    pcVar4 = make_arg_str(paVar2->next,0x19);\n    if (paVar2->arg_is_var == 0) {\n      puVar5 = &DAT_00024c93;\n      iVar6 = paVar2->av_name;\n    }\n    else {\n      iVar6 = paVar2->av_name;\n      puVar5 = &DAT_00024c92;\n    }\n    __snprintf_chk(sval,0x1e,1,0x1e,puVar5,iVar6);\n    pcVar4 = strcat(pcVar4,sval);\n    iVar6 = args->av_name;\n    if (args->arg_is_var == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar7 = "*%d";\n  }" { (expression_statement "pcVar4 = make_arg_str(paVar2->next,0x19);" (assignment_expression "pcVar4 = make_arg_str(paVar2->next,0x19)" identifier = (call_expression "make_arg_str(paVar2->next,0x19)" identifier (argument_list "(paVar2->next,0x19)" ( (field_expression "paVar2->next" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (paVar2->arg_is_var == 0) {\n      puVar5 = &DAT_00024c93;\n      iVar6 = paVar2->av_name;\n    }\n    else {\n      iVar6 = paVar2->av_name;\n      puVar5 = &DAT_00024c92;\n    }" if (parenthesized_expression "(paVar2->arg_is_var == 0)" ( (binary_expression "paVar2->arg_is_var == 0" (field_expression "paVar2->arg_is_var" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      puVar5 = &DAT_00024c93;\n      iVar6 = paVar2->av_name;\n    }" { (expression_statement "puVar5 = &DAT_00024c93;" (assignment_expression "puVar5 = &DAT_00024c93" identifier = (pointer_expression "&DAT_00024c93" & identifier)) ;) (expression_statement "iVar6 = paVar2->av_name;" (assignment_expression "iVar6 = paVar2->av_name" identifier = (field_expression "paVar2->av_name" identifier -> field_identifier)) ;) }) (else_clause "else {\n      iVar6 = paVar2->av_name;\n      puVar5 = &DAT_00024c92;\n    }" else (compound_statement "{\n      iVar6 = paVar2->av_name;\n      puVar5 = &DAT_00024c92;\n    }" { (expression_statement "iVar6 = paVar2->av_name;" (assignment_expression "iVar6 = paVar2->av_name" identifier = (field_expression "paVar2->av_name" identifier -> field_identifier)) ;) (expression_statement "puVar5 = &DAT_00024c92;" (assignment_expression "puVar5 = &DAT_00024c92" identifier = (pointer_expression "&DAT_00024c92" & identifier)) ;) }))) (expression_statement "__snprintf_chk(sval,0x1e,1,0x1e,puVar5,iVar6);" (call_expression "__snprintf_chk(sval,0x1e,1,0x1e,puVar5,iVar6)" identifier (argument_list "(sval,0x1e,1,0x1e,puVar5,iVar6)" ( identifier , number_literal , number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "pcVar4 = strcat(pcVar4,sval);" (assignment_expression "pcVar4 = strcat(pcVar4,sval)" identifier = (call_expression "strcat(pcVar4,sval)" identifier (argument_list "(pcVar4,sval)" ( identifier , identifier )))) ;) (expression_statement "iVar6 = args->av_name;" (assignment_expression "iVar6 = args->av_name" identifier = (field_expression "args->av_name" identifier -> field_identifier)) ;) (if_statement "if (args->arg_is_var == 0) goto LAB_0001b094;" if (parenthesized_expression "(args->arg_is_var == 0)" ( (binary_expression "args->arg_is_var == 0" (field_expression "args->arg_is_var" identifier -> field_identifier) == number_literal) )) (goto_statement "goto LAB_0001b094;" goto statement_identifier ;)) (labeled_statement "LAB_0001b0c7:\n    pcVar7 = "*%d";" statement_identifier : (expression_statement "pcVar7 = "*%d";" (assignment_expression "pcVar7 = "*%d"" identifier = (string_literal ""*%d"" " string_content ")) ;)) }))) (expression_statement "__snprintf_chk(sval,0x1e,1,0x1e,pcVar7,iVar6);" (call_expression "__snprintf_chk(sval,0x1e,1,0x1e,pcVar7,iVar6)" identifier (argument_list "(sval,0x1e,1,0x1e,pcVar7,iVar6)" ( identifier , number_literal , number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "pcVar4 = strcat(pcVar4,sval);" (assignment_expression "pcVar4 = strcat(pcVar4,sval)" identifier = (call_expression "strcat(pcVar4,sval)" identifier (argument_list "(pcVar4,sval)" ( identifier , identifier )))) ;) (labeled_statement "LAB_0001b0ee:\n  arglist1 = pcVar4;" statement_identifier : (expression_statement "arglist1 = pcVar4;" (assignment_expression "arglist1 = pcVar4" identifier = identifier) ;)) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pcVar4;\n  }" { (return_statement "return pcVar4;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0001aff0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  char local_3e [30];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1aff9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }\n  DAT_0002c1dc = DAT_0002c1e0;\n  if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }\n  puVar1 = (undefined4 *)param_1[2];\n  if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }\n  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);\n  pcVar3 = strcat(pcVar3,local_3e);\nLAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00020960();\n}\n\n" (function_definition "void FUN_0001aff0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  char local_3e [30];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1aff9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }\n  DAT_0002c1dc = DAT_0002c1e0;\n  if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }\n  puVar1 = (undefined4 *)param_1[2];\n  if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }\n  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);\n  pcVar3 = strcat(pcVar3,local_3e);\nLAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00020960();\n}" primitive_type (function_declarator "FUN_0001aff0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  char local_3e [30];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1aff9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }\n  DAT_0002c1dc = DAT_0002c1e0;\n  if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }\n  puVar1 = (undefined4 *)param_1[2];\n  if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }\n  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);\n  pcVar3 = strcat(pcVar3,local_3e);\nLAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00020960();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char local_3e [30];" primitive_type (array_declarator "local_3e [30]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1aff9;" (assignment_expression "uStack_14 = 0x1aff9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }" if (parenthesized_expression "(DAT_0002c1dc != (void *)0x0)" ( (binary_expression "DAT_0002c1dc != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(DAT_0002c1dc);\n  }" { (expression_statement "free(DAT_0002c1dc);" (call_expression "free(DAT_0002c1dc)" identifier (argument_list "(DAT_0002c1dc)" ( identifier ))) ;) })) (expression_statement "DAT_0002c1dc = DAT_0002c1e0;" (assignment_expression "DAT_0002c1dc = DAT_0002c1e0" identifier = identifier) ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }" { (expression_statement "pcVar3 = (char *)malloc(1);" (assignment_expression "pcVar3 = (char *)malloc(1)" identifier = (cast_expression "(char *)malloc(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }" { (labeled_statement "LAB_0001b145:\n                    \n      FUN_0001ab50();" statement_identifier : (expression_statement "FUN_0001ab50();" (call_expression "FUN_0001ab50()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (goto_statement "goto LAB_0001b0ee;" goto statement_identifier ;) })) (expression_statement "puVar1 = (undefined4 *)param_1[2];" (assignment_expression "puVar1 = (undefined4 *)param_1[2]" identifier = (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }" { (expression_statement "pcVar3 = (char *)malloc(0xd);" (assignment_expression "pcVar3 = (char *)malloc(0xd)" identifier = (cast_expression "(char *)malloc(0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0xd)" identifier (argument_list "(0xd)" ( number_literal ))))) ;) (if_statement "if (pcVar3 == (char *)0x0) goto LAB_0001b145;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001b145;" goto statement_identifier ;)) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "uVar5 = *param_1;" (assignment_expression "uVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar2 != 0) goto LAB_0001b0c7;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001b0c7;" goto statement_identifier ;)) (labeled_statement "LAB_0001b094:\n    pcVar6 = "%d";" statement_identifier : (expression_statement "pcVar6 = "%d";" (assignment_expression "pcVar6 = "%d"" identifier = (string_literal ""%d"" " string_content ")) ;)) }) (else_clause "else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }" else (compound_statement "{\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }" { (expression_statement "pcVar3 = (char *)FUN_0001ac50();" (assignment_expression "pcVar3 = (char *)FUN_0001ac50()" identifier = (cast_expression "(char *)FUN_0001ac50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001ac50()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }" if (parenthesized_expression "(puVar1[1] == 0)" ( (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }" { (expression_statement "puVar4 = &DAT_00024c93;" (assignment_expression "puVar4 = &DAT_00024c93" identifier = (pointer_expression "&DAT_00024c93" & identifier)) ;) (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) }) (else_clause "else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }" else (compound_statement "{\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }" { (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "puVar4 = &DAT_00024c92;" (assignment_expression "puVar4 = &DAT_00024c92" identifier = (pointer_expression "&DAT_00024c92" & identifier)) ;) }))) (expression_statement "__snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);" (call_expression "__snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5)" identifier (argument_list "(local_3e,0x1e,1,0x1e,puVar4,uVar5)" ( identifier , number_literal , number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "pcVar3 = strcat(pcVar3,local_3e);" (assignment_expression "pcVar3 = strcat(pcVar3,local_3e)" identifier = (call_expression "strcat(pcVar3,local_3e)" identifier (argument_list "(pcVar3,local_3e)" ( identifier , identifier )))) ;) (expression_statement "uVar5 = *param_1;" (assignment_expression "uVar5 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (param_1[1] == 0) goto LAB_0001b094;" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_0001b094;" goto statement_identifier ;)) (labeled_statement "LAB_0001b0c7:\n    pcVar6 = "*%d";" statement_identifier : (expression_statement "pcVar6 = "*%d";" (assignment_expression "pcVar6 = "*%d"" identifier = (string_literal ""*%d"" " string_content ")) ;)) }))) (expression_statement "__snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);" (call_expression "__snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5)" identifier (argument_list "(local_3e,0x1e,1,0x1e,pcVar6,uVar5)" ( identifier , number_literal , number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "pcVar3 = strcat(pcVar3,local_3e);" (assignment_expression "pcVar3 = strcat(pcVar3,local_3e)" identifier = (call_expression "strcat(pcVar3,local_3e)" identifier (argument_list "(pcVar3,local_3e)" ( identifier , identifier )))) ;) (labeled_statement "LAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;" statement_identifier : (expression_statement "DAT_0002c1e0 = pcVar3;" (assignment_expression "DAT_0002c1e0 = pcVar3" identifier = identifier) ;)) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00020960();" (call_expression "FUN_00020960()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;)) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0001aff0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  char local_3e [30];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1aff9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }\n  DAT_0002c1dc = DAT_0002c1e0;\n  if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }\n  puVar1 = (undefined4 *)param_1[2];\n  if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }\n  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);\n  pcVar3 = strcat(pcVar3,local_3e);\nLAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00020960();\n}" (primitive_type "void") (function_declarator "FUN_0001aff0(undefined4 *param_1)" (identifier "FUN_0001aff0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  int in_GS_OFFSET;\n  char local_3e [30];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1aff9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }\n  DAT_0002c1dc = DAT_0002c1e0;\n  if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }\n  puVar1 = (undefined4 *)param_1[2];\n  if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }\n  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);\n  pcVar3 = strcat(pcVar3,local_3e);\nLAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00020960();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char local_3e [30];" (primitive_type "char") (array_declarator "local_3e [30]" (identifier "local_3e") ([ "[") (number_literal "30") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1aff9;" (assignment_expression "uStack_14 = 0x1aff9" (identifier "uStack_14") (= "=") (number_literal "0x1aff9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (DAT_0002c1dc != (void *)0x0) {\n    free(DAT_0002c1dc);\n  }" (if "if") (parenthesized_expression "(DAT_0002c1dc != (void *)0x0)" (( "(") (binary_expression "DAT_0002c1dc != (void *)0x0" (identifier "DAT_0002c1dc") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(DAT_0002c1dc);\n  }" ({ "{") (expression_statement "free(DAT_0002c1dc);" (call_expression "free(DAT_0002c1dc)" (identifier "free") (argument_list "(DAT_0002c1dc)" (( "(") (identifier "DAT_0002c1dc") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_0002c1dc = DAT_0002c1e0;" (assignment_expression "DAT_0002c1dc = DAT_0002c1e0" (identifier "DAT_0002c1dc") (= "=") (identifier "DAT_0002c1e0")) (; ";")) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }" (if "if") (parenthesized_expression "(param_1 == (undefined4 *)0x0)" (( "(") (binary_expression "param_1 == (undefined4 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar3 = (char *)malloc(1);\n    if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }\n    *pcVar3 = '\0';\n    goto LAB_0001b0ee;\n  }" ({ "{") (expression_statement "pcVar3 = (char *)malloc(1);" (assignment_expression "pcVar3 = (char *)malloc(1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)malloc(1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(1)" (identifier "malloc") (argument_list "(1)" (( "(") (number_literal "1") () ")"))))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_0001b145:\n                    \n      FUN_0001ab50();\n    }" ({ "{") (labeled_statement "LAB_0001b145:\n                    \n      FUN_0001ab50();" (statement_identifier "LAB_0001b145") (: ":") (expression_statement "FUN_0001ab50();" (call_expression "FUN_0001ab50()" (identifier "FUN_0001ab50") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (goto_statement "goto LAB_0001b0ee;" (goto "goto") (statement_identifier "LAB_0001b0ee") (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined4 *)param_1[2];" (assignment_expression "puVar1 = (undefined4 *)param_1[2]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)param_1[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }\n  else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar3 = (char *)malloc(0xd);\n    if (pcVar3 == (char *)0x0) goto LAB_0001b145;\n    iVar2 = param_1[1];\n    *pcVar3 = '\0';\n    uVar5 = *param_1;\n    if (iVar2 != 0) goto LAB_0001b0c7;\nLAB_0001b094:\n    pcVar6 = "%d";\n  }" ({ "{") (expression_statement "pcVar3 = (char *)malloc(0xd);" (assignment_expression "pcVar3 = (char *)malloc(0xd)" (identifier "pcVar3") (= "=") (cast_expression "(char *)malloc(0xd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0xd)" (identifier "malloc") (argument_list "(0xd)" (( "(") (number_literal "0xd") () ")"))))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) goto LAB_0001b145;" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0001b145;" (goto "goto") (statement_identifier "LAB_0001b145") (; ";"))) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" (identifier "iVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*pcVar3 = '\0';" (assignment_expression "*pcVar3 = '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "uVar5 = *param_1;" (assignment_expression "uVar5 = *param_1" (identifier "uVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0001b0c7;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001b0c7;" (goto "goto") (statement_identifier "LAB_0001b0c7") (; ";"))) (labeled_statement "LAB_0001b094:\n    pcVar6 = "%d";" (statement_identifier "LAB_0001b094") (: ":") (expression_statement "pcVar6 = "%d";" (assignment_expression "pcVar6 = "%d"" (identifier "pcVar6") (= "=") (string_literal ""%d"" (" """) (string_content "%d") (" """))) (; ";"))) (} "}")) (else_clause "else {\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }" (else "else") (compound_statement "{\n    pcVar3 = (char *)FUN_0001ac50();\n    if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }\n    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);\n    pcVar3 = strcat(pcVar3,local_3e);\n    uVar5 = *param_1;\n    if (param_1[1] == 0) goto LAB_0001b094;\nLAB_0001b0c7:\n    pcVar6 = "*%d";\n  }" ({ "{") (expression_statement "pcVar3 = (char *)FUN_0001ac50();" (assignment_expression "pcVar3 = (char *)FUN_0001ac50()" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_0001ac50()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001ac50()" (identifier "FUN_0001ac50") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (puVar1[1] == 0) {\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }\n    else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }" (if "if") (parenthesized_expression "(puVar1[1] == 0)" (( "(") (binary_expression "puVar1[1] == 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar4 = &DAT_00024c93;\n      uVar5 = *puVar1;\n    }" ({ "{") (expression_statement "puVar4 = &DAT_00024c93;" (assignment_expression "puVar4 = &DAT_00024c93" (identifier "puVar4") (= "=") (pointer_expression "&DAT_00024c93" (& "&") (identifier "DAT_00024c93"))) (; ";")) (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" (identifier "uVar5") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (} "}")) (else_clause "else {\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }" (else "else") (compound_statement "{\n      uVar5 = *puVar1;\n      puVar4 = &DAT_00024c92;\n    }" ({ "{") (expression_statement "uVar5 = *puVar1;" (assignment_expression "uVar5 = *puVar1" (identifier "uVar5") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "puVar4 = &DAT_00024c92;" (assignment_expression "puVar4 = &DAT_00024c92" (identifier "puVar4") (= "=") (pointer_expression "&DAT_00024c92" (& "&") (identifier "DAT_00024c92"))) (; ";")) (} "}")))) (expression_statement "__snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);" (call_expression "__snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5)" (identifier "__snprintf_chk") (argument_list "(local_3e,0x1e,1,0x1e,puVar4,uVar5)" (( "(") (identifier "local_3e") (, ",") (number_literal "0x1e") (, ",") (number_literal "1") (, ",") (number_literal "0x1e") (, ",") (identifier "puVar4") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "pcVar3 = strcat(pcVar3,local_3e);" (assignment_expression "pcVar3 = strcat(pcVar3,local_3e)" (identifier "pcVar3") (= "=") (call_expression "strcat(pcVar3,local_3e)" (identifier "strcat") (argument_list "(pcVar3,local_3e)" (( "(") (identifier "pcVar3") (, ",") (identifier "local_3e") () ")")))) (; ";")) (expression_statement "uVar5 = *param_1;" (assignment_expression "uVar5 = *param_1" (identifier "uVar5") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (param_1[1] == 0) goto LAB_0001b094;" (if "if") (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001b094;" (goto "goto") (statement_identifier "LAB_0001b094") (; ";"))) (labeled_statement "LAB_0001b0c7:\n    pcVar6 = "*%d";" (statement_identifier "LAB_0001b0c7") (: ":") (expression_statement "pcVar6 = "*%d";" (assignment_expression "pcVar6 = "*%d"" (identifier "pcVar6") (= "=") (string_literal ""*%d"" (" """) (string_content "*%d") (" """))) (; ";"))) (} "}")))) (expression_statement "__snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);" (call_expression "__snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5)" (identifier "__snprintf_chk") (argument_list "(local_3e,0x1e,1,0x1e,pcVar6,uVar5)" (( "(") (identifier "local_3e") (, ",") (number_literal "0x1e") (, ",") (number_literal "1") (, ",") (number_literal "0x1e") (, ",") (identifier "pcVar6") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "pcVar3 = strcat(pcVar3,local_3e);" (assignment_expression "pcVar3 = strcat(pcVar3,local_3e)" (identifier "pcVar3") (= "=") (call_expression "strcat(pcVar3,local_3e)" (identifier "strcat") (argument_list "(pcVar3,local_3e)" (( "(") (identifier "pcVar3") (, ",") (identifier "local_3e") () ")")))) (; ";")) (labeled_statement "LAB_0001b0ee:\n  DAT_0002c1e0 = pcVar3;" (statement_identifier "LAB_0001b0ee") (: ":") (expression_statement "DAT_0002c1e0 = pcVar3;" (assignment_expression "DAT_0002c1e0 = pcVar3" (identifier "DAT_0002c1e0") (= "=") (identifier "pcVar3")) (; ";"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00020960();" (call_expression "FUN_00020960()" (identifier "FUN_00020960") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

char * function_1(type_1 *var_4)

{
  int var_13;
  type_1 *var_8;
  int var_9;
  char *var_6;
  type_2 *puVar5;
  int iVar6;
  char *pcVar7;
  int var_1;
  char sval [30];
  
  var_13 = *(int *)(var_1 + 0x14);
  if (var_2 != (char *)0x0) {
    var_3(var_2);
  }
  var_2 = arglist1;
  if (var_4 == (type_1 *)0x0) {
    var_6 = (char *)var_5(1);
    if (var_6 == (char *)0x0) {
LAB_0001b145:
                    /* WARNING: Subroutine does not return */
      var_7();
    }
    *var_6 = '\0';
    goto LAB_0001b0ee;
  }
  var_8 = var_4->next;
  if (var_8 == (type_1 *)0x0) {
    var_6 = (char *)var_5(0xd);
    if (var_6 == (char *)0x0) goto LAB_0001b145;
    var_9 = var_4->arg_is_var;
    *var_6 = '\0';
    iVar6 = var_4->av_name;
    if (var_9 != 0) goto LAB_0001b0c7;
LAB_0001b094:
    pcVar7 = "%d";
  }
  else {
    var_6 = var_10(var_8->next,0x19);
    if (var_8->arg_is_var == 0) {
      puVar5 = &DAT_00024c93;
      iVar6 = var_8->av_name;
    }
    else {
      iVar6 = var_8->av_name;
      puVar5 = &DAT_00024c92;
    }
    var_11(sval,0x1e,1,0x1e,puVar5,iVar6);
    var_6 = var_12(var_6,sval);
    iVar6 = var_4->av_name;
    if (var_4->arg_is_var == 0) goto LAB_0001b094;
LAB_0001b0c7:
    pcVar7 = "*%d";
  }
  var_11(sval,0x1e,1,0x1e,pcVar7,iVar6);
  var_6 = var_12(var_6,sval);
LAB_0001b0ee:
  arglist1 = var_6;
  if (var_13 == *(int *)(var_1 + 0x14)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_14();
}


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

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

void MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  int iVar2;
  char *pcVar3;
  undefined *puVar4;
  undefined4 uVar5;
  char *pcVar6;
  int in_GS_OFFSET;
  char local_3e [30];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1aff9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (DAT_0002c1dc != (void *)0x0) {
    free(DAT_0002c1dc);
  }
  DAT_0002c1dc = DAT_0002c1e0;
  if (param_1 == (undefined4 *)0x0) {
    pcVar3 = (char *)malloc(1);
    if (pcVar3 == (char *)0x0) {
LAB_0001b145:
                    /* WARNING: Subroutine does not return */
      FUN_0001ab50();
    }
    *pcVar3 = '\0';
    goto LAB_0001b0ee;
  }
  puVar1 = (undefined4 *)param_1[2];
  if (puVar1 == (undefined4 *)0x0) {
    pcVar3 = (char *)malloc(0xd);
    if (pcVar3 == (char *)0x0) goto LAB_0001b145;
    iVar2 = param_1[1];
    *pcVar3 = '\0';
    uVar5 = *param_1;
    if (iVar2 != 0) goto LAB_0001b0c7;
LAB_0001b094:
    pcVar6 = "%d";
  }
  else {
    pcVar3 = (char *)FUN_0001ac50();
    if (puVar1[1] == 0) {
      puVar4 = &DAT_00024c93;
      uVar5 = *puVar1;
    }
    else {
      uVar5 = *puVar1;
      puVar4 = &DAT_00024c92;
    }
    __snprintf_chk(local_3e,0x1e,1,0x1e,puVar4,uVar5);
    pcVar3 = strcat(pcVar3,local_3e);
    uVar5 = *param_1;
    if (param_1[1] == 0) goto LAB_0001b094;
LAB_0001b0c7:
    pcVar6 = "*%d";
  }
  __snprintf_chk(local_3e,0x1e,1,0x1e,pcVar6,uVar5);
  pcVar3 = strcat(pcVar3,local_3e);
LAB_0001b0ee:
  DAT_0002c1e0 = pcVar3;
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00020960();
}

