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

debug_type_conflict
debug_make_offset_type(void *handle,debug_type_conflict base_type,debug_type_conflict target_type)

{
  debug_type_s *pdVar1;
  debug_array_type *pdVar2;
  uint in_ECX;
  
  if ((base_type != (debug_type_conflict)0x0) && (target_type != (debug_type_conflict)0x0)) {
    pdVar1 = debug_make_type((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX);
    if (pdVar1 != (debug_type_s *)0x0) {
      pdVar2 = (debug_array_type *)xmalloc(8);
      pdVar2->element_type = base_type;
      pdVar2->range_type = target_type;
      (pdVar1->u).karray = pdVar2;
    }
    return pdVar1;
  }
  return (debug_type_conflict)0x0;
}



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

int FUN_0001fc20(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  int *piVar2;
  
  if ((param_2 != 0) && (param_3 != 0)) {
    iVar1 = FUN_0001d440();
    if (iVar1 != 0) {
      piVar2 = (int *)xmalloc(8);
      *piVar2 = param_2;
      piVar2[1] = param_3;
      *(int **)(iVar1 + 0xc) = piVar2;
    }
    return iVar1;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x203d7
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x24]
MOV EBP,dword ptr [ESP + 0x28]
TEST EDI,EDI
JZ 0x0001fc78
TEST EBP,EBP
JZ 0x0001fc78
XOR EDX,EDX
MOV EAX,0x12
CALL 0x0001d440
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0001fc69
SUB ESP,0xc
PUSH 0x8
CALL 0x000132e0
ADD ESP,0x10
MOV dword ptr [EAX],EDI
MOV dword ptr [EAX + 0x4],EBP
MOV dword ptr [ESI + 0xc],EAX
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR ESI,ESI
POP EBX
MOV EAX,ESI
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001fc20(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "int FUN_0001fc20(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0001fc20(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "((param_2 != 0) && (param_3 != 0))" ( (binary_expression "(param_2 != 0) && (param_3 != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_0001d440();" (assignment_expression "iVar1 = FUN_0001d440()" identifier = (call_expression "FUN_0001d440()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }" { (expression_statement "piVar2 = (int *)xmalloc(8);" (assignment_expression "piVar2 = (int *)xmalloc(8)" identifier = (cast_expression "(int *)xmalloc(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*piVar2 = param_2;" (assignment_expression "*piVar2 = param_2" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(iVar1 + 0xc) = piVar2;" (assignment_expression "*(int **)(iVar1 + 0xc) = piVar2" (pointer_expression "*(int **)(iVar1 + 0xc)" * (cast_expression "(int **)(iVar1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\ndebug_type_conflict\ndebug_make_offset_type(void *handle,debug_type_conflict base_type,debug_type_conflict target_type)\n\n{\n  debug_type_s *pdVar1;\n  debug_array_type *pdVar2;\n  uint in_ECX;\n  \n  if ((base_type != (debug_type_conflict)0x0) && (target_type != (debug_type_conflict)0x0)) {\n    pdVar1 = debug_make_type((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_array_type *)xmalloc(8);\n      pdVar2->element_type = base_type;\n      pdVar2->range_type = target_type;\n      (pdVar1->u).karray = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}\n\n" comment comment (function_definition "debug_type_conflict\ndebug_make_offset_type(void *handle,debug_type_conflict base_type,debug_type_conflict target_type)\n\n{\n  debug_type_s *pdVar1;\n  debug_array_type *pdVar2;\n  uint in_ECX;\n  \n  if ((base_type != (debug_type_conflict)0x0) && (target_type != (debug_type_conflict)0x0)) {\n    pdVar1 = debug_make_type((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_array_type *)xmalloc(8);\n      pdVar2->element_type = base_type;\n      pdVar2->range_type = target_type;\n      (pdVar1->u).karray = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}" type_identifier (function_declarator "debug_make_offset_type(void *handle,debug_type_conflict base_type,debug_type_conflict target_type)" identifier (parameter_list "(void *handle,debug_type_conflict base_type,debug_type_conflict target_type)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "debug_type_conflict base_type" type_identifier identifier) , (parameter_declaration "debug_type_conflict target_type" type_identifier identifier) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  debug_array_type *pdVar2;\n  uint in_ECX;\n  \n  if ((base_type != (debug_type_conflict)0x0) && (target_type != (debug_type_conflict)0x0)) {\n    pdVar1 = debug_make_type((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_array_type *)xmalloc(8);\n      pdVar2->element_type = base_type;\n      pdVar2->range_type = target_type;\n      (pdVar1->u).karray = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}" { (declaration "debug_type_s *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_array_type *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "uint in_ECX;" type_identifier identifier ;) (if_statement "if ((base_type != (debug_type_conflict)0x0) && (target_type != (debug_type_conflict)0x0)) {\n    pdVar1 = debug_make_type((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_array_type *)xmalloc(8);\n      pdVar2->element_type = base_type;\n      pdVar2->range_type = target_type;\n      (pdVar1->u).karray = pdVar2;\n    }\n    return pdVar1;\n  }" if (parenthesized_expression "((base_type != (debug_type_conflict)0x0) && (target_type != (debug_type_conflict)0x0))" ( (binary_expression "(base_type != (debug_type_conflict)0x0) && (target_type != (debug_type_conflict)0x0)" (parenthesized_expression "(base_type != (debug_type_conflict)0x0)" ( (binary_expression "base_type != (debug_type_conflict)0x0" identifier != (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) )) && (parenthesized_expression "(target_type != (debug_type_conflict)0x0)" ( (binary_expression "target_type != (debug_type_conflict)0x0" identifier != (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n    pdVar1 = debug_make_type((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_array_type *)xmalloc(8);\n      pdVar2->element_type = base_type;\n      pdVar2->range_type = target_type;\n      (pdVar1->u).karray = pdVar2;\n    }\n    return pdVar1;\n  }" { (expression_statement "pdVar1 = debug_make_type((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX)" identifier = (call_expression "debug_make_type((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX)" identifier (argument_list "((debug_handle *)0x12,DEBUG_KIND_ILLEGAL,in_ECX)" ( (cast_expression "(debug_handle *)0x12" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_array_type *)xmalloc(8);\n      pdVar2->element_type = base_type;\n      pdVar2->range_type = target_type;\n      (pdVar1->u).karray = pdVar2;\n    }" if (parenthesized_expression "(pdVar1 != (debug_type_s *)0x0)" ( (binary_expression "pdVar1 != (debug_type_s *)0x0" identifier != (cast_expression "(debug_type_s *)0x0" ( (type_descriptor "debug_type_s *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pdVar2 = (debug_array_type *)xmalloc(8);\n      pdVar2->element_type = base_type;\n      pdVar2->range_type = target_type;\n      (pdVar1->u).karray = pdVar2;\n    }" { (expression_statement "pdVar2 = (debug_array_type *)xmalloc(8);" (assignment_expression "pdVar2 = (debug_array_type *)xmalloc(8)" identifier = (cast_expression "(debug_array_type *)xmalloc(8)" ( (type_descriptor "debug_array_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pdVar2->element_type = base_type;" (assignment_expression "pdVar2->element_type = base_type" (field_expression "pdVar2->element_type" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->range_type = target_type;" (assignment_expression "pdVar2->range_type = target_type" (field_expression "pdVar2->range_type" identifier -> field_identifier) = identifier) ;) (expression_statement "(pdVar1->u).karray = pdVar2;" (assignment_expression "(pdVar1->u).karray = pdVar2" (field_expression "(pdVar1->u).karray" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) })) (return_statement "return pdVar1;" return identifier ;) })) (return_statement "return (debug_type_conflict)0x0;" return (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal) ;) })))
(translation_unit "int FUN_0001fc20(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0001fc20(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0001fc20(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (if_statement "if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "((param_2 != 0) && (param_3 != 0))" ( (binary_expression "(param_2 != 0) && (param_3 != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_0001d440();" (assignment_expression "iVar1 = FUN_0001d440()" identifier = (call_expression "FUN_0001d440()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }" { (expression_statement "piVar2 = (int *)xmalloc(8);" (assignment_expression "piVar2 = (int *)xmalloc(8)" identifier = (cast_expression "(int *)xmalloc(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*piVar2 = param_2;" (assignment_expression "*piVar2 = param_2" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(iVar1 + 0xc) = piVar2;" (assignment_expression "*(int **)(iVar1 + 0xc) = piVar2" (pointer_expression "*(int **)(iVar1 + 0xc)" * (cast_expression "(int **)(iVar1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != 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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0001fc20(undefined4 param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0001fc20(undefined4 param_1,int param_2,int param_3)" (identifier "FUN_0001fc20") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (if_statement "if ((param_2 != 0) && (param_3 != 0)) {\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((param_2 != 0) && (param_3 != 0))" (( "(") (binary_expression "(param_2 != 0) && (param_3 != 0)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar1 = FUN_0001d440();\n    if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001d440();" (assignment_expression "iVar1 = FUN_0001d440()" (identifier "iVar1") (= "=") (call_expression "FUN_0001d440()" (identifier "FUN_0001d440") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = (int *)xmalloc(8);\n      *piVar2 = param_2;\n      piVar2[1] = param_3;\n      *(int **)(iVar1 + 0xc) = piVar2;\n    }" ({ "{") (expression_statement "piVar2 = (int *)xmalloc(8);" (assignment_expression "piVar2 = (int *)xmalloc(8)" (identifier "piVar2") (= "=") (cast_expression "(int *)xmalloc(8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*piVar2 = param_2;" (assignment_expression "*piVar2 = param_2" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int **)(iVar1 + 0xc) = piVar2;" (assignment_expression "*(int **)(iVar1 + 0xc) = piVar2" (pointer_expression "*(int **)(iVar1 + 0xc)" (* "*") (cast_expression "(int **)(iVar1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1
function_1(void *handle,type_1 var_1,type_1 var_2)

{
  type_2 *var_4;
  type_3 *pdVar2;
  type_4 in_ECX;
  
  if ((var_1 != (type_1)0x0) && (var_2 != (type_1)0x0)) {
    var_4 = var_3((type_5 *)0x12,DEBUG_KIND_ILLEGAL,in_ECX);
    if (var_4 != (type_2 *)0x0) {
      pdVar2 = (type_3 *)var_5(8);
      pdVar2->element_type = var_1;
      pdVar2->range_type = var_2;
      (var_4->u).karray = pdVar2;
    }
    return var_4;
  }
  return (type_1)0x0;
}


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

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

int MASKED(undefined4 param_1,int param_2,int param_3)

{
  int iVar1;
  int *piVar2;
  
  if ((param_2 != 0) && (param_3 != 0)) {
    iVar1 = FUN_0001d440();
    if (iVar1 != 0) {
      piVar2 = (int *)xmalloc(8);
      *piVar2 = param_2;
      piVar2[1] = param_3;
      *(int **)(iVar1 + 0xc) = piVar2;
    }
    return iVar1;
  }
  return 0;
}

