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

int bc_map_insert(BcVec *v,void *ptr,size_t *i)

{
}



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

int __regparm3 FUN_0001dabb(int *param_1,undefined4 *param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 *__src;
  
  iVar1 = FUN_0001d3f3();
  *param_3 = iVar1;
  iVar4 = param_1[1];
  if (iVar1 == iVar4) {
    FUN_0001d668();
    return 1;
  }
  iVar3 = param_1[3];
  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);
  iVar2 = strcmp((char *)*param_2,(char *)*__src);
  if (iVar2 != 0) {
    if (iVar4 == param_1[2]) {
      FUN_0001d4d4();
      iVar3 = param_1[3];
      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);
      iVar4 = param_1[1];
    }
    param_1[1] = iVar4 + 1;
    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);
    memmove(__src,param_2,param_1[3]);
    iVar2 = 1;
  }
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
CALL 0x00017640
ADD EBX,0xb2f59
MOV ESI,EAX
MOV EDI,ECX
MOV dword ptr [ESP + 0x8],EDX
CALL 0x0001d3f3
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [EDI],EAX
MOV EBP,dword ptr [ESI + 0x4]
CMP EAX,EBP
JNZ 0x0001db04
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,0x1
MOV EAX,ESI
CALL 0x0001d668
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESI + 0xc]
MOV EDI,dword ptr [ESP + 0x4]
IMUL EDI,EDX
MOV dword ptr [ESP + 0xc],EDX
ADD EDI,dword ptr [ESI]
SUB ESP,0x8
PUSH dword ptr [EDI]
MOV EAX,dword ptr [ESP + 0x14]
PUSH dword ptr [EAX]
CALL 0x00016140
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001db64
CMP EBP,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
JZ 0x0001db6c
LEA EAX,[EBP + 0x1]
MOV dword ptr [ESI + 0x4],EAX
PUSH EAX
SUB EBP,dword ptr [ESP + 0x8]
IMUL EBP,EDX
PUSH EBP
PUSH EDI
ADD EDX,EDI
PUSH EDX
CALL 0x00016260
ADD ESP,0xc
PUSH dword ptr [ESI + 0xc]
PUSH dword ptr [ESP + 0x10]
PUSH EDI
CALL 0x00016260
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,0x1
MOV EAX,ESI
CALL 0x0001d4d4
MOV EDX,dword ptr [ESI + 0xc]
MOV EDI,dword ptr [ESP + 0x4]
IMUL EDI,EDX
ADD EDI,dword ptr [ESI]
MOV EBP,dword ptr [ESI + 0x4]
JMP 0x0001db34
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_0001dabb(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *__src;\n  \n  iVar1 = FUN_0001d3f3();\n  *param_3 = iVar1;\n  iVar4 = param_1[1];\n  if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }\n  iVar3 = param_1[3];\n  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n  iVar2 = strcmp((char *)*param_2,(char *)*__src);\n  if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int __regparm3 FUN_0001dabb(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *__src;\n  \n  iVar1 = FUN_0001d3f3();\n  *param_3 = iVar1;\n  iVar4 = param_1[1];\n  if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }\n  iVar3 = param_1[3];\n  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n  iVar2 = strcmp((char *)*param_2,(char *)*__src);\n  if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001dabb(int *param_1,undefined4 *param_2,int *param_3)" identifier (parameter_list "(int *param_1,undefined4 *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *__src;\n  \n  iVar1 = FUN_0001d3f3();\n  *param_3 = iVar1;\n  iVar4 = param_1[1];\n  if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }\n  iVar3 = param_1[3];\n  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n  iVar2 = strcmp((char *)*param_2,(char *)*__src);\n  if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (expression_statement "iVar1 = FUN_0001d3f3();" (assignment_expression "iVar1 = FUN_0001d3f3()" identifier = (call_expression "FUN_0001d3f3()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == iVar4)" ( (binary_expression "iVar1 == iVar4" identifier == identifier) )) (compound_statement "{\n    FUN_0001d668();\n    return 1;\n  }" { (expression_statement "FUN_0001d668();" (call_expression "FUN_0001d668()" identifier (argument_list "()" ( ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar3 = param_1[3];" (assignment_expression "iVar3 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "__src = (undefined4 *)(iVar1 * iVar3 + *param_1);" (assignment_expression "__src = (undefined4 *)(iVar1 * iVar3 + *param_1)" identifier = (cast_expression "(undefined4 *)(iVar1 * iVar3 + *param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 * iVar3 + *param_1)" ( (binary_expression "iVar1 * iVar3 + *param_1" (binary_expression "iVar1 * iVar3" identifier * identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "iVar2 = strcmp((char *)*param_2,(char *)*__src);" (assignment_expression "iVar2 = strcmp((char *)*param_2,(char *)*__src)" identifier = (call_expression "strcmp((char *)*param_2,(char *)*__src)" identifier (argument_list "((char *)*param_2,(char *)*__src)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)*__src" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__src" * identifier)) )))) ;) (if_statement "if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }" { (if_statement "if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }" if (parenthesized_expression "(iVar4 == param_1[2])" ( (binary_expression "iVar4 == param_1[2]" identifier == (subscript_expression "param_1[2]" identifier [ number_literal ])) )) (compound_statement "{\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }" { (expression_statement "FUN_0001d4d4();" (call_expression "FUN_0001d4d4()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = param_1[3];" (assignment_expression "iVar3 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "__src = (undefined4 *)(iVar1 * iVar3 + *param_1);" (assignment_expression "__src = (undefined4 *)(iVar1 * iVar3 + *param_1)" identifier = (cast_expression "(undefined4 *)(iVar1 * iVar3 + *param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 * iVar3 + *param_1)" ( (binary_expression "iVar1 * iVar3 + *param_1" (binary_expression "iVar1 * iVar3" identifier * identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (expression_statement "param_1[1] = iVar4 + 1;" (assignment_expression "param_1[1] = iVar4 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);" (call_expression "memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3)" identifier (argument_list "((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3)" ( (cast_expression "(void *)(iVar3 + (int)__src)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (int)__src)" ( (binary_expression "iVar3 + (int)__src" identifier + (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , (binary_expression "(iVar4 - iVar1) * iVar3" (parenthesized_expression "(iVar4 - iVar1)" ( (binary_expression "iVar4 - iVar1" identifier - identifier) )) * identifier) ))) ;) (expression_statement "memmove(__src,param_2,param_1[3]);" (call_expression "memmove(__src,param_2,param_1[3])" identifier (argument_list "(__src,param_2,param_1[3])" ( identifier , identifier , (subscript_expression "param_1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint bc_map_insert(BcVec *v,void *ptr,size_t *i)\n\n{\n}\n\n" comment (function_definition "int bc_map_insert(BcVec *v,void *ptr,size_t *i)\n\n{\n}" primitive_type (function_declarator "bc_map_insert(BcVec *v,void *ptr,size_t *i)" identifier (parameter_list "(BcVec *v,void *ptr,size_t *i)" ( (parameter_declaration "BcVec *v" type_identifier (pointer_declarator "*v" * identifier)) , (parameter_declaration "void *ptr" primitive_type (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "size_t *i" primitive_type (pointer_declarator "*i" * identifier)) ))) (compound_statement "{\n}" { })))
(translation_unit "int __regparm3 FUN_0001dabb(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *__src;\n  \n  iVar1 = FUN_0001d3f3();\n  *param_3 = iVar1;\n  iVar4 = param_1[1];\n  if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }\n  iVar3 = param_1[3];\n  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n  iVar2 = strcmp((char *)*param_2,(char *)*__src);\n  if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }\n  return iVar2;\n}\n\n" (function_definition "int __regparm3 FUN_0001dabb(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *__src;\n  \n  iVar1 = FUN_0001d3f3();\n  *param_3 = iVar1;\n  iVar4 = param_1[1];\n  if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }\n  iVar3 = param_1[3];\n  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n  iVar2 = strcmp((char *)*param_2,(char *)*__src);\n  if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001dabb(int *param_1,undefined4 *param_2,int *param_3)" identifier (parameter_list "(int *param_1,undefined4 *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *__src;\n  \n  iVar1 = FUN_0001d3f3();\n  *param_3 = iVar1;\n  iVar4 = param_1[1];\n  if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }\n  iVar3 = param_1[3];\n  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n  iVar2 = strcmp((char *)*param_2,(char *)*__src);\n  if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (expression_statement "iVar1 = FUN_0001d3f3();" (assignment_expression "iVar1 = FUN_0001d3f3()" identifier = (call_expression "FUN_0001d3f3()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == iVar4)" ( (binary_expression "iVar1 == iVar4" identifier == identifier) )) (compound_statement "{\n    FUN_0001d668();\n    return 1;\n  }" { (expression_statement "FUN_0001d668();" (call_expression "FUN_0001d668()" identifier (argument_list "()" ( ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar3 = param_1[3];" (assignment_expression "iVar3 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "__src = (undefined4 *)(iVar1 * iVar3 + *param_1);" (assignment_expression "__src = (undefined4 *)(iVar1 * iVar3 + *param_1)" identifier = (cast_expression "(undefined4 *)(iVar1 * iVar3 + *param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 * iVar3 + *param_1)" ( (binary_expression "iVar1 * iVar3 + *param_1" (binary_expression "iVar1 * iVar3" identifier * identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "iVar2 = strcmp((char *)*param_2,(char *)*__src);" (assignment_expression "iVar2 = strcmp((char *)*param_2,(char *)*__src)" identifier = (call_expression "strcmp((char *)*param_2,(char *)*__src)" identifier (argument_list "((char *)*param_2,(char *)*__src)" ( (cast_expression "(char *)*param_2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)) , (cast_expression "(char *)*__src" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__src" * identifier)) )))) ;) (if_statement "if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }" { (if_statement "if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }" if (parenthesized_expression "(iVar4 == param_1[2])" ( (binary_expression "iVar4 == param_1[2]" identifier == (subscript_expression "param_1[2]" identifier [ number_literal ])) )) (compound_statement "{\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }" { (expression_statement "FUN_0001d4d4();" (call_expression "FUN_0001d4d4()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = param_1[3];" (assignment_expression "iVar3 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "__src = (undefined4 *)(iVar1 * iVar3 + *param_1);" (assignment_expression "__src = (undefined4 *)(iVar1 * iVar3 + *param_1)" identifier = (cast_expression "(undefined4 *)(iVar1 * iVar3 + *param_1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 * iVar3 + *param_1)" ( (binary_expression "iVar1 * iVar3 + *param_1" (binary_expression "iVar1 * iVar3" identifier * identifier) + (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (expression_statement "param_1[1] = iVar4 + 1;" (assignment_expression "param_1[1] = iVar4 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);" (call_expression "memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3)" identifier (argument_list "((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3)" ( (cast_expression "(void *)(iVar3 + (int)__src)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + (int)__src)" ( (binary_expression "iVar3 + (int)__src" identifier + (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , identifier , (binary_expression "(iVar4 - iVar1) * iVar3" (parenthesized_expression "(iVar4 - iVar1)" ( (binary_expression "iVar4 - iVar1" identifier - identifier) )) * identifier) ))) ;) (expression_statement "memmove(__src,param_2,param_1[3]);" (call_expression "memmove(__src,param_2,param_1[3])" identifier (argument_list "(__src,param_2,param_1[3])" ( identifier , identifier , (subscript_expression "param_1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * IDENT) + (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * IDENT) + (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) , IDENT , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0001dabb(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *__src;\n  \n  iVar1 = FUN_0001d3f3();\n  *param_3 = iVar1;\n  iVar4 = param_1[1];\n  if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }\n  iVar3 = param_1[3];\n  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n  iVar2 = strcmp((char *)*param_2,(char *)*__src);\n  if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001dabb(int *param_1,undefined4 *param_2,int *param_3)" (identifier "FUN_0001dabb") (parameter_list "(int *param_1,undefined4 *param_2,int *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 *__src;\n  \n  iVar1 = FUN_0001d3f3();\n  *param_3 = iVar1;\n  iVar4 = param_1[1];\n  if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }\n  iVar3 = param_1[3];\n  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n  iVar2 = strcmp((char *)*param_2,(char *)*__src);\n  if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *__src;" (type_identifier "undefined4") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (expression_statement "iVar1 = FUN_0001d3f3();" (assignment_expression "iVar1 = FUN_0001d3f3()" (identifier "iVar1") (= "=") (call_expression "FUN_0001d3f3()" (identifier "FUN_0001d3f3") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_3 = iVar1;" (assignment_expression "*param_3 = iVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" (identifier "iVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar1 == iVar4) {\n    FUN_0001d668();\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 == iVar4)" (( "(") (binary_expression "iVar1 == iVar4" (identifier "iVar1") (== "==") (identifier "iVar4")) () ")")) (compound_statement "{\n    FUN_0001d668();\n    return 1;\n  }" ({ "{") (expression_statement "FUN_0001d668();" (call_expression "FUN_0001d668()" (identifier "FUN_0001d668") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar3 = param_1[3];" (assignment_expression "iVar3 = param_1[3]" (identifier "iVar3") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "__src = (undefined4 *)(iVar1 * iVar3 + *param_1);" (assignment_expression "__src = (undefined4 *)(iVar1 * iVar3 + *param_1)" (identifier "__src") (= "=") (cast_expression "(undefined4 *)(iVar1 * iVar3 + *param_1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 * iVar3 + *param_1)" (( "(") (binary_expression "iVar1 * iVar3 + *param_1" (binary_expression "iVar1 * iVar3" (identifier "iVar1") (* "*") (identifier "iVar3")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "iVar2 = strcmp((char *)*param_2,(char *)*__src);" (assignment_expression "iVar2 = strcmp((char *)*param_2,(char *)*__src)" (identifier "iVar2") (= "=") (call_expression "strcmp((char *)*param_2,(char *)*__src)" (identifier "strcmp") (argument_list "((char *)*param_2,(char *)*__src)" (( "(") (cast_expression "(char *)*param_2" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (, ",") (cast_expression "(char *)*__src" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*__src" (* "*") (identifier "__src"))) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }\n    param_1[1] = iVar4 + 1;\n    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);\n    memmove(__src,param_2,param_1[3]);\n    iVar2 = 1;\n  }" ({ "{") (if_statement "if (iVar4 == param_1[2]) {\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }" (if "if") (parenthesized_expression "(iVar4 == param_1[2])" (( "(") (binary_expression "iVar4 == param_1[2]" (identifier "iVar4") (== "==") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")")) (compound_statement "{\n      FUN_0001d4d4();\n      iVar3 = param_1[3];\n      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);\n      iVar4 = param_1[1];\n    }" ({ "{") (expression_statement "FUN_0001d4d4();" (call_expression "FUN_0001d4d4()" (identifier "FUN_0001d4d4") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = param_1[3];" (assignment_expression "iVar3 = param_1[3]" (identifier "iVar3") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "__src = (undefined4 *)(iVar1 * iVar3 + *param_1);" (assignment_expression "__src = (undefined4 *)(iVar1 * iVar3 + *param_1)" (identifier "__src") (= "=") (cast_expression "(undefined4 *)(iVar1 * iVar3 + *param_1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 * iVar3 + *param_1)" (( "(") (binary_expression "iVar1 * iVar3 + *param_1" (binary_expression "iVar1 * iVar3" (identifier "iVar1") (* "*") (identifier "iVar3")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" (identifier "iVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "param_1[1] = iVar4 + 1;" (assignment_expression "param_1[1] = iVar4 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);" (call_expression "memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3)" (identifier "memmove") (argument_list "((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3)" (( "(") (cast_expression "(void *)(iVar3 + (int)__src)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + (int)__src)" (( "(") (binary_expression "iVar3 + (int)__src" (identifier "iVar3") (+ "+") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src"))) () ")"))) (, ",") (identifier "__src") (, ",") (binary_expression "(iVar4 - iVar1) * iVar3" (parenthesized_expression "(iVar4 - iVar1)" (( "(") (binary_expression "iVar4 - iVar1" (identifier "iVar4") (- "-") (identifier "iVar1")) () ")")) (* "*") (identifier "iVar3")) () ")"))) (; ";")) (expression_statement "memmove(__src,param_2,param_1[3]);" (call_expression "memmove(__src,param_2,param_1[3])" (identifier "memmove") (argument_list "(__src,param_2,param_1[3])" (( "(") (identifier "__src") (, ",") (identifier "param_2") (, ",") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

int function_1(type_1 *v,void *ptr,size_t *i)

{
}


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

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

int __regparm3 MASKED(int *param_1,undefined4 *param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 *__src;
  
  iVar1 = FUN_0001d3f3();
  *param_3 = iVar1;
  iVar4 = param_1[1];
  if (iVar1 == iVar4) {
    FUN_0001d668();
    return 1;
  }
  iVar3 = param_1[3];
  __src = (undefined4 *)(iVar1 * iVar3 + *param_1);
  iVar2 = strcmp((char *)*param_2,(char *)*__src);
  if (iVar2 != 0) {
    if (iVar4 == param_1[2]) {
      FUN_0001d4d4();
      iVar3 = param_1[3];
      __src = (undefined4 *)(iVar1 * iVar3 + *param_1);
      iVar4 = param_1[1];
    }
    param_1[1] = iVar4 + 1;
    memmove((void *)(iVar3 + (int)__src),__src,(iVar4 - iVar1) * iVar3);
    memmove(__src,param_2,param_1[3]);
    iVar2 = 1;
  }
  return iVar2;
}

