
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::__iosfail_type_info::__do_upcast(__cxxabiv1::__class_type_info const*, void**) const */

void __thiscall
std::__iosfail_type_info::__do_upcast
          (__iosfail_type_info *this,__class_type_info *param_1,void **param_2)

{
  char cVar1;
  
  cVar1 = __is_ios_failure_handler(param_1);
  if (cVar1 != '\0') {
    *param_2 = (void *)((int)*param_2 + 0x10);
    return;
  }
  __cxxabiv1::__class_type_info::__do_upcast((__class_type_info *)this,param_1,param_2);
  return;
}



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

void FUN_001bfc10(undefined4 param_1,undefined4 param_2,int *param_3)

{
  char cVar1;
  undefined4 uVar2;
  
  uVar2 = 0x1bfc1c;
  cVar1 = FUN_001d1f80(param_2);
  if (cVar1 != '\0') {
    *param_3 = *param_3 + 0x10;
    return;
  }
  FUN_001807c0(param_1,param_2,param_3,uVar2);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x14]
CALL 0x00032730
ADD EBX,0x1423e4
MOV ESI,dword ptr [ESP + 0x18]
SUB ESP,0xc
PUSH EDI
CALL 0x001d1f80
ADD ESP,0x10
TEST AL,AL
JZ 0x001bfc40
ADD dword ptr [ESI],0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
PUSH ESI
PUSH EDI
PUSH dword ptr [ESP + 0x1c]
CALL 0x001807c0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001bfc10(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x1bfc1c;\n  cVar1 = FUN_001d1f80(param_2);\n  if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }\n  FUN_001807c0(param_1,param_2,param_3,uVar2);\n  return;\n}\n\n" comment (function_definition "void FUN_001bfc10(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x1bfc1c;\n  cVar1 = FUN_001d1f80(param_2);\n  if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }\n  FUN_001807c0(param_1,param_2,param_3,uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_001bfc10(undefined4 param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x1bfc1c;\n  cVar1 = FUN_001d1f80(param_2);\n  if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }\n  FUN_001807c0(param_1,param_2,param_3,uVar2);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0x1bfc1c;" (assignment_expression "uVar2 = 0x1bfc1c" identifier = number_literal) ;) (expression_statement "cVar1 = FUN_001d1f80(param_2);" (assignment_expression "cVar1 = FUN_001d1f80(param_2)" identifier = (call_expression "FUN_001d1f80(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_3 = *param_3 + 0x10;\n    return;\n  }" { (expression_statement "*param_3 = *param_3 + 0x10;" (assignment_expression "*param_3 = *param_3 + 0x10" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + 0x10" (pointer_expression "*param_3" * identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001807c0(param_1,param_2,param_3,uVar2);" (call_expression "FUN_001807c0(param_1,param_2,param_3,uVar2)" identifier (argument_list "(param_1,param_2,param_3,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::__iosfail_type_info::__do_upcast(__cxxabiv1::__class_type_info const*, void**) const */\n\nvoid __thiscall\nstd::__iosfail_type_info::__do_upcast\n          (__iosfail_type_info *this,__class_type_info *param_1,void **param_2)\n\n{\n  char cVar1;\n  \n  cVar1 = __is_ios_failure_handler(param_1);\n  if (cVar1 != '\0') {\n    *param_2 = (void *)((int)*param_2 + 0x10);\n    return;\n  }\n  __cxxabiv1::__class_type_info::__do_upcast((__class_type_info *)this,param_1,param_2);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\nstd::__iosfail_type_info::__do_upcast\n          (__iosfail_type_info *this,__class_type_info *param_1,void **param_2)\n\n{\n  char cVar1;\n  \n  cVar1 = __is_ios_failure_handler(param_1);\n  if (cVar1 != '\0') {\n    *param_2 = (void *)((int)*param_2 + 0x10);\n    return;\n  }\n  __cxxabiv1::__class_type_info::__do_upcast((__class_type_info *)this,param_1,param_2);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__iosfail_type_info::" identifier : : identifier : :) (function_declarator "__do_upcast\n          (__iosfail_type_info *this,__class_type_info *param_1,void **param_2)" identifier (parameter_list "(__iosfail_type_info *this,__class_type_info *param_1,void **param_2)" ( (parameter_declaration "__iosfail_type_info *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "__class_type_info *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void **param_2" primitive_type (pointer_declarator "**param_2" * (pointer_declarator "*param_2" * identifier))) ))) (compound_statement "{\n  char cVar1;\n  \n  cVar1 = __is_ios_failure_handler(param_1);\n  if (cVar1 != '\0') {\n    *param_2 = (void *)((int)*param_2 + 0x10);\n    return;\n  }\n  __cxxabiv1::__class_type_info::__do_upcast((__class_type_info *)this,param_1,param_2);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (expression_statement "cVar1 = __is_ios_failure_handler(param_1);" (assignment_expression "cVar1 = __is_ios_failure_handler(param_1)" identifier = (call_expression "__is_ios_failure_handler(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    *param_2 = (void *)((int)*param_2 + 0x10);\n    return;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_2 = (void *)((int)*param_2 + 0x10);\n    return;\n  }" { (expression_statement "*param_2 = (void *)((int)*param_2 + 0x10);" (assignment_expression "*param_2 = (void *)((int)*param_2 + 0x10)" (pointer_expression "*param_2" * identifier) = (cast_expression "(void *)((int)*param_2 + 0x10)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*param_2 + 0x10)" ( (binary_expression "(int)*param_2 + 0x10" (cast_expression "(int)*param_2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_2" * identifier)) + number_literal) )))) ;) (return_statement "return;" return ;) })) (labeled_statement "__cxxabiv1::__class_type_info::__do_upcast((__class_type_info *)this,param_1,param_2);" statement_identifier : (ERROR ":" :) (labeled_statement "__class_type_info::__do_upcast((__class_type_info *)this,param_1,param_2);" statement_identifier : (ERROR ":" :) (expression_statement "__do_upcast((__class_type_info *)this,param_1,param_2);" (call_expression "__do_upcast((__class_type_info *)this,param_1,param_2)" identifier (argument_list "((__class_type_info *)this,param_1,param_2)" ( (cast_expression "(__class_type_info *)this" ( (type_descriptor "__class_type_info *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001bfc10(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x1bfc1c;\n  cVar1 = FUN_001d1f80(param_2);\n  if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }\n  FUN_001807c0(param_1,param_2,param_3,uVar2);\n  return;\n}\n\n" (function_definition "void FUN_001bfc10(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x1bfc1c;\n  cVar1 = FUN_001d1f80(param_2);\n  if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }\n  FUN_001807c0(param_1,param_2,param_3,uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_001bfc10(undefined4 param_1,undefined4 param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x1bfc1c;\n  cVar1 = FUN_001d1f80(param_2);\n  if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }\n  FUN_001807c0(param_1,param_2,param_3,uVar2);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0x1bfc1c;" (assignment_expression "uVar2 = 0x1bfc1c" identifier = number_literal) ;) (expression_statement "cVar1 = FUN_001d1f80(param_2);" (assignment_expression "cVar1 = FUN_001d1f80(param_2)" identifier = (call_expression "FUN_001d1f80(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }" if (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_3 = *param_3 + 0x10;\n    return;\n  }" { (expression_statement "*param_3 = *param_3 + 0x10;" (assignment_expression "*param_3 = *param_3 + 0x10" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + 0x10" (pointer_expression "*param_3" * identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001807c0(param_1,param_2,param_3,uVar2);" (call_expression "FUN_001807c0(param_1,param_2,param_3,uVar2)" identifier (argument_list "(param_1,param_2,param_3,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001bfc10(undefined4 param_1,undefined4 param_2,int *param_3)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x1bfc1c;\n  cVar1 = FUN_001d1f80(param_2);\n  if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }\n  FUN_001807c0(param_1,param_2,param_3,uVar2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001bfc10(undefined4 param_1,undefined4 param_2,int *param_3)" (identifier "FUN_001bfc10") (parameter_list "(undefined4 param_1,undefined4 param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x1bfc1c;\n  cVar1 = FUN_001d1f80(param_2);\n  if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }\n  FUN_001807c0(param_1,param_2,param_3,uVar2);\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = 0x1bfc1c;" (assignment_expression "uVar2 = 0x1bfc1c" (identifier "uVar2") (= "=") (number_literal "0x1bfc1c")) (; ";")) (expression_statement "cVar1 = FUN_001d1f80(param_2);" (assignment_expression "cVar1 = FUN_001d1f80(param_2)" (identifier "cVar1") (= "=") (call_expression "FUN_001d1f80(param_2)" (identifier "FUN_001d1f80") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar1 != '\0') {\n    *param_3 = *param_3 + 0x10;\n    return;\n  }" (if "if") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *param_3 = *param_3 + 0x10;\n    return;\n  }" ({ "{") (expression_statement "*param_3 = *param_3 + 0x10;" (assignment_expression "*param_3 = *param_3 + 0x10" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*param_3 + 0x10" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "0x10"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_001807c0(param_1,param_2,param_3,uVar2);" (call_expression "FUN_001807c0(param_1,param_2,param_3,uVar2)" (identifier "FUN_001807c0") (argument_list "(param_1,param_2,param_3,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::__iosfail_type_info::__do_upcast(__cxxabiv1::__class_type_info const*, void**) const */

void __thiscall
std::type_1::function_1
          (type_1 *this,type_2 *param_1,void **param_2)

{
  char var_2;
  
  var_2 = var_1(param_1);
  if (var_2 != '\0') {
    *param_2 = (void *)((int)*param_2 + 0x10);
    return;
  }
  __cxxabiv1::__class_type_info::function_1((type_2 *)this,param_1,param_2);
  return;
}


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

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

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

{
  char cVar1;
  undefined4 uVar2;
  
  uVar2 = 0x1bfc1c;
  cVar1 = FUN_001d1f80(param_2);
  if (cVar1 != '\0') {
    *param_3 = *param_3 + 0x10;
    return;
  }
  FUN_001807c0(param_1,param_2,param_3,uVar2);
  return;
}

