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

void pep_dll_add_excludes(char *new_excludes,exclude_type type)

{
  char *__s;
  char *__s_00;
  exclude_list_struct *peVar1;
  size_t sVar2;
  char *__dest;
  
  __s = (char *)xstrdup(new_excludes);
  __s_00 = strtok(__s,",:");
  while (__s_00 != (char *)0x0) {
    peVar1 = (exclude_list_struct *)xmalloc(0xc);
    sVar2 = strlen(__s_00);
    __dest = (char *)xmalloc(sVar2 + 1);
    peVar1->string = __dest;
    strcpy(__dest,__s_00);
    peVar1->type = type;
    peVar1->next = excludes;
    excludes = peVar1;
    __s_00 = strtok((char *)0x0,",:");
  }
  free(__s);
  return;
}



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

void FUN_0005cdb0(undefined4 param_1,undefined4 param_2)

{
  char *__s;
  char *__s_00;
  undefined4 *puVar1;
  size_t sVar2;
  char *__dest;
  
  __s = (char *)xstrdup(param_1);
  __s_00 = strtok(__s,",:");
  while (__s_00 != (char *)0x0) {
    puVar1 = (undefined4 *)xmalloc(0xc);
    sVar2 = strlen(__s_00);
    __dest = (char *)xmalloc(sVar2 + 1);
    *puVar1 = __dest;
    strcpy(__dest,__s_00);
    puVar1[2] = param_2;
    puVar1[1] = DAT_001d0198;
    DAT_001d0198 = puVar1;
    __s_00 = strtok((char *)0x0,",:");
  }
  free(__s);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x171247
SUB ESP,0x28
PUSH dword ptr [ESP + 0x3c]
CALL 0x000164f0
LEA ESI,[EBX + 0xffead12e]
MOV dword ptr [ESP + 0x1c],EAX
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x000169c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005ce43
MOV EBP,EAX
LEA ESI,[ESI]
NOP
SUB ESP,0xc
PUSH 0xc
CALL 0x00016dc8
MOV dword ptr [ESP],EBP
MOV EDI,EAX
CALL 0x00016760
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x00016dc8
MOV dword ptr [EDI],EAX
POP EDX
POP ECX
PUSH EBP
PUSH EAX
CALL 0x00016530
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [EDI + 0x8],EAX
MOV EAX,dword ptr [EBX + 0x2198]
MOV dword ptr [EBX + 0x2198],EDI
MOV dword ptr [EDI + 0x4],EAX
POP EDI
POP EBP
PUSH ESI
PUSH 0x0
CALL 0x000169c0
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x0005cdf0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x00016db0
ADD ESP,0x2c
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_0005cdb0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(param_1);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}\n\n" comment (function_definition "void FUN_0005cdb0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(param_1);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}" primitive_type (function_declarator "FUN_0005cdb0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  char *__s_00;\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(param_1);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__s = (char *)xstrdup(param_1);" (assignment_expression "__s = (char *)xstrdup(param_1)" identifier = (cast_expression "(char *)xstrdup(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "__s_00 = strtok(__s,",:");" (assignment_expression "__s_00 = strtok(__s,",:")" identifier = (call_expression "strtok(__s,",:")" identifier (argument_list "(__s,",:")" ( identifier , (string_literal "",:"" " string_content ") )))) ;) (while_statement "while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }" while (parenthesized_expression "(__s_00 != (char *)0x0)" ( (binary_expression "__s_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }" { (expression_statement "puVar1 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "sVar2 = strlen(__s_00);" (assignment_expression "sVar2 = strlen(__s_00)" identifier = (call_expression "strlen(__s_00)" identifier (argument_list "(__s_00)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar2 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "*puVar1 = __dest;" (assignment_expression "*puVar1 = __dest" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "strcpy(__dest,__s_00);" (call_expression "strcpy(__dest,__s_00)" identifier (argument_list "(__dest,__s_00)" ( identifier , identifier ))) ;) (expression_statement "puVar1[2] = param_2;" (assignment_expression "puVar1[2] = param_2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[1] = DAT_001d0198;" (assignment_expression "puVar1[1] = DAT_001d0198" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_001d0198 = puVar1;" (assignment_expression "DAT_001d0198 = puVar1" identifier = identifier) ;) (expression_statement "__s_00 = strtok((char *)0x0,",:");" (assignment_expression "__s_00 = strtok((char *)0x0,",:")" identifier = (call_expression "strtok((char *)0x0,",:")" identifier (argument_list "((char *)0x0,",:")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal "",:"" " string_content ") )))) ;) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (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 pep_dll_add_excludes(char *new_excludes,exclude_type type)\n\n{\n  char *__s;\n  char *__s_00;\n  exclude_list_struct *peVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(new_excludes);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    peVar1 = (exclude_list_struct *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    peVar1->string = __dest;\n    strcpy(__dest,__s_00);\n    peVar1->type = type;\n    peVar1->next = excludes;\n    excludes = peVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}\n\n" comment comment (function_definition "void pep_dll_add_excludes(char *new_excludes,exclude_type type)\n\n{\n  char *__s;\n  char *__s_00;\n  exclude_list_struct *peVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(new_excludes);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    peVar1 = (exclude_list_struct *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    peVar1->string = __dest;\n    strcpy(__dest,__s_00);\n    peVar1->type = type;\n    peVar1->next = excludes;\n    excludes = peVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}" primitive_type (function_declarator "pep_dll_add_excludes(char *new_excludes,exclude_type type)" identifier (parameter_list "(char *new_excludes,exclude_type type)" ( (parameter_declaration "char *new_excludes" primitive_type (pointer_declarator "*new_excludes" * identifier)) , (parameter_declaration "exclude_type type" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  char *__s_00;\n  exclude_list_struct *peVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(new_excludes);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    peVar1 = (exclude_list_struct *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    peVar1->string = __dest;\n    strcpy(__dest,__s_00);\n    peVar1->type = type;\n    peVar1->next = excludes;\n    excludes = peVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "exclude_list_struct *peVar1;" type_identifier (pointer_declarator "*peVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__s = (char *)xstrdup(new_excludes);" (assignment_expression "__s = (char *)xstrdup(new_excludes)" identifier = (cast_expression "(char *)xstrdup(new_excludes)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(new_excludes)" identifier (argument_list "(new_excludes)" ( identifier ))))) ;) (expression_statement "__s_00 = strtok(__s,",:");" (assignment_expression "__s_00 = strtok(__s,",:")" identifier = (call_expression "strtok(__s,",:")" identifier (argument_list "(__s,",:")" ( identifier , (string_literal "",:"" " string_content ") )))) ;) (while_statement "while (__s_00 != (char *)0x0) {\n    peVar1 = (exclude_list_struct *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    peVar1->string = __dest;\n    strcpy(__dest,__s_00);\n    peVar1->type = type;\n    peVar1->next = excludes;\n    excludes = peVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }" while (parenthesized_expression "(__s_00 != (char *)0x0)" ( (binary_expression "__s_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    peVar1 = (exclude_list_struct *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    peVar1->string = __dest;\n    strcpy(__dest,__s_00);\n    peVar1->type = type;\n    peVar1->next = excludes;\n    excludes = peVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }" { (expression_statement "peVar1 = (exclude_list_struct *)xmalloc(0xc);" (assignment_expression "peVar1 = (exclude_list_struct *)xmalloc(0xc)" identifier = (cast_expression "(exclude_list_struct *)xmalloc(0xc)" ( (type_descriptor "exclude_list_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "sVar2 = strlen(__s_00);" (assignment_expression "sVar2 = strlen(__s_00)" identifier = (call_expression "strlen(__s_00)" identifier (argument_list "(__s_00)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar2 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "peVar1->string = __dest;" (assignment_expression "peVar1->string = __dest" (field_expression "peVar1->string" identifier -> field_identifier) = identifier) ;) (expression_statement "strcpy(__dest,__s_00);" (call_expression "strcpy(__dest,__s_00)" identifier (argument_list "(__dest,__s_00)" ( identifier , identifier ))) ;) (expression_statement "peVar1->type = type;" (assignment_expression "peVar1->type = type" (field_expression "peVar1->type" identifier -> field_identifier) = identifier) ;) (expression_statement "peVar1->next = excludes;" (assignment_expression "peVar1->next = excludes" (field_expression "peVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "excludes = peVar1;" (assignment_expression "excludes = peVar1" identifier = identifier) ;) (expression_statement "__s_00 = strtok((char *)0x0,",:");" (assignment_expression "__s_00 = strtok((char *)0x0,",:")" identifier = (call_expression "strtok((char *)0x0,",:")" identifier (argument_list "((char *)0x0,",:")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal "",:"" " string_content ") )))) ;) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0005cdb0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(param_1);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}\n\n" (function_definition "void FUN_0005cdb0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(param_1);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}" primitive_type (function_declarator "FUN_0005cdb0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  char *__s_00;\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(param_1);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "__s = (char *)xstrdup(param_1);" (assignment_expression "__s = (char *)xstrdup(param_1)" identifier = (cast_expression "(char *)xstrdup(param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xstrdup(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (expression_statement "__s_00 = strtok(__s,",:");" (assignment_expression "__s_00 = strtok(__s,",:")" identifier = (call_expression "strtok(__s,",:")" identifier (argument_list "(__s,",:")" ( identifier , (string_literal "",:"" " string_content ") )))) ;) (while_statement "while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }" while (parenthesized_expression "(__s_00 != (char *)0x0)" ( (binary_expression "__s_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }" { (expression_statement "puVar1 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "sVar2 = strlen(__s_00);" (assignment_expression "sVar2 = strlen(__s_00)" identifier = (call_expression "strlen(__s_00)" identifier (argument_list "(__s_00)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar2 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "*puVar1 = __dest;" (assignment_expression "*puVar1 = __dest" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "strcpy(__dest,__s_00);" (call_expression "strcpy(__dest,__s_00)" identifier (argument_list "(__dest,__s_00)" ( identifier , identifier ))) ;) (expression_statement "puVar1[2] = param_2;" (assignment_expression "puVar1[2] = param_2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[1] = DAT_001d0198;" (assignment_expression "puVar1[1] = DAT_001d0198" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_001d0198 = puVar1;" (assignment_expression "DAT_001d0198 = puVar1" identifier = identifier) ;) (expression_statement "__s_00 = strtok((char *)0x0,",:");" (assignment_expression "__s_00 = strtok((char *)0x0,",:")" identifier = (call_expression "strtok((char *)0x0,",:")" identifier (argument_list "((char *)0x0,",:")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal "",:"" " string_content ") )))) ;) })) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , (string_literal " string_content ") )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0005cdb0(undefined4 param_1,undefined4 param_2)\n\n{\n  char *__s;\n  char *__s_00;\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(param_1);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005cdb0(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0005cdb0") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char *__s;\n  char *__s_00;\n  undefined4 *puVar1;\n  size_t sVar2;\n  char *__dest;\n  \n  __s = (char *)xstrdup(param_1);\n  __s_00 = strtok(__s,",:");\n  while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }\n  free(__s);\n  return;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *__s_00;" (primitive_type "char") (pointer_declarator "*__s_00" (* "*") (identifier "__s_00")) (; ";")) (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "__s = (char *)xstrdup(param_1);" (assignment_expression "__s = (char *)xstrdup(param_1)" (identifier "__s") (= "=") (cast_expression "(char *)xstrdup(param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xstrdup(param_1)" (identifier "xstrdup") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (expression_statement "__s_00 = strtok(__s,",:");" (assignment_expression "__s_00 = strtok(__s,",:")" (identifier "__s_00") (= "=") (call_expression "strtok(__s,",:")" (identifier "strtok") (argument_list "(__s,",:")" (( "(") (identifier "__s") (, ",") (string_literal "",:"" (" """) (string_content ",:") (" """)) () ")")))) (; ";")) (while_statement "while (__s_00 != (char *)0x0) {\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }" (while "while") (parenthesized_expression "(__s_00 != (char *)0x0)" (( "(") (binary_expression "__s_00 != (char *)0x0" (identifier "__s_00") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)xmalloc(0xc);\n    sVar2 = strlen(__s_00);\n    __dest = (char *)xmalloc(sVar2 + 1);\n    *puVar1 = __dest;\n    strcpy(__dest,__s_00);\n    puVar1[2] = param_2;\n    puVar1[1] = DAT_001d0198;\n    DAT_001d0198 = puVar1;\n    __s_00 = strtok((char *)0x0,",:");\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0xc)" (identifier "xmalloc") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "sVar2 = strlen(__s_00);" (assignment_expression "sVar2 = strlen(__s_00)" (identifier "sVar2") (= "=") (call_expression "strlen(__s_00)" (identifier "strlen") (argument_list "(__s_00)" (( "(") (identifier "__s_00") () ")")))) (; ";")) (expression_statement "__dest = (char *)xmalloc(sVar2 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar2 + 1)" (identifier "__dest") (= "=") (cast_expression "(char *)xmalloc(sVar2 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar2 + 1)" (identifier "xmalloc") (argument_list "(sVar2 + 1)" (( "(") (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "*puVar1 = __dest;" (assignment_expression "*puVar1 = __dest" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "__dest")) (; ";")) (expression_statement "strcpy(__dest,__s_00);" (call_expression "strcpy(__dest,__s_00)" (identifier "strcpy") (argument_list "(__dest,__s_00)" (( "(") (identifier "__dest") (, ",") (identifier "__s_00") () ")"))) (; ";")) (expression_statement "puVar1[2] = param_2;" (assignment_expression "puVar1[2] = param_2" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1[1] = DAT_001d0198;" (assignment_expression "puVar1[1] = DAT_001d0198" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_001d0198")) (; ";")) (expression_statement "DAT_001d0198 = puVar1;" (assignment_expression "DAT_001d0198 = puVar1" (identifier "DAT_001d0198") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "__s_00 = strtok((char *)0x0,",:");" (assignment_expression "__s_00 = strtok((char *)0x0,",:")" (identifier "__s_00") (= "=") (call_expression "strtok((char *)0x0,",:")" (identifier "strtok") (argument_list "((char *)0x0,",:")" (( "(") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (string_literal "",:"" (" """) (string_content ",:") (" """)) () ")")))) (; ";")) (} "}"))) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (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(char *new_excludes,type_1 type)

{
  char *__s;
  char *var_3;
  type_2 *peVar1;
  size_t var_6;
  char *__dest;
  
  __s = (char *)var_1(new_excludes);
  var_3 = var_2(__s,",:");
  while (var_3 != (char *)0x0) {
    peVar1 = (type_2 *)var_4(0xc);
    var_6 = var_5(var_3);
    __dest = (char *)var_4(var_6 + 1);
    peVar1->string = __dest;
    var_7(__dest,var_3);
    peVar1->type = type;
    peVar1->next = excludes;
    excludes = peVar1;
    var_3 = var_2((char *)0x0,",:");
  }
  var_8(__s);
  return;
}


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

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

void MASKED(undefined4 param_1,undefined4 param_2)

{
  char *__s;
  char *__s_00;
  undefined4 *puVar1;
  size_t sVar2;
  char *__dest;
  
  __s = (char *)xstrdup(param_1);
  __s_00 = strtok(__s,",:");
  while (__s_00 != (char *)0x0) {
    puVar1 = (undefined4 *)xmalloc(0xc);
    sVar2 = strlen(__s_00);
    __dest = (char *)xmalloc(sVar2 + 1);
    *puVar1 = __dest;
    strcpy(__dest,__s_00);
    puVar1[2] = param_2;
    puVar1[1] = DAT_001d0198;
    DAT_001d0198 = puVar1;
    __s_00 = strtok((char *)0x0,",:");
  }
  free(__s);
  return;
}

