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

WORD_LIST * array_keys_to_word_list(ARRAY *a)

{
  char *string;
  WORD_DESC *word;
  array_element *paVar1;
  WORD_LIST *wlink;
  
  if (((a != (ARRAY *)0x0) && (a->num_elements != 0)) && (paVar1 = a->head->next, a->head != paVar1)
     ) {
    wlink = (WORD_LIST *)0x0;
    do {
      string = itos(paVar1->ind);
      word = make_bare_word(string);
      wlink = make_word_list(word,wlink);
      free(string);
      paVar1 = paVar1->next;
    } while (a->head != paVar1);
    if (wlink != (WORD_LIST *)0x0) {
      if (wlink->next != (word_list *)0x0) {
        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);
      }
      return wlink;
    }
  }
  return (WORD_LIST *)0x0;
}



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

int * array_keys_to_word_list(int param_1)

{
  void *__ptr;
  undefined4 uVar1;
  undefined4 *puVar2;
  int *piVar3;
  
  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&
     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],
     *(undefined4 **)(param_1 + 0x14) != puVar2)) {
    piVar3 = (int *)0x0;
    do {
      __ptr = (void *)itos(*puVar2,puVar2[1]);
      uVar1 = make_bare_word(__ptr);
      piVar3 = (int *)make_word_list(uVar1,piVar3);
      free(__ptr);
      puVar2 = (undefined4 *)puVar2[3];
    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);
    if (piVar3 != (int *)0x0) {
      if (*piVar3 != 0) {
        piVar3 = (int *)list_reverse(piVar3);
      }
      return piVar3;
    }
  }
  return (int *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xc7217
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
TEST EDI,EDI
JZ 0x00082e78
MOV EAX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [EAX + 0xc]
TEST ESI,ESI
JZ 0x00082e78
MOV EAX,dword ptr [EAX + 0x14]
MOV ESI,dword ptr [EAX + 0xc]
CMP EAX,ESI
JZ 0x00082e78
XOR EDI,EDI
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [ESI + 0x4]
PUSH dword ptr [ESI]
CALL 0x000bbf60
MOV dword ptr [ESP],EAX
MOV EBP,EAX
CALL 0x00042a50
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x00042ca0
MOV dword ptr [ESP],EBP
MOV EDI,EAX
CALL 0x0002f200
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESI + 0xc]
CMP dword ptr [EAX + 0x14],ESI
JNZ 0x00082e18
TEST EDI,EDI
JZ 0x00082e78
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x00082e69
SUB ESP,0xc
PUSH EDI
CALL 0x000915d0
ADD ESP,0x10
MOV EDI,EAX
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR EDI,EDI
POP EBX
MOV EAX,EDI
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * array_keys_to_word_list(int param_1)\n\n{\n  void *__ptr;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }\n  return (int *)0x0;\n}\n\n" comment (function_definition "int * array_keys_to_word_list(int param_1)\n\n{\n  void *__ptr;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* array_keys_to_word_list(int param_1)" * (function_declarator "array_keys_to_word_list(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  void *__ptr;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }" if (parenthesized_expression "(((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2))" ( (binary_expression "((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)" (parenthesized_expression "((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0))" ( (binary_expression "(param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)" ( (comma_expression "puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2" (assignment_expression "puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3]" identifier = (cast_expression "(undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(*(undefined4 **)(param_1 + 0x14))[3]" (parenthesized_expression "(*(undefined4 **)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )) [ number_literal ]))) , (binary_expression "*(undefined4 **)(param_1 + 0x14) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != identifier)) ))) )) (compound_statement "{\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }" { (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);" do (compound_statement "{\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    }" { (expression_statement "__ptr = (void *)itos(*puVar2,puVar2[1]);" (assignment_expression "__ptr = (void *)itos(*puVar2,puVar2[1])" identifier = (cast_expression "(void *)itos(*puVar2,puVar2[1])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "itos(*puVar2,puVar2[1])" identifier (argument_list "(*puVar2,puVar2[1])" ( (pointer_expression "*puVar2" * identifier) , (subscript_expression "puVar2[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "uVar1 = make_bare_word(__ptr);" (assignment_expression "uVar1 = make_bare_word(__ptr)" identifier = (call_expression "make_bare_word(__ptr)" identifier (argument_list "(__ptr)" ( identifier )))) ;) (expression_statement "piVar3 = (int *)make_word_list(uVar1,piVar3);" (assignment_expression "piVar3 = (int *)make_word_list(uVar1,piVar3)" identifier = (cast_expression "(int *)make_word_list(uVar1,piVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "make_word_list(uVar1,piVar3)" identifier (argument_list "(uVar1,piVar3)" ( identifier , identifier ))))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)puVar2[3];" (assignment_expression "puVar2 = (undefined4 *)puVar2[3]" identifier = (cast_expression "(undefined4 *)puVar2[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(*(undefined4 **)(param_1 + 0x14) != puVar2)" ( (binary_expression "*(undefined4 **)(param_1 + 0x14) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != identifier) )) ;) (if_statement "if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }" { (if_statement "if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }" if (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n        piVar3 = (int *)list_reverse(piVar3);\n      }" { (expression_statement "piVar3 = (int *)list_reverse(piVar3);" (assignment_expression "piVar3 = (int *)list_reverse(piVar3)" identifier = (cast_expression "(int *)list_reverse(piVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "list_reverse(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))))) ;) })) (return_statement "return piVar3;" return identifier ;) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nWORD_LIST * array_keys_to_word_list(ARRAY *a)\n\n{\n  char *string;\n  WORD_DESC *word;\n  array_element *paVar1;\n  WORD_LIST *wlink;\n  \n  if (((a != (ARRAY *)0x0) && (a->num_elements != 0)) && (paVar1 = a->head->next, a->head != paVar1)\n     ) {\n    wlink = (WORD_LIST *)0x0;\n    do {\n      string = itos(paVar1->ind);\n      word = make_bare_word(string);\n      wlink = make_word_list(word,wlink);\n      free(string);\n      paVar1 = paVar1->next;\n    } while (a->head != paVar1);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      return wlink;\n    }\n  }\n  return (WORD_LIST *)0x0;\n}\n\n" comment comment (function_definition "WORD_LIST * array_keys_to_word_list(ARRAY *a)\n\n{\n  char *string;\n  WORD_DESC *word;\n  array_element *paVar1;\n  WORD_LIST *wlink;\n  \n  if (((a != (ARRAY *)0x0) && (a->num_elements != 0)) && (paVar1 = a->head->next, a->head != paVar1)\n     ) {\n    wlink = (WORD_LIST *)0x0;\n    do {\n      string = itos(paVar1->ind);\n      word = make_bare_word(string);\n      wlink = make_word_list(word,wlink);\n      free(string);\n      paVar1 = paVar1->next;\n    } while (a->head != paVar1);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      return wlink;\n    }\n  }\n  return (WORD_LIST *)0x0;\n}" type_identifier (pointer_declarator "* array_keys_to_word_list(ARRAY *a)" * (function_declarator "array_keys_to_word_list(ARRAY *a)" identifier (parameter_list "(ARRAY *a)" ( (parameter_declaration "ARRAY *a" type_identifier (pointer_declarator "*a" * identifier)) )))) (compound_statement "{\n  char *string;\n  WORD_DESC *word;\n  array_element *paVar1;\n  WORD_LIST *wlink;\n  \n  if (((a != (ARRAY *)0x0) && (a->num_elements != 0)) && (paVar1 = a->head->next, a->head != paVar1)\n     ) {\n    wlink = (WORD_LIST *)0x0;\n    do {\n      string = itos(paVar1->ind);\n      word = make_bare_word(string);\n      wlink = make_word_list(word,wlink);\n      free(string);\n      paVar1 = paVar1->next;\n    } while (a->head != paVar1);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      return wlink;\n    }\n  }\n  return (WORD_LIST *)0x0;\n}" { (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (declaration "WORD_DESC *word;" type_identifier (pointer_declarator "*word" * identifier) ;) (declaration "array_element *paVar1;" type_identifier (pointer_declarator "*paVar1" * identifier) ;) (declaration "WORD_LIST *wlink;" type_identifier (pointer_declarator "*wlink" * identifier) ;) (if_statement "if (((a != (ARRAY *)0x0) && (a->num_elements != 0)) && (paVar1 = a->head->next, a->head != paVar1)\n     ) {\n    wlink = (WORD_LIST *)0x0;\n    do {\n      string = itos(paVar1->ind);\n      word = make_bare_word(string);\n      wlink = make_word_list(word,wlink);\n      free(string);\n      paVar1 = paVar1->next;\n    } while (a->head != paVar1);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      return wlink;\n    }\n  }" if (parenthesized_expression "(((a != (ARRAY *)0x0) && (a->num_elements != 0)) && (paVar1 = a->head->next, a->head != paVar1)\n     )" ( (binary_expression "((a != (ARRAY *)0x0) && (a->num_elements != 0)) && (paVar1 = a->head->next, a->head != paVar1)" (parenthesized_expression "((a != (ARRAY *)0x0) && (a->num_elements != 0))" ( (binary_expression "(a != (ARRAY *)0x0) && (a->num_elements != 0)" (parenthesized_expression "(a != (ARRAY *)0x0)" ( (binary_expression "a != (ARRAY *)0x0" identifier != (cast_expression "(ARRAY *)0x0" ( (type_descriptor "ARRAY *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(a->num_elements != 0)" ( (binary_expression "a->num_elements != 0" (field_expression "a->num_elements" identifier -> field_identifier) != number_literal) ))) )) && (parenthesized_expression "(paVar1 = a->head->next, a->head != paVar1)" ( (comma_expression "paVar1 = a->head->next, a->head != paVar1" (assignment_expression "paVar1 = a->head->next" identifier = (field_expression "a->head->next" (field_expression "a->head" identifier -> field_identifier) -> field_identifier)) , (binary_expression "a->head != paVar1" (field_expression "a->head" identifier -> field_identifier) != identifier)) ))) )) (compound_statement "{\n    wlink = (WORD_LIST *)0x0;\n    do {\n      string = itos(paVar1->ind);\n      word = make_bare_word(string);\n      wlink = make_word_list(word,wlink);\n      free(string);\n      paVar1 = paVar1->next;\n    } while (a->head != paVar1);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      return wlink;\n    }\n  }" { (expression_statement "wlink = (WORD_LIST *)0x0;" (assignment_expression "wlink = (WORD_LIST *)0x0" identifier = (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n      string = itos(paVar1->ind);\n      word = make_bare_word(string);\n      wlink = make_word_list(word,wlink);\n      free(string);\n      paVar1 = paVar1->next;\n    } while (a->head != paVar1);" do (compound_statement "{\n      string = itos(paVar1->ind);\n      word = make_bare_word(string);\n      wlink = make_word_list(word,wlink);\n      free(string);\n      paVar1 = paVar1->next;\n    }" { (expression_statement "string = itos(paVar1->ind);" (assignment_expression "string = itos(paVar1->ind)" identifier = (call_expression "itos(paVar1->ind)" identifier (argument_list "(paVar1->ind)" ( (field_expression "paVar1->ind" identifier -> field_identifier) )))) ;) (expression_statement "word = make_bare_word(string);" (assignment_expression "word = make_bare_word(string)" identifier = (call_expression "make_bare_word(string)" identifier (argument_list "(string)" ( identifier )))) ;) (expression_statement "wlink = make_word_list(word,wlink);" (assignment_expression "wlink = make_word_list(word,wlink)" identifier = (call_expression "make_word_list(word,wlink)" identifier (argument_list "(word,wlink)" ( identifier , identifier )))) ;) (expression_statement "free(string);" (call_expression "free(string)" identifier (argument_list "(string)" ( identifier ))) ;) (expression_statement "paVar1 = paVar1->next;" (assignment_expression "paVar1 = paVar1->next" identifier = (field_expression "paVar1->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(a->head != paVar1)" ( (binary_expression "a->head != paVar1" (field_expression "a->head" identifier -> field_identifier) != identifier) )) ;) (if_statement "if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      return wlink;\n    }" if (parenthesized_expression "(wlink != (WORD_LIST *)0x0)" ( (binary_expression "wlink != (WORD_LIST *)0x0" identifier != (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      return wlink;\n    }" { (if_statement "if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }" if (parenthesized_expression "(wlink->next != (word_list *)0x0)" ( (binary_expression "wlink->next != (word_list *)0x0" (field_expression "wlink->next" identifier -> field_identifier) != (cast_expression "(word_list *)0x0" ( (type_descriptor "word_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }" { (expression_statement "wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);" (assignment_expression "wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink)" identifier = (cast_expression "(WORD_LIST *)list_reverse((GENERIC_LIST *)wlink)" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "list_reverse((GENERIC_LIST *)wlink)" identifier (argument_list "((GENERIC_LIST *)wlink)" ( (cast_expression "(GENERIC_LIST *)wlink" ( (type_descriptor "GENERIC_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;) })) (return_statement "return wlink;" return identifier ;) })) })) (return_statement "return (WORD_LIST *)0x0;" return (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * array_keys_to_word_list(int param_1)\n\n{\n  void *__ptr;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * array_keys_to_word_list(int param_1)\n\n{\n  void *__ptr;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* array_keys_to_word_list(int param_1)" * (function_declarator "array_keys_to_word_list(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  void *__ptr;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }" if (parenthesized_expression "(((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2))" ( (binary_expression "((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)" (parenthesized_expression "((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0))" ( (binary_expression "(param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)" ( (comma_expression "puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2" (assignment_expression "puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3]" identifier = (cast_expression "(undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(*(undefined4 **)(param_1 + 0x14))[3]" (parenthesized_expression "(*(undefined4 **)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )) [ number_literal ]))) , (binary_expression "*(undefined4 **)(param_1 + 0x14) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != identifier)) ))) )) (compound_statement "{\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }" { (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);" do (compound_statement "{\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    }" { (expression_statement "__ptr = (void *)itos(*puVar2,puVar2[1]);" (assignment_expression "__ptr = (void *)itos(*puVar2,puVar2[1])" identifier = (cast_expression "(void *)itos(*puVar2,puVar2[1])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "itos(*puVar2,puVar2[1])" identifier (argument_list "(*puVar2,puVar2[1])" ( (pointer_expression "*puVar2" * identifier) , (subscript_expression "puVar2[1]" identifier [ number_literal ]) ))))) ;) (expression_statement "uVar1 = make_bare_word(__ptr);" (assignment_expression "uVar1 = make_bare_word(__ptr)" identifier = (call_expression "make_bare_word(__ptr)" identifier (argument_list "(__ptr)" ( identifier )))) ;) (expression_statement "piVar3 = (int *)make_word_list(uVar1,piVar3);" (assignment_expression "piVar3 = (int *)make_word_list(uVar1,piVar3)" identifier = (cast_expression "(int *)make_word_list(uVar1,piVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "make_word_list(uVar1,piVar3)" identifier (argument_list "(uVar1,piVar3)" ( identifier , identifier ))))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "puVar2 = (undefined4 *)puVar2[3];" (assignment_expression "puVar2 = (undefined4 *)puVar2[3]" identifier = (cast_expression "(undefined4 *)puVar2[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(*(undefined4 **)(param_1 + 0x14) != puVar2)" ( (binary_expression "*(undefined4 **)(param_1 + 0x14) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != identifier) )) ;) (if_statement "if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }" { (if_statement "if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }" if (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n        piVar3 = (int *)list_reverse(piVar3);\n      }" { (expression_statement "piVar3 = (int *)list_reverse(piVar3);" (assignment_expression "piVar3 = (int *)list_reverse(piVar3)" identifier = (cast_expression "(int *)list_reverse(piVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "list_reverse(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))))) ;) })) (return_statement "return piVar3;" return identifier ;) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) [ LIT ]))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) })) (return_statement return IDENT ;) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * array_keys_to_word_list(int param_1)\n\n{\n  void *__ptr;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* array_keys_to_word_list(int param_1)" (* "*") (function_declarator "array_keys_to_word_list(int param_1)" (identifier "array_keys_to_word_list") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  void *__ptr;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (if_statement "if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)) {\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }" (if "if") (parenthesized_expression "(((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2))" (( "(") (binary_expression "((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&\n     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)" (parenthesized_expression "((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0))" (( "(") (binary_expression "(param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2)" (( "(") (comma_expression "puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],\n     *(undefined4 **)(param_1 + 0x14) != puVar2" (assignment_expression "puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3]" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "(*(undefined4 **)(param_1 + 0x14))[3]" (parenthesized_expression "(*(undefined4 **)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")) ([ "[") (number_literal "3") (] "]")))) (, ",") (binary_expression "*(undefined4 **)(param_1 + 0x14) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (identifier "puVar2"))) () ")"))) () ")")) (compound_statement "{\n    piVar3 = (int *)0x0;\n    do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);\n    if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }\n  }" ({ "{") (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" (identifier "piVar3") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (do_statement "do {\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);" (do "do") (compound_statement "{\n      __ptr = (void *)itos(*puVar2,puVar2[1]);\n      uVar1 = make_bare_word(__ptr);\n      piVar3 = (int *)make_word_list(uVar1,piVar3);\n      free(__ptr);\n      puVar2 = (undefined4 *)puVar2[3];\n    }" ({ "{") (expression_statement "__ptr = (void *)itos(*puVar2,puVar2[1]);" (assignment_expression "__ptr = (void *)itos(*puVar2,puVar2[1])" (identifier "__ptr") (= "=") (cast_expression "(void *)itos(*puVar2,puVar2[1])" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "itos(*puVar2,puVar2[1])" (identifier "itos") (argument_list "(*puVar2,puVar2[1])" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) () ")"))))) (; ";")) (expression_statement "uVar1 = make_bare_word(__ptr);" (assignment_expression "uVar1 = make_bare_word(__ptr)" (identifier "uVar1") (= "=") (call_expression "make_bare_word(__ptr)" (identifier "make_bare_word") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")")))) (; ";")) (expression_statement "piVar3 = (int *)make_word_list(uVar1,piVar3);" (assignment_expression "piVar3 = (int *)make_word_list(uVar1,piVar3)" (identifier "piVar3") (= "=") (cast_expression "(int *)make_word_list(uVar1,piVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "make_word_list(uVar1,piVar3)" (identifier "make_word_list") (argument_list "(uVar1,piVar3)" (( "(") (identifier "uVar1") (, ",") (identifier "piVar3") () ")"))))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)puVar2[3];" (assignment_expression "puVar2 = (undefined4 *)puVar2[3]" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)puVar2[3]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(undefined4 **)(param_1 + 0x14) != puVar2)" (( "(") (binary_expression "*(undefined4 **)(param_1 + 0x14) != puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (identifier "puVar2")) () ")")) (; ";")) (if_statement "if (piVar3 != (int *)0x0) {\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }\n      return piVar3;\n    }" ({ "{") (if_statement "if (*piVar3 != 0) {\n        piVar3 = (int *)list_reverse(piVar3);\n      }" (if "if") (parenthesized_expression "(*piVar3 != 0)" (( "(") (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar3 = (int *)list_reverse(piVar3);\n      }" ({ "{") (expression_statement "piVar3 = (int *)list_reverse(piVar3);" (assignment_expression "piVar3 = (int *)list_reverse(piVar3)" (identifier "piVar3") (= "=") (cast_expression "(int *)list_reverse(piVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "list_reverse(piVar3)" (identifier "list_reverse") (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))))) (; ";")) (} "}"))) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

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

type_1 * function_1(type_2 *var_1)

{
  char *string;
  type_3 *word;
  type_4 *var_2;
  type_1 *var_7;
  
  if (((var_1 != (type_2 *)0x0) && (var_1->num_elements != 0)) && (var_2 = var_1->head->next, var_1->head != var_2)
     ) {
    var_7 = (type_1 *)0x0;
    do {
      string = var_3(var_2->ind);
      word = var_4(string);
      var_7 = var_5(word,var_7);
      var_6(string);
      var_2 = var_2->next;
    } while (var_1->head != var_2);
    if (var_7 != (type_1 *)0x0) {
      if (var_7->next != (type_5 *)0x0) {
        var_7 = (type_1 *)var_8((type_6 *)var_7);
      }
      return var_7;
    }
  }
  return (type_1 *)0x0;
}


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

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

int * MASKED(int param_1)

{
  void *__ptr;
  undefined4 uVar1;
  undefined4 *puVar2;
  int *piVar3;
  
  if (((param_1 != 0) && (*(int *)(param_1 + 0xc) != 0)) &&
     (puVar2 = (undefined4 *)(*(undefined4 **)(param_1 + 0x14))[3],
     *(undefined4 **)(param_1 + 0x14) != puVar2)) {
    piVar3 = (int *)0x0;
    do {
      __ptr = (void *)itos(*puVar2,puVar2[1]);
      uVar1 = make_bare_word(__ptr);
      piVar3 = (int *)make_word_list(uVar1,piVar3);
      free(__ptr);
      puVar2 = (undefined4 *)puVar2[3];
    } while (*(undefined4 **)(param_1 + 0x14) != puVar2);
    if (piVar3 != (int *)0x0) {
      if (*piVar3 != 0) {
        piVar3 = (int *)list_reverse(piVar3);
      }
      return piVar3;
    }
  }
  return (int *)0x0;
}

