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

fde_entry * alloc_fde_entry(void)

{
  frchainS *pfVar1;
  uint uVar2;
  fde_entry *pfVar3;
  fde_entry *pfVar4;
  frch_cfi_data *pfVar5;
  
  pfVar4 = (fde_entry *)xcalloc(1,0x60);
  pfVar1 = frchain_now;
  pfVar5 = (frch_cfi_data *)xcalloc(1,0x14);
  pfVar1->frch_cfi_data = pfVar5;
  frchain_now->frch_cfi_data->cur_fde_data = pfVar4;
  pfVar3 = pfVar4;
  *last_fde_data = pfVar4;
  last_fde_data = &pfVar3->next;
  pfVar4->last = &pfVar4->data;
  pfVar4->per_encoding = 0xff;
  uVar2 = x86_dwarf2_return_column;
  pfVar4->lsda_encoding = 0xff;
  pfVar4->eh_header_type = 0;
  pfVar4->return_column = uVar2;
  return pfVar4;
}



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

undefined * FUN_0001d570(void)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 uVar4;
  
  puVar3 = (undefined *)xcalloc(1,0x60);
  iVar1 = DAT_00089a08;
  uVar4 = xcalloc(1,0x14);
  *(undefined4 *)(iVar1 + 0x48) = uVar4;
  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;
  puVar2 = puVar3;
  *(undefined **)PTR_DAT_00080214 = puVar3;
  PTR_DAT_00080214 = puVar2;
  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;
  *(undefined2 *)(puVar3 + 0x14) = 0xffff;
  uVar4 = DAT_00089af0;
  *(undefined4 *)(puVar3 + 0x4c) = 0;
  *(undefined4 *)(puVar3 + 0x44) = uVar4;
  return puVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016000
