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

debug_name * __regparm3
debug_add_to_namespace
          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,
          debug_object_linkage linkage)

{
  debug_unit *pdVar1;
  debug_name *pdVar2;
  debug_file *pdVar3;
  uint uVar4;
  uint uVar5;
  
  pdVar2 = (debug_name *)xmalloc(0x1c);
  uVar5 = 0;
  pdVar2->next = (debug_name *)0x0;
  uVar4 = (uint)&pdVar2->name & 0xfffffffc;
  *(undefined4 *)((int)&pdVar2->u + 4) = 0;
  do {
    *(undefined4 *)(uVar4 + uVar5) = 0;
    uVar5 = uVar5 + 4;
  } while (uVar5 < ((int)pdVar2 + (0x1c - uVar4) & 0xfffffffc));
  pdVar2->name = (char *)nsp;
  pdVar2->kind = (debug_object_kind)name;
  pdVar2->linkage = kind;
  pdVar1 = info->units;
  if (pdVar1 != (debug_unit *)0x0) {
    pdVar1->files->next = (debug_file *)pdVar2;
    pdVar1->files = (debug_file *)pdVar2;
    return pdVar2;
  }
  pdVar3 = (debug_file *)xmalloc(8);
  pdVar3->filename = (char *)pdVar3;
  pdVar3->next = (debug_file *)0x0;
  info->units = (debug_unit *)pdVar3;
  pdVar3->next = (debug_file *)pdVar2;
  pdVar3->filename = (char *)pdVar2;
  return pdVar2;
}



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

undefined4 * __regparm3
FUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  uint uVar4;
  
  puVar2 = (undefined4 *)xmalloc(0x1c);
  uVar4 = 0;
  *puVar2 = 0;
  puVar2[6] = 0;
  do {
    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;
    uVar4 = uVar4 + 4;
  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));
  puVar2[1] = param_2;
  puVar2[3] = param_3;
  puVar2[4] = param_4;
  iVar1 = *param_1;
  if (iVar1 != 0) {
    **(undefined4 **)(iVar1 + 4) = puVar2;
    *(undefined4 **)(iVar1 + 4) = puVar2;
    return puVar2;
  }
  puVar3 = (undefined4 *)xmalloc(8);
  puVar3[1] = puVar3;
  *puVar3 = 0;
  *param_1 = (int)puVar3;
  *puVar3 = puVar2;
  puVar3[1] = puVar2;
  return puVar2;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x22c63
