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

void __regparm3 queue_directory(char *name,char *realname,_Bool command_line_arg)

{
  pending *ppVar1;
  
  ppVar1 = (pending *)xmalloc(0x10);
  if (realname != (char *)0x0) {
    realname = xstrdup(realname);
  }
  ppVar1->realname = realname;
  if (name != (char *)0x0) {
    name = xstrdup(name);
  }
  ppVar1->name = name;
  ppVar1->command_line_arg = command_line_arg;
  ppVar1->next = pending_dirs;
  pending_dirs = ppVar1;
  return;
}



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

void __regparm3 FUN_00014a20(int param_1,int param_2,undefined1 param_3)

{
  int *piVar1;
  
  piVar1 = (int *)FUN_00023f30(0x10);
  if (param_2 != 0) {
    param_2 = FUN_00024200(param_2);
  }
  piVar1[1] = param_2;
  if (param_1 != 0) {
    param_1 = FUN_00024200(param_1);
  }
  *piVar1 = param_1;
  *(undefined1 *)(piVar1 + 2) = param_3;
  piVar1[3] = (int)DAT_0003c340;
  DAT_0003c340 = piVar1;
  return;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x265d3
SUB ESP,0x28
MOV dword ptr [ESP + 0x18],EDX
PUSH 0x10
CALL 0x00023f30
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV ESI,EAX
TEST EDX,EDX
JZ 0x00014a5c
SUB ESP,0xc
PUSH EDX
CALL 0x00024200
ADD ESP,0x10
MOV EDX,EAX
MOV dword ptr [ESI + 0x4],EDX
TEST EDI,EDI
JZ 0x00014a71
SUB ESP,0xc
PUSH EDI
CALL 0x00024200
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,EBP
MOV dword ptr [ESI],EDI
MOV byte ptr [ESI + 0x8],AL
MOV EAX,dword ptr [EBX + 0x1340]
MOV dword ptr [EBX + 0x1340],ESI
MOV dword ptr [ESI + 0xc],EAX
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 __regparm3 FUN_00014a20(int param_1,int param_2,undefined1 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_00023f30(0x10);\n  if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }\n  piVar1[1] = param_2;\n  if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }\n  *piVar1 = param_1;\n  *(undefined1 *)(piVar1 + 2) = param_3;\n  piVar1[3] = (int)DAT_0003c340;\n  DAT_0003c340 = piVar1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00014a20(int param_1,int param_2,undefined1 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_00023f30(0x10);\n  if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }\n  piVar1[1] = param_2;\n  if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }\n  *piVar1 = param_1;\n  *(undefined1 *)(piVar1 + 2) = param_3;\n  piVar1[3] = (int)DAT_0003c340;\n  DAT_0003c340 = piVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014a20(int param_1,int param_2,undefined1 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined1 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_00023f30(0x10);\n  if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }\n  piVar1[1] = param_2;\n  if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }\n  *piVar1 = param_1;\n  *(undefined1 *)(piVar1 + 2) = param_3;\n  piVar1[3] = (int)DAT_0003c340;\n  DAT_0003c340 = piVar1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = (int *)FUN_00023f30(0x10);" (assignment_expression "piVar1 = (int *)FUN_00023f30(0x10)" identifier = (cast_expression "(int *)FUN_00023f30(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023f30(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = FUN_00024200(param_2);\n  }" { (expression_statement "param_2 = FUN_00024200(param_2);" (assignment_expression "param_2 = FUN_00024200(param_2)" identifier = (call_expression "FUN_00024200(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (expression_statement "piVar1[1] = param_2;" (assignment_expression "piVar1[1] = param_2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    param_1 = FUN_00024200(param_1);\n  }" { (expression_statement "param_1 = FUN_00024200(param_1);" (assignment_expression "param_1 = FUN_00024200(param_1)" identifier = (call_expression "FUN_00024200(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) })) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(piVar1 + 2) = param_3;" (assignment_expression "*(undefined1 *)(piVar1 + 2) = param_3" (pointer_expression "*(undefined1 *)(piVar1 + 2)" * (cast_expression "(undefined1 *)(piVar1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar1[3] = (int)DAT_0003c340;" (assignment_expression "piVar1[3] = (int)DAT_0003c340" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = (cast_expression "(int)DAT_0003c340" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_0003c340 = piVar1;" (assignment_expression "DAT_0003c340 = piVar1" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 queue_directory(char *name,char *realname,_Bool command_line_arg)\n\n{\n  pending *ppVar1;\n  \n  ppVar1 = (pending *)xmalloc(0x10);\n  if (realname != (char *)0x0) {\n    realname = xstrdup(realname);\n  }\n  ppVar1->realname = realname;\n  if (name != (char *)0x0) {\n    name = xstrdup(name);\n  }\n  ppVar1->name = name;\n  ppVar1->command_line_arg = command_line_arg;\n  ppVar1->next = pending_dirs;\n  pending_dirs = ppVar1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 queue_directory(char *name,char *realname,_Bool command_line_arg)\n\n{\n  pending *ppVar1;\n  \n  ppVar1 = (pending *)xmalloc(0x10);\n  if (realname != (char *)0x0) {\n    realname = xstrdup(realname);\n  }\n  ppVar1->realname = realname;\n  if (name != (char *)0x0) {\n    name = xstrdup(name);\n  }\n  ppVar1->name = name;\n  ppVar1->command_line_arg = command_line_arg;\n  ppVar1->next = pending_dirs;\n  pending_dirs = ppVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "queue_directory(char *name,char *realname,_Bool command_line_arg)" identifier (parameter_list "(char *name,char *realname,_Bool command_line_arg)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *realname" primitive_type (pointer_declarator "*realname" * identifier)) , (parameter_declaration "_Bool command_line_arg" type_identifier identifier) ))) (compound_statement "{\n  pending *ppVar1;\n  \n  ppVar1 = (pending *)xmalloc(0x10);\n  if (realname != (char *)0x0) {\n    realname = xstrdup(realname);\n  }\n  ppVar1->realname = realname;\n  if (name != (char *)0x0) {\n    name = xstrdup(name);\n  }\n  ppVar1->name = name;\n  ppVar1->command_line_arg = command_line_arg;\n  ppVar1->next = pending_dirs;\n  pending_dirs = ppVar1;\n  return;\n}" { (declaration "pending *ppVar1;" type_identifier (pointer_declarator "*ppVar1" * identifier) ;) (expression_statement "ppVar1 = (pending *)xmalloc(0x10);" (assignment_expression "ppVar1 = (pending *)xmalloc(0x10)" identifier = (cast_expression "(pending *)xmalloc(0x10)" ( (type_descriptor "pending *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (if_statement "if (realname != (char *)0x0) {\n    realname = xstrdup(realname);\n  }" if (parenthesized_expression "(realname != (char *)0x0)" ( (binary_expression "realname != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    realname = xstrdup(realname);\n  }" { (expression_statement "realname = xstrdup(realname);" (assignment_expression "realname = xstrdup(realname)" identifier = (call_expression "xstrdup(realname)" identifier (argument_list "(realname)" ( identifier )))) ;) })) (expression_statement "ppVar1->realname = realname;" (assignment_expression "ppVar1->realname = realname" (field_expression "ppVar1->realname" identifier -> field_identifier) = identifier) ;) (if_statement "if (name != (char *)0x0) {\n    name = xstrdup(name);\n  }" if (parenthesized_expression "(name != (char *)0x0)" ( (binary_expression "name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    name = xstrdup(name);\n  }" { (expression_statement "name = xstrdup(name);" (assignment_expression "name = xstrdup(name)" identifier = (call_expression "xstrdup(name)" identifier (argument_list "(name)" ( identifier )))) ;) })) (expression_statement "ppVar1->name = name;" (assignment_expression "ppVar1->name = name" (field_expression "ppVar1->name" identifier -> field_identifier) = identifier) ;) (expression_statement "ppVar1->command_line_arg = command_line_arg;" (assignment_expression "ppVar1->command_line_arg = command_line_arg" (field_expression "ppVar1->command_line_arg" identifier -> field_identifier) = identifier) ;) (expression_statement "ppVar1->next = pending_dirs;" (assignment_expression "ppVar1->next = pending_dirs" (field_expression "ppVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "pending_dirs = ppVar1;" (assignment_expression "pending_dirs = ppVar1" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00014a20(int param_1,int param_2,undefined1 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_00023f30(0x10);\n  if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }\n  piVar1[1] = param_2;\n  if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }\n  *piVar1 = param_1;\n  *(undefined1 *)(piVar1 + 2) = param_3;\n  piVar1[3] = (int)DAT_0003c340;\n  DAT_0003c340 = piVar1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00014a20(int param_1,int param_2,undefined1 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_00023f30(0x10);\n  if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }\n  piVar1[1] = param_2;\n  if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }\n  *piVar1 = param_1;\n  *(undefined1 *)(piVar1 + 2) = param_3;\n  piVar1[3] = (int)DAT_0003c340;\n  DAT_0003c340 = piVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014a20(int param_1,int param_2,undefined1 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined1 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_00023f30(0x10);\n  if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }\n  piVar1[1] = param_2;\n  if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }\n  *piVar1 = param_1;\n  *(undefined1 *)(piVar1 + 2) = param_3;\n  piVar1[3] = (int)DAT_0003c340;\n  DAT_0003c340 = piVar1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = (int *)FUN_00023f30(0x10);" (assignment_expression "piVar1 = (int *)FUN_00023f30(0x10)" identifier = (cast_expression "(int *)FUN_00023f30(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00023f30(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    param_2 = FUN_00024200(param_2);\n  }" { (expression_statement "param_2 = FUN_00024200(param_2);" (assignment_expression "param_2 = FUN_00024200(param_2)" identifier = (call_expression "FUN_00024200(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (expression_statement "piVar1[1] = param_2;" (assignment_expression "piVar1[1] = param_2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    param_1 = FUN_00024200(param_1);\n  }" { (expression_statement "param_1 = FUN_00024200(param_1);" (assignment_expression "param_1 = FUN_00024200(param_1)" identifier = (call_expression "FUN_00024200(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) })) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(piVar1 + 2) = param_3;" (assignment_expression "*(undefined1 *)(piVar1 + 2) = param_3" (pointer_expression "*(undefined1 *)(piVar1 + 2)" * (cast_expression "(undefined1 *)(piVar1 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar1[3] = (int)DAT_0003c340;" (assignment_expression "piVar1[3] = (int)DAT_0003c340" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = (cast_expression "(int)DAT_0003c340" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "DAT_0003c340 = piVar1;" (assignment_expression "DAT_0003c340 = piVar1" identifier = 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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (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 != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00014a20(int param_1,int param_2,undefined1 param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_00023f30(0x10);\n  if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }\n  piVar1[1] = param_2;\n  if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }\n  *piVar1 = param_1;\n  *(undefined1 *)(piVar1 + 2) = param_3;\n  piVar1[3] = (int)DAT_0003c340;\n  DAT_0003c340 = piVar1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00014a20(int param_1,int param_2,undefined1 param_3)" (identifier "FUN_00014a20") (parameter_list "(int param_1,int param_2,undefined1 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 param_3" (type_identifier "undefined1") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)FUN_00023f30(0x10);\n  if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }\n  piVar1[1] = param_2;\n  if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }\n  *piVar1 = param_1;\n  *(undefined1 *)(piVar1 + 2) = param_3;\n  piVar1[3] = (int)DAT_0003c340;\n  DAT_0003c340 = piVar1;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = (int *)FUN_00023f30(0x10);" (assignment_expression "piVar1 = (int *)FUN_00023f30(0x10)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00023f30(0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00023f30(0x10)" (identifier "FUN_00023f30") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (if_statement "if (param_2 != 0) {\n    param_2 = FUN_00024200(param_2);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = FUN_00024200(param_2);\n  }" ({ "{") (expression_statement "param_2 = FUN_00024200(param_2);" (assignment_expression "param_2 = FUN_00024200(param_2)" (identifier "param_2") (= "=") (call_expression "FUN_00024200(param_2)" (identifier "FUN_00024200") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}"))) (expression_statement "piVar1[1] = param_2;" (assignment_expression "piVar1[1] = param_2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_1 != 0) {\n    param_1 = FUN_00024200(param_1);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_1 = FUN_00024200(param_1);\n  }" ({ "{") (expression_statement "param_1 = FUN_00024200(param_1);" (assignment_expression "param_1 = FUN_00024200(param_1)" (identifier "param_1") (= "=") (call_expression "FUN_00024200(param_1)" (identifier "FUN_00024200") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (} "}"))) (expression_statement "*piVar1 = param_1;" (assignment_expression "*piVar1 = param_1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined1 *)(piVar1 + 2) = param_3;" (assignment_expression "*(undefined1 *)(piVar1 + 2) = param_3" (pointer_expression "*(undefined1 *)(piVar1 + 2)" (* "*") (cast_expression "(undefined1 *)(piVar1 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 2)" (( "(") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar1[3] = (int)DAT_0003c340;" (assignment_expression "piVar1[3] = (int)DAT_0003c340" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(int)DAT_0003c340" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_0003c340"))) (; ";")) (expression_statement "DAT_0003c340 = piVar1;" (assignment_expression "DAT_0003c340 = piVar1" (identifier "DAT_0003c340") (= "=") (identifier "piVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *var_4,char *var_2,type_1 command_line_arg)

{
  type_2 *ppVar1;
  
  ppVar1 = (type_2 *)var_1(0x10);
  if (var_2 != (char *)0x0) {
    var_2 = var_3(var_2);
  }
  ppVar1->var_2 = var_2;
  if (var_4 != (char *)0x0) {
    var_4 = var_3(var_4);
  }
  ppVar1->var_4 = var_4;
  ppVar1->command_line_arg = command_line_arg;
  ppVar1->next = pending_dirs;
  pending_dirs = ppVar1;
  return;
}


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

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

void __regparm3 MASKED(int param_1,int param_2,undefined1 param_3)

{
  int *piVar1;
  
  piVar1 = (int *)FUN_00023f30(0x10);
  if (param_2 != 0) {
    param_2 = FUN_00024200(param_2);
  }
  piVar1[1] = param_2;
  if (param_1 != 0) {
    param_1 = FUN_00024200(param_1);
  }
  *piVar1 = param_1;
  *(undefined1 *)(piVar1 + 2) = param_3;
  piVar1[3] = (int)DAT_0003c340;
  DAT_0003c340 = piVar1;
  return;
}