ADD EBX,0x62a87
SUB ESP,0x14
PUSH 0x60
PUSH 0x1
CALL 0x00014750
LEA EDI,[EBX + 0x9a08]
MOV ESI,EAX
POP EAX
POP EDX
PUSH 0x14
PUSH 0x1
MOV EBP,dword ptr [EDI]
CALL 0x00014750
MOV ECX,0xffffffff
MOV dword ptr [EBP + 0x48],EAX
MOV EAX,dword ptr [EDI]
MOV EAX,dword ptr [EAX + 0x48]
MOV dword ptr [EAX],ESI
MOV EAX,dword ptr [EBX + 0x214]
MOV dword ptr [EBX + 0x214],ESI
MOV dword ptr [EAX],ESI
LEA EAX,[ESI + 0xc]
MOV dword ptr [ESI + 0x10],EAX
LEA EAX,[EBX + 0x9af0]
MOV word ptr [ESI + 0x14],CX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESI + 0x4c],0x0
MOV dword ptr [ESI + 0x44],EAX
ADD ESP,0x1c
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\nundefined * FUN_0001d570(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  \n  puVar3 = (undefined *)xcalloc(1,0x60);\n  iVar1 = DAT_00089a08;\n  uVar4 = xcalloc(1,0x14);\n  *(undefined4 *)(iVar1 + 0x48) = uVar4;\n  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;\n  puVar2 = puVar3;\n  *(undefined **)PTR_DAT_00080214 = puVar3;\n  PTR_DAT_00080214 = puVar2;\n  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;\n  *(undefined2 *)(puVar3 + 0x14) = 0xffff;\n  uVar4 = DAT_00089af0;\n  *(undefined4 *)(puVar3 + 0x4c) = 0;\n  *(undefined4 *)(puVar3 + 0x44) = uVar4;\n  return puVar3;\n}\n\n" comment (function_definition "undefined * FUN_0001d570(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  \n  puVar3 = (undefined *)xcalloc(1,0x60);\n  iVar1 = DAT_00089a08;\n  uVar4 = xcalloc(1,0x14);\n  *(undefined4 *)(iVar1 + 0x48) = uVar4;\n  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;\n  puVar2 = puVar3;\n  *(undefined **)PTR_DAT_00080214 = puVar3;\n  PTR_DAT_00080214 = puVar2;\n  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;\n  *(undefined2 *)(puVar3 + 0x14) = 0xffff;\n  uVar4 = DAT_00089af0;\n  *(undefined4 *)(puVar3 + 0x4c) = 0;\n  *(undefined4 *)(puVar3 + 0x44) = uVar4;\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_0001d570(void)" * (function_declarator "FUN_0001d570(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  \n  puVar3 = (undefined *)xcalloc(1,0x60);\n  iVar1 = DAT_00089a08;\n  uVar4 = xcalloc(1,0x14);\n  *(undefined4 *)(iVar1 + 0x48) = uVar4;\n  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;\n  puVar2 = puVar3;\n  *(undefined **)PTR_DAT_00080214 = puVar3;\n  PTR_DAT_00080214 = puVar2;\n  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;\n  *(undefined2 *)(puVar3 + 0x14) = 0xffff;\n  uVar4 = DAT_00089af0;\n  *(undefined4 *)(puVar3 + 0x4c) = 0;\n  *(undefined4 *)(puVar3 + 0x44) = uVar4;\n  return puVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "puVar3 = (undefined *)xcalloc(1,0x60);" (assignment_expression "puVar3 = (undefined *)xcalloc(1,0x60)" identifier = (cast_expression "(undefined *)xcalloc(1,0x60)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x60)" identifier (argument_list "(1,0x60)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar1 = DAT_00089a08;" (assignment_expression "iVar1 = DAT_00089a08" identifier = identifier) ;) (expression_statement "uVar4 = xcalloc(1,0x14);" (assignment_expression "uVar4 = xcalloc(1,0x14)" identifier = (call_expression "xcalloc(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x48) = uVar4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x48) = uVar4" (pointer_expression "*(undefined4 *)(iVar1 + 0x48)" * (cast_expression "(undefined4 *)(iVar1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x48)" ( (binary_expression "iVar1 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "**(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;" (assignment_expression "**(undefined4 **)(DAT_00089a08 + 0x48) = puVar3" (pointer_expression "**(undefined4 **)(DAT_00089a08 + 0x48)" * (pointer_expression "*(undefined4 **)(DAT_00089a08 + 0x48)" * (cast_expression "(undefined4 **)(DAT_00089a08 + 0x48)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00089a08 + 0x48)" ( (binary_expression "DAT_00089a08 + 0x48" identifier + number_literal) ))))) = identifier) ;) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) (expression_statement "*(undefined **)PTR_DAT_00080214 = puVar3;" (assignment_expression "*(undefined **)PTR_DAT_00080214 = puVar3" (pointer_expression "*(undefined **)PTR_DAT_00080214" * (cast_expression "(undefined **)PTR_DAT_00080214" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "PTR_DAT_00080214 = puVar2;" (assignment_expression "PTR_DAT_00080214 = puVar2" identifier = identifier) ;) (expression_statement "*(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;" (assignment_expression "*(undefined **)(puVar3 + 0x10) = puVar3 + 0xc" (pointer_expression "*(undefined **)(puVar3 + 0x10)" * (cast_expression "(undefined **)(puVar3 + 0x10)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x10)" ( (binary_expression "puVar3 + 0x10" identifier + number_literal) )))) = (binary_expression "puVar3 + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined2 *)(puVar3 + 0x14) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar3 + 0x14) = 0xffff" (pointer_expression "*(undefined2 *)(puVar3 + 0x14)" * (cast_expression "(undefined2 *)(puVar3 + 0x14)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x14)" ( (binary_expression "puVar3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar4 = DAT_00089af0;" (assignment_expression "uVar4 = DAT_00089af0" identifier = identifier) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x4c)" * (cast_expression "(undefined4 *)(puVar3 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x4c)" ( (binary_expression "puVar3 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x44) = uVar4;" (assignment_expression "*(undefined4 *)(puVar3 + 0x44) = uVar4" (pointer_expression "*(undefined4 *)(puVar3 + 0x44)" * (cast_expression "(undefined4 *)(puVar3 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x44)" ( (binary_expression "puVar3 + 0x44" identifier + number_literal) )))) = identifier) ;) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nfde_entry * alloc_fde_entry(void)\n\n{\n  frchainS *pfVar1;\n  uint uVar2;\n  fde_entry *pfVar3;\n  fde_entry *pfVar4;\n  frch_cfi_data *pfVar5;\n  \n  pfVar4 = (fde_entry *)xcalloc(1,0x60);\n  pfVar1 = frchain_now;\n  pfVar5 = (frch_cfi_data *)xcalloc(1,0x14);\n  pfVar1->frch_cfi_data = pfVar5;\n  frchain_now->frch_cfi_data->cur_fde_data = pfVar4;\n  pfVar3 = pfVar4;\n  *last_fde_data = pfVar4;\n  last_fde_data = &pfVar3->next;\n  pfVar4->last = &pfVar4->data;\n  pfVar4->per_encoding = 0xff;\n  uVar2 = x86_dwarf2_return_column;\n  pfVar4->lsda_encoding = 0xff;\n  pfVar4->eh_header_type = 0;\n  pfVar4->return_column = uVar2;\n  return pfVar4;\n}\n\n" comment comment (function_definition "fde_entry * alloc_fde_entry(void)\n\n{\n  frchainS *pfVar1;\n  uint uVar2;\n  fde_entry *pfVar3;\n  fde_entry *pfVar4;\n  frch_cfi_data *pfVar5;\n  \n  pfVar4 = (fde_entry *)xcalloc(1,0x60);\n  pfVar1 = frchain_now;\n  pfVar5 = (frch_cfi_data *)xcalloc(1,0x14);\n  pfVar1->frch_cfi_data = pfVar5;\n  frchain_now->frch_cfi_data->cur_fde_data = pfVar4;\n  pfVar3 = pfVar4;\n  *last_fde_data = pfVar4;\n  last_fde_data = &pfVar3->next;\n  pfVar4->last = &pfVar4->data;\n  pfVar4->per_encoding = 0xff;\n  uVar2 = x86_dwarf2_return_column;\n  pfVar4->lsda_encoding = 0xff;\n  pfVar4->eh_header_type = 0;\n  pfVar4->return_column = uVar2;\n  return pfVar4;\n}" type_identifier (pointer_declarator "* alloc_fde_entry(void)" * (function_declarator "alloc_fde_entry(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  frchainS *pfVar1;\n  uint uVar2;\n  fde_entry *pfVar3;\n  fde_entry *pfVar4;\n  frch_cfi_data *pfVar5;\n  \n  pfVar4 = (fde_entry *)xcalloc(1,0x60);\n  pfVar1 = frchain_now;\n  pfVar5 = (frch_cfi_data *)xcalloc(1,0x14);\n  pfVar1->frch_cfi_data = pfVar5;\n  frchain_now->frch_cfi_data->cur_fde_data = pfVar4;\n  pfVar3 = pfVar4;\n  *last_fde_data = pfVar4;\n  last_fde_data = &pfVar3->next;\n  pfVar4->last = &pfVar4->data;\n  pfVar4->per_encoding = 0xff;\n  uVar2 = x86_dwarf2_return_column;\n  pfVar4->lsda_encoding = 0xff;\n  pfVar4->eh_header_type = 0;\n  pfVar4->return_column = uVar2;\n  return pfVar4;\n}" { (declaration "frchainS *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "fde_entry *pfVar3;" type_identifier (pointer_declarator "*pfVar3" * identifier) ;) (declaration "fde_entry *pfVar4;" type_identifier (pointer_declarator "*pfVar4" * identifier) ;) (declaration "frch_cfi_data *pfVar5;" type_identifier (pointer_declarator "*pfVar5" * identifier) ;) (expression_statement "pfVar4 = (fde_entry *)xcalloc(1,0x60);" (assignment_expression "pfVar4 = (fde_entry *)xcalloc(1,0x60)" identifier = (cast_expression "(fde_entry *)xcalloc(1,0x60)" ( (type_descriptor "fde_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x60)" identifier (argument_list "(1,0x60)" ( number_literal , number_literal ))))) ;) (expression_statement "pfVar1 = frchain_now;" (assignment_expression "pfVar1 = frchain_now" identifier = identifier) ;) (expression_statement "pfVar5 = (frch_cfi_data *)xcalloc(1,0x14);" (assignment_expression "pfVar5 = (frch_cfi_data *)xcalloc(1,0x14)" identifier = (cast_expression "(frch_cfi_data *)xcalloc(1,0x14)" ( (type_descriptor "frch_cfi_data *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "pfVar1->frch_cfi_data = pfVar5;" (assignment_expression "pfVar1->frch_cfi_data = pfVar5" (field_expression "pfVar1->frch_cfi_data" identifier -> field_identifier) = identifier) ;) (expression_statement "frchain_now->frch_cfi_data->cur_fde_data = pfVar4;" (assignment_expression "frchain_now->frch_cfi_data->cur_fde_data = pfVar4" (field_expression "frchain_now->frch_cfi_data->cur_fde_data" (field_expression "frchain_now->frch_cfi_data" identifier -> field_identifier) -> field_identifier) = identifier) ;) (expression_statement "pfVar3 = pfVar4;" (assignment_expression "pfVar3 = pfVar4" identifier = identifier) ;) (expression_statement "*last_fde_data = pfVar4;" (assignment_expression "*last_fde_data = pfVar4" (pointer_expression "*last_fde_data" * identifier) = identifier) ;) (expression_statement "last_fde_data = &pfVar3->next;" (assignment_expression "last_fde_data = &pfVar3->next" identifier = (pointer_expression "&pfVar3->next" & (field_expression "pfVar3->next" identifier -> field_identifier))) ;) (expression_statement "pfVar4->last = &pfVar4->data;" (assignment_expression "pfVar4->last = &pfVar4->data" (field_expression "pfVar4->last" identifier -> field_identifier) = (pointer_expression "&pfVar4->data" & (field_expression "pfVar4->data" identifier -> field_identifier))) ;) (expression_statement "pfVar4->per_encoding = 0xff;" (assignment_expression "pfVar4->per_encoding = 0xff" (field_expression "pfVar4->per_encoding" identifier -> field_identifier) = number_literal) ;) (expression_statement "uVar2 = x86_dwarf2_return_column;" (assignment_expression "uVar2 = x86_dwarf2_return_column" identifier = identifier) ;) (expression_statement "pfVar4->lsda_encoding = 0xff;" (assignment_expression "pfVar4->lsda_encoding = 0xff" (field_expression "pfVar4->lsda_encoding" identifier -> field_identifier) = number_literal) ;) (expression_statement "pfVar4->eh_header_type = 0;" (assignment_expression "pfVar4->eh_header_type = 0" (field_expression "pfVar4->eh_header_type" identifier -> field_identifier) = number_literal) ;) (expression_statement "pfVar4->return_column = uVar2;" (assignment_expression "pfVar4->return_column = uVar2" (field_expression "pfVar4->return_column" identifier -> field_identifier) = identifier) ;) (return_statement "return pfVar4;" return identifier ;) })))
(translation_unit "undefined * FUN_0001d570(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  \n  puVar3 = (undefined *)xcalloc(1,0x60);\n  iVar1 = DAT_00089a08;\n  uVar4 = xcalloc(1,0x14);\n  *(undefined4 *)(iVar1 + 0x48) = uVar4;\n  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;\n  puVar2 = puVar3;\n  *(undefined **)PTR_DAT_00080214 = puVar3;\n  PTR_DAT_00080214 = puVar2;\n  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;\n  *(undefined2 *)(puVar3 + 0x14) = 0xffff;\n  uVar4 = DAT_00089af0;\n  *(undefined4 *)(puVar3 + 0x4c) = 0;\n  *(undefined4 *)(puVar3 + 0x44) = uVar4;\n  return puVar3;\n}\n\n" (function_definition "undefined * FUN_0001d570(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  \n  puVar3 = (undefined *)xcalloc(1,0x60);\n  iVar1 = DAT_00089a08;\n  uVar4 = xcalloc(1,0x14);\n  *(undefined4 *)(iVar1 + 0x48) = uVar4;\n  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;\n  puVar2 = puVar3;\n  *(undefined **)PTR_DAT_00080214 = puVar3;\n  PTR_DAT_00080214 = puVar2;\n  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;\n  *(undefined2 *)(puVar3 + 0x14) = 0xffff;\n  uVar4 = DAT_00089af0;\n  *(undefined4 *)(puVar3 + 0x4c) = 0;\n  *(undefined4 *)(puVar3 + 0x44) = uVar4;\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_0001d570(void)" * (function_declarator "FUN_0001d570(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  \n  puVar3 = (undefined *)xcalloc(1,0x60);\n  iVar1 = DAT_00089a08;\n  uVar4 = xcalloc(1,0x14);\n  *(undefined4 *)(iVar1 + 0x48) = uVar4;\n  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;\n  puVar2 = puVar3;\n  *(undefined **)PTR_DAT_00080214 = puVar3;\n  PTR_DAT_00080214 = puVar2;\n  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;\n  *(undefined2 *)(puVar3 + 0x14) = 0xffff;\n  uVar4 = DAT_00089af0;\n  *(undefined4 *)(puVar3 + 0x4c) = 0;\n  *(undefined4 *)(puVar3 + 0x44) = uVar4;\n  return puVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "puVar3 = (undefined *)xcalloc(1,0x60);" (assignment_expression "puVar3 = (undefined *)xcalloc(1,0x60)" identifier = (cast_expression "(undefined *)xcalloc(1,0x60)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xcalloc(1,0x60)" identifier (argument_list "(1,0x60)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar1 = DAT_00089a08;" (assignment_expression "iVar1 = DAT_00089a08" identifier = identifier) ;) (expression_statement "uVar4 = xcalloc(1,0x14);" (assignment_expression "uVar4 = xcalloc(1,0x14)" identifier = (call_expression "xcalloc(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x48) = uVar4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x48) = uVar4" (pointer_expression "*(undefined4 *)(iVar1 + 0x48)" * (cast_expression "(undefined4 *)(iVar1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x48)" ( (binary_expression "iVar1 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "**(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;" (assignment_expression "**(undefined4 **)(DAT_00089a08 + 0x48) = puVar3" (pointer_expression "**(undefined4 **)(DAT_00089a08 + 0x48)" * (pointer_expression "*(undefined4 **)(DAT_00089a08 + 0x48)" * (cast_expression "(undefined4 **)(DAT_00089a08 + 0x48)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_00089a08 + 0x48)" ( (binary_expression "DAT_00089a08 + 0x48" identifier + number_literal) ))))) = identifier) ;) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) (expression_statement "*(undefined **)PTR_DAT_00080214 = puVar3;" (assignment_expression "*(undefined **)PTR_DAT_00080214 = puVar3" (pointer_expression "*(undefined **)PTR_DAT_00080214" * (cast_expression "(undefined **)PTR_DAT_00080214" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "PTR_DAT_00080214 = puVar2;" (assignment_expression "PTR_DAT_00080214 = puVar2" identifier = identifier) ;) (expression_statement "*(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;" (assignment_expression "*(undefined **)(puVar3 + 0x10) = puVar3 + 0xc" (pointer_expression "*(undefined **)(puVar3 + 0x10)" * (cast_expression "(undefined **)(puVar3 + 0x10)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x10)" ( (binary_expression "puVar3 + 0x10" identifier + number_literal) )))) = (binary_expression "puVar3 + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined2 *)(puVar3 + 0x14) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar3 + 0x14) = 0xffff" (pointer_expression "*(undefined2 *)(puVar3 + 0x14)" * (cast_expression "(undefined2 *)(puVar3 + 0x14)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x14)" ( (binary_expression "puVar3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar4 = DAT_00089af0;" (assignment_expression "uVar4 = DAT_00089af0" identifier = identifier) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x4c)" * (cast_expression "(undefined4 *)(puVar3 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x4c)" ( (binary_expression "puVar3 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x44) = uVar4;" (assignment_expression "*(undefined4 *)(puVar3 + 0x44) = uVar4" (pointer_expression "*(undefined4 *)(puVar3 + 0x44)" * (cast_expression "(undefined4 *)(puVar3 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x44)" ( (binary_expression "puVar3 + 0x44" identifier + number_literal) )))) = identifier) ;) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (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 , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (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 IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined * FUN_0001d570(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  \n  puVar3 = (undefined *)xcalloc(1,0x60);\n  iVar1 = DAT_00089a08;\n  uVar4 = xcalloc(1,0x14);\n  *(undefined4 *)(iVar1 + 0x48) = uVar4;\n  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;\n  puVar2 = puVar3;\n  *(undefined **)PTR_DAT_00080214 = puVar3;\n  PTR_DAT_00080214 = puVar2;\n  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;\n  *(undefined2 *)(puVar3 + 0x14) = 0xffff;\n  uVar4 = DAT_00089af0;\n  *(undefined4 *)(puVar3 + 0x4c) = 0;\n  *(undefined4 *)(puVar3 + 0x44) = uVar4;\n  return puVar3;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_0001d570(void)" (* "*") (function_declarator "FUN_0001d570(void)" (identifier "FUN_0001d570") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  \n  puVar3 = (undefined *)xcalloc(1,0x60);\n  iVar1 = DAT_00089a08;\n  uVar4 = xcalloc(1,0x14);\n  *(undefined4 *)(iVar1 + 0x48) = uVar4;\n  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;\n  puVar2 = puVar3;\n  *(undefined **)PTR_DAT_00080214 = puVar3;\n  PTR_DAT_00080214 = puVar2;\n  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;\n  *(undefined2 *)(puVar3 + 0x14) = 0xffff;\n  uVar4 = DAT_00089af0;\n  *(undefined4 *)(puVar3 + 0x4c) = 0;\n  *(undefined4 *)(puVar3 + 0x44) = uVar4;\n  return puVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "puVar3 = (undefined *)xcalloc(1,0x60);" (assignment_expression "puVar3 = (undefined *)xcalloc(1,0x60)" (identifier "puVar3") (= "=") (cast_expression "(undefined *)xcalloc(1,0x60)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xcalloc(1,0x60)" (identifier "xcalloc") (argument_list "(1,0x60)" (( "(") (number_literal "1") (, ",") (number_literal "0x60") () ")"))))) (; ";")) (expression_statement "iVar1 = DAT_00089a08;" (assignment_expression "iVar1 = DAT_00089a08" (identifier "iVar1") (= "=") (identifier "DAT_00089a08")) (; ";")) (expression_statement "uVar4 = xcalloc(1,0x14);" (assignment_expression "uVar4 = xcalloc(1,0x14)" (identifier "uVar4") (= "=") (call_expression "xcalloc(1,0x14)" (identifier "xcalloc") (argument_list "(1,0x14)" (( "(") (number_literal "1") (, ",") (number_literal "0x14") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x48) = uVar4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x48) = uVar4" (pointer_expression "*(undefined4 *)(iVar1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x48)" (( "(") (binary_expression "iVar1 + 0x48" (identifier "iVar1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "**(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;" (assignment_expression "**(undefined4 **)(DAT_00089a08 + 0x48) = puVar3" (pointer_expression "**(undefined4 **)(DAT_00089a08 + 0x48)" (* "*") (pointer_expression "*(undefined4 **)(DAT_00089a08 + 0x48)" (* "*") (cast_expression "(undefined4 **)(DAT_00089a08 + 0x48)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_00089a08 + 0x48)" (( "(") (binary_expression "DAT_00089a08 + 0x48" (identifier "DAT_00089a08") (+ "+") (number_literal "0x48")) () ")"))))) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" (identifier "puVar2") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "*(undefined **)PTR_DAT_00080214 = puVar3;" (assignment_expression "*(undefined **)PTR_DAT_00080214 = puVar3" (pointer_expression "*(undefined **)PTR_DAT_00080214" (* "*") (cast_expression "(undefined **)PTR_DAT_00080214" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_00080214"))) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "PTR_DAT_00080214 = puVar2;" (assignment_expression "PTR_DAT_00080214 = puVar2" (identifier "PTR_DAT_00080214") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "*(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;" (assignment_expression "*(undefined **)(puVar3 + 0x10) = puVar3 + 0xc" (pointer_expression "*(undefined **)(puVar3 + 0x10)" (* "*") (cast_expression "(undefined **)(puVar3 + 0x10)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x10)" (( "(") (binary_expression "puVar3 + 0x10" (identifier "puVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (binary_expression "puVar3 + 0xc" (identifier "puVar3") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "*(undefined2 *)(puVar3 + 0x14) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar3 + 0x14) = 0xffff" (pointer_expression "*(undefined2 *)(puVar3 + 0x14)" (* "*") (cast_expression "(undefined2 *)(puVar3 + 0x14)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x14)" (( "(") (binary_expression "puVar3 + 0x14" (identifier "puVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0xffff")) (; ";")) (expression_statement "uVar4 = DAT_00089af0;" (assignment_expression "uVar4 = DAT_00089af0" (identifier "uVar4") (= "=") (identifier "DAT_00089af0")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x4c)" (( "(") (binary_expression "puVar3 + 0x4c" (identifier "puVar3") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0x44) = uVar4;" (assignment_expression "*(undefined4 *)(puVar3 + 0x44) = uVar4" (pointer_expression "*(undefined4 *)(puVar3 + 0x44)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x44)" (( "(") (binary_expression "puVar3 + 0x44" (identifier "puVar3") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}")))

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

type_1 * function_1(void)

{
  type_2 *pfVar1;
  type_3 uVar2;
  type_1 *pfVar3;
  type_1 *pfVar4;
  type_4 *pfVar5;
  
  pfVar4 = (type_1 *)var_1(1,0x60);
  pfVar1 = frchain_now;
  pfVar5 = (type_4 *)var_1(1,0x14);
  pfVar1->type_4 = pfVar5;
  frchain_now->type_4->cur_fde_data = pfVar4;
  pfVar3 = pfVar4;
  *last_fde_data = pfVar4;
  last_fde_data = &pfVar3->next;
  pfVar4->last = &pfVar4->data;
  pfVar4->per_encoding = 0xff;
  uVar2 = x86_dwarf2_return_column;
  pfVar4->lsda_encoding = 0xff;
  pfVar4->eh_header_type = 0;
  pfVar4->return_column = uVar2;
  return pfVar4;
}


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

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

undefined * MASKED(void)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 uVar4;
  
  puVar3 = (undefined *)xcalloc(1,0x60);
  iVar1 = DAT_00089a08;
  uVar4 = xcalloc(1,0x14);
  *(undefined4 *)(iVar1 + 0x48) = uVar4;
  **(undefined4 **)(DAT_00089a08 + 0x48) = puVar3;
  puVar2 = puVar3;
  *(undefined **)PTR_DAT_00080214 = puVar3;
  PTR_DAT_00080214 = puVar2;
  *(undefined **)(puVar3 + 0x10) = puVar3 + 0xc;
  *(undefined2 *)(puVar3 + 0x14) = 0xffff;
  uVar4 = DAT_00089af0;
  *(undefined4 *)(puVar3 + 0x4c) = 0;
  *(undefined4 *)(puVar3 + 0x44) = uVar4;
  return puVar3;
}

