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

int try_symlink(char *dest,void *arg)

{
  int iVar1;
  
                    /* WARNING: Load size is inaccurate */
  iVar1 = symlinkat(*arg,*(int *)((int)arg + 4),dest);
  return iVar1;
}



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

void FUN_0001ac10(char *param_1,undefined4 *param_2)

{
  symlinkat((char *)*param_2,param_2[1],param_1);
  return;
}


PUSH EBX
CALL 0x000132c0
ADD EBX,0x1e3ea
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
CALL 0x00012840
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001ac10(char *param_1,undefined4 *param_2)\n\n{\n  symlinkat((char *)*param_2,param_2[1],param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_0001ac10(char *param_1,undefined4 *param_2)\n\n{\n  symlinkat((char *)*param_2,param_2[1],param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0001ac10(char *param_1,undefined4 *param_2)" identifier (parameter_list "(char *param_1,undefined4 *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  symlinkat((char *)*param_2,param_2[1],param_1);\n  return;\n}" { (expression_statement "symlinkat((char *)*param_2,param_2[1],param_1);" (call_expression "symlinkat((char *)*param_2,param_2[1],param_1)" identifier (argument_list "((char *)*param_2,param_2[1],param_1)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , 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\nint try_symlink(char *dest,void *arg)\n\n{\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = symlinkat(*arg,*(int *)((int)arg + 4),dest);\n  return iVar1;\n}\n\n" comment comment (function_definition "int try_symlink(char *dest,void *arg)\n\n{\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = symlinkat(*arg,*(int *)((int)arg + 4),dest);\n  return iVar1;\n}" primitive_type (function_declarator "try_symlink(char *dest,void *arg)" identifier (parameter_list "(char *dest,void *arg)" ( (parameter_declaration "char *dest" primitive_type (pointer_declarator "*dest" * identifier)) , (parameter_declaration "void *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n                    /* WARNING: Load size is inaccurate */\n  iVar1 = symlinkat(*arg,*(int *)((int)arg + 4),dest);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) comment (expression_statement "iVar1 = symlinkat(*arg,*(int *)((int)arg + 4),dest);" (assignment_expression "iVar1 = symlinkat(*arg,*(int *)((int)arg + 4),dest)" identifier = (call_expression "symlinkat(*arg,*(int *)((int)arg + 4),dest)" identifier (argument_list "(*arg,*(int *)((int)arg + 4),dest)" ( (pointer_expression "*arg" * identifier) , (pointer_expression "*(int *)((int)arg + 4)" * (cast_expression "(int *)((int)arg + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)arg + 4)" ( (binary_expression "(int)arg + 4" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_0001ac10(char *param_1,undefined4 *param_2)\n\n{\n  symlinkat((char *)*param_2,param_2[1],param_1);\n  return;\n}\n\n" (function_definition "void FUN_0001ac10(char *param_1,undefined4 *param_2)\n\n{\n  symlinkat((char *)*param_2,param_2[1],param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0001ac10(char *param_1,undefined4 *param_2)" identifier (parameter_list "(char *param_1,undefined4 *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  symlinkat((char *)*param_2,param_2[1],param_1);\n  return;\n}" { (expression_statement "symlinkat((char *)*param_2,param_2[1],param_1);" (call_expression "symlinkat((char *)*param_2,param_2[1],param_1)" identifier (argument_list "((char *)*param_2,param_2[1],param_1)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001ac10(char *param_1,undefined4 *param_2)\n\n{\n  symlinkat((char *)*param_2,param_2[1],param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001ac10(char *param_1,undefined4 *param_2)" (identifier "FUN_0001ac10") (parameter_list "(char *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  symlinkat((char *)*param_2,param_2[1],param_1);\n  return;\n}" ({ "{") (expression_statement "symlinkat((char *)*param_2,param_2[1],param_1);" (call_expression "symlinkat((char *)*param_2,param_2[1],param_1)" (identifier "symlinkat") (argument_list "((char *)*param_2,param_2[1],param_1)" (( "(") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

int function_1(char *dest,void *arg)

{
  int iVar1;
  
                    /* WARNING: Load size is inaccurate */
  iVar1 = var_1(*arg,*(int *)((int)arg + 4),dest);
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))) (return_statement))))

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

void MASKED(char *param_1,undefined4 *param_2)

{
  symlinkat((char *)*param_2,param_2[1],param_1);
  return;
}

