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

void freeargv(char **vector)

{
  char *__ptr;
  char **ppcVar1;
  
  if (vector != (char **)0x0) {
    __ptr = *vector;
    ppcVar1 = vector;
    while (__ptr != (char *)0x0) {
      ppcVar1 = ppcVar1 + 1;
      free(__ptr);
      __ptr = *ppcVar1;
    }
    free(vector);
  }
  return;
}



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

void FUN_00013470(undefined4 *param_1)

{
  void *__ptr;
  undefined4 *puVar1;
  
  if (param_1 != (undefined4 *)0x0) {
    __ptr = (void *)*param_1;
    puVar1 = param_1;
    while (__ptr != (void *)0x0) {
      puVar1 = puVar1 + 1;
      free(__ptr);
      __ptr = (void *)*puVar1;
    }
    free(param_1);
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00011f10
ADD EBX,0x4b84
TEST EDI,EDI
JZ 0x000134b1
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x000134a5
MOV ESI,EDI
NOP
SUB ESP,0xc
ADD ESI,0x4
PUSH EAX
CALL 0x000110b0
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00013490
SUB ESP,0xc
PUSH EDI
CALL 0x000110b0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00013470(undefined4 *param_1)\n\n{\n  void *__ptr;\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00013470(undefined4 *param_1)\n\n{\n  void *__ptr;\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00013470(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *__ptr;\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }" { (expression_statement "__ptr = (void *)*param_1;" (assignment_expression "__ptr = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar1 = param_1;" (assignment_expression "puVar1 = param_1" identifier = identifier) ;) (while_statement "while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }" while (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }" { (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = (void *)*puVar1;" (assignment_expression "__ptr = (void *)*puVar1" identifier = (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( 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 freeargv(char **vector)\n\n{\n  char *__ptr;\n  char **ppcVar1;\n  \n  if (vector != (char **)0x0) {\n    __ptr = *vector;\n    ppcVar1 = vector;\n    while (__ptr != (char *)0x0) {\n      ppcVar1 = ppcVar1 + 1;\n      free(__ptr);\n      __ptr = *ppcVar1;\n    }\n    free(vector);\n  }\n  return;\n}\n\n" comment comment (function_definition "void freeargv(char **vector)\n\n{\n  char *__ptr;\n  char **ppcVar1;\n  \n  if (vector != (char **)0x0) {\n    __ptr = *vector;\n    ppcVar1 = vector;\n    while (__ptr != (char *)0x0) {\n      ppcVar1 = ppcVar1 + 1;\n      free(__ptr);\n      __ptr = *ppcVar1;\n    }\n    free(vector);\n  }\n  return;\n}" primitive_type (function_declarator "freeargv(char **vector)" identifier (parameter_list "(char **vector)" ( (parameter_declaration "char **vector" primitive_type (pointer_declarator "**vector" * (pointer_declarator "*vector" * identifier))) ))) (compound_statement "{\n  char *__ptr;\n  char **ppcVar1;\n  \n  if (vector != (char **)0x0) {\n    __ptr = *vector;\n    ppcVar1 = vector;\n    while (__ptr != (char *)0x0) {\n      ppcVar1 = ppcVar1 + 1;\n      free(__ptr);\n      __ptr = *ppcVar1;\n    }\n    free(vector);\n  }\n  return;\n}" { (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (if_statement "if (vector != (char **)0x0) {\n    __ptr = *vector;\n    ppcVar1 = vector;\n    while (__ptr != (char *)0x0) {\n      ppcVar1 = ppcVar1 + 1;\n      free(__ptr);\n      __ptr = *ppcVar1;\n    }\n    free(vector);\n  }" if (parenthesized_expression "(vector != (char **)0x0)" ( (binary_expression "vector != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    __ptr = *vector;\n    ppcVar1 = vector;\n    while (__ptr != (char *)0x0) {\n      ppcVar1 = ppcVar1 + 1;\n      free(__ptr);\n      __ptr = *ppcVar1;\n    }\n    free(vector);\n  }" { (expression_statement "__ptr = *vector;" (assignment_expression "__ptr = *vector" identifier = (pointer_expression "*vector" * identifier)) ;) (expression_statement "ppcVar1 = vector;" (assignment_expression "ppcVar1 = vector" identifier = identifier) ;) (while_statement "while (__ptr != (char *)0x0) {\n      ppcVar1 = ppcVar1 + 1;\n      free(__ptr);\n      __ptr = *ppcVar1;\n    }" while (parenthesized_expression "(__ptr != (char *)0x0)" ( (binary_expression "__ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      ppcVar1 = ppcVar1 + 1;\n      free(__ptr);\n      __ptr = *ppcVar1;\n    }" { (expression_statement "ppcVar1 = ppcVar1 + 1;" (assignment_expression "ppcVar1 = ppcVar1 + 1" identifier = (binary_expression "ppcVar1 + 1" identifier + number_literal)) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = *ppcVar1;" (assignment_expression "__ptr = *ppcVar1" identifier = (pointer_expression "*ppcVar1" * identifier)) ;) })) (expression_statement "free(vector);" (call_expression "free(vector)" identifier (argument_list "(vector)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00013470(undefined4 *param_1)\n\n{\n  void *__ptr;\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00013470(undefined4 *param_1)\n\n{\n  void *__ptr;\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00013470(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *__ptr;\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }" { (expression_statement "__ptr = (void *)*param_1;" (assignment_expression "__ptr = (void *)*param_1" identifier = (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "puVar1 = param_1;" (assignment_expression "puVar1 = param_1" identifier = identifier) ;) (while_statement "while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }" while (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }" { (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = (void *)*puVar1;" (assignment_expression "__ptr = (void *)*puVar1" identifier = (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (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 *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00013470(undefined4 *param_1)\n\n{\n  void *__ptr;\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00013470(undefined4 *param_1)" (identifier "FUN_00013470") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  void *__ptr;\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }\n  return;\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (param_1 != (undefined4 *)0x0) {\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __ptr = (void *)*param_1;\n    puVar1 = param_1;\n    while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }\n    free(param_1);\n  }" ({ "{") (expression_statement "__ptr = (void *)*param_1;" (assignment_expression "__ptr = (void *)*param_1" (identifier "__ptr") (= "=") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "puVar1 = param_1;" (assignment_expression "puVar1 = param_1" (identifier "puVar1") (= "=") (identifier "param_1")) (; ";")) (while_statement "while (__ptr != (void *)0x0) {\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }" (while "while") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar1 = puVar1 + 1;\n      free(__ptr);\n      __ptr = (void *)*puVar1;\n    }" ({ "{") (expression_statement "puVar1 = puVar1 + 1;" (assignment_expression "puVar1 = puVar1 + 1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "__ptr = (void *)*puVar1;" (assignment_expression "__ptr = (void *)*puVar1" (identifier "__ptr") (= "=") (cast_expression "(void *)*puVar1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (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 **var_1)

{
  char *var_2;
  char **var_3;
  
  if (var_1 != (char **)0x0) {
    var_2 = *var_1;
    var_3 = var_1;
    while (var_2 != (char *)0x0) {
      var_3 = var_3 + 1;
      var_4(var_2);
      var_2 = *var_3;
    }
    var_4(var_1);
  }
  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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (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: (pointer_expression argument: (identifier))))))) (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)

{
  void *__ptr;
  undefined4 *puVar1;
  
  if (param_1 != (undefined4 *)0x0) {
    __ptr = (void *)*param_1;
    puVar1 = param_1;
    while (__ptr != (void *)0x0) {
      puVar1 = puVar1 + 1;
      free(__ptr);
      __ptr = (void *)*puVar1;
    }
    free(param_1);
  }
  return;
}

