
/* WARNING: Unknown calling convention */

int collect_list_entry(void *item,void *proc_data)

{
  int iVar1;
  
  iVar1 = (**(code **)((int)proc_data + 4))(item);
  if (iVar1 != 0) {
    iVar1 = *(int *)((int)proc_data + 8);
                    /* WARNING: Load size is inaccurate */
    *(void **)(*proc_data + iVar1 * 4) = item;
    *(int *)((int)proc_data + 8) = iVar1 + 1;
  }
  return 0;
}



undefined4 FUN_0001b550(undefined4 param_1,int *param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)param_2[1])(param_1);
  if (iVar1 != 0) {
    iVar1 = param_2[2];
    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;
    param_2[2] = iVar1 + 1;
  }
  return 0;
}


PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
MOV EBX,dword ptr [ESP + 0x20]
PUSH ESI
CALL dword ptr [EBX + 0x4]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001b576
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX]
MOV dword ptr [EDX + EAX*0x4],ESI
ADD EAX,0x1
MOV dword ptr [EBX + 0x8],EAX
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
(translation_unit "undefined4 FUN_0001b550(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)param_2[1])(param_1);\n  if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001b550(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)param_2[1])(param_1);\n  if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001b550(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)param_2[1])(param_1);\n  if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)param_2[1])(param_1);" (assignment_expression "iVar1 = (*(code *)param_2[1])(param_1)" identifier = (call_expression "(*(code *)param_2[1])(param_1)" (parenthesized_expression "(*(code *)param_2[1])" ( (pointer_expression "*(code *)param_2[1]" * (cast_expression "(code *)param_2[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }" { (expression_statement "iVar1 = param_2[2];" (assignment_expression "iVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(*param_2 + iVar1 * 4) = param_1;" (assignment_expression "*(undefined4 *)(*param_2 + iVar1 * 4) = param_1" (pointer_expression "*(undefined4 *)(*param_2 + iVar1 * 4)" * (cast_expression "(undefined4 *)(*param_2 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar1 * 4)" ( (binary_expression "*param_2 + iVar1 * 4" (pointer_expression "*param_2" * identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "param_2[2] = iVar1 + 1;" (assignment_expression "param_2[2] = iVar1 + 1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint collect_list_entry(void *item,void *proc_data)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)((int)proc_data + 4))(item);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)((int)proc_data + 8);\n                    /* WARNING: Load size is inaccurate */\n    *(void **)(*proc_data + iVar1 * 4) = item;\n    *(int *)((int)proc_data + 8) = iVar1 + 1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int collect_list_entry(void *item,void *proc_data)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)((int)proc_data + 4))(item);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)((int)proc_data + 8);\n                    /* WARNING: Load size is inaccurate */\n    *(void **)(*proc_data + iVar1 * 4) = item;\n    *(int *)((int)proc_data + 8) = iVar1 + 1;\n  }\n  return 0;\n}" primitive_type (function_declarator "collect_list_entry(void *item,void *proc_data)" identifier (parameter_list "(void *item,void *proc_data)" ( (parameter_declaration "void *item" primitive_type (pointer_declarator "*item" * identifier)) , (parameter_declaration "void *proc_data" primitive_type (pointer_declarator "*proc_data" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (**(code **)((int)proc_data + 4))(item);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)((int)proc_data + 8);\n                    /* WARNING: Load size is inaccurate */\n    *(void **)(*proc_data + iVar1 * 4) = item;\n    *(int *)((int)proc_data + 8) = iVar1 + 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (**(code **)((int)proc_data + 4))(item);" (assignment_expression "iVar1 = (**(code **)((int)proc_data + 4))(item)" identifier = (call_expression "(**(code **)((int)proc_data + 4))(item)" (parenthesized_expression "(**(code **)((int)proc_data + 4))" ( (pointer_expression "**(code **)((int)proc_data + 4)" * (pointer_expression "*(code **)((int)proc_data + 4)" * (cast_expression "(code **)((int)proc_data + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)proc_data + 4)" ( (binary_expression "(int)proc_data + 4" (cast_expression "(int)proc_data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (argument_list "(item)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)((int)proc_data + 8);\n                    /* WARNING: Load size is inaccurate */\n    *(void **)(*proc_data + iVar1 * 4) = item;\n    *(int *)((int)proc_data + 8) = iVar1 + 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)((int)proc_data + 8);\n                    /* WARNING: Load size is inaccurate */\n    *(void **)(*proc_data + iVar1 * 4) = item;\n    *(int *)((int)proc_data + 8) = iVar1 + 1;\n  }" { (expression_statement "iVar1 = *(int *)((int)proc_data + 8);" (assignment_expression "iVar1 = *(int *)((int)proc_data + 8)" identifier = (pointer_expression "*(int *)((int)proc_data + 8)" * (cast_expression "(int *)((int)proc_data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)proc_data + 8)" ( (binary_expression "(int)proc_data + 8" (cast_expression "(int)proc_data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) comment (expression_statement "*(void **)(*proc_data + iVar1 * 4) = item;" (assignment_expression "*(void **)(*proc_data + iVar1 * 4) = item" (pointer_expression "*(void **)(*proc_data + iVar1 * 4)" * (cast_expression "(void **)(*proc_data + iVar1 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*proc_data + iVar1 * 4)" ( (binary_expression "*proc_data + iVar1 * 4" (pointer_expression "*proc_data" * identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(int *)((int)proc_data + 8) = iVar1 + 1;" (assignment_expression "*(int *)((int)proc_data + 8) = iVar1 + 1" (pointer_expression "*(int *)((int)proc_data + 8)" * (cast_expression "(int *)((int)proc_data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)proc_data + 8)" ( (binary_expression "(int)proc_data + 8" (cast_expression "(int)proc_data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0001b550(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)param_2[1])(param_1);\n  if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001b550(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)param_2[1])(param_1);\n  if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0001b550(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)param_2[1])(param_1);\n  if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)param_2[1])(param_1);" (assignment_expression "iVar1 = (*(code *)param_2[1])(param_1)" identifier = (call_expression "(*(code *)param_2[1])(param_1)" (parenthesized_expression "(*(code *)param_2[1])" ( (pointer_expression "*(code *)param_2[1]" * (cast_expression "(code *)param_2[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }" { (expression_statement "iVar1 = param_2[2];" (assignment_expression "iVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(*param_2 + iVar1 * 4) = param_1;" (assignment_expression "*(undefined4 *)(*param_2 + iVar1 * 4) = param_1" (pointer_expression "*(undefined4 *)(*param_2 + iVar1 * 4)" * (cast_expression "(undefined4 *)(*param_2 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar1 * 4)" ( (binary_expression "*param_2 + iVar1 * 4" (pointer_expression "*param_2" * identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "param_2[2] = iVar1 + 1;" (assignment_expression "param_2[2] = iVar1 + 1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001b550(undefined4 param_1,int *param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)param_2[1])(param_1);\n  if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001b550(undefined4 param_1,int *param_2)" (identifier "FUN_0001b550") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)param_2[1])(param_1);\n  if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)param_2[1])(param_1);" (assignment_expression "iVar1 = (*(code *)param_2[1])(param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)param_2[1])(param_1)" (parenthesized_expression "(*(code *)param_2[1])" (( "(") (pointer_expression "*(code *)param_2[1]" (* "*") (cast_expression "(code *)param_2[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = param_2[2];\n    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;\n    param_2[2] = iVar1 + 1;\n  }" ({ "{") (expression_statement "iVar1 = param_2[2];" (assignment_expression "iVar1 = param_2[2]" (identifier "iVar1") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(*param_2 + iVar1 * 4) = param_1;" (assignment_expression "*(undefined4 *)(*param_2 + iVar1 * 4) = param_1" (pointer_expression "*(undefined4 *)(*param_2 + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(*param_2 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + iVar1 * 4)" (( "(") (binary_expression "*param_2 + iVar1 * 4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "param_2[2] = iVar1 + 1;" (assignment_expression "param_2[2] = iVar1 + 1" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void *item,void *proc_data)

{
  int var_1;
  
  var_1 = (**(type_1 **)((int)proc_data + 4))(item);
  if (var_1 != 0) {
    var_1 = *(int *)((int)proc_data + 8);
                    /* WARNING: Load size is inaccurate */
    *(void **)(*proc_data + var_1 * 4) = item;
    *(int *)((int)proc_data + 8) = var_1 + 1;
  }
  return 0;
}


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

undefined4 MASKED(undefined4 param_1,int *param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)param_2[1])(param_1);
  if (iVar1 != 0) {
    iVar1 = param_2[2];
    *(undefined4 *)(*param_2 + iVar1 * 4) = param_1;
    param_2[2] = iVar1 + 1;
  }
  return 0;
}

