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

void sym_id_add(char *spec,Table_Id which_table)

{
  size_t sVar1;
  sym_id *psVar2;
  uint uVar3;
  undefined4 *puVar4;
  byte bVar5;
  
  bVar5 = 0;
  sVar1 = strlen(spec);
  psVar2 = (sym_id *)xmalloc(sVar1 + 0x1b9);
  psVar2->next = (sym_id *)0x0;
  (psVar2->right).sym.cg.children = (arc *)0x0;
  puVar4 = (undefined4 *)((uint)&psVar2->spec & 0xfffffffc);
  uVar3 = (uint)((int)psVar2 + (0x1b8 - (int)puVar4)) >> 2;
  for (; uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
  }
  psVar2->spec = (char *)(psVar2 + 1);
  strcpy((char *)(psVar2 + 1),spec);
  psVar2->which_table = which_table;
  psVar2->next = id_list;
  id_list = psVar2;
  return;
}



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

void FUN_0001ce10(char *param_1,undefined4 param_2)

{
  size_t sVar1;
  undefined4 *puVar2;
  uint uVar3;
  undefined4 *puVar4;
  byte bVar5;
  
  bVar5 = 0;
  sVar1 = strlen(param_1);
  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);
  *puVar2 = 0;
  puVar2[0x6d] = 0;
  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);
  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;
      uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
  }
  puVar2[1] = puVar2 + 0x6e;
  strcpy((char *)(puVar2 + 0x6e),param_1);
  puVar2[2] = param_2;
  *puVar2 = DAT_0002d194;
  DAT_0002d194 = puVar2;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0xf1e7
