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

bc_num __regparm3 new_sub_num(int length,int scale,char *value)

{
  bc_num pbVar1;
  
  if (_bc_Free_list == (bc_num)0x0) {
    pbVar1 = (bc_num)malloc(0x1c);
    if (pbVar1 == (bc_num)0x0) {
                    /* WARNING: Subroutine does not return */
      out_of_memory();
    }
  }
  else {
    pbVar1 = _bc_Free_list;
    _bc_Free_list = _bc_Free_list->n_next;
  }
  pbVar1->n_sign = PLUS;
  pbVar1->n_len = length;
  pbVar1->n_scale = 0;
  pbVar1->n_refs = 1;
  pbVar1->n_ptr = (char *)0x0;
  pbVar1->n_value = (char *)scale;
  return pbVar1;
}



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

void __regparm3 FUN_0001a2f0(undefined4 param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  
  if (DAT_00029208 == (undefined4 *)0x0) {
    puVar1 = (undefined4 *)malloc(0x1c);
    if (puVar1 == (undefined4 *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_00019410();
    }
  }
  else {
    puVar1 = DAT_00029208;
    DAT_00029208 = (undefined4 *)DAT_00029208[4];
  }
  *puVar1 = 0;
  puVar1[1] = param_1;
  puVar1[2] = 0;
  puVar1[3] = 1;
  puVar1[5] = 0;
  puVar1[6] = param_2;
  return;
}


PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00011650
ADD EBX,0xec0b
SUB ESP,0x14
MOV EAX,dword ptr [EBX + 0x304]
TEST EAX,EAX
JZ 0x0001a340
MOV ECX,dword ptr [EAX + 0x10]
MOV dword ptr [EBX + 0x304],ECX
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],ESI
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x1
MOV dword ptr [EAX + 0x14],0x0
MOV dword ptr [EAX + 0x18],EDX
ADD ESP,0x14
POP EBX
POP ESI
RET
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH 0x1c
CALL 0x00011180
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00011347
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x0001a315
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0001a2f0(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  *puVar1 = 0;\n  puVar1[1] = param_1;\n  puVar1[2] = 0;\n  puVar1[3] = 1;\n  puVar1[5] = 0;\n  puVar1[6] = param_2;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0001a2f0(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  *puVar1 = 0;\n  puVar1[1] = param_1;\n  puVar1[2] = 0;\n  puVar1[3] = 1;\n  puVar1[5] = 0;\n  puVar1[6] = param_2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001a2f0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  *puVar1 = 0;\n  puVar1[1] = param_1;\n  puVar1[2] = 0;\n  puVar1[3] = 1;\n  puVar1[5] = 0;\n  puVar1[6] = param_2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }" if (parenthesized_expression "(DAT_00029208 == (undefined4 *)0x0)" ( (binary_expression "DAT_00029208 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00019410();\n    }\n  }" { (expression_statement "puVar1 = (undefined4 *)malloc(0x1c);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x1c)" identifier = (cast_expression "(undefined4 *)malloc(0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00019410();\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00019410();\n    }" { comment (expression_statement "FUN_00019410();" (call_expression "FUN_00019410()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }" else (compound_statement "{\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }" { (expression_statement "puVar1 = DAT_00029208;" (assignment_expression "puVar1 = DAT_00029208" identifier = identifier) ;) (expression_statement "DAT_00029208 = (undefined4 *)DAT_00029208[4];" (assignment_expression "DAT_00029208 = (undefined4 *)DAT_00029208[4]" identifier = (cast_expression "(undefined4 *)DAT_00029208[4]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_00029208[4]" identifier [ number_literal ]))) ;) }))) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[6] = param_2;" (assignment_expression "puVar1[6] = param_2" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbc_num __regparm3 new_sub_num(int length,int scale,char *value)\n\n{\n  bc_num pbVar1;\n  \n  if (_bc_Free_list == (bc_num)0x0) {\n    pbVar1 = (bc_num)malloc(0x1c);\n    if (pbVar1 == (bc_num)0x0) {\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n  }\n  else {\n    pbVar1 = _bc_Free_list;\n    _bc_Free_list = _bc_Free_list->n_next;\n  }\n  pbVar1->n_sign = PLUS;\n  pbVar1->n_len = length;\n  pbVar1->n_scale = 0;\n  pbVar1->n_refs = 1;\n  pbVar1->n_ptr = (char *)0x0;\n  pbVar1->n_value = (char *)scale;\n  return pbVar1;\n}\n\n" comment (function_definition "bc_num __regparm3 new_sub_num(int length,int scale,char *value)\n\n{\n  bc_num pbVar1;\n  \n  if (_bc_Free_list == (bc_num)0x0) {\n    pbVar1 = (bc_num)malloc(0x1c);\n    if (pbVar1 == (bc_num)0x0) {\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n  }\n  else {\n    pbVar1 = _bc_Free_list;\n    _bc_Free_list = _bc_Free_list->n_next;\n  }\n  pbVar1->n_sign = PLUS;\n  pbVar1->n_len = length;\n  pbVar1->n_scale = 0;\n  pbVar1->n_refs = 1;\n  pbVar1->n_ptr = (char *)0x0;\n  pbVar1->n_value = (char *)scale;\n  return pbVar1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "new_sub_num(int length,int scale,char *value)" identifier (parameter_list "(int length,int scale,char *value)" ( (parameter_declaration "int length" primitive_type identifier) , (parameter_declaration "int scale" primitive_type identifier) , (parameter_declaration "char *value" primitive_type (pointer_declarator "*value" * identifier)) ))) (compound_statement "{\n  bc_num pbVar1;\n  \n  if (_bc_Free_list == (bc_num)0x0) {\n    pbVar1 = (bc_num)malloc(0x1c);\n    if (pbVar1 == (bc_num)0x0) {\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n  }\n  else {\n    pbVar1 = _bc_Free_list;\n    _bc_Free_list = _bc_Free_list->n_next;\n  }\n  pbVar1->n_sign = PLUS;\n  pbVar1->n_len = length;\n  pbVar1->n_scale = 0;\n  pbVar1->n_refs = 1;\n  pbVar1->n_ptr = (char *)0x0;\n  pbVar1->n_value = (char *)scale;\n  return pbVar1;\n}" { (declaration "bc_num pbVar1;" type_identifier identifier ;) (if_statement "if (_bc_Free_list == (bc_num)0x0) {\n    pbVar1 = (bc_num)malloc(0x1c);\n    if (pbVar1 == (bc_num)0x0) {\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n  }\n  else {\n    pbVar1 = _bc_Free_list;\n    _bc_Free_list = _bc_Free_list->n_next;\n  }" if (parenthesized_expression "(_bc_Free_list == (bc_num)0x0)" ( (binary_expression "_bc_Free_list == (bc_num)0x0" identifier == (cast_expression "(bc_num)0x0" ( (type_descriptor "bc_num" type_identifier) ) number_literal)) )) (compound_statement "{\n    pbVar1 = (bc_num)malloc(0x1c);\n    if (pbVar1 == (bc_num)0x0) {\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }\n  }" { (expression_statement "pbVar1 = (bc_num)malloc(0x1c);" (assignment_expression "pbVar1 = (bc_num)malloc(0x1c)" identifier = (cast_expression "(bc_num)malloc(0x1c)" ( (type_descriptor "bc_num" type_identifier) ) (call_expression "malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (if_statement "if (pbVar1 == (bc_num)0x0) {\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }" if (parenthesized_expression "(pbVar1 == (bc_num)0x0)" ( (binary_expression "pbVar1 == (bc_num)0x0" identifier == (cast_expression "(bc_num)0x0" ( (type_descriptor "bc_num" type_identifier) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      out_of_memory();\n    }" { comment (expression_statement "out_of_memory();" (call_expression "out_of_memory()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n    pbVar1 = _bc_Free_list;\n    _bc_Free_list = _bc_Free_list->n_next;\n  }" else (compound_statement "{\n    pbVar1 = _bc_Free_list;\n    _bc_Free_list = _bc_Free_list->n_next;\n  }" { (expression_statement "pbVar1 = _bc_Free_list;" (assignment_expression "pbVar1 = _bc_Free_list" identifier = identifier) ;) (expression_statement "_bc_Free_list = _bc_Free_list->n_next;" (assignment_expression "_bc_Free_list = _bc_Free_list->n_next" identifier = (field_expression "_bc_Free_list->n_next" identifier -> field_identifier)) ;) }))) (expression_statement "pbVar1->n_sign = PLUS;" (assignment_expression "pbVar1->n_sign = PLUS" (field_expression "pbVar1->n_sign" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar1->n_len = length;" (assignment_expression "pbVar1->n_len = length" (field_expression "pbVar1->n_len" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar1->n_scale = 0;" (assignment_expression "pbVar1->n_scale = 0" (field_expression "pbVar1->n_scale" identifier -> field_identifier) = number_literal) ;) (expression_statement "pbVar1->n_refs = 1;" (assignment_expression "pbVar1->n_refs = 1" (field_expression "pbVar1->n_refs" identifier -> field_identifier) = number_literal) ;) (expression_statement "pbVar1->n_ptr = (char *)0x0;" (assignment_expression "pbVar1->n_ptr = (char *)0x0" (field_expression "pbVar1->n_ptr" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pbVar1->n_value = (char *)scale;" (assignment_expression "pbVar1->n_value = (char *)scale" (field_expression "pbVar1->n_value" identifier -> field_identifier) = (cast_expression "(char *)scale" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return pbVar1;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_0001a2f0(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  *puVar1 = 0;\n  puVar1[1] = param_1;\n  puVar1[2] = 0;\n  puVar1[3] = 1;\n  puVar1[5] = 0;\n  puVar1[6] = param_2;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0001a2f0(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  *puVar1 = 0;\n  puVar1[1] = param_1;\n  puVar1[2] = 0;\n  puVar1[3] = 1;\n  puVar1[5] = 0;\n  puVar1[6] = param_2;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001a2f0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  *puVar1 = 0;\n  puVar1[1] = param_1;\n  puVar1[2] = 0;\n  puVar1[3] = 1;\n  puVar1[5] = 0;\n  puVar1[6] = param_2;\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }" if (parenthesized_expression "(DAT_00029208 == (undefined4 *)0x0)" ( (binary_expression "DAT_00029208 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }\n  }" { (expression_statement "puVar1 = (undefined4 *)malloc(0x1c);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x1c)" identifier = (cast_expression "(undefined4 *)malloc(0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n      FUN_00019410();\n    }" { (expression_statement "FUN_00019410();" (call_expression "FUN_00019410()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }" else (compound_statement "{\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }" { (expression_statement "puVar1 = DAT_00029208;" (assignment_expression "puVar1 = DAT_00029208" identifier = identifier) ;) (expression_statement "DAT_00029208 = (undefined4 *)DAT_00029208[4];" (assignment_expression "DAT_00029208 = (undefined4 *)DAT_00029208[4]" identifier = (cast_expression "(undefined4 *)DAT_00029208[4]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_00029208[4]" identifier [ number_literal ]))) ;) }))) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[6] = param_2;" (assignment_expression "puVar1[6] = param_2" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE 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 { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0001a2f0(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  *puVar1 = 0;\n  puVar1[1] = param_1;\n  puVar1[2] = 0;\n  puVar1[3] = 1;\n  puVar1[5] = 0;\n  puVar1[6] = param_2;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001a2f0(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0001a2f0") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  *puVar1 = 0;\n  puVar1[1] = param_1;\n  puVar1[2] = 0;\n  puVar1[3] = 1;\n  puVar1[5] = 0;\n  puVar1[6] = param_2;\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }" (if "if") (parenthesized_expression "(DAT_00029208 == (undefined4 *)0x0)" (( "(") (binary_expression "DAT_00029208 == (undefined4 *)0x0" (identifier "DAT_00029208") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)malloc(0x1c);" (assignment_expression "puVar1 = (undefined4 *)malloc(0x1c)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)malloc(0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x1c)" (identifier "malloc") (argument_list "(0x1c)" (( "(") (number_literal "0x1c") () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n                    \n      FUN_00019410();\n    }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n      FUN_00019410();\n    }" ({ "{") (expression_statement "FUN_00019410();" (call_expression "FUN_00019410()" (identifier "FUN_00019410") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }" (else "else") (compound_statement "{\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }" ({ "{") (expression_statement "puVar1 = DAT_00029208;" (assignment_expression "puVar1 = DAT_00029208" (identifier "puVar1") (= "=") (identifier "DAT_00029208")) (; ";")) (expression_statement "DAT_00029208 = (undefined4 *)DAT_00029208[4];" (assignment_expression "DAT_00029208 = (undefined4 *)DAT_00029208[4]" (identifier "DAT_00029208") (= "=") (cast_expression "(undefined4 *)DAT_00029208[4]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "DAT_00029208[4]" (identifier "DAT_00029208") ([ "[") (number_literal "4") (] "]")))) (; ";")) (} "}")))) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar1[5] = 0;" (assignment_expression "puVar1[5] = 0" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[6] = param_2;" (assignment_expression "puVar1[6] = param_2" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

type_1 __regparm3 function_1(int length,int scale,char *value)

{
  type_1 var_3;
  
  if (var_1 == (type_1)0x0) {
    var_3 = (type_1)var_2(0x1c);
    if (var_3 == (type_1)0x0) {
                    /* WARNING: Subroutine does not return */
      var_4();
    }
  }
  else {
    var_3 = var_1;
    var_1 = var_1->n_next;
  }
  var_3->n_sign = PLUS;
  var_3->n_len = length;
  var_3->n_scale = 0;
  var_3->n_refs = 1;
  var_3->n_ptr = (char *)0x0;
  var_3->n_value = (char *)scale;
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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 (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (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 (call_expression function: (identifier) arguments: (argument_list)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

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

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  
  if (DAT_00029208 == (undefined4 *)0x0) {
    puVar1 = (undefined4 *)malloc(0x1c);
    if (puVar1 == (undefined4 *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_00019410();
    }
  }
  else {
    puVar1 = DAT_00029208;
    DAT_00029208 = (undefined4 *)DAT_00029208[4];
  }
  *puVar1 = 0;
  puVar1[1] = param_1;
  puVar1[2] = 0;
  puVar1[3] = 1;
  puVar1[5] = 0;
  puVar1[6] = param_2;
  return;
}

