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

char * src_to_dest_lookup(ino_t ino,dev_t dev)

{
  int iVar1;
  char *pcVar2;
  int in_GS_OFFSET;
  Src_to_dest ent;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  ent.st_ino = ino;
  ent.st_dev = dev;
  pcVar2 = (char *)hash_lookup(src_to_dest,&ent);
  if (pcVar2 != (char *)0x0) {
    pcVar2 = *(char **)(pcVar2 + 0x10);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int FUN_0001a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x1a706;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = param_1;
  local_20 = param_2;
  local_1c = param_3;
  local_18 = param_4;
  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);
  if (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 0x10);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002d970();
}


PUSH EBX
CALL 0x00013950
ADD EBX,0x208fa
SUB ESP,0x30
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x24],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x14],EDX
MOV EDX,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[ESP + 0x10]
MOV dword ptr [ESP + 0x1c],EDX
PUSH EAX
PUSH dword ptr [EBX + 0x278c]
CALL 0x0001da30
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001a755
MOV EAX,dword ptr [EAX + 0x10]
MOV EDX,dword ptr [ESP + 0x1c]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x0001a767
ADD ESP,0x28
POP EBX
RET
CALL 0x0002d970
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1a706;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_1;\n  local_20 = param_2;\n  local_1c = param_3;\n  local_18 = param_4;\n  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002d970();\n}\n\n" comment (function_definition "int FUN_0001a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1a706;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_1;\n  local_20 = param_2;\n  local_1c = param_3;\n  local_18 = param_4;\n  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002d970();\n}" primitive_type (function_declarator "FUN_0001a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1a706;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_1;\n  local_20 = param_2;\n  local_1c = param_3;\n  local_18 = param_4;\n  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002d970();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x1a706;" (assignment_expression "uStack_8 = 0x1a706" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = param_1;" (assignment_expression "local_24 = param_1" identifier = identifier) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (expression_statement "local_1c = param_3;" (assignment_expression "local_1c = param_3" identifier = identifier) ;) (expression_statement "local_18 = param_4;" (assignment_expression "local_18 = param_4" identifier = identifier) ;) (expression_statement "iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);" (assignment_expression "iVar1 = FUN_0001da30(DAT_0003d78c,&local_24)" identifier = (call_expression "FUN_0001da30(DAT_0003d78c,&local_24)" identifier (argument_list "(DAT_0003d78c,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 0x10);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x10)" identifier = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "FUN_0002d970();" (call_expression "FUN_0002d970()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * src_to_dest_lookup(ino_t ino,dev_t dev)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int in_GS_OFFSET;\n  Src_to_dest ent;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ent.st_ino = ino;\n  ent.st_dev = dev;\n  pcVar2 = (char *)hash_lookup(src_to_dest,&ent);\n  if (pcVar2 != (char *)0x0) {\n    pcVar2 = *(char **)(pcVar2 + 0x10);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "char * src_to_dest_lookup(ino_t ino,dev_t dev)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int in_GS_OFFSET;\n  Src_to_dest ent;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ent.st_ino = ino;\n  ent.st_dev = dev;\n  pcVar2 = (char *)hash_lookup(src_to_dest,&ent);\n  if (pcVar2 != (char *)0x0) {\n    pcVar2 = *(char **)(pcVar2 + 0x10);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* src_to_dest_lookup(ino_t ino,dev_t dev)" * (function_declarator "src_to_dest_lookup(ino_t ino,dev_t dev)" identifier (parameter_list "(ino_t ino,dev_t dev)" ( (parameter_declaration "ino_t ino" type_identifier identifier) , (parameter_declaration "dev_t dev" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int in_GS_OFFSET;\n  Src_to_dest ent;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  ent.st_ino = ino;\n  ent.st_dev = dev;\n  pcVar2 = (char *)hash_lookup(src_to_dest,&ent);\n  if (pcVar2 != (char *)0x0) {\n    pcVar2 = *(char **)(pcVar2 + 0x10);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "Src_to_dest ent;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "ent.st_ino = ino;" (assignment_expression "ent.st_ino = ino" (field_expression "ent.st_ino" identifier . field_identifier) = identifier) ;) (expression_statement "ent.st_dev = dev;" (assignment_expression "ent.st_dev = dev" (field_expression "ent.st_dev" identifier . field_identifier) = identifier) ;) (expression_statement "pcVar2 = (char *)hash_lookup(src_to_dest,&ent);" (assignment_expression "pcVar2 = (char *)hash_lookup(src_to_dest,&ent)" identifier = (cast_expression "(char *)hash_lookup(src_to_dest,&ent)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "hash_lookup(src_to_dest,&ent)" identifier (argument_list "(src_to_dest,&ent)" ( identifier , (pointer_expression "&ent" & identifier) ))))) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    pcVar2 = *(char **)(pcVar2 + 0x10);\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = *(char **)(pcVar2 + 0x10);\n  }" { (expression_statement "pcVar2 = *(char **)(pcVar2 + 0x10);" (assignment_expression "pcVar2 = *(char **)(pcVar2 + 0x10)" identifier = (pointer_expression "*(char **)(pcVar2 + 0x10)" * (cast_expression "(char **)(pcVar2 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar2 + 0x10)" ( (binary_expression "pcVar2 + 0x10" identifier + number_literal) ))))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_0001a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1a706;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_1;\n  local_20 = param_2;\n  local_1c = param_3;\n  local_18 = param_4;\n  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d970();\n}\n\n" (function_definition "int FUN_0001a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1a706;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_1;\n  local_20 = param_2;\n  local_1c = param_3;\n  local_18 = param_4;\n  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d970();\n}" primitive_type (function_declarator "FUN_0001a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1a706;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_1;\n  local_20 = param_2;\n  local_1c = param_3;\n  local_18 = param_4;\n  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d970();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x1a706;" (assignment_expression "uStack_8 = 0x1a706" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_24 = param_1;" (assignment_expression "local_24 = param_1" identifier = identifier) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (expression_statement "local_1c = param_3;" (assignment_expression "local_1c = param_3" identifier = identifier) ;) (expression_statement "local_18 = param_4;" (assignment_expression "local_18 = param_4" identifier = identifier) ;) (expression_statement "iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);" (assignment_expression "iVar1 = FUN_0001da30(DAT_0003d78c,&local_24)" identifier = (call_expression "FUN_0001da30(DAT_0003d78c,&local_24)" identifier (argument_list "(DAT_0003d78c,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 0x10);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x10)" identifier = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "FUN_0002d970();" (call_expression "FUN_0002d970()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_0001a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1a706;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_1;\n  local_20 = param_2;\n  local_1c = param_3;\n  local_18 = param_4;\n  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d970();\n}" (primitive_type "int") (function_declarator "FUN_0001a700(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0001a700") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x1a706;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  local_24 = param_1;\n  local_20 = param_2;\n  local_1c = param_3;\n  local_18 = param_4;\n  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);\n  if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0002d970();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x1a706;" (assignment_expression "uStack_8 = 0x1a706" (identifier "uStack_8") (= "=") (number_literal "0x1a706")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_24 = param_1;" (assignment_expression "local_24 = param_1" (identifier "local_24") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" (identifier "local_20") (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_1c = param_3;" (assignment_expression "local_1c = param_3" (identifier "local_1c") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_18 = param_4;" (assignment_expression "local_18 = param_4" (identifier "local_18") (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);" (assignment_expression "iVar1 = FUN_0001da30(DAT_0003d78c,&local_24)" (identifier "iVar1") (= "=") (call_expression "FUN_0001da30(DAT_0003d78c,&local_24)" (identifier "FUN_0001da30") (argument_list "(DAT_0003d78c,&local_24)" (( "(") (identifier "DAT_0003d78c") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0x10);\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar1 + 0x10);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x10)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "FUN_0002d970();" (call_expression "FUN_0002d970()" (identifier "FUN_0002d970") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

char * function_1(type_1 ino,type_2 dev)

{
  int var_4;
  char *var_3;
  int var_1;
  type_3 ent;
  
  var_4 = *(int *)(var_1 + 0x14);
  ent.st_ino = ino;
  ent.st_dev = dev;
  var_3 = (char *)var_2(src_to_dest,&ent);
  if (var_3 != (char *)0x0) {
    var_3 = *(char **)(var_3 + 0x10);
  }
  if (var_4 == *(int *)(var_1 + 0x14)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


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

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

int MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x1a706;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  local_24 = param_1;
  local_20 = param_2;
  local_1c = param_3;
  local_18 = param_4;
  iVar1 = FUN_0001da30(DAT_0003d78c,&local_24);
  if (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 0x10);
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002d970();
}

