
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void sk_cleanup(void)

{
  void *pvVar1;
  int index;
  
  index = 0;
  if (sktree != (tree234 *)0x0) {
    while (pvVar1 = index234(sktree,index), pvVar1 != (void *)0x0) {
      index = index + 1;
      close(*(int *)((int)pvVar1 + 8));
    }
  }
  return;
}



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

void FUN_00066c20(void)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 0;
  if (DAT_000a9940 != 0) {
    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {
      iVar2 = iVar2 + 1;
      close(*(int *)(iVar1 + 8));
    }
  }
  return;
}


PUSH ESI
XOR ESI,ESI
PUSH EBX
CALL 0x00014980
ADD EBX,0x42147
SUB ESP,0x4
MOV EAX,dword ptr [EBX + 0xbd0]
TEST EAX,EAX
JNZ 0x00066c57
JMP 0x00066c68
SUB ESP,0xc
PUSH dword ptr [EAX + 0x8]
ADD ESI,0x1
CALL 0x00014820
MOV EAX,dword ptr [EBX + 0xbd0]
ADD ESP,0x10
SUB ESP,0x8
PUSH ESI
PUSH EAX
CALL 0x00063bd0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00066c40
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_00066c20(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00066c20(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00066c20(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }" if (parenthesized_expression "(DAT_000a9940 != 0)" ( (binary_expression "DAT_000a9940 != 0" identifier != number_literal) )) (compound_statement "{\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }" { (while_statement "while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }" while (parenthesized_expression "(iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0" (assignment_expression "iVar1 = FUN_00063bd0(DAT_000a9940,iVar2)" identifier = (call_expression "FUN_00063bd0(DAT_000a9940,iVar2)" identifier (argument_list "(DAT_000a9940,iVar2)" ( identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "close(*(int *)(iVar1 + 8));" (call_expression "close(*(int *)(iVar1 + 8))" identifier (argument_list "(*(int *)(iVar1 + 8))" ( (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + 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 -- yet parameter storage is locked */\n\nvoid sk_cleanup(void)\n\n{\n  void *pvVar1;\n  int index;\n  \n  index = 0;\n  if (sktree != (tree234 *)0x0) {\n    while (pvVar1 = index234(sktree,index), pvVar1 != (void *)0x0) {\n      index = index + 1;\n      close(*(int *)((int)pvVar1 + 8));\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void sk_cleanup(void)\n\n{\n  void *pvVar1;\n  int index;\n  \n  index = 0;\n  if (sktree != (tree234 *)0x0) {\n    while (pvVar1 = index234(sktree,index), pvVar1 != (void *)0x0) {\n      index = index + 1;\n      close(*(int *)((int)pvVar1 + 8));\n    }\n  }\n  return;\n}" primitive_type (function_declarator "sk_cleanup(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  void *pvVar1;\n  int index;\n  \n  index = 0;\n  if (sktree != (tree234 *)0x0) {\n    while (pvVar1 = index234(sktree,index), pvVar1 != (void *)0x0) {\n      index = index + 1;\n      close(*(int *)((int)pvVar1 + 8));\n    }\n  }\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int index;" primitive_type identifier ;) (expression_statement "index = 0;" (assignment_expression "index = 0" identifier = number_literal) ;) (if_statement "if (sktree != (tree234 *)0x0) {\n    while (pvVar1 = index234(sktree,index), pvVar1 != (void *)0x0) {\n      index = index + 1;\n      close(*(int *)((int)pvVar1 + 8));\n    }\n  }" if (parenthesized_expression "(sktree != (tree234 *)0x0)" ( (binary_expression "sktree != (tree234 *)0x0" identifier != (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    while (pvVar1 = index234(sktree,index), pvVar1 != (void *)0x0) {\n      index = index + 1;\n      close(*(int *)((int)pvVar1 + 8));\n    }\n  }" { (while_statement "while (pvVar1 = index234(sktree,index), pvVar1 != (void *)0x0) {\n      index = index + 1;\n      close(*(int *)((int)pvVar1 + 8));\n    }" while (parenthesized_expression "(pvVar1 = index234(sktree,index), pvVar1 != (void *)0x0)" ( (comma_expression "pvVar1 = index234(sktree,index), pvVar1 != (void *)0x0" (assignment_expression "pvVar1 = index234(sktree,index)" identifier = (call_expression "index234(sktree,index)" identifier (argument_list "(sktree,index)" ( identifier , identifier )))) , (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      index = index + 1;\n      close(*(int *)((int)pvVar1 + 8));\n    }" { (expression_statement "index = index + 1;" (assignment_expression "index = index + 1" identifier = (binary_expression "index + 1" identifier + number_literal)) ;) (expression_statement "close(*(int *)((int)pvVar1 + 8));" (call_expression "close(*(int *)((int)pvVar1 + 8))" identifier (argument_list "(*(int *)((int)pvVar1 + 8))" ( (pointer_expression "*(int *)((int)pvVar1 + 8)" * (cast_expression "(int *)((int)pvVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar1 + 8)" ( (binary_expression "(int)pvVar1 + 8" (cast_expression "(int)pvVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00066c20(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00066c20(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00066c20(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }" if (parenthesized_expression "(DAT_000a9940 != 0)" ( (binary_expression "DAT_000a9940 != 0" identifier != number_literal) )) (compound_statement "{\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }" { (while_statement "while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }" while (parenthesized_expression "(iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0" (assignment_expression "iVar1 = FUN_00063bd0(DAT_000a9940,iVar2)" identifier = (call_expression "FUN_00063bd0(DAT_000a9940,iVar2)" identifier (argument_list "(DAT_000a9940,iVar2)" ( identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "close(*(int *)(iVar1 + 8));" (call_expression "close(*(int *)(iVar1 + 8))" identifier (argument_list "(*(int *)(iVar1 + 8))" ( (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00066c20(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00066c20(void)" (identifier "FUN_00066c20") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 0;\n  if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_000a9940 != 0) {\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }" (if "if") (parenthesized_expression "(DAT_000a9940 != 0)" (( "(") (binary_expression "DAT_000a9940 != 0" (identifier "DAT_000a9940") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }\n  }" ({ "{") (while_statement "while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }" (while "while") (parenthesized_expression "(iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0" (assignment_expression "iVar1 = FUN_00063bd0(DAT_000a9940,iVar2)" (identifier "iVar1") (= "=") (call_expression "FUN_00063bd0(DAT_000a9940,iVar2)" (identifier "FUN_00063bd0") (argument_list "(DAT_000a9940,iVar2)" (( "(") (identifier "DAT_000a9940") (, ",") (identifier "iVar2") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      iVar2 = iVar2 + 1;\n      close(*(int *)(iVar1 + 8));\n    }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "close(*(int *)(iVar1 + 8));" (call_expression "close(*(int *)(iVar1 + 8))" (identifier "close") (argument_list "(*(int *)(iVar1 + 8))" (( "(") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  void *var_3;
  int var_4;
  
  var_4 = 0;
  if (var_1 != (type_1 *)0x0) {
    while (var_3 = var_2(var_1,var_4), var_3 != (void *)0x0) {
      var_4 = var_4 + 1;
      var_5(*(int *)((int)var_3 + 8));
    }
  }
  return;
}


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

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

void MASKED(void)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 0;
  if (DAT_000a9940 != 0) {
    while (iVar1 = FUN_00063bd0(DAT_000a9940,iVar2), iVar1 != 0) {
      iVar2 = iVar2 + 1;
      close(*(int *)(iVar1 + 8));
    }
  }
  return;
}