SUB ESP,0x18
MOV EBP,dword ptr [ESP + 0x2c]
PUSH EBP
CALL 0x000122e0
ADD EAX,0x1b9
MOV dword ptr [ESP],EAX
CALL 0x000121d0
LEA EDI,[EAX + 0x4]
MOV ECX,EAX
MOV dword ptr [EAX],0x0
MOV ESI,EAX
MOV dword ptr [EAX + 0x1b4],0x0
AND EDI,0xfffffffc
XOR EAX,EAX
SUB ECX,EDI
ADD ECX,0x1b8
SHR ECX,0x2
STOSD.REP ES:EDI
LEA EAX,[ESI + 0x1b8]
MOV dword ptr [ESI + 0x4],EAX
POP EDX
POP ECX
PUSH EBP
PUSH EAX
CALL 0x00012210
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EBX + 0x1194]
MOV dword ptr [EBX + 0x1194],ESI
MOV dword ptr [ESI],EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001ce10(char *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(param_1);\n  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);\n  *puVar2 = 0;\n  puVar2[0x6d] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[1] = puVar2 + 0x6e;\n  strcpy((char *)(puVar2 + 0x6e),param_1);\n  puVar2[2] = param_2;\n  *puVar2 = DAT_0002d194;\n  DAT_0002d194 = puVar2;\n  return;\n}\n\n" comment (function_definition "void FUN_0001ce10(char *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(param_1);\n  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);\n  *puVar2 = 0;\n  puVar2[0x6d] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[1] = puVar2 + 0x6e;\n  strcpy((char *)(puVar2 + 0x6e),param_1);\n  puVar2[2] = param_2;\n  *puVar2 = DAT_0002d194;\n  DAT_0002d194 = puVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0001ce10(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(param_1);\n  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);\n  *puVar2 = 0;\n  puVar2[0x6d] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[1] = puVar2 + 0x6e;\n  strcpy((char *)(puVar2 + 0x6e),param_1);\n  puVar2[2] = param_2;\n  *puVar2 = DAT_0002d194;\n  DAT_0002d194 = puVar2;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9)" identifier = (cast_expression "(undefined4 *)xmalloc(sVar1 + 0x1b9)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 0x1b9)" identifier (argument_list "(sVar1 + 0x1b9)" ( (binary_expression "sVar1 + 0x1b9" identifier + number_literal) ))))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[0x6d] = 0;" (assignment_expression "puVar2[0x6d] = 0" (subscript_expression "puVar2[0x6d]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" ( (binary_expression "(int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "puVar2[1] = puVar2 + 0x6e;" (assignment_expression "puVar2[1] = puVar2 + 0x6e" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2 + 0x6e" identifier + number_literal)) ;) (expression_statement "strcpy((char *)(puVar2 + 0x6e),param_1);" (call_expression "strcpy((char *)(puVar2 + 0x6e),param_1)" identifier (argument_list "((char *)(puVar2 + 0x6e),param_1)" ( (cast_expression "(char *)(puVar2 + 0x6e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x6e)" ( (binary_expression "puVar2 + 0x6e" identifier + number_literal) ))) , identifier ))) ;) (expression_statement "puVar2[2] = param_2;" (assignment_expression "puVar2[2] = param_2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = DAT_0002d194;" (assignment_expression "*puVar2 = DAT_0002d194" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "DAT_0002d194 = puVar2;" (assignment_expression "DAT_0002d194 = puVar2" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid sym_id_add(char *spec,Table_Id which_table)\n\n{\n  size_t sVar1;\n  sym_id *psVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(spec);\n  psVar2 = (sym_id *)xmalloc(sVar1 + 0x1b9);\n  psVar2->next = (sym_id *)0x0;\n  (psVar2->right).sym.cg.children = (arc *)0x0;\n  puVar4 = (undefined4 *)((uint)&psVar2->spec & 0xfffffffc);\n  uVar3 = (uint)((int)psVar2 + (0x1b8 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  psVar2->spec = (char *)(psVar2 + 1);\n  strcpy((char *)(psVar2 + 1),spec);\n  psVar2->which_table = which_table;\n  psVar2->next = id_list;\n  id_list = psVar2;\n  return;\n}\n\n" comment (function_definition "void sym_id_add(char *spec,Table_Id which_table)\n\n{\n  size_t sVar1;\n  sym_id *psVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(spec);\n  psVar2 = (sym_id *)xmalloc(sVar1 + 0x1b9);\n  psVar2->next = (sym_id *)0x0;\n  (psVar2->right).sym.cg.children = (arc *)0x0;\n  puVar4 = (undefined4 *)((uint)&psVar2->spec & 0xfffffffc);\n  uVar3 = (uint)((int)psVar2 + (0x1b8 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  psVar2->spec = (char *)(psVar2 + 1);\n  strcpy((char *)(psVar2 + 1),spec);\n  psVar2->which_table = which_table;\n  psVar2->next = id_list;\n  id_list = psVar2;\n  return;\n}" primitive_type (function_declarator "sym_id_add(char *spec,Table_Id which_table)" identifier (parameter_list "(char *spec,Table_Id which_table)" ( (parameter_declaration "char *spec" primitive_type (pointer_declarator "*spec" * identifier)) , (parameter_declaration "Table_Id which_table" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  sym_id *psVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(spec);\n  psVar2 = (sym_id *)xmalloc(sVar1 + 0x1b9);\n  psVar2->next = (sym_id *)0x0;\n  (psVar2->right).sym.cg.children = (arc *)0x0;\n  puVar4 = (undefined4 *)((uint)&psVar2->spec & 0xfffffffc);\n  uVar3 = (uint)((int)psVar2 + (0x1b8 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  psVar2->spec = (char *)(psVar2 + 1);\n  strcpy((char *)(psVar2 + 1),spec);\n  psVar2->which_table = which_table;\n  psVar2->next = id_list;\n  id_list = psVar2;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "sym_id *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(spec);" (assignment_expression "sVar1 = strlen(spec)" identifier = (call_expression "strlen(spec)" identifier (argument_list "(spec)" ( identifier )))) ;) (expression_statement "psVar2 = (sym_id *)xmalloc(sVar1 + 0x1b9);" (assignment_expression "psVar2 = (sym_id *)xmalloc(sVar1 + 0x1b9)" identifier = (cast_expression "(sym_id *)xmalloc(sVar1 + 0x1b9)" ( (type_descriptor "sym_id *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 0x1b9)" identifier (argument_list "(sVar1 + 0x1b9)" ( (binary_expression "sVar1 + 0x1b9" identifier + number_literal) ))))) ;) (expression_statement "psVar2->next = (sym_id *)0x0;" (assignment_expression "psVar2->next = (sym_id *)0x0" (field_expression "psVar2->next" identifier -> field_identifier) = (cast_expression "(sym_id *)0x0" ( (type_descriptor "sym_id *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(psVar2->right).sym.cg.children = (arc *)0x0;" (assignment_expression "(psVar2->right).sym.cg.children = (arc *)0x0" (field_expression "(psVar2->right).sym.cg.children" (field_expression "(psVar2->right).sym.cg" (field_expression "(psVar2->right).sym" (parenthesized_expression "(psVar2->right)" ( (field_expression "psVar2->right" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(arc *)0x0" ( (type_descriptor "arc *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar4 = (undefined4 *)((uint)&psVar2->spec & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)&psVar2->spec & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)&psVar2->spec & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)&psVar2->spec & 0xfffffffc)" ( (binary_expression "(uint)&psVar2->spec & 0xfffffffc" (binary_expression "(uint)&psVar2->spec" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "psVar2->spec" identifier -> field_identifier)) & number_literal) )))) ;) (expression_statement "uVar3 = (uint)((int)psVar2 + (0x1b8 - (int)puVar4)) >> 2;" (assignment_expression "uVar3 = (uint)((int)psVar2 + (0x1b8 - (int)puVar4)) >> 2" identifier = (binary_expression "(uint)((int)psVar2 + (0x1b8 - (int)puVar4)) >> 2" (call_expression "(uint)((int)psVar2 + (0x1b8 - (int)puVar4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)psVar2 + (0x1b8 - (int)puVar4))" ( (binary_expression "(int)psVar2 + (0x1b8 - (int)puVar4)" (cast_expression "(int)psVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1b8 - (int)puVar4)" ( (binary_expression "0x1b8 - (int)puVar4" number_literal - (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" for ( ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "psVar2->spec = (char *)(psVar2 + 1);" (assignment_expression "psVar2->spec = (char *)(psVar2 + 1)" (field_expression "psVar2->spec" identifier -> field_identifier) = (cast_expression "(char *)(psVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 1)" ( (binary_expression "psVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "strcpy((char *)(psVar2 + 1),spec);" (call_expression "strcpy((char *)(psVar2 + 1),spec)" identifier (argument_list "((char *)(psVar2 + 1),spec)" ( (cast_expression "(char *)(psVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 1)" ( (binary_expression "psVar2 + 1" identifier + number_literal) ))) , identifier ))) ;) (expression_statement "psVar2->which_table = which_table;" (assignment_expression "psVar2->which_table = which_table" (field_expression "psVar2->which_table" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar2->next = id_list;" (assignment_expression "psVar2->next = id_list" (field_expression "psVar2->next" identifier -> field_identifier) = identifier) ;) (expression_statement "id_list = psVar2;" (assignment_expression "id_list = psVar2" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001ce10(char *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(param_1);\n  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);\n  *puVar2 = 0;\n  puVar2[0x6d] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[1] = puVar2 + 0x6e;\n  strcpy((char *)(puVar2 + 0x6e),param_1);\n  puVar2[2] = param_2;\n  *puVar2 = DAT_0002d194;\n  DAT_0002d194 = puVar2;\n  return;\n}\n\n" (function_definition "void FUN_0001ce10(char *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(param_1);\n  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);\n  *puVar2 = 0;\n  puVar2[0x6d] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[1] = puVar2 + 0x6e;\n  strcpy((char *)(puVar2 + 0x6e),param_1);\n  puVar2[2] = param_2;\n  *puVar2 = DAT_0002d194;\n  DAT_0002d194 = puVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0001ce10(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  size_t sVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(param_1);\n  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);\n  *puVar2 = 0;\n  puVar2[0x6d] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[1] = puVar2 + 0x6e;\n  strcpy((char *)(puVar2 + 0x6e),param_1);\n  puVar2[2] = param_2;\n  *puVar2 = DAT_0002d194;\n  DAT_0002d194 = puVar2;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9)" identifier = (cast_expression "(undefined4 *)xmalloc(sVar1 + 0x1b9)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar1 + 0x1b9)" identifier (argument_list "(sVar1 + 0x1b9)" ( (binary_expression "sVar1 + 0x1b9" identifier + number_literal) ))))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[0x6d] = 0;" (assignment_expression "puVar2[0x6d] = 0" (subscript_expression "puVar2[0x6d]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" for ( (assignment_expression "uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" ( (binary_expression "(int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(puVar2 + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "puVar2[1] = puVar2 + 0x6e;" (assignment_expression "puVar2[1] = puVar2 + 0x6e" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "puVar2 + 0x6e" identifier + number_literal)) ;) (expression_statement "strcpy((char *)(puVar2 + 0x6e),param_1);" (call_expression "strcpy((char *)(puVar2 + 0x6e),param_1)" identifier (argument_list "((char *)(puVar2 + 0x6e),param_1)" ( (cast_expression "(char *)(puVar2 + 0x6e)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x6e)" ( (binary_expression "puVar2 + 0x6e" identifier + number_literal) ))) , identifier ))) ;) (expression_statement "puVar2[2] = param_2;" (assignment_expression "puVar2[2] = param_2" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar2 = DAT_0002d194;" (assignment_expression "*puVar2 = DAT_0002d194" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "DAT_0002d194 = puVar2;" (assignment_expression "DAT_0002d194 = puVar2" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0001ce10(char *param_1,undefined4 param_2)\n\n{\n  size_t sVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(param_1);\n  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);\n  *puVar2 = 0;\n  puVar2[0x6d] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[1] = puVar2 + 0x6e;\n  strcpy((char *)(puVar2 + 0x6e),param_1);\n  puVar2[2] = param_2;\n  *puVar2 = DAT_0002d194;\n  DAT_0002d194 = puVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001ce10(char *param_1,undefined4 param_2)" (identifier "FUN_0001ce10") (parameter_list "(char *param_1,undefined4 param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  sVar1 = strlen(param_1);\n  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);\n  *puVar2 = 0;\n  puVar2[0x6d] = 0;\n  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);\n  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  puVar2[1] = puVar2 + 0x6e;\n  strcpy((char *)(puVar2 + 0x6e),param_1);\n  puVar2[2] = param_2;\n  *puVar2 = DAT_0002d194;\n  DAT_0002d194 = puVar2;\n  return;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar1 = strlen(param_1);" (assignment_expression "sVar1 = strlen(param_1)" (identifier "sVar1") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(sVar1 + 0x1b9)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar1 + 0x1b9)" (identifier "xmalloc") (argument_list "(sVar1 + 0x1b9)" (( "(") (binary_expression "sVar1 + 0x1b9" (identifier "sVar1") (+ "+") (number_literal "0x1b9")) () ")"))))) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x6d] = 0;" (assignment_expression "puVar2[0x6d] = 0" (subscript_expression "puVar2[0x6d]" (identifier "puVar2") ([ "[") (number_literal "0x6d") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;\n      uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" (for "for") (( "(") (assignment_expression "uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (identifier "uVar3") (= "=") (binary_expression "(uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc)))" (( "(") (binary_expression "(int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (parenthesized_expression "(0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc)" (number_literal "0x1b8") (- "-") (cast_expression "(int)((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" (identifier "puVar4") (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "puVar2[1] = puVar2 + 0x6e;" (assignment_expression "puVar2[1] = puVar2 + 0x6e" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "puVar2 + 0x6e" (identifier "puVar2") (+ "+") (number_literal "0x6e"))) (; ";")) (expression_statement "strcpy((char *)(puVar2 + 0x6e),param_1);" (call_expression "strcpy((char *)(puVar2 + 0x6e),param_1)" (identifier "strcpy") (argument_list "((char *)(puVar2 + 0x6e),param_1)" (( "(") (cast_expression "(char *)(puVar2 + 0x6e)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x6e)" (( "(") (binary_expression "puVar2 + 0x6e" (identifier "puVar2") (+ "+") (number_literal "0x6e")) () ")"))) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "puVar2[2] = param_2;" (assignment_expression "puVar2[2] = param_2" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*puVar2 = DAT_0002d194;" (assignment_expression "*puVar2 = DAT_0002d194" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "DAT_0002d194")) (; ";")) (expression_statement "DAT_0002d194 = puVar2;" (assignment_expression "DAT_0002d194 = puVar2" (identifier "DAT_0002d194") (= "=") (identifier "puVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *spec,type_1 which_table)

{
  size_t var_3;
  type_2 *var_6;
  type_3 var_4;
  type_4 *var_5;
  type_5 bVar5;
  
  bVar5 = 0;
  var_3 = var_1(spec);
  var_6 = (type_2 *)var_2(var_3 + 0x1b9);
  var_6->next = (type_2 *)0x0;
  (var_6->right).sym.cg.children = (type_6 *)0x0;
  var_5 = (type_4 *)((type_3)&var_6->spec & 0xfffffffc);
  var_4 = (type_3)((int)var_6 + (0x1b8 - (int)var_5)) >> 2;
  for (; var_4 != 0; var_4 = var_4 - 1) {
    *var_5 = 0;
    var_5 = var_5 + (type_3)bVar5 * -2 + 1;
  }
  var_6->spec = (char *)(var_6 + 1);
  var_7((char *)(var_6 + 1),spec);
  var_6->which_table = which_table;
  var_6->next = id_list;
  id_list = var_6;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) (for_statement initializer: (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))))))))) right: (number_literal))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement))))

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

void MASKED(char *param_1,undefined4 param_2)

{
  size_t sVar1;
  undefined4 *puVar2;
  uint uVar3;
  undefined4 *puVar4;
  byte bVar5;
  
  bVar5 = 0;
  sVar1 = strlen(param_1);
  puVar2 = (undefined4 *)xmalloc(sVar1 + 0x1b9);
  *puVar2 = 0;
  puVar2[0x6d] = 0;
  puVar4 = (undefined4 *)((uint)(puVar2 + 1) & 0xfffffffc);
  for (uVar3 = (uint)((int)puVar2 + (0x1b8 - (int)((uint)(puVar2 + 1) & 0xfffffffc))) >> 2;
      uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
  }
  puVar2[1] = puVar2 + 0x6e;
  strcpy((char *)(puVar2 + 0x6e),param_1);
  puVar2[2] = param_2;
  *puVar2 = DAT_0002d194;
  DAT_0002d194 = puVar2;
  return;
}

