
char * get_posix_options(char *bitmap)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  if (bitmap == (char *)0x0) {
    bitmap = (char *)xmalloc(5);
  }
  iVar3 = 0;
  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);
  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);
  while( true ) {
    puVar2 = puVar1;
    bitmap[iVar3] = (char)*puVar4;
    iVar3 = iVar3 + 1;
    if (puVar2 == (undefined4 *)0x0) break;
    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);
    puVar4 = puVar2;
  }
  return bitmap;
}



void get_posix_options(int param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int unaff_EDI;
  
  FUN_00042933();
  if (param_1 == 0) {
    param_1 = xmalloc(5);
  }
  iVar3 = 0;
  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);
  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);
  while( true ) {
    puVar2 = puVar1;
    *(char *)(param_1 + iVar3) = (char)*puVar4;
    iVar3 = iVar3 + 1;
    if (puVar2 == (undefined4 *)0x0) break;
    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);
    puVar4 = puVar2;
  }
  return;
}


PUSH EDI
CALL 0x00042933
ADD EDI,0x10914a
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x00040f00
LEA ECX,[EDI + 0x16dc]
XOR EDX,EDX
LEA ESI,[EDI + 0x768]
JMP 0x00040ee9
MOV ESI,ECX
MOV ECX,dword ptr [EDI + EDX*0x4 + 0xfffff154]
MOV EBX,dword ptr [ESI]
MOV byte ptr [EAX + EDX*0x1],BL
ADD EDX,0x1
TEST ECX,ECX
JNZ 0x00040ee0
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
MOV EBX,EDI
PUSH 0x5
CALL 0x00099200
ADD ESP,0x10
JMP 0x00040ec6
(translation_unit "void get_posix_options(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  FUN_00042933();\n  if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return;\n}\n\n" (function_definition "void get_posix_options(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  FUN_00042933();\n  if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return;\n}" primitive_type (function_declarator "get_posix_options(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  FUN_00042933();\n  if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00042933();" (call_expression "FUN_00042933()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1 = xmalloc(5);\n  }" { (expression_statement "param_1 = xmalloc(5);" (assignment_expression "param_1 = xmalloc(5)" identifier = (call_expression "xmalloc(5)" identifier (argument_list "(5)" ( number_literal )))) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);" (assignment_expression "puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" identifier = (cast_expression "(undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" ( (binary_expression "(int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_0010a824.initial_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_0010a824.initial_loc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fde_table_entry_0010a824.initial_loc" & (field_expression "fde_table_entry_0010a824.initial_loc" identifier . field_identifier))) + identifier) + number_literal) )))) ;) (expression_statement "puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);" (assignment_expression "puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" identifier = (cast_expression "(undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" ( (binary_expression "(int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_001098ac.data_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_001098ac.data_loc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fde_table_entry_001098ac.data_loc" & (field_expression "fde_table_entry_001098ac.data_loc" identifier . field_identifier))) + identifier) + number_literal) )))) ;) (while_statement "while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }" { (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" identifier = identifier) ;) (expression_statement "*(char *)(param_1 + iVar3) = (char)*puVar4;" (assignment_expression "*(char *)(param_1 + iVar3) = (char)*puVar4" (pointer_expression "*(char *)(param_1 + iVar3)" * (cast_expression "(char *)(param_1 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar3)" ( (binary_expression "param_1 + iVar3" identifier + identifier) )))) = (cast_expression "(char)*puVar4" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" identifier = (pointer_expression "*(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" * (cast_expression "(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x10829e + iVar3 * 4)" ( (binary_expression "unaff_EDI + 0x10829e + iVar3 * 4" (binary_expression "unaff_EDI + 0x10829e" identifier + number_literal) + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "char * get_posix_options(char *bitmap)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  if (bitmap == (char *)0x0) {\n    bitmap = (char *)xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    bitmap[iVar3] = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return bitmap;\n}\n\n" (function_definition "char * get_posix_options(char *bitmap)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  if (bitmap == (char *)0x0) {\n    bitmap = (char *)xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    bitmap[iVar3] = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return bitmap;\n}" primitive_type (pointer_declarator "* get_posix_options(char *bitmap)" * (function_declarator "get_posix_options(char *bitmap)" identifier (parameter_list "(char *bitmap)" ( (parameter_declaration "char *bitmap" primitive_type (pointer_declarator "*bitmap" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  if (bitmap == (char *)0x0) {\n    bitmap = (char *)xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    bitmap[iVar3] = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return bitmap;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (if_statement "if (bitmap == (char *)0x0) {\n    bitmap = (char *)xmalloc(5);\n  }" if (parenthesized_expression "(bitmap == (char *)0x0)" ( (binary_expression "bitmap == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    bitmap = (char *)xmalloc(5);\n  }" { (expression_statement "bitmap = (char *)xmalloc(5);" (assignment_expression "bitmap = (char *)xmalloc(5)" identifier = (cast_expression "(char *)xmalloc(5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(5)" identifier (argument_list "(5)" ( number_literal ))))) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);" (assignment_expression "puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" identifier = (cast_expression "(undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" ( (binary_expression "(int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_0010a824.initial_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_0010a824.initial_loc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fde_table_entry_0010a824.initial_loc" & (field_expression "fde_table_entry_0010a824.initial_loc" identifier . field_identifier))) + identifier) + number_literal) )))) ;) (expression_statement "puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);" (assignment_expression "puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" identifier = (cast_expression "(undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" ( (binary_expression "(int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_001098ac.data_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_001098ac.data_loc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fde_table_entry_001098ac.data_loc" & (field_expression "fde_table_entry_001098ac.data_loc" identifier . field_identifier))) + identifier) + number_literal) )))) ;) (while_statement "while( true ) {\n    puVar2 = puVar1;\n    bitmap[iVar3] = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    puVar2 = puVar1;\n    bitmap[iVar3] = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }" { (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" identifier = identifier) ;) (expression_statement "bitmap[iVar3] = (char)*puVar4;" (assignment_expression "bitmap[iVar3] = (char)*puVar4" (subscript_expression "bitmap[iVar3]" identifier [ identifier ]) = (cast_expression "(char)*puVar4" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" identifier = (pointer_expression "*(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" * (cast_expression "(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x10829e + iVar3 * 4)" ( (binary_expression "unaff_EDI + 0x10829e + iVar3 * 4" (binary_expression "unaff_EDI + 0x10829e" identifier + number_literal) + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) })) (return_statement "return bitmap;" return identifier ;) })))
(translation_unit "void get_posix_options(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  FUN_00042933();\n  if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return;\n}\n\n" (function_definition "void get_posix_options(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  FUN_00042933();\n  if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return;\n}" primitive_type (function_declarator "get_posix_options(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  FUN_00042933();\n  if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00042933();" (call_expression "FUN_00042933()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_1 = xmalloc(5);\n  }" { (expression_statement "param_1 = xmalloc(5);" (assignment_expression "param_1 = xmalloc(5)" identifier = (call_expression "xmalloc(5)" identifier (argument_list "(5)" ( number_literal )))) ;) })) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);" (assignment_expression "puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" identifier = (cast_expression "(undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" ( (binary_expression "(int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_0010a824.initial_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_0010a824.initial_loc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fde_table_entry_0010a824.initial_loc" & (field_expression "fde_table_entry_0010a824.initial_loc" identifier . field_identifier))) + identifier) + number_literal) )))) ;) (expression_statement "puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);" (assignment_expression "puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" identifier = (cast_expression "(undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" ( (binary_expression "(int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_001098ac.data_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_001098ac.data_loc" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&fde_table_entry_001098ac.data_loc" & (field_expression "fde_table_entry_001098ac.data_loc" identifier . field_identifier))) + identifier) + number_literal) )))) ;) (while_statement "while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }" { (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" identifier = identifier) ;) (expression_statement "*(char *)(param_1 + iVar3) = (char)*puVar4;" (assignment_expression "*(char *)(param_1 + iVar3) = (char)*puVar4" (pointer_expression "*(char *)(param_1 + iVar3)" * (cast_expression "(char *)(param_1 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar3)" ( (binary_expression "param_1 + iVar3" identifier + identifier) )))) = (cast_expression "(char)*puVar4" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" identifier = (pointer_expression "*(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" * (cast_expression "(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x10829e + iVar3 * 4)" ( (binary_expression "unaff_EDI + 0x10829e + iVar3 * 4" (binary_expression "unaff_EDI + 0x10829e" identifier + number_literal) + (binary_expression "iVar3 * 4" identifier * number_literal)) ))))) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & (field_expression IDENT . field_identifier))) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & (field_expression IDENT . field_identifier))) + IDENT) + LIT) )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (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 + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void get_posix_options(int param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  FUN_00042933();\n  if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "get_posix_options(int param_1)" (identifier "get_posix_options") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int unaff_EDI;\n  \n  FUN_00042933();\n  if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }\n  iVar3 = 0;\n  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);\n  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);\n  while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_00042933();" (call_expression "FUN_00042933()" (identifier "FUN_00042933") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_1 == 0) {\n    param_1 = xmalloc(5);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_1 = xmalloc(5);\n  }" ({ "{") (expression_statement "param_1 = xmalloc(5);" (assignment_expression "param_1 = xmalloc(5)" (identifier "param_1") (= "=") (call_expression "xmalloc(5)" (identifier "xmalloc") (argument_list "(5)" (( "(") (number_literal "5") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);" (assignment_expression "puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2)" (( "(") (binary_expression "(int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_0010a824.initial_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_0010a824.initial_loc" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&fde_table_entry_0010a824.initial_loc" (& "&") (field_expression "fde_table_entry_0010a824.initial_loc" (identifier "fde_table_entry_0010a824") (. ".") (field_identifier "initial_loc")))) (+ "+") (identifier "unaff_EDI")) (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);" (assignment_expression "puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2)" (( "(") (binary_expression "(int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2" (binary_expression "(int)&fde_table_entry_001098ac.data_loc + unaff_EDI" (cast_expression "(int)&fde_table_entry_001098ac.data_loc" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&fde_table_entry_001098ac.data_loc" (& "&") (field_expression "fde_table_entry_001098ac.data_loc" (identifier "fde_table_entry_001098ac") (. ".") (field_identifier "data_loc")))) (+ "+") (identifier "unaff_EDI")) (+ "+") (number_literal "2")) () ")")))) (; ";")) (while_statement "while( true ) {\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    puVar2 = puVar1;\n    *(char *)(param_1 + iVar3) = (char)*puVar4;\n    iVar3 = iVar3 + 1;\n    if (puVar2 == (undefined4 *)0x0) break;\n    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);\n    puVar4 = puVar2;\n  }" ({ "{") (expression_statement "puVar2 = puVar1;" (assignment_expression "puVar2 = puVar1" (identifier "puVar2") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "*(char *)(param_1 + iVar3) = (char)*puVar4;" (assignment_expression "*(char *)(param_1 + iVar3) = (char)*puVar4" (pointer_expression "*(char *)(param_1 + iVar3)" (* "*") (cast_expression "(char *)(param_1 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar3)" (( "(") (binary_expression "param_1 + iVar3" (identifier "param_1") (+ "+") (identifier "iVar3")) () ")")))) (= "=") (cast_expression "(char)*puVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) break;" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);" (assignment_expression "puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" (* "*") (cast_expression "(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x10829e + iVar3 * 4)" (( "(") (binary_expression "unaff_EDI + 0x10829e + iVar3 * 4" (binary_expression "unaff_EDI + 0x10829e" (identifier "unaff_EDI") (+ "+") (number_literal "0x10829e")) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" (identifier "puVar4") (= "=") (identifier "puVar2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

char * function_1(char *var_2)

{
  type_1 *puVar1;
  type_1 *var_6;
  int var_5;
  type_1 *puVar4;
  int var_4;
  
  var_1();
  if (var_2 == (char *)0x0) {
    var_2 = (char *)var_3(5);
  }
  var_5 = 0;
  puVar1 = (type_1 *)((int)&fde_table_entry_0010a824.initial_loc + var_4 + 2);
  puVar4 = (type_1 *)((int)&fde_table_entry_001098ac.data_loc + var_4 + 2);
  while( true ) {
    var_6 = puVar1;
    var_2[var_5] = (char)*puVar4;
    var_5 = var_5 + 1;
    if (var_6 == (type_1 *)0x0) break;
    puVar1 = *(type_1 **)(var_4 + 0x10829e + var_5 * 4);
    puVar4 = var_6;
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))))) (expression_statement (assignment_expression left: (identifier) 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: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (field_expression argument: (identifier) field: (field_identifier)))) right: (identifier)) 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: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (field_expression argument: (identifier) field: (field_identifier)))) right: (identifier)) right: (number_literal)))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (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: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement))))

void MASKED(int param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int unaff_EDI;
  
  FUN_00042933();
  if (param_1 == 0) {
    param_1 = xmalloc(5);
  }
  iVar3 = 0;
  puVar1 = (undefined4 *)((int)&fde_table_entry_0010a824.initial_loc + unaff_EDI + 2);
  puVar4 = (undefined4 *)((int)&fde_table_entry_001098ac.data_loc + unaff_EDI + 2);
  while( true ) {
    puVar2 = puVar1;
    *(char *)(param_1 + iVar3) = (char)*puVar4;
    iVar3 = iVar3 + 1;
    if (puVar2 == (undefined4 *)0x0) break;
    puVar1 = *(undefined4 **)(unaff_EDI + 0x10829e + iVar3 * 4);
    puVar4 = puVar2;
  }
  return;
}

