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

bc_num bc_new_num(int length,int scale)

{
  char *__s;
  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 */
      bc_new_num_cold_9();
    }
  }
  else {
    pbVar1 = _bc_Free_list;
    _bc_Free_list = _bc_Free_list->n_next;
  }
  pbVar1->n_len = length;
  pbVar1->n_sign = PLUS;
  pbVar1->n_scale = scale;
  pbVar1->n_refs = 1;
  __s = (char *)malloc(length + scale);
  pbVar1->n_ptr = __s;
  if (__s != (char *)0x0) {
    pbVar1->n_value = __s;
    memset(__s,0,length + scale);
    return pbVar1;
  }
                    /* WARNING: Subroutine does not return */
  out_of_memory();
}



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

undefined4 * FUN_0001a490(int param_1,int param_2)

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


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00011650
ADD EBX,0xea6b
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV EBP,dword ptr [ESP + 0x24]
MOV ESI,dword ptr [EBX + 0x304]
TEST ESI,ESI
JZ 0x0001a500
MOV EAX,dword ptr [ESI + 0x10]
MOV dword ptr [EBX + 0x304],EAX
MOV dword ptr [ESI + 0x4],EDI
SUB ESP,0xc
ADD EDI,EBP
MOV dword ptr [ESI],0x0
MOV dword ptr [ESI + 0x8],EBP
MOV dword ptr [ESI + 0xc],0x1
PUSH EDI
CALL 0x00011180
ADD ESP,0x10
MOV dword ptr [ESI + 0x14],EAX
TEST EAX,EAX
JZ 0x0001a520
SUB ESP,0x4
MOV dword ptr [ESI + 0x18],EAX
PUSH EDI
PUSH 0x0
PUSH EAX
CALL 0x00011220
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0x1c
CALL 0x00011180
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x0001a4bd
JMP 0x00011358
CALL 0x00019410
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_0001a490(int param_1,int param_2)\n\n{\n  void *__s;\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      thunk_FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  puVar1[1] = param_1;\n  *puVar1 = 0;\n  puVar1[2] = param_2;\n  puVar1[3] = 1;\n  __s = malloc(param_1 + param_2);\n  puVar1[5] = __s;\n  if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00019410();\n}\n\n" comment (function_definition "undefined4 * FUN_0001a490(int param_1,int param_2)\n\n{\n  void *__s;\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      thunk_FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  puVar1[1] = param_1;\n  *puVar1 = 0;\n  puVar1[2] = param_2;\n  puVar1[3] = 1;\n  __s = malloc(param_1 + param_2);\n  puVar1[5] = __s;\n  if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00019410();\n}" type_identifier (pointer_declarator "* FUN_0001a490(int param_1,int param_2)" * (function_declarator "FUN_0001a490(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  void *__s;\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      thunk_FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  puVar1[1] = param_1;\n  *puVar1 = 0;\n  puVar1[2] = param_2;\n  puVar1[3] = 1;\n  __s = malloc(param_1 + param_2);\n  puVar1[5] = __s;\n  if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00019410();\n}" { (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (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      thunk_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      thunk_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      thunk_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      thunk_FUN_00019410();\n    }" { comment (expression_statement "thunk_FUN_00019410();" (call_expression "thunk_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[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[2] = param_2;" (assignment_expression "puVar1[2] = param_2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__s = malloc(param_1 + param_2);" (assignment_expression "__s = malloc(param_1 + param_2)" identifier = (call_expression "malloc(param_1 + param_2)" identifier (argument_list "(param_1 + param_2)" ( (binary_expression "param_1 + param_2" identifier + identifier) )))) ;) (expression_statement "puVar1[5] = __s;" (assignment_expression "puVar1[5] = __s" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }" if (parenthesized_expression "(__s != (void *)0x0)" ( (binary_expression "__s != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }" { (expression_statement "puVar1[6] = __s;" (assignment_expression "puVar1[6] = __s" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memset(__s,0,param_1 + param_2);" (call_expression "memset(__s,0,param_1 + param_2)" identifier (argument_list "(__s,0,param_1 + param_2)" ( identifier , number_literal , (binary_expression "param_1 + param_2" identifier + identifier) ))) ;) (return_statement "return puVar1;" return identifier ;) })) comment (expression_statement "FUN_00019410();" (call_expression "FUN_00019410()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbc_num bc_new_num(int length,int scale)\n\n{\n  char *__s;\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      bc_new_num_cold_9();\n    }\n  }\n  else {\n    pbVar1 = _bc_Free_list;\n    _bc_Free_list = _bc_Free_list->n_next;\n  }\n  pbVar1->n_len = length;\n  pbVar1->n_sign = PLUS;\n  pbVar1->n_scale = scale;\n  pbVar1->n_refs = 1;\n  __s = (char *)malloc(length + scale);\n  pbVar1->n_ptr = __s;\n  if (__s != (char *)0x0) {\n    pbVar1->n_value = __s;\n    memset(__s,0,length + scale);\n    return pbVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  out_of_memory();\n}\n\n" comment comment (function_definition "bc_num bc_new_num(int length,int scale)\n\n{\n  char *__s;\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      bc_new_num_cold_9();\n    }\n  }\n  else {\n    pbVar1 = _bc_Free_list;\n    _bc_Free_list = _bc_Free_list->n_next;\n  }\n  pbVar1->n_len = length;\n  pbVar1->n_sign = PLUS;\n  pbVar1->n_scale = scale;\n  pbVar1->n_refs = 1;\n  __s = (char *)malloc(length + scale);\n  pbVar1->n_ptr = __s;\n  if (__s != (char *)0x0) {\n    pbVar1->n_value = __s;\n    memset(__s,0,length + scale);\n    return pbVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  out_of_memory();\n}" type_identifier (function_declarator "bc_new_num(int length,int scale)" identifier (parameter_list "(int length,int scale)" ( (parameter_declaration "int length" primitive_type identifier) , (parameter_declaration "int scale" primitive_type identifier) ))) (compound_statement "{\n  char *__s;\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      bc_new_num_cold_9();\n    }\n  }\n  else {\n    pbVar1 = _bc_Free_list;\n    _bc_Free_list = _bc_Free_list->n_next;\n  }\n  pbVar1->n_len = length;\n  pbVar1->n_sign = PLUS;\n  pbVar1->n_scale = scale;\n  pbVar1->n_refs = 1;\n  __s = (char *)malloc(length + scale);\n  pbVar1->n_ptr = __s;\n  if (__s != (char *)0x0) {\n    pbVar1->n_value = __s;\n    memset(__s,0,length + scale);\n    return pbVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  out_of_memory();\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (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      bc_new_num_cold_9();\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      bc_new_num_cold_9();\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      bc_new_num_cold_9();\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      bc_new_num_cold_9();\n    }" { comment (expression_statement "bc_new_num_cold_9();" (call_expression "bc_new_num_cold_9()" 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_len = length;" (assignment_expression "pbVar1->n_len = length" (field_expression "pbVar1->n_len" identifier -> field_identifier) = 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_scale = scale;" (assignment_expression "pbVar1->n_scale = scale" (field_expression "pbVar1->n_scale" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar1->n_refs = 1;" (assignment_expression "pbVar1->n_refs = 1" (field_expression "pbVar1->n_refs" identifier -> field_identifier) = number_literal) ;) (expression_statement "__s = (char *)malloc(length + scale);" (assignment_expression "__s = (char *)malloc(length + scale)" identifier = (cast_expression "(char *)malloc(length + scale)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(length + scale)" identifier (argument_list "(length + scale)" ( (binary_expression "length + scale" identifier + identifier) ))))) ;) (expression_statement "pbVar1->n_ptr = __s;" (assignment_expression "pbVar1->n_ptr = __s" (field_expression "pbVar1->n_ptr" identifier -> field_identifier) = identifier) ;) (if_statement "if (__s != (char *)0x0) {\n    pbVar1->n_value = __s;\n    memset(__s,0,length + scale);\n    return pbVar1;\n  }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pbVar1->n_value = __s;\n    memset(__s,0,length + scale);\n    return pbVar1;\n  }" { (expression_statement "pbVar1->n_value = __s;" (assignment_expression "pbVar1->n_value = __s" (field_expression "pbVar1->n_value" identifier -> field_identifier) = identifier) ;) (expression_statement "memset(__s,0,length + scale);" (call_expression "memset(__s,0,length + scale)" identifier (argument_list "(__s,0,length + scale)" ( identifier , number_literal , (binary_expression "length + scale" identifier + identifier) ))) ;) (return_statement "return pbVar1;" return identifier ;) })) comment (expression_statement "out_of_memory();" (call_expression "out_of_memory()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 * FUN_0001a490(int param_1,int param_2)\n\n{\n  void *__s;\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      thunk_FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  puVar1[1] = param_1;\n  *puVar1 = 0;\n  puVar1[2] = param_2;\n  puVar1[3] = 1;\n  __s = malloc(param_1 + param_2);\n  puVar1[5] = __s;\n  if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }\n                    \n  FUN_00019410();\n}\n\n" (function_definition "undefined4 * FUN_0001a490(int param_1,int param_2)\n\n{\n  void *__s;\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      thunk_FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  puVar1[1] = param_1;\n  *puVar1 = 0;\n  puVar1[2] = param_2;\n  puVar1[3] = 1;\n  __s = malloc(param_1 + param_2);\n  puVar1[5] = __s;\n  if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }\n                    \n  FUN_00019410();\n}" type_identifier (pointer_declarator "* FUN_0001a490(int param_1,int param_2)" * (function_declarator "FUN_0001a490(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  void *__s;\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      thunk_FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  puVar1[1] = param_1;\n  *puVar1 = 0;\n  puVar1[2] = param_2;\n  puVar1[3] = 1;\n  __s = malloc(param_1 + param_2);\n  puVar1[5] = __s;\n  if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }\n                    \n  FUN_00019410();\n}" { (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (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      thunk_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      thunk_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      thunk_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      thunk_FUN_00019410();\n    }" { (expression_statement "thunk_FUN_00019410();" (call_expression "thunk_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[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "puVar1[2] = param_2;" (assignment_expression "puVar1[2] = param_2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__s = malloc(param_1 + param_2);" (assignment_expression "__s = malloc(param_1 + param_2)" identifier = (call_expression "malloc(param_1 + param_2)" identifier (argument_list "(param_1 + param_2)" ( (binary_expression "param_1 + param_2" identifier + identifier) )))) ;) (expression_statement "puVar1[5] = __s;" (assignment_expression "puVar1[5] = __s" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }" if (parenthesized_expression "(__s != (void *)0x0)" ( (binary_expression "__s != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }" { (expression_statement "puVar1[6] = __s;" (assignment_expression "puVar1[6] = __s" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memset(__s,0,param_1 + param_2);" (call_expression "memset(__s,0,param_1 + param_2)" identifier (argument_list "(__s,0,param_1 + param_2)" ( identifier , number_literal , (binary_expression "param_1 + param_2" identifier + identifier) ))) ;) (return_statement "return puVar1;" return identifier ;) })) (expression_statement "FUN_00019410();" (call_expression "FUN_00019410()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + IDENT) ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 * FUN_0001a490(int param_1,int param_2)\n\n{\n  void *__s;\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      thunk_FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  puVar1[1] = param_1;\n  *puVar1 = 0;\n  puVar1[2] = param_2;\n  puVar1[3] = 1;\n  __s = malloc(param_1 + param_2);\n  puVar1[5] = __s;\n  if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }\n                    \n  FUN_00019410();\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0001a490(int param_1,int param_2)" (* "*") (function_declarator "FUN_0001a490(int param_1,int param_2)" (identifier "FUN_0001a490") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  void *__s;\n  undefined4 *puVar1;\n  \n  if (DAT_00029208 == (undefined4 *)0x0) {\n    puVar1 = (undefined4 *)malloc(0x1c);\n    if (puVar1 == (undefined4 *)0x0) {\n                    \n      thunk_FUN_00019410();\n    }\n  }\n  else {\n    puVar1 = DAT_00029208;\n    DAT_00029208 = (undefined4 *)DAT_00029208[4];\n  }\n  puVar1[1] = param_1;\n  *puVar1 = 0;\n  puVar1[2] = param_2;\n  puVar1[3] = 1;\n  __s = malloc(param_1 + param_2);\n  puVar1[5] = __s;\n  if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }\n                    \n  FUN_00019410();\n}" ({ "{") (declaration "void *__s;" (primitive_type "void") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (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      thunk_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      thunk_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      thunk_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      thunk_FUN_00019410();\n    }" ({ "{") (expression_statement "thunk_FUN_00019410();" (call_expression "thunk_FUN_00019410()" (identifier "thunk_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[1] = param_1;" (assignment_expression "puVar1[1] = param_1" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = param_2;" (assignment_expression "puVar1[2] = param_2" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "__s = malloc(param_1 + param_2);" (assignment_expression "__s = malloc(param_1 + param_2)" (identifier "__s") (= "=") (call_expression "malloc(param_1 + param_2)" (identifier "malloc") (argument_list "(param_1 + param_2)" (( "(") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "puVar1[5] = __s;" (assignment_expression "puVar1[5] = __s" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "__s")) (; ";")) (if_statement "if (__s != (void *)0x0) {\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }" (if "if") (parenthesized_expression "(__s != (void *)0x0)" (( "(") (binary_expression "__s != (void *)0x0" (identifier "__s") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1[6] = __s;\n    memset(__s,0,param_1 + param_2);\n    return puVar1;\n  }" ({ "{") (expression_statement "puVar1[6] = __s;" (assignment_expression "puVar1[6] = __s" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "__s")) (; ";")) (expression_statement "memset(__s,0,param_1 + param_2);" (call_expression "memset(__s,0,param_1 + param_2)" (identifier "memset") (argument_list "(__s,0,param_1 + param_2)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) () ")"))) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))) (expression_statement "FUN_00019410();" (call_expression "FUN_00019410()" (identifier "FUN_00019410") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(int var_5,int var_6)

{
  char *var_7;
  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_len = var_5;
  var_3->n_sign = PLUS;
  var_3->n_scale = var_6;
  var_3->n_refs = 1;
  var_7 = (char *)var_2(var_5 + var_6);
  var_3->n_ptr = var_7;
  if (var_7 != (char *)0x0) {
    var_3->n_value = var_7;
    var_8(var_7,0,var_5 + var_6);
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


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

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

undefined4 * MASKED(int param_1,int param_2)

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

