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

quoting_options * clone_quoting_options(quoting_options *o)

{
  int iVar1;
  int *piVar2;
  quoting_options *pqVar3;
  
  piVar2 = __errno_location();
  iVar1 = *piVar2;
  if (o == (quoting_options *)0x0) {
    o = &default_quoting_options;
  }
  pqVar3 = (quoting_options *)xmemdup(o,0x30);
  *piVar2 = iVar1;
  return pqVar3;
}



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

void FUN_00013d50(undefined4 *param_1)

{
  int iVar1;
  int *piVar2;
  
  piVar2 = __errno_location();
  iVar1 = *piVar2;
  if (param_1 == (undefined4 *)0x0) {
    param_1 = &DAT_0001d280;
  }
  FUN_00014fa0(param_1,0x30);
  *piVar2 = iVar1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012150
ADD EBX,0x92a7
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
CALL 0x00011230
TEST ESI,ESI
MOV EBP,dword ptr [EAX]
MOV EDI,EAX
LEA EAX,[EBX + 0x280]
CMOVZ ESI,EAX
SUB ESP,0x8
PUSH 0x30
PUSH ESI
CALL 0x00014fa0
MOV dword ptr [EDI],EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00013d50(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }\n  FUN_00014fa0(param_1,0x30);\n  *piVar2 = iVar1;\n  return;\n}\n\n" comment (function_definition "void FUN_00013d50(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }\n  FUN_00014fa0(param_1,0x30);\n  *piVar2 = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_00013d50(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }\n  FUN_00014fa0(param_1,0x30);\n  *piVar2 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = &DAT_0001d280;\n  }" { (expression_statement "param_1 = &DAT_0001d280;" (assignment_expression "param_1 = &DAT_0001d280" identifier = (pointer_expression "&DAT_0001d280" & identifier)) ;) })) (expression_statement "FUN_00014fa0(param_1,0x30);" (call_expression "FUN_00014fa0(param_1,0x30)" identifier (argument_list "(param_1,0x30)" ( identifier , number_literal ))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nquoting_options * clone_quoting_options(quoting_options *o)\n\n{\n  int iVar1;\n  int *piVar2;\n  quoting_options *pqVar3;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (o == (quoting_options *)0x0) {\n    o = &default_quoting_options;\n  }\n  pqVar3 = (quoting_options *)xmemdup(o,0x30);\n  *piVar2 = iVar1;\n  return pqVar3;\n}\n\n" comment comment (function_definition "quoting_options * clone_quoting_options(quoting_options *o)\n\n{\n  int iVar1;\n  int *piVar2;\n  quoting_options *pqVar3;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (o == (quoting_options *)0x0) {\n    o = &default_quoting_options;\n  }\n  pqVar3 = (quoting_options *)xmemdup(o,0x30);\n  *piVar2 = iVar1;\n  return pqVar3;\n}" type_identifier (pointer_declarator "* clone_quoting_options(quoting_options *o)" * (function_declarator "clone_quoting_options(quoting_options *o)" identifier (parameter_list "(quoting_options *o)" ( (parameter_declaration "quoting_options *o" type_identifier (pointer_declarator "*o" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  quoting_options *pqVar3;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (o == (quoting_options *)0x0) {\n    o = &default_quoting_options;\n  }\n  pqVar3 = (quoting_options *)xmemdup(o,0x30);\n  *piVar2 = iVar1;\n  return pqVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "quoting_options *pqVar3;" type_identifier (pointer_declarator "*pqVar3" * identifier) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (o == (quoting_options *)0x0) {\n    o = &default_quoting_options;\n  }" if (parenthesized_expression "(o == (quoting_options *)0x0)" ( (binary_expression "o == (quoting_options *)0x0" identifier == (cast_expression "(quoting_options *)0x0" ( (type_descriptor "quoting_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    o = &default_quoting_options;\n  }" { (expression_statement "o = &default_quoting_options;" (assignment_expression "o = &default_quoting_options" identifier = (pointer_expression "&default_quoting_options" & identifier)) ;) })) (expression_statement "pqVar3 = (quoting_options *)xmemdup(o,0x30);" (assignment_expression "pqVar3 = (quoting_options *)xmemdup(o,0x30)" identifier = (cast_expression "(quoting_options *)xmemdup(o,0x30)" ( (type_descriptor "quoting_options *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmemdup(o,0x30)" identifier (argument_list "(o,0x30)" ( identifier , number_literal ))))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return pqVar3;" return identifier ;) })))
(translation_unit "void FUN_00013d50(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }\n  FUN_00014fa0(param_1,0x30);\n  *piVar2 = iVar1;\n  return;\n}\n\n" (function_definition "void FUN_00013d50(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }\n  FUN_00014fa0(param_1,0x30);\n  *piVar2 = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_00013d50(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }\n  FUN_00014fa0(param_1,0x30);\n  *piVar2 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = &DAT_0001d280;\n  }" { (expression_statement "param_1 = &DAT_0001d280;" (assignment_expression "param_1 = &DAT_0001d280" identifier = (pointer_expression "&DAT_0001d280" & identifier)) ;) })) (expression_statement "FUN_00014fa0(param_1,0x30);" (call_expression "FUN_00014fa0(param_1,0x30)" identifier (argument_list "(param_1,0x30)" ( identifier , number_literal ))) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * 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 = (pointer_expression & IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00013d50(undefined4 *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }\n  FUN_00014fa0(param_1,0x30);\n  *piVar2 = iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00013d50(undefined4 *param_1)" (identifier "FUN_00013d50") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }\n  FUN_00014fa0(param_1,0x30);\n  *piVar2 = iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_0001d280;\n  }" (if "if") (parenthesized_expression "(param_1 == (undefined4 *)0x0)" (( "(") (binary_expression "param_1 == (undefined4 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_1 = &DAT_0001d280;\n  }" ({ "{") (expression_statement "param_1 = &DAT_0001d280;" (assignment_expression "param_1 = &DAT_0001d280" (identifier "param_1") (= "=") (pointer_expression "&DAT_0001d280" (& "&") (identifier "DAT_0001d280"))) (; ";")) (} "}"))) (expression_statement "FUN_00014fa0(param_1,0x30);" (call_expression "FUN_00014fa0(param_1,0x30)" (identifier "FUN_00014fa0") (argument_list "(param_1,0x30)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") () ")"))) (; ";")) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

type_1 * function_1(type_1 *var_2)

{
  int iVar1;
  int *piVar2;
  type_1 *pqVar3;
  
  piVar2 = var_1();
  iVar1 = *piVar2;
  if (var_2 == (type_1 *)0x0) {
    var_2 = &default_quoting_options;
  }
  pqVar3 = (type_1 *)var_3(var_2,0x30);
  *piVar2 = iVar1;
  return pqVar3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  int iVar1;
  int *piVar2;
  
  piVar2 = __errno_location();
  iVar1 = *piVar2;
  if (param_1 == (undefined4 *)0x0) {
    param_1 = &DAT_0001d280;
  }
  FUN_00014fa0(param_1,0x30);
  *piVar2 = iVar1;
  return;
}