SUB ESP,0x28
MOV dword ptr [EBP + -0x1c],EDX
PUSH 0x1c
MOV dword ptr [EBP + -0x20],ECX
CALL 0x000132e0
XOR EDX,EDX
LEA ECX,[EAX + 0x4]
MOV ESI,EAX
MOV dword ptr [EAX],0x0
AND ECX,0xfffffffc
MOV dword ptr [EAX + 0x18],0x0
SUB EAX,ECX
ADD EAX,0x1c
AND EAX,0xfffffffc
MOV dword ptr [ECX + EDX*0x1],0x0
ADD EDX,0x4
CMP EDX,EAX
JC 0x0001d3d2
MOV EAX,dword ptr [EBP + -0x1c]
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EBP + -0x20]
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [EBP + 0x8]
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x0001d410
MOV EDX,dword ptr [EAX + 0x4]
MOV dword ptr [EDX],ESI
MOV dword ptr [EAX + 0x4],ESI
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x8
CALL 0x000132e0
ADD ESP,0x10
MOV EDX,EAX
MOV dword ptr [EAX + 0x4],EAX
MOV dword ptr [EAX],0x0
MOV dword ptr [EDI],EAX
MOV dword ptr [EDX],ESI
MOV dword ptr [EAX + 0x4],ESI
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
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\nundefined4 * __regparm3\nFUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(0x1c);\n  uVar4 = 0;\n  *puVar2 = 0;\n  puVar2[6] = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  puVar2[1] = param_2;\n  puVar2[3] = param_3;\n  puVar2[4] = param_4;\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }\n  puVar3 = (undefined4 *)xmalloc(8);\n  puVar3[1] = puVar3;\n  *puVar3 = 0;\n  *param_1 = (int)puVar3;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar2;\n  return puVar2;\n}\n\n" comment (ERROR "undefined4 * __regparm3\nFUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (binary_expression "undefined4 * __regparm3\nFUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (argument_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (binary_expression "int *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) , identifier (ERROR "param_3" identifier) , identifier (ERROR "param_4" identifier) ))))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(0x1c);\n  uVar4 = 0;\n  *puVar2 = 0;\n  puVar2[6] = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  puVar2[1] = param_2;\n  puVar2[3] = param_3;\n  puVar2[4] = param_4;\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }\n  puVar3 = (undefined4 *)xmalloc(8);\n  puVar3[1] = puVar3;\n  *puVar3 = 0;\n  *param_1 = (int)puVar3;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar2;\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(0x1c);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x1c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = number_literal) ;) (do_statement "do {\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  }" { (expression_statement "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4)" * (cast_expression "(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4)" ( (binary_expression "((uint)(puVar2 + 1) & 0xfffffffc) + uVar4" (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) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar4 = uVar4 + 4;" (assignment_expression "uVar4 = uVar4 + 4" identifier = (binary_expression "uVar4 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1c - ((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (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) ))) )) ;) (expression_statement "puVar2[1] = param_2;" (assignment_expression "puVar2[1] = param_2" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[3] = param_3;" (assignment_expression "puVar2[3] = param_3" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_4;" (assignment_expression "puVar2[4] = param_4" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }" { (expression_statement "**(undefined4 **)(iVar1 + 4) = puVar2;" (assignment_expression "**(undefined4 **)(iVar1 + 4) = puVar2" (pointer_expression "**(undefined4 **)(iVar1 + 4)" * (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar1 + 4) = puVar2;" (assignment_expression "*(undefined4 **)(iVar1 + 4) = puVar2" (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar3 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "puVar3[1] = puVar3;" (assignment_expression "puVar3[1] = puVar3" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "*param_1 = (int)puVar3;" (assignment_expression "*param_1 = (int)puVar3" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*puVar3 = puVar2;" (assignment_expression "*puVar3 = puVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[1] = puVar2;" (assignment_expression "puVar3[1] = puVar2" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar2;" return identifier ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\ndebug_name * __regparm3\ndebug_add_to_namespace\n          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)\n\n{\n  debug_unit *pdVar1;\n  debug_name *pdVar2;\n  debug_file *pdVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  pdVar2 = (debug_name *)xmalloc(0x1c);\n  uVar5 = 0;\n  pdVar2->next = (debug_name *)0x0;\n  uVar4 = (uint)&pdVar2->name & 0xfffffffc;\n  *(undefined4 *)((int)&pdVar2->u + 4) = 0;\n  do {\n    *(undefined4 *)(uVar4 + uVar5) = 0;\n    uVar5 = uVar5 + 4;\n  } while (uVar5 < ((int)pdVar2 + (0x1c - uVar4) & 0xfffffffc));\n  pdVar2->name = (char *)nsp;\n  pdVar2->kind = (debug_object_kind)name;\n  pdVar2->linkage = kind;\n  pdVar1 = info->units;\n  if (pdVar1 != (debug_unit *)0x0) {\n    pdVar1->files->next = (debug_file *)pdVar2;\n    pdVar1->files = (debug_file *)pdVar2;\n    return pdVar2;\n  }\n  pdVar3 = (debug_file *)xmalloc(8);\n  pdVar3->filename = (char *)pdVar3;\n  pdVar3->next = (debug_file *)0x0;\n  info->units = (debug_unit *)pdVar3;\n  pdVar3->next = (debug_file *)pdVar2;\n  pdVar3->filename = (char *)pdVar2;\n  return pdVar2;\n}\n\n" comment (ERROR "debug_name * __regparm3\ndebug_add_to_namespace\n          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)" (binary_expression "debug_name * __regparm3\ndebug_add_to_namespace\n          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)" identifier * (ERROR "__regparm3" identifier) (call_expression "debug_add_to_namespace\n          (debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)" identifier (argument_list "(debug_handle *info,debug_namespace **nsp,char *name,debug_object_kind kind,\n          debug_object_linkage linkage)" ( (binary_expression "debug_handle *info" identifier * identifier) , (binary_expression "debug_namespace **nsp" identifier * (pointer_expression "*nsp" * identifier)) , (binary_expression "char *name" identifier * identifier) , identifier (ERROR "kind" identifier) , identifier (ERROR "linkage" identifier) ))))) (compound_statement "{\n  debug_unit *pdVar1;\n  debug_name *pdVar2;\n  debug_file *pdVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  pdVar2 = (debug_name *)xmalloc(0x1c);\n  uVar5 = 0;\n  pdVar2->next = (debug_name *)0x0;\n  uVar4 = (uint)&pdVar2->name & 0xfffffffc;\n  *(undefined4 *)((int)&pdVar2->u + 4) = 0;\n  do {\n    *(undefined4 *)(uVar4 + uVar5) = 0;\n    uVar5 = uVar5 + 4;\n  } while (uVar5 < ((int)pdVar2 + (0x1c - uVar4) & 0xfffffffc));\n  pdVar2->name = (char *)nsp;\n  pdVar2->kind = (debug_object_kind)name;\n  pdVar2->linkage = kind;\n  pdVar1 = info->units;\n  if (pdVar1 != (debug_unit *)0x0) {\n    pdVar1->files->next = (debug_file *)pdVar2;\n    pdVar1->files = (debug_file *)pdVar2;\n    return pdVar2;\n  }\n  pdVar3 = (debug_file *)xmalloc(8);\n  pdVar3->filename = (char *)pdVar3;\n  pdVar3->next = (debug_file *)0x0;\n  info->units = (debug_unit *)pdVar3;\n  pdVar3->next = (debug_file *)pdVar2;\n  pdVar3->filename = (char *)pdVar2;\n  return pdVar2;\n}" { (declaration "debug_unit *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_name *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "debug_file *pdVar3;" type_identifier (pointer_declarator "*pdVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "pdVar2 = (debug_name *)xmalloc(0x1c);" (assignment_expression "pdVar2 = (debug_name *)xmalloc(0x1c)" identifier = (cast_expression "(debug_name *)xmalloc(0x1c)" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "pdVar2->next = (debug_name *)0x0;" (assignment_expression "pdVar2->next = (debug_name *)0x0" (field_expression "pdVar2->next" identifier -> field_identifier) = (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar4 = (uint)&pdVar2->name & 0xfffffffc;" (assignment_expression "uVar4 = (uint)&pdVar2->name & 0xfffffffc" identifier = (binary_expression "(uint)&pdVar2->name & 0xfffffffc" (binary_expression "(uint)&pdVar2->name" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "pdVar2->name" identifier -> field_identifier)) & number_literal)) ;) (expression_statement "*(undefined4 *)((int)&pdVar2->u + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pdVar2->u + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pdVar2->u + 4)" * (cast_expression "(undefined4 *)((int)&pdVar2->u + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pdVar2->u + 4)" ( (binary_expression "(int)&pdVar2->u + 4" (cast_expression "(int)&pdVar2->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pdVar2->u" & (field_expression "pdVar2->u" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (do_statement "do {\n    *(undefined4 *)(uVar4 + uVar5) = 0;\n    uVar5 = uVar5 + 4;\n  } while (uVar5 < ((int)pdVar2 + (0x1c - uVar4) & 0xfffffffc));" do (compound_statement "{\n    *(undefined4 *)(uVar4 + uVar5) = 0;\n    uVar5 = uVar5 + 4;\n  }" { (expression_statement "*(undefined4 *)(uVar4 + uVar5) = 0;" (assignment_expression "*(undefined4 *)(uVar4 + uVar5) = 0" (pointer_expression "*(undefined4 *)(uVar4 + uVar5)" * (cast_expression "(undefined4 *)(uVar4 + uVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + uVar5)" ( (binary_expression "uVar4 + uVar5" identifier + identifier) )))) = number_literal) ;) (expression_statement "uVar5 = uVar5 + 4;" (assignment_expression "uVar5 = uVar5 + 4" identifier = (binary_expression "uVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < ((int)pdVar2 + (0x1c - uVar4) & 0xfffffffc))" ( (binary_expression "uVar5 < ((int)pdVar2 + (0x1c - uVar4) & 0xfffffffc)" identifier < (parenthesized_expression "((int)pdVar2 + (0x1c - uVar4) & 0xfffffffc)" ( (binary_expression "(int)pdVar2 + (0x1c - uVar4) & 0xfffffffc" (binary_expression "(int)pdVar2 + (0x1c - uVar4)" (cast_expression "(int)pdVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1c - uVar4)" ( (binary_expression "0x1c - uVar4" number_literal - identifier) ))) & number_literal) ))) )) ;) (expression_statement "pdVar2->name = (char *)nsp;" (assignment_expression "pdVar2->name = (char *)nsp" (field_expression "pdVar2->name" identifier -> field_identifier) = (cast_expression "(char *)nsp" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pdVar2->kind = (debug_object_kind)name;" (assignment_expression "pdVar2->kind = (debug_object_kind)name" (field_expression "pdVar2->kind" identifier -> field_identifier) = (cast_expression "(debug_object_kind)name" ( (type_descriptor "debug_object_kind" type_identifier) ) identifier)) ;) (expression_statement "pdVar2->linkage = kind;" (assignment_expression "pdVar2->linkage = kind" (field_expression "pdVar2->linkage" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar1 = info->units;" (assignment_expression "pdVar1 = info->units" identifier = (field_expression "info->units" identifier -> field_identifier)) ;) (if_statement "if (pdVar1 != (debug_unit *)0x0) {\n    pdVar1->files->next = (debug_file *)pdVar2;\n    pdVar1->files = (debug_file *)pdVar2;\n    return pdVar2;\n  }" if (parenthesized_expression "(pdVar1 != (debug_unit *)0x0)" ( (binary_expression "pdVar1 != (debug_unit *)0x0" identifier != (cast_expression "(debug_unit *)0x0" ( (type_descriptor "debug_unit *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pdVar1->files->next = (debug_file *)pdVar2;\n    pdVar1->files = (debug_file *)pdVar2;\n    return pdVar2;\n  }" { (expression_statement "pdVar1->files->next = (debug_file *)pdVar2;" (assignment_expression "pdVar1->files->next = (debug_file *)pdVar2" (field_expression "pdVar1->files->next" (field_expression "pdVar1->files" identifier -> field_identifier) -> field_identifier) = (cast_expression "(debug_file *)pdVar2" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pdVar1->files = (debug_file *)pdVar2;" (assignment_expression "pdVar1->files = (debug_file *)pdVar2" (field_expression "pdVar1->files" identifier -> field_identifier) = (cast_expression "(debug_file *)pdVar2" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return pdVar2;" return identifier ;) })) (expression_statement "pdVar3 = (debug_file *)xmalloc(8);" (assignment_expression "pdVar3 = (debug_file *)xmalloc(8)" identifier = (cast_expression "(debug_file *)xmalloc(8)" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pdVar3->filename = (char *)pdVar3;" (assignment_expression "pdVar3->filename = (char *)pdVar3" (field_expression "pdVar3->filename" identifier -> field_identifier) = (cast_expression "(char *)pdVar3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pdVar3->next = (debug_file *)0x0;" (assignment_expression "pdVar3->next = (debug_file *)0x0" (field_expression "pdVar3->next" identifier -> field_identifier) = (cast_expression "(debug_file *)0x0" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "info->units = (debug_unit *)pdVar3;" (assignment_expression "info->units = (debug_unit *)pdVar3" (field_expression "info->units" identifier -> field_identifier) = (cast_expression "(debug_unit *)pdVar3" ( (type_descriptor "debug_unit *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pdVar3->next = (debug_file *)pdVar2;" (assignment_expression "pdVar3->next = (debug_file *)pdVar2" (field_expression "pdVar3->next" identifier -> field_identifier) = (cast_expression "(debug_file *)pdVar2" ( (type_descriptor "debug_file *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pdVar3->filename = (char *)pdVar2;" (assignment_expression "pdVar3->filename = (char *)pdVar2" (field_expression "pdVar3->filename" identifier -> field_identifier) = (cast_expression "(char *)pdVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return pdVar2;" return identifier ;) }))
(translation_unit "undefined4 * __regparm3\nFUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(0x1c);\n  uVar4 = 0;\n  *puVar2 = 0;\n  puVar2[6] = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  puVar2[1] = param_2;\n  puVar2[3] = param_3;\n  puVar2[4] = param_4;\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }\n  puVar3 = (undefined4 *)xmalloc(8);\n  puVar3[1] = puVar3;\n  *puVar3 = 0;\n  *param_1 = (int)puVar3;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar2;\n  return puVar2;\n}\n\n" (ERROR "undefined4 * __regparm3\nFUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (binary_expression "undefined4 * __regparm3\nFUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (argument_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (binary_expression "int *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) , identifier (ERROR "param_3" identifier) , identifier (ERROR "param_4" identifier) ))))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(0x1c);\n  uVar4 = 0;\n  *puVar2 = 0;\n  puVar2[6] = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  puVar2[1] = param_2;\n  puVar2[3] = param_3;\n  puVar2[4] = param_4;\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }\n  puVar3 = (undefined4 *)xmalloc(8);\n  puVar3[1] = puVar3;\n  *puVar3 = 0;\n  *param_1 = (int)puVar3;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar2;\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(0x1c);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x1c)" identifier = (cast_expression "(undefined4 *)xmalloc(0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = number_literal) ;) (do_statement "do {\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  }" { (expression_statement "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4)" * (cast_expression "(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4)" ( (binary_expression "((uint)(puVar2 + 1) & 0xfffffffc) + uVar4" (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) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar4 = uVar4 + 4;" (assignment_expression "uVar4 = uVar4 + 4" identifier = (binary_expression "uVar4 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1c - ((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (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) ))) )) ;) (expression_statement "puVar2[1] = param_2;" (assignment_expression "puVar2[1] = param_2" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[3] = param_3;" (assignment_expression "puVar2[3] = param_3" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_4;" (assignment_expression "puVar2[4] = param_4" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }" { (expression_statement "**(undefined4 **)(iVar1 + 4) = puVar2;" (assignment_expression "**(undefined4 **)(iVar1 + 4) = puVar2" (pointer_expression "**(undefined4 **)(iVar1 + 4)" * (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar1 + 4) = puVar2;" (assignment_expression "*(undefined4 **)(iVar1 + 4) = puVar2" (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar3 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "puVar3[1] = puVar3;" (assignment_expression "puVar3[1] = puVar3" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "*param_1 = (int)puVar3;" (assignment_expression "*param_1 = (int)puVar3" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*puVar3 = puVar2;" (assignment_expression "*puVar3 = puVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[1] = puVar2;" (assignment_expression "puVar3[1] = puVar2" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar2;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , IDENT (ERROR IDENT) , IDENT (ERROR IDENT) , IDENT (ERROR IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))) ))) & LIT) ))) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) }))
(ERROR "undefined4 * __regparm3\nFUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (binary_expression "undefined4 * __regparm3\nFUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "undefined4") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_0001d390(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0001d390") (argument_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (binary_expression "int *param_1" (identifier "int") (* "*") (identifier "param_1")) (, ",") (identifier "undefined4") (ERROR "param_2" (identifier "param_2")) (, ",") (identifier "undefined4") (ERROR "param_3" (identifier "param_3")) (, ",") (identifier "undefined4") (ERROR "param_4" (identifier "param_4")) () ")"))))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  \n  puVar2 = (undefined4 *)xmalloc(0x1c);\n  uVar4 = 0;\n  *puVar2 = 0;\n  puVar2[6] = 0;\n  do {\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n  puVar2[1] = param_2;\n  puVar2[3] = param_3;\n  puVar2[4] = param_4;\n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }\n  puVar3 = (undefined4 *)xmalloc(8);\n  puVar3[1] = puVar3;\n  *puVar3 = 0;\n  *param_1 = (int)puVar3;\n  *puVar3 = puVar2;\n  puVar3[1] = puVar2;\n  return puVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "puVar2 = (undefined4 *)xmalloc(0x1c);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x1c)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x1c)" (identifier "xmalloc") (argument_list "(0x1c)" (( "(") (number_literal "0x1c") () ")"))))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[6] = 0;" (assignment_expression "puVar2[6] = 0" (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));" (do "do") (compound_statement "{\n    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;\n    uVar4 = uVar4 + 4;\n  }" ({ "{") (expression_statement "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4)" (* "*") (cast_expression "(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4)" (( "(") (binary_expression "((uint)(puVar2 + 1) & 0xfffffffc) + uVar4" (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")) () ")")) (+ "+") (identifier "uVar4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = uVar4 + 4;" (assignment_expression "uVar4 = uVar4 + 4" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 4" (identifier "uVar4") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc))" (( "(") (binary_expression "uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" (identifier "uVar4") (< "<") (parenthesized_expression "((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" (( "(") (binary_expression "(int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (parenthesized_expression "(0x1c - ((uint)(puVar2 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)" (number_literal "0x1c") (- "-") (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 "0xfffffffc")) () ")"))) () ")")) (; ";")) (expression_statement "puVar2[1] = param_2;" (assignment_expression "puVar2[1] = param_2" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar2[3] = param_3;" (assignment_expression "puVar2[3] = param_3" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar2[4] = param_4;" (assignment_expression "puVar2[4] = param_4" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    **(undefined4 **)(iVar1 + 4) = puVar2;\n    *(undefined4 **)(iVar1 + 4) = puVar2;\n    return puVar2;\n  }" ({ "{") (expression_statement "**(undefined4 **)(iVar1 + 4) = puVar2;" (assignment_expression "**(undefined4 **)(iVar1 + 4) = puVar2" (pointer_expression "**(undefined4 **)(iVar1 + 4)" (* "*") (pointer_expression "*(undefined4 **)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "*(undefined4 **)(iVar1 + 4) = puVar2;" (assignment_expression "*(undefined4 **)(iVar1 + 4) = puVar2" (pointer_expression "*(undefined4 **)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(8)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)xmalloc(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "puVar3[1] = puVar3;" (assignment_expression "puVar3[1] = puVar3" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = (int)puVar3;" (assignment_expression "*param_1 = (int)puVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3"))) (; ";")) (expression_statement "*puVar3 = puVar2;" (assignment_expression "*puVar3 = puVar2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar3[1] = puVar2;" (assignment_expression "puVar3[1] = puVar2" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))

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

type_2 * __regparm3
debug_add_to_namespace
          (debug_handle *info,debug_namespace **nsp,char *name,type_6 kind,
          debug_object_linkage linkage)

{
  type_1 *var_4;
  type_2 *pdVar2;
  type_3 *pdVar3;
  type_4 var_2;
  type_4 var_3;
  
  pdVar2 = (type_2 *)var_1(0x1c);
  var_3 = 0;
  pdVar2->next = (type_2 *)0x0;
  var_2 = (type_4)&pdVar2->name & 0xfffffffc;
  *(type_5 *)((int)&pdVar2->u + 4) = 0;
  do {
    *(type_5 *)(var_2 + var_3) = 0;
    var_3 = var_3 + 4;
  } while (var_3 < ((int)pdVar2 + (0x1c - var_2) & 0xfffffffc));
  pdVar2->name = (char *)nsp;
  pdVar2->kind = (type_6)name;
  pdVar2->linkage = kind;
  var_4 = info->units;
  if (var_4 != (type_1 *)0x0) {
    var_4->files->next = (type_3 *)pdVar2;
    var_4->files = (type_3 *)pdVar2;
    return pdVar2;
  }
  pdVar3 = (type_3 *)var_1(8);
  pdVar3->filename = (char *)pdVar3;
  pdVar3->next = (type_3 *)0x0;
  info->units = (type_1 *)pdVar3;
  pdVar3->next = (type_3 *)pdVar2;
  pdVar3->filename = (char *)pdVar2;
  return pdVar2;
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier) (ERROR (identifier)) (identifier) (ERROR (identifier)) (identifier) (ERROR (identifier)))))) (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (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 (number_literal)))))) (expression_statement (assignment_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))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (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)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (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 (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (identifier))))

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

undefined4 * __regparm3
MASKED(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  uint uVar4;
  
  puVar2 = (undefined4 *)xmalloc(0x1c);
  uVar4 = 0;
  *puVar2 = 0;
  puVar2[6] = 0;
  do {
    *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar4) = 0;
    uVar4 = uVar4 + 4;
  } while (uVar4 < ((int)puVar2 + (0x1c - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));
  puVar2[1] = param_2;
  puVar2[3] = param_3;
  puVar2[4] = param_4;
  iVar1 = *param_1;
  if (iVar1 != 0) {
    **(undefined4 **)(iVar1 + 4) = puVar2;
    *(undefined4 **)(iVar1 + 4) = puVar2;
    return puVar2;
  }
  puVar3 = (undefined4 *)xmalloc(8);
  puVar3[1] = puVar3;
  *puVar3 = 0;
  *param_1 = (int)puVar3;
  *puVar3 = puVar2;
  puVar3[1] = puVar2;
  return puVar2;
}

