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

int __regparm3 cd_to_string(char *name)

{
  WORD_DESC *pWVar1;
  WORD_LIST *pWVar2;
  int iVar3;
  
  pWVar1 = make_word(name);
  pWVar2 = make_word_list(pWVar1,(WORD_LIST *)0x0);
  pWVar1 = make_word("--");
  pWVar2 = make_word_list(pWVar1,pWVar2);
  iVar3 = cd_builtin(pWVar2);
  dispose_words(pWVar2);
  return iVar3;
}



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

undefined4 __regparm3 FUN_000a6140(undefined4 param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  uVar1 = make_word(param_1);
  uVar1 = make_word_list(uVar1,0);
  uVar2 = make_word("--");
  uVar1 = make_word_list(uVar2,uVar1);
  uVar2 = cd_builtin(uVar1);
  dispose_words(uVar1);
  return uVar2;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xa3eb8
SUB ESP,0xc
PUSH EAX
CALL 0x00042c30
POP EDX
POP ECX
PUSH 0x0
PUSH EAX
CALL 0x00042ca0
MOV ESI,EAX
LEA EAX,[EBX + 0xfffbbbf9]
MOV dword ptr [ESP],EAX
CALL 0x00042c30
POP EDI
POP EDX
PUSH ESI
PUSH EAX
CALL 0x00042ca0
MOV ESI,EAX
MOV dword ptr [ESP],EAX
CALL 0x0009ab00
MOV dword ptr [ESP],ESI
MOV EDI,EAX
CALL 0x00046900
ADD ESP,0x10
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_000a6140(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = make_word(param_1);\n  uVar1 = make_word_list(uVar1,0);\n  uVar2 = make_word("--");\n  uVar1 = make_word_list(uVar2,uVar1);\n  uVar2 = cd_builtin(uVar1);\n  dispose_words(uVar1);\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_000a6140(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = make_word(param_1);\n  uVar1 = make_word_list(uVar1,0);\n  uVar2 = make_word("--");\n  uVar1 = make_word_list(uVar2,uVar1);\n  uVar2 = cd_builtin(uVar1);\n  dispose_words(uVar1);\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000a6140(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = make_word(param_1);\n  uVar1 = make_word_list(uVar1,0);\n  uVar2 = make_word("--");\n  uVar1 = make_word_list(uVar2,uVar1);\n  uVar2 = cd_builtin(uVar1);\n  dispose_words(uVar1);\n  return uVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = make_word(param_1);" (assignment_expression "uVar1 = make_word(param_1)" identifier = (call_expression "make_word(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar1 = make_word_list(uVar1,0);" (assignment_expression "uVar1 = make_word_list(uVar1,0)" identifier = (call_expression "make_word_list(uVar1,0)" identifier (argument_list "(uVar1,0)" ( identifier , number_literal )))) ;) (expression_statement "uVar2 = make_word("--");" (assignment_expression "uVar2 = make_word("--")" identifier = (call_expression "make_word("--")" identifier (argument_list "("--")" ( (string_literal ""--"" " string_content ") )))) ;) (expression_statement "uVar1 = make_word_list(uVar2,uVar1);" (assignment_expression "uVar1 = make_word_list(uVar2,uVar1)" identifier = (call_expression "make_word_list(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = cd_builtin(uVar1);" (assignment_expression "uVar2 = cd_builtin(uVar1)" identifier = (call_expression "cd_builtin(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "dispose_words(uVar1);" (call_expression "dispose_words(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 cd_to_string(char *name)\n\n{\n  WORD_DESC *pWVar1;\n  WORD_LIST *pWVar2;\n  int iVar3;\n  \n  pWVar1 = make_word(name);\n  pWVar2 = make_word_list(pWVar1,(WORD_LIST *)0x0);\n  pWVar1 = make_word("--");\n  pWVar2 = make_word_list(pWVar1,pWVar2);\n  iVar3 = cd_builtin(pWVar2);\n  dispose_words(pWVar2);\n  return iVar3;\n}\n\n" comment (function_definition "int __regparm3 cd_to_string(char *name)\n\n{\n  WORD_DESC *pWVar1;\n  WORD_LIST *pWVar2;\n  int iVar3;\n  \n  pWVar1 = make_word(name);\n  pWVar2 = make_word_list(pWVar1,(WORD_LIST *)0x0);\n  pWVar1 = make_word("--");\n  pWVar2 = make_word_list(pWVar1,pWVar2);\n  iVar3 = cd_builtin(pWVar2);\n  dispose_words(pWVar2);\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "cd_to_string(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  WORD_DESC *pWVar1;\n  WORD_LIST *pWVar2;\n  int iVar3;\n  \n  pWVar1 = make_word(name);\n  pWVar2 = make_word_list(pWVar1,(WORD_LIST *)0x0);\n  pWVar1 = make_word("--");\n  pWVar2 = make_word_list(pWVar1,pWVar2);\n  iVar3 = cd_builtin(pWVar2);\n  dispose_words(pWVar2);\n  return iVar3;\n}" { (declaration "WORD_DESC *pWVar1;" type_identifier (pointer_declarator "*pWVar1" * identifier) ;) (declaration "WORD_LIST *pWVar2;" type_identifier (pointer_declarator "*pWVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pWVar1 = make_word(name);" (assignment_expression "pWVar1 = make_word(name)" identifier = (call_expression "make_word(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "pWVar2 = make_word_list(pWVar1,(WORD_LIST *)0x0);" (assignment_expression "pWVar2 = make_word_list(pWVar1,(WORD_LIST *)0x0)" identifier = (call_expression "make_word_list(pWVar1,(WORD_LIST *)0x0)" identifier (argument_list "(pWVar1,(WORD_LIST *)0x0)" ( identifier , (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "pWVar1 = make_word("--");" (assignment_expression "pWVar1 = make_word("--")" identifier = (call_expression "make_word("--")" identifier (argument_list "("--")" ( (string_literal ""--"" " string_content ") )))) ;) (expression_statement "pWVar2 = make_word_list(pWVar1,pWVar2);" (assignment_expression "pWVar2 = make_word_list(pWVar1,pWVar2)" identifier = (call_expression "make_word_list(pWVar1,pWVar2)" identifier (argument_list "(pWVar1,pWVar2)" ( identifier , identifier )))) ;) (expression_statement "iVar3 = cd_builtin(pWVar2);" (assignment_expression "iVar3 = cd_builtin(pWVar2)" identifier = (call_expression "cd_builtin(pWVar2)" identifier (argument_list "(pWVar2)" ( identifier )))) ;) (expression_statement "dispose_words(pWVar2);" (call_expression "dispose_words(pWVar2)" identifier (argument_list "(pWVar2)" ( identifier ))) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_000a6140(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = make_word(param_1);\n  uVar1 = make_word_list(uVar1,0);\n  uVar2 = make_word("--");\n  uVar1 = make_word_list(uVar2,uVar1);\n  uVar2 = cd_builtin(uVar1);\n  dispose_words(uVar1);\n  return uVar2;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000a6140(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = make_word(param_1);\n  uVar1 = make_word_list(uVar1,0);\n  uVar2 = make_word("--");\n  uVar1 = make_word_list(uVar2,uVar1);\n  uVar2 = cd_builtin(uVar1);\n  dispose_words(uVar1);\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000a6140(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = make_word(param_1);\n  uVar1 = make_word_list(uVar1,0);\n  uVar2 = make_word("--");\n  uVar1 = make_word_list(uVar2,uVar1);\n  uVar2 = cd_builtin(uVar1);\n  dispose_words(uVar1);\n  return uVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = make_word(param_1);" (assignment_expression "uVar1 = make_word(param_1)" identifier = (call_expression "make_word(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar1 = make_word_list(uVar1,0);" (assignment_expression "uVar1 = make_word_list(uVar1,0)" identifier = (call_expression "make_word_list(uVar1,0)" identifier (argument_list "(uVar1,0)" ( identifier , number_literal )))) ;) (expression_statement "uVar2 = make_word("--");" (assignment_expression "uVar2 = make_word("--")" identifier = (call_expression "make_word("--")" identifier (argument_list "("--")" ( (string_literal ""--"" " string_content ") )))) ;) (expression_statement "uVar1 = make_word_list(uVar2,uVar1);" (assignment_expression "uVar1 = make_word_list(uVar2,uVar1)" identifier = (call_expression "make_word_list(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = cd_builtin(uVar1);" (assignment_expression "uVar2 = cd_builtin(uVar1)" identifier = (call_expression "cd_builtin(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "dispose_words(uVar1);" (call_expression "dispose_words(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_000a6140(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = make_word(param_1);\n  uVar1 = make_word_list(uVar1,0);\n  uVar2 = make_word("--");\n  uVar1 = make_word_list(uVar2,uVar1);\n  uVar2 = cd_builtin(uVar1);\n  dispose_words(uVar1);\n  return uVar2;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000a6140(undefined4 param_1)" (identifier "FUN_000a6140") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = make_word(param_1);\n  uVar1 = make_word_list(uVar1,0);\n  uVar2 = make_word("--");\n  uVar1 = make_word_list(uVar2,uVar1);\n  uVar2 = cd_builtin(uVar1);\n  dispose_words(uVar1);\n  return uVar2;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar1 = make_word(param_1);" (assignment_expression "uVar1 = make_word(param_1)" (identifier "uVar1") (= "=") (call_expression "make_word(param_1)" (identifier "make_word") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar1 = make_word_list(uVar1,0);" (assignment_expression "uVar1 = make_word_list(uVar1,0)" (identifier "uVar1") (= "=") (call_expression "make_word_list(uVar1,0)" (identifier "make_word_list") (argument_list "(uVar1,0)" (( "(") (identifier "uVar1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "uVar2 = make_word("--");" (assignment_expression "uVar2 = make_word("--")" (identifier "uVar2") (= "=") (call_expression "make_word("--")" (identifier "make_word") (argument_list "("--")" (( "(") (string_literal ""--"" (" """) (string_content "--") (" """)) () ")")))) (; ";")) (expression_statement "uVar1 = make_word_list(uVar2,uVar1);" (assignment_expression "uVar1 = make_word_list(uVar2,uVar1)" (identifier "uVar1") (= "=") (call_expression "make_word_list(uVar2,uVar1)" (identifier "make_word_list") (argument_list "(uVar2,uVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar2 = cd_builtin(uVar1);" (assignment_expression "uVar2 = cd_builtin(uVar1)" (identifier "uVar2") (= "=") (call_expression "cd_builtin(uVar1)" (identifier "cd_builtin") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "dispose_words(uVar1);" (call_expression "dispose_words(uVar1)" (identifier "dispose_words") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

int __regparm3 function_1(char *name)

{
  type_1 *pWVar1;
  type_2 *pWVar2;
  int iVar3;
  
  pWVar1 = var_1(name);
  pWVar2 = var_2(pWVar1,(type_2 *)0x0);
  pWVar1 = var_1("--");
  pWVar2 = var_2(pWVar1,pWVar2);
  iVar3 = var_3(pWVar2);
  var_4(pWVar2);
  return iVar3;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

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

undefined4 __regparm3 MASKED(undefined4 param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  uVar1 = make_word(param_1);
  uVar1 = make_word_list(uVar1,0);
  uVar2 = make_word("--");
  uVar1 = make_word_list(uVar2,uVar1);
  uVar2 = cd_builtin(uVar1);
  dispose_words(uVar1);
  return uVar2;
}

