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

void tzfree(timezone_t tz)

{
  tm_zone *ptVar1;
  
  if (tz != (timezone_t)0x1) {
    while (tz != (timezone_t)0x0) {
      ptVar1 = tz->next;
      free(tz);
      tz = ptVar1;
    }
  }
  return;
}



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

void FUN_00058c70(undefined4 *param_1)

{
  undefined4 *puVar1;
  
  if (param_1 != (undefined4 *)0x1) {
    while (param_1 != (undefined4 *)0x0) {
      puVar1 = (undefined4 *)*param_1;
      free(param_1);
      param_1 = puVar1;
    }
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00014da0
ADD EBX,0x22071
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
CMP EAX,0x1
JNZ 0x00058ca0
JMP 0x00058ca4
SUB ESP,0xc
MOV ESI,dword ptr [EAX]
PUSH EAX
CALL 0x00014190
MOV EAX,ESI
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00058c90
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00058c70(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00058c70(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00058c70(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x1)" ( (binary_expression "param_1 != (undefined4 *)0x1" identifier != (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }" { (while_statement "while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }" while (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      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }" { (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "param_1 = puVar1;" (assignment_expression "param_1 = puVar1" identifier = 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 tzfree(timezone_t tz)\n\n{\n  tm_zone *ptVar1;\n  \n  if (tz != (timezone_t)0x1) {\n    while (tz != (timezone_t)0x0) {\n      ptVar1 = tz->next;\n      free(tz);\n      tz = ptVar1;\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void tzfree(timezone_t tz)\n\n{\n  tm_zone *ptVar1;\n  \n  if (tz != (timezone_t)0x1) {\n    while (tz != (timezone_t)0x0) {\n      ptVar1 = tz->next;\n      free(tz);\n      tz = ptVar1;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "tzfree(timezone_t tz)" identifier (parameter_list "(timezone_t tz)" ( (parameter_declaration "timezone_t tz" type_identifier identifier) ))) (compound_statement "{\n  tm_zone *ptVar1;\n  \n  if (tz != (timezone_t)0x1) {\n    while (tz != (timezone_t)0x0) {\n      ptVar1 = tz->next;\n      free(tz);\n      tz = ptVar1;\n    }\n  }\n  return;\n}" { (declaration "tm_zone *ptVar1;" type_identifier (pointer_declarator "*ptVar1" * identifier) ;) (if_statement "if (tz != (timezone_t)0x1) {\n    while (tz != (timezone_t)0x0) {\n      ptVar1 = tz->next;\n      free(tz);\n      tz = ptVar1;\n    }\n  }" if (parenthesized_expression "(tz != (timezone_t)0x1)" ( (binary_expression "tz != (timezone_t)0x1" identifier != (cast_expression "(timezone_t)0x1" ( (type_descriptor "timezone_t" type_identifier) ) number_literal)) )) (compound_statement "{\n    while (tz != (timezone_t)0x0) {\n      ptVar1 = tz->next;\n      free(tz);\n      tz = ptVar1;\n    }\n  }" { (while_statement "while (tz != (timezone_t)0x0) {\n      ptVar1 = tz->next;\n      free(tz);\n      tz = ptVar1;\n    }" while (parenthesized_expression "(tz != (timezone_t)0x0)" ( (binary_expression "tz != (timezone_t)0x0" identifier != (cast_expression "(timezone_t)0x0" ( (type_descriptor "timezone_t" type_identifier) ) number_literal)) )) (compound_statement "{\n      ptVar1 = tz->next;\n      free(tz);\n      tz = ptVar1;\n    }" { (expression_statement "ptVar1 = tz->next;" (assignment_expression "ptVar1 = tz->next" identifier = (field_expression "tz->next" identifier -> field_identifier)) ;) (expression_statement "free(tz);" (call_expression "free(tz)" identifier (argument_list "(tz)" ( identifier ))) ;) (expression_statement "tz = ptVar1;" (assignment_expression "tz = ptVar1" identifier = identifier) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00058c70(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00058c70(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00058c70(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }" if (parenthesized_expression "(param_1 != (undefined4 *)0x1)" ( (binary_expression "param_1 != (undefined4 *)0x1" identifier != (cast_expression "(undefined4 *)0x1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }" { (while_statement "while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }" while (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      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }" { (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "param_1 = puVar1;" (assignment_expression "param_1 = puVar1" identifier = 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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00058c70(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00058c70(undefined4 *param_1)" (identifier "FUN_00058c70") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (param_1 != (undefined4 *)0x1) {\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != (undefined4 *)0x1)" (( "(") (binary_expression "param_1 != (undefined4 *)0x1" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) () ")")) (compound_statement "{\n    while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }\n  }" ({ "{") (while_statement "while (param_1 != (undefined4 *)0x0) {\n      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }" (while "while") (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      puVar1 = (undefined4 *)*param_1;\n      free(param_1);\n      param_1 = puVar1;\n    }" ({ "{") (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "param_1 = puVar1;" (assignment_expression "param_1 = puVar1" (identifier "param_1") (= "=") (identifier "puVar1")) (; ";")) (} "}"))) (} "}"))) (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 var_1)

{
  type_2 *ptVar1;
  
  if (var_1 != (type_1)0x1) {
    while (var_1 != (type_1)0x0) {
      ptVar1 = var_1->next;
      var_2(var_1);
      var_1 = ptVar1;
    }
  }
  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: (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 (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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: (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  
  if (param_1 != (undefined4 *)0x1) {
    while (param_1 != (undefined4 *)0x0) {
      puVar1 = (undefined4 *)*param_1;
      free(param_1);
      param_1 = puVar1;
    }
  }
  return;
}

