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

void search_list_append(Search_List *list,char *paths)

{
  char *__s;
  search_list_elem *psVar1;
  search_list_elem *psVar2;
  char *pcVar3;
  size_t __n;
  
  pcVar3 = paths + -1;
  do {
    while( true ) {
      __s = pcVar3 + 1;
      pcVar3 = strchr(__s,0x3a);
      if (pcVar3 == (char *)0x0) {
        __n = strlen(__s);
      }
      else {
        __n = (int)pcVar3 - (int)__s;
      }
      psVar2 = (search_list_elem *)xmalloc(__n + 8);
      memcpy(psVar2->path,__s,__n);
      psVar1 = list->tail;
      psVar2->path[__n] = '\0';
      psVar2->next = (search_list_elem *)0x0;
      if (psVar1 != (search_list_elem *)0x0) break;
      list->head = psVar2;
      list->tail = psVar2;
      if (pcVar3 == (char *)0x0) {
        return;
      }
    }
    psVar1->next = psVar2;
    list->tail = psVar2;
  } while (pcVar3 != (char *)0x0);
  return;
}



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

void FUN_0001cd10(undefined4 *param_1,int param_2)

{
  char *__s;
  undefined4 *puVar1;
  undefined4 *puVar2;
  char *pcVar3;
  size_t __n;
  
  pcVar3 = (char *)(param_2 + -1);
  do {
    while( true ) {
      __s = pcVar3 + 1;
      pcVar3 = strchr(__s,0x3a);
      if (pcVar3 == (char *)0x0) {
        __n = strlen(__s);
      }
      else {
        __n = (int)pcVar3 - (int)__s;
      }
      puVar2 = (undefined4 *)xmalloc(__n + 8);
      memcpy(puVar2 + 1,__s,__n);
      puVar1 = (undefined4 *)param_1[1];
      *(undefined1 *)((int)puVar2 + __n + 4) = 0;
      *puVar2 = 0;
      if (puVar1 != (undefined4 *)0x0) break;
      *param_1 = puVar2;
      param_1[1] = puVar2;
      if (pcVar3 == (char *)0x0) {
        return;
      }
    }
    *puVar1 = puVar2;
    param_1[1] = puVar2;
  } while (pcVar3 != (char *)0x0);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0x102e7
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x34]
LEA EBP,[EAX + -0x1]
JMP 0x0001cd7e
MOV ESI,EAX
SUB ESI,EDI
SUB ESP,0xc
LEA EAX,[ESI + 0x8]
PUSH EAX
CALL 0x000121d0
MOV EDX,EAX
LEA EAX,[EAX + 0x4]
MOV dword ptr [ESP + 0x1c],EDX
ADD ESP,0xc
PUSH ESI
PUSH EDI
PUSH EAX
CALL 0x000120a0
MOV EAX,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV EAX,dword ptr [EAX + 0x4]
MOV byte ptr [EDX + ESI*0x1 + 0x4],0x0
MOV dword ptr [EDX],0x0
TEST EAX,EAX
JZ 0x0001cda8
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX + 0x4],EDX
TEST EBP,EBP
JZ 0x0001cdb9
SUB ESP,0x8
LEA EDI,[EBP + 0x1]
PUSH 0x3a
PUSH EDI
CALL 0x000122c0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x0001cd30
SUB ESP,0xc
PUSH EDI
CALL 0x000122e0
ADD ESP,0x10
MOV ESI,EAX
JMP 0x0001cd34
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [EAX + 0x4],EDX
TEST EBP,EBP
JNZ 0x0001cd7e
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001cd10(undefined4 *param_1,int param_2)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = (char *)(param_2 + -1);\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}\n\n" comment (function_definition "void FUN_0001cd10(undefined4 *param_1,int param_2)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = (char *)(param_2 + -1);\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}" primitive_type (function_declarator "FUN_0001cd10(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char *__s;\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = (char *)(param_2 + -1);\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "pcVar3 = (char *)(param_2 + -1);" (assignment_expression "pcVar3 = (char *)(param_2 + -1)" identifier = (cast_expression "(char *)(param_2 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + -1)" ( (binary_expression "param_2 + -1" identifier + number_literal) )))) ;) (do_statement "do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);" do (compound_statement "{\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  }" { (while_statement "while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }" { (expression_statement "__s = pcVar3 + 1;" (assignment_expression "__s = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = strchr(__s,0x3a);" (assignment_expression "pcVar3 = strchr(__s,0x3a)" identifier = (call_expression "strchr(__s,0x3a)" identifier (argument_list "(__s,0x3a)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __n = strlen(__s);\n      }" { (expression_statement "__n = strlen(__s);" (assignment_expression "__n = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) }) (else_clause "else {\n        __n = (int)pcVar3 - (int)__s;\n      }" else (compound_statement "{\n        __n = (int)pcVar3 - (int)__s;\n      }" { (expression_statement "__n = (int)pcVar3 - (int)__s;" (assignment_expression "__n = (int)pcVar3 - (int)__s" identifier = (binary_expression "(int)pcVar3 - (int)__s" (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "puVar2 = (undefined4 *)xmalloc(__n + 8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(__n + 8)" identifier = (cast_expression "(undefined4 *)xmalloc(__n + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(__n + 8)" identifier (argument_list "(__n + 8)" ( (binary_expression "__n + 8" identifier + number_literal) ))))) ;) (expression_statement "memcpy(puVar2 + 1,__s,__n);" (call_expression "memcpy(puVar2 + 1,__s,__n)" identifier (argument_list "(puVar2 + 1,__s,__n)" ( (binary_expression "puVar2 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar1 = (undefined4 *)param_1[1];" (assignment_expression "puVar1 = (undefined4 *)param_1[1]" identifier = (cast_expression "(undefined4 *)param_1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + __n + 4) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + __n + 4) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + __n + 4)" * (cast_expression "(undefined1 *)((int)puVar2 + __n + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + __n + 4)" ( (binary_expression "(int)puVar2 + __n + 4" (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "*param_1 = puVar2;" (assignment_expression "*param_1 = puVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = puVar2;" (assignment_expression "param_1[1] = puVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        return;\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "*puVar1 = puVar2;" (assignment_expression "*puVar1 = puVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "param_1[1] = puVar2;" (assignment_expression "param_1[1] = puVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid search_list_append(Search_List *list,char *paths)\n\n{\n  char *__s;\n  search_list_elem *psVar1;\n  search_list_elem *psVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = paths + -1;\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      psVar2 = (search_list_elem *)xmalloc(__n + 8);\n      memcpy(psVar2->path,__s,__n);\n      psVar1 = list->tail;\n      psVar2->path[__n] = '\0';\n      psVar2->next = (search_list_elem *)0x0;\n      if (psVar1 != (search_list_elem *)0x0) break;\n      list->head = psVar2;\n      list->tail = psVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    psVar1->next = psVar2;\n    list->tail = psVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}\n\n" comment comment (function_definition "void search_list_append(Search_List *list,char *paths)\n\n{\n  char *__s;\n  search_list_elem *psVar1;\n  search_list_elem *psVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = paths + -1;\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      psVar2 = (search_list_elem *)xmalloc(__n + 8);\n      memcpy(psVar2->path,__s,__n);\n      psVar1 = list->tail;\n      psVar2->path[__n] = '\0';\n      psVar2->next = (search_list_elem *)0x0;\n      if (psVar1 != (search_list_elem *)0x0) break;\n      list->head = psVar2;\n      list->tail = psVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    psVar1->next = psVar2;\n    list->tail = psVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}" primitive_type (function_declarator "search_list_append(Search_List *list,char *paths)" identifier (parameter_list "(Search_List *list,char *paths)" ( (parameter_declaration "Search_List *list" type_identifier (pointer_declarator "*list" * identifier)) , (parameter_declaration "char *paths" primitive_type (pointer_declarator "*paths" * identifier)) ))) (compound_statement "{\n  char *__s;\n  search_list_elem *psVar1;\n  search_list_elem *psVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = paths + -1;\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      psVar2 = (search_list_elem *)xmalloc(__n + 8);\n      memcpy(psVar2->path,__s,__n);\n      psVar1 = list->tail;\n      psVar2->path[__n] = '\0';\n      psVar2->next = (search_list_elem *)0x0;\n      if (psVar1 != (search_list_elem *)0x0) break;\n      list->head = psVar2;\n      list->tail = psVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    psVar1->next = psVar2;\n    list->tail = psVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "search_list_elem *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "search_list_elem *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "pcVar3 = paths + -1;" (assignment_expression "pcVar3 = paths + -1" identifier = (binary_expression "paths + -1" identifier + number_literal)) ;) (do_statement "do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      psVar2 = (search_list_elem *)xmalloc(__n + 8);\n      memcpy(psVar2->path,__s,__n);\n      psVar1 = list->tail;\n      psVar2->path[__n] = '\0';\n      psVar2->next = (search_list_elem *)0x0;\n      if (psVar1 != (search_list_elem *)0x0) break;\n      list->head = psVar2;\n      list->tail = psVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    psVar1->next = psVar2;\n    list->tail = psVar2;\n  } while (pcVar3 != (char *)0x0);" do (compound_statement "{\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      psVar2 = (search_list_elem *)xmalloc(__n + 8);\n      memcpy(psVar2->path,__s,__n);\n      psVar1 = list->tail;\n      psVar2->path[__n] = '\0';\n      psVar2->next = (search_list_elem *)0x0;\n      if (psVar1 != (search_list_elem *)0x0) break;\n      list->head = psVar2;\n      list->tail = psVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    psVar1->next = psVar2;\n    list->tail = psVar2;\n  }" { (while_statement "while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      psVar2 = (search_list_elem *)xmalloc(__n + 8);\n      memcpy(psVar2->path,__s,__n);\n      psVar1 = list->tail;\n      psVar2->path[__n] = '\0';\n      psVar2->next = (search_list_elem *)0x0;\n      if (psVar1 != (search_list_elem *)0x0) break;\n      list->head = psVar2;\n      list->tail = psVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      psVar2 = (search_list_elem *)xmalloc(__n + 8);\n      memcpy(psVar2->path,__s,__n);\n      psVar1 = list->tail;\n      psVar2->path[__n] = '\0';\n      psVar2->next = (search_list_elem *)0x0;\n      if (psVar1 != (search_list_elem *)0x0) break;\n      list->head = psVar2;\n      list->tail = psVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }" { (expression_statement "__s = pcVar3 + 1;" (assignment_expression "__s = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = strchr(__s,0x3a);" (assignment_expression "pcVar3 = strchr(__s,0x3a)" identifier = (call_expression "strchr(__s,0x3a)" identifier (argument_list "(__s,0x3a)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __n = strlen(__s);\n      }" { (expression_statement "__n = strlen(__s);" (assignment_expression "__n = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) }) (else_clause "else {\n        __n = (int)pcVar3 - (int)__s;\n      }" else (compound_statement "{\n        __n = (int)pcVar3 - (int)__s;\n      }" { (expression_statement "__n = (int)pcVar3 - (int)__s;" (assignment_expression "__n = (int)pcVar3 - (int)__s" identifier = (binary_expression "(int)pcVar3 - (int)__s" (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "psVar2 = (search_list_elem *)xmalloc(__n + 8);" (assignment_expression "psVar2 = (search_list_elem *)xmalloc(__n + 8)" identifier = (cast_expression "(search_list_elem *)xmalloc(__n + 8)" ( (type_descriptor "search_list_elem *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(__n + 8)" identifier (argument_list "(__n + 8)" ( (binary_expression "__n + 8" identifier + number_literal) ))))) ;) (expression_statement "memcpy(psVar2->path,__s,__n);" (call_expression "memcpy(psVar2->path,__s,__n)" identifier (argument_list "(psVar2->path,__s,__n)" ( (field_expression "psVar2->path" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "psVar1 = list->tail;" (assignment_expression "psVar1 = list->tail" identifier = (field_expression "list->tail" identifier -> field_identifier)) ;) (expression_statement "psVar2->path[__n] = '\0';" (assignment_expression "psVar2->path[__n] = '\0'" (subscript_expression "psVar2->path[__n]" (field_expression "psVar2->path" identifier -> field_identifier) [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "psVar2->next = (search_list_elem *)0x0;" (assignment_expression "psVar2->next = (search_list_elem *)0x0" (field_expression "psVar2->next" identifier -> field_identifier) = (cast_expression "(search_list_elem *)0x0" ( (type_descriptor "search_list_elem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (psVar1 != (search_list_elem *)0x0) break;" if (parenthesized_expression "(psVar1 != (search_list_elem *)0x0)" ( (binary_expression "psVar1 != (search_list_elem *)0x0" identifier != (cast_expression "(search_list_elem *)0x0" ( (type_descriptor "search_list_elem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "list->head = psVar2;" (assignment_expression "list->head = psVar2" (field_expression "list->head" identifier -> field_identifier) = identifier) ;) (expression_statement "list->tail = psVar2;" (assignment_expression "list->tail = psVar2" (field_expression "list->tail" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        return;\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "psVar1->next = psVar2;" (assignment_expression "psVar1->next = psVar2" (field_expression "psVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "list->tail = psVar2;" (assignment_expression "list->tail = psVar2" (field_expression "list->tail" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001cd10(undefined4 *param_1,int param_2)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = (char *)(param_2 + -1);\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}\n\n" (function_definition "void FUN_0001cd10(undefined4 *param_1,int param_2)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = (char *)(param_2 + -1);\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}" primitive_type (function_declarator "FUN_0001cd10(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char *__s;\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = (char *)(param_2 + -1);\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "pcVar3 = (char *)(param_2 + -1);" (assignment_expression "pcVar3 = (char *)(param_2 + -1)" identifier = (cast_expression "(char *)(param_2 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + -1)" ( (binary_expression "param_2 + -1" identifier + number_literal) )))) ;) (do_statement "do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);" do (compound_statement "{\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  }" { (while_statement "while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }" { (expression_statement "__s = pcVar3 + 1;" (assignment_expression "__s = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = strchr(__s,0x3a);" (assignment_expression "pcVar3 = strchr(__s,0x3a)" identifier = (call_expression "strchr(__s,0x3a)" identifier (argument_list "(__s,0x3a)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        __n = strlen(__s);\n      }" { (expression_statement "__n = strlen(__s);" (assignment_expression "__n = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) }) (else_clause "else {\n        __n = (int)pcVar3 - (int)__s;\n      }" else (compound_statement "{\n        __n = (int)pcVar3 - (int)__s;\n      }" { (expression_statement "__n = (int)pcVar3 - (int)__s;" (assignment_expression "__n = (int)pcVar3 - (int)__s" identifier = (binary_expression "(int)pcVar3 - (int)__s" (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }))) (expression_statement "puVar2 = (undefined4 *)xmalloc(__n + 8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(__n + 8)" identifier = (cast_expression "(undefined4 *)xmalloc(__n + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(__n + 8)" identifier (argument_list "(__n + 8)" ( (binary_expression "__n + 8" identifier + number_literal) ))))) ;) (expression_statement "memcpy(puVar2 + 1,__s,__n);" (call_expression "memcpy(puVar2 + 1,__s,__n)" identifier (argument_list "(puVar2 + 1,__s,__n)" ( (binary_expression "puVar2 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar1 = (undefined4 *)param_1[1];" (assignment_expression "puVar1 = (undefined4 *)param_1[1]" identifier = (cast_expression "(undefined4 *)param_1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "*(undefined1 *)((int)puVar2 + __n + 4) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + __n + 4) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + __n + 4)" * (cast_expression "(undefined1 *)((int)puVar2 + __n + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + __n + 4)" ( (binary_expression "(int)puVar2 + __n + 4" (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (if_statement "if (puVar1 != (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" ( (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "*param_1 = puVar2;" (assignment_expression "*param_1 = puVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = puVar2;" (assignment_expression "param_1[1] = puVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        return;\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "*puVar1 = puVar2;" (assignment_expression "*puVar1 = puVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "param_1[1] = puVar2;" (assignment_expression "param_1[1] = puVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (return_statement return ;) })))
(function_definition "void FUN_0001cd10(undefined4 *param_1,int param_2)\n\n{\n  char *__s;\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = (char *)(param_2 + -1);\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001cd10(undefined4 *param_1,int param_2)" (identifier "FUN_0001cd10") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char *__s;\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  size_t __n;\n  \n  pcVar3 = (char *)(param_2 + -1);\n  do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);\n  return;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (expression_statement "pcVar3 = (char *)(param_2 + -1);" (assignment_expression "pcVar3 = (char *)(param_2 + -1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(param_2 + -1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + -1)" (( "(") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1")) () ")")))) (; ";")) (do_statement "do {\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  } while (pcVar3 != (char *)0x0);" (do "do") (compound_statement "{\n    while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }\n    *puVar1 = puVar2;\n    param_1[1] = puVar2;\n  }" ({ "{") (while_statement "while( true ) {\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      __s = pcVar3 + 1;\n      pcVar3 = strchr(__s,0x3a);\n      if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }\n      puVar2 = (undefined4 *)xmalloc(__n + 8);\n      memcpy(puVar2 + 1,__s,__n);\n      puVar1 = (undefined4 *)param_1[1];\n      *(undefined1 *)((int)puVar2 + __n + 4) = 0;\n      *puVar2 = 0;\n      if (puVar1 != (undefined4 *)0x0) break;\n      *param_1 = puVar2;\n      param_1[1] = puVar2;\n      if (pcVar3 == (char *)0x0) {\n        return;\n      }\n    }" ({ "{") (expression_statement "__s = pcVar3 + 1;" (assignment_expression "__s = pcVar3 + 1" (identifier "__s") (= "=") (binary_expression "pcVar3 + 1" (identifier "pcVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar3 = strchr(__s,0x3a);" (assignment_expression "pcVar3 = strchr(__s,0x3a)" (identifier "pcVar3") (= "=") (call_expression "strchr(__s,0x3a)" (identifier "strchr") (argument_list "(__s,0x3a)" (( "(") (identifier "__s") (, ",") (number_literal "0x3a") () ")")))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\n        __n = strlen(__s);\n      }\n      else {\n        __n = (int)pcVar3 - (int)__s;\n      }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        __n = strlen(__s);\n      }" ({ "{") (expression_statement "__n = strlen(__s);" (assignment_expression "__n = strlen(__s)" (identifier "__n") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (} "}")) (else_clause "else {\n        __n = (int)pcVar3 - (int)__s;\n      }" (else "else") (compound_statement "{\n        __n = (int)pcVar3 - (int)__s;\n      }" ({ "{") (expression_statement "__n = (int)pcVar3 - (int)__s;" (assignment_expression "__n = (int)pcVar3 - (int)__s" (identifier "__n") (= "=") (binary_expression "(int)pcVar3 - (int)__s" (cast_expression "(int)pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar3")) (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s")))) (; ";")) (} "}")))) (expression_statement "puVar2 = (undefined4 *)xmalloc(__n + 8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(__n + 8)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(__n + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(__n + 8)" (identifier "xmalloc") (argument_list "(__n + 8)" (( "(") (binary_expression "__n + 8" (identifier "__n") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "memcpy(puVar2 + 1,__s,__n);" (call_expression "memcpy(puVar2 + 1,__s,__n)" (identifier "memcpy") (argument_list "(puVar2 + 1,__s,__n)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) (, ",") (identifier "__s") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)param_1[1];" (assignment_expression "puVar1 = (undefined4 *)param_1[1]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)param_1[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "*(undefined1 *)((int)puVar2 + __n + 4) = 0;" (assignment_expression "*(undefined1 *)((int)puVar2 + __n + 4) = 0" (pointer_expression "*(undefined1 *)((int)puVar2 + __n + 4)" (* "*") (cast_expression "(undefined1 *)((int)puVar2 + __n + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + __n + 4)" (( "(") (binary_expression "(int)puVar2 + __n + 4" (binary_expression "(int)puVar2 + __n" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (identifier "__n")) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar1 != (undefined4 *)0x0) break;" (if "if") (parenthesized_expression "(puVar1 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*param_1 = puVar2;" (assignment_expression "*param_1 = puVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "param_1[1] = puVar2;" (assignment_expression "param_1[1] = puVar2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\n        return;\n      }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "*puVar1 = puVar2;" (assignment_expression "*puVar1 = puVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "param_1[1] = puVar2;" (assignment_expression "param_1[1] = puVar2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar3 != (char *)0x0)" (( "(") (binary_expression "pcVar3 != (char *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *list,char *var_1)

{
  char *__s;
  type_2 *var_8;
  type_2 *psVar2;
  char *var_2;
  size_t var_6;
  
  var_2 = var_1 + -1;
  do {
    while( true ) {
      __s = var_2 + 1;
      var_2 = var_3(__s,0x3a);
      if (var_2 == (char *)0x0) {
        var_6 = var_4(__s);
      }
      else {
        var_6 = (int)var_2 - (int)__s;
      }
      psVar2 = (type_2 *)var_5(var_6 + 8);
      var_7(psVar2->path,__s,var_6);
      var_8 = list->tail;
      psVar2->path[var_6] = '\0';
      psVar2->next = (type_2 *)0x0;
      if (var_8 != (type_2 *)0x0) break;
      list->head = psVar2;
      list->tail = psVar2;
      if (var_2 == (char *)0x0) {
        return;
      }
    }
    var_8->next = psVar2;
    list->tail = psVar2;
  } while (var_2 != (char *)0x0);
  return;
}


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

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

void MASKED(undefined4 *param_1,int param_2)

{
  char *__s;
  undefined4 *puVar1;
  undefined4 *puVar2;
  char *pcVar3;
  size_t __n;
  
  pcVar3 = (char *)(param_2 + -1);
  do {
    while( true ) {
      __s = pcVar3 + 1;
      pcVar3 = strchr(__s,0x3a);
      if (pcVar3 == (char *)0x0) {
        __n = strlen(__s);
      }
      else {
        __n = (int)pcVar3 - (int)__s;
      }
      puVar2 = (undefined4 *)xmalloc(__n + 8);
      memcpy(puVar2 + 1,__s,__n);
      puVar1 = (undefined4 *)param_1[1];
      *(undefined1 *)((int)puVar2 + __n + 4) = 0;
      *puVar2 = 0;
      if (puVar1 != (undefined4 *)0x0) break;
      *param_1 = puVar2;
      param_1[1] = puVar2;
      if (pcVar3 == (char *)0x0) {
        return;
      }
    }
    *puVar1 = puVar2;
    param_1[1] = puVar2;
  } while (pcVar3 != (char *)0x0);
  return;
}

