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

int ppc_parse_name(char *name,expressionS *exp)

{
  ushort uVar1;
  ushort uVar2;
  pd_reg *ppVar3;
  bfd_boolean bVar4;
  
  bVar4 = cr_operand;
  if (cr_operand != 0) {
    ppVar3 = reg_name_search(cr_names,0xd,name + (*name == '%'));
    if (ppVar3 == (pd_reg *)0x0) {
      return 0;
    }
    uVar1 = ppVar3->value;
    uVar2 = ppVar3->flags;
    exp->field_0xc = 5;
    exp->X_add_number = (uint)uVar1;
    exp->X_md = uVar2;
    bVar4 = 1;
  }
  return bVar4;
}



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

int FUN_000403e0(undefined4 param_1,int param_2)

{
  ushort uVar1;
  undefined2 uVar2;
  int iVar3;
  
  iVar3 = DAT_00072bb0;
  if (DAT_00072bb0 != 0) {
    iVar3 = FUN_0003fd70();
    if (iVar3 == 0) {
      return 0;
    }
    uVar1 = *(ushort *)(iVar3 + 4);
    uVar2 = *(undefined2 *)(iVar3 + 6);
    *(undefined1 *)(param_2 + 0xc) = 5;
    *(uint *)(param_2 + 8) = (uint)uVar1;
    *(undefined2 *)(param_2 + 0xe) = uVar2;
    iVar3 = 1;
  }
  return iVar3;
}


PUSH ESI
PUSH EBX
CALL 0x000160b0
ADD EBX,0x29c19
SUB ESP,0x4
MOV ECX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EBX + 0x8bb0]
TEST EAX,EAX
JZ 0x00040438
XOR EAX,EAX
CMP byte ptr [ECX],0x25
MOV EDX,0xd
SETZ AL
ADD ECX,EAX
LEA EAX,[EBX + 0xffffe5c0]
CALL 0x0003fd70
TEST EAX,EAX
JZ 0x00040440
MOVZX EDX,word ptr [EAX + 0x4]
MOVZX EAX,word ptr [EAX + 0x6]
MOV byte ptr [ESI + 0xc],0x5
MOV dword ptr [ESI + 0x8],EDX
MOV word ptr [ESI + 0xe],AX
MOV EAX,0x1
ADD ESP,0x4
POP EBX
POP ESI
RET
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000403e0(undefined4 param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined2 uVar2;\n  int iVar3;\n  \n  iVar3 = DAT_00072bb0;\n  if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int FUN_000403e0(undefined4 param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined2 uVar2;\n  int iVar3;\n  \n  iVar3 = DAT_00072bb0;\n  if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000403e0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  undefined2 uVar2;\n  int iVar3;\n  \n  iVar3 = DAT_00072bb0;\n  if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }\n  return iVar3;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = DAT_00072bb0;" (assignment_expression "iVar3 = DAT_00072bb0" identifier = identifier) ;) (if_statement "if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }" if (parenthesized_expression "(DAT_00072bb0 != 0)" ( (binary_expression "DAT_00072bb0 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }" { (expression_statement "iVar3 = FUN_0003fd70();" (assignment_expression "iVar3 = FUN_0003fd70()" identifier = (call_expression "FUN_0003fd70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = *(ushort *)(iVar3 + 4);" (assignment_expression "uVar1 = *(ushort *)(iVar3 + 4)" identifier = (pointer_expression "*(ushort *)(iVar3 + 4)" * (cast_expression "(ushort *)(iVar3 + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined2 *)(iVar3 + 6);" (assignment_expression "uVar2 = *(undefined2 *)(iVar3 + 6)" identifier = (pointer_expression "*(undefined2 *)(iVar3 + 6)" * (cast_expression "(undefined2 *)(iVar3 + 6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 6)" ( (binary_expression "iVar3 + 6" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 5;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 5" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(param_2 + 8) = (uint)uVar1;" (assignment_expression "*(uint *)(param_2 + 8) = (uint)uVar1" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(undefined2 *)(param_2 + 0xe) = uVar2;" (assignment_expression "*(undefined2 *)(param_2 + 0xe) = uVar2" (pointer_expression "*(undefined2 *)(param_2 + 0xe)" * (cast_expression "(undefined2 *)(param_2 + 0xe)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe)" ( (binary_expression "param_2 + 0xe" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint ppc_parse_name(char *name,expressionS *exp)\n\n{\n  ushort uVar1;\n  ushort uVar2;\n  pd_reg *ppVar3;\n  bfd_boolean bVar4;\n  \n  bVar4 = cr_operand;\n  if (cr_operand != 0) {\n    ppVar3 = reg_name_search(cr_names,0xd,name + (*name == '%'));\n    if (ppVar3 == (pd_reg *)0x0) {\n      return 0;\n    }\n    uVar1 = ppVar3->value;\n    uVar2 = ppVar3->flags;\n    exp->field_0xc = 5;\n    exp->X_add_number = (uint)uVar1;\n    exp->X_md = uVar2;\n    bVar4 = 1;\n  }\n  return bVar4;\n}\n\n" comment (function_definition "int ppc_parse_name(char *name,expressionS *exp)\n\n{\n  ushort uVar1;\n  ushort uVar2;\n  pd_reg *ppVar3;\n  bfd_boolean bVar4;\n  \n  bVar4 = cr_operand;\n  if (cr_operand != 0) {\n    ppVar3 = reg_name_search(cr_names,0xd,name + (*name == '%'));\n    if (ppVar3 == (pd_reg *)0x0) {\n      return 0;\n    }\n    uVar1 = ppVar3->value;\n    uVar2 = ppVar3->flags;\n    exp->field_0xc = 5;\n    exp->X_add_number = (uint)uVar1;\n    exp->X_md = uVar2;\n    bVar4 = 1;\n  }\n  return bVar4;\n}" primitive_type (function_declarator "ppc_parse_name(char *name,expressionS *exp)" identifier (parameter_list "(char *name,expressionS *exp)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "expressionS *exp" type_identifier (pointer_declarator "*exp" * identifier)) ))) (compound_statement "{\n  ushort uVar1;\n  ushort uVar2;\n  pd_reg *ppVar3;\n  bfd_boolean bVar4;\n  \n  bVar4 = cr_operand;\n  if (cr_operand != 0) {\n    ppVar3 = reg_name_search(cr_names,0xd,name + (*name == '%'));\n    if (ppVar3 == (pd_reg *)0x0) {\n      return 0;\n    }\n    uVar1 = ppVar3->value;\n    uVar2 = ppVar3->flags;\n    exp->field_0xc = 5;\n    exp->X_add_number = (uint)uVar1;\n    exp->X_md = uVar2;\n    bVar4 = 1;\n  }\n  return bVar4;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "pd_reg *ppVar3;" type_identifier (pointer_declarator "*ppVar3" * identifier) ;) (declaration "bfd_boolean bVar4;" type_identifier identifier ;) (expression_statement "bVar4 = cr_operand;" (assignment_expression "bVar4 = cr_operand" identifier = identifier) ;) (if_statement "if (cr_operand != 0) {\n    ppVar3 = reg_name_search(cr_names,0xd,name + (*name == '%'));\n    if (ppVar3 == (pd_reg *)0x0) {\n      return 0;\n    }\n    uVar1 = ppVar3->value;\n    uVar2 = ppVar3->flags;\n    exp->field_0xc = 5;\n    exp->X_add_number = (uint)uVar1;\n    exp->X_md = uVar2;\n    bVar4 = 1;\n  }" if (parenthesized_expression "(cr_operand != 0)" ( (binary_expression "cr_operand != 0" identifier != number_literal) )) (compound_statement "{\n    ppVar3 = reg_name_search(cr_names,0xd,name + (*name == '%'));\n    if (ppVar3 == (pd_reg *)0x0) {\n      return 0;\n    }\n    uVar1 = ppVar3->value;\n    uVar2 = ppVar3->flags;\n    exp->field_0xc = 5;\n    exp->X_add_number = (uint)uVar1;\n    exp->X_md = uVar2;\n    bVar4 = 1;\n  }" { (expression_statement "ppVar3 = reg_name_search(cr_names,0xd,name + (*name == '%'));" (assignment_expression "ppVar3 = reg_name_search(cr_names,0xd,name + (*name == '%'))" identifier = (call_expression "reg_name_search(cr_names,0xd,name + (*name == '%'))" identifier (argument_list "(cr_names,0xd,name + (*name == '%'))" ( identifier , number_literal , (binary_expression "name + (*name == '%')" identifier + (parenthesized_expression "(*name == '%')" ( (binary_expression "*name == '%'" (pointer_expression "*name" * identifier) == (char_literal "'%'" ' character ')) ))) )))) ;) (if_statement "if (ppVar3 == (pd_reg *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(ppVar3 == (pd_reg *)0x0)" ( (binary_expression "ppVar3 == (pd_reg *)0x0" identifier == (cast_expression "(pd_reg *)0x0" ( (type_descriptor "pd_reg *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = ppVar3->value;" (assignment_expression "uVar1 = ppVar3->value" identifier = (field_expression "ppVar3->value" identifier -> field_identifier)) ;) (expression_statement "uVar2 = ppVar3->flags;" (assignment_expression "uVar2 = ppVar3->flags" identifier = (field_expression "ppVar3->flags" identifier -> field_identifier)) ;) (expression_statement "exp->field_0xc = 5;" (assignment_expression "exp->field_0xc = 5" (field_expression "exp->field_0xc" identifier -> field_identifier) = number_literal) ;) (expression_statement "exp->X_add_number = (uint)uVar1;" (assignment_expression "exp->X_add_number = (uint)uVar1" (field_expression "exp->X_add_number" identifier -> field_identifier) = (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "exp->X_md = uVar2;" (assignment_expression "exp->X_md = uVar2" (field_expression "exp->X_md" identifier -> field_identifier) = identifier) ;) (expression_statement "bVar4 = 1;" (assignment_expression "bVar4 = 1" identifier = number_literal) ;) })) (return_statement "return bVar4;" return identifier ;) })))
(translation_unit "int FUN_000403e0(undefined4 param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined2 uVar2;\n  int iVar3;\n  \n  iVar3 = DAT_00072bb0;\n  if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_000403e0(undefined4 param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined2 uVar2;\n  int iVar3;\n  \n  iVar3 = DAT_00072bb0;\n  if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000403e0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  undefined2 uVar2;\n  int iVar3;\n  \n  iVar3 = DAT_00072bb0;\n  if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }\n  return iVar3;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = DAT_00072bb0;" (assignment_expression "iVar3 = DAT_00072bb0" identifier = identifier) ;) (if_statement "if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }" if (parenthesized_expression "(DAT_00072bb0 != 0)" ( (binary_expression "DAT_00072bb0 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }" { (expression_statement "iVar3 = FUN_0003fd70();" (assignment_expression "iVar3 = FUN_0003fd70()" identifier = (call_expression "FUN_0003fd70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = *(ushort *)(iVar3 + 4);" (assignment_expression "uVar1 = *(ushort *)(iVar3 + 4)" identifier = (pointer_expression "*(ushort *)(iVar3 + 4)" * (cast_expression "(ushort *)(iVar3 + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined2 *)(iVar3 + 6);" (assignment_expression "uVar2 = *(undefined2 *)(iVar3 + 6)" identifier = (pointer_expression "*(undefined2 *)(iVar3 + 6)" * (cast_expression "(undefined2 *)(iVar3 + 6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 6)" ( (binary_expression "iVar3 + 6" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 5;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 5" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(param_2 + 8) = (uint)uVar1;" (assignment_expression "*(uint *)(param_2 + 8) = (uint)uVar1" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(undefined2 *)(param_2 + 0xe) = uVar2;" (assignment_expression "*(undefined2 *)(param_2 + 0xe) = uVar2" (pointer_expression "*(undefined2 *)(param_2 + 0xe)" * (cast_expression "(undefined2 *)(param_2 + 0xe)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe)" ( (binary_expression "param_2 + 0xe" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) 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 IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000403e0(undefined4 param_1,int param_2)\n\n{\n  ushort uVar1;\n  undefined2 uVar2;\n  int iVar3;\n  \n  iVar3 = DAT_00072bb0;\n  if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_000403e0(undefined4 param_1,int param_2)" (identifier "FUN_000403e0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  undefined2 uVar2;\n  int iVar3;\n  \n  iVar3 = DAT_00072bb0;\n  if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }\n  return iVar3;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "undefined2 uVar2;" (type_identifier "undefined2") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = DAT_00072bb0;" (assignment_expression "iVar3 = DAT_00072bb0" (identifier "iVar3") (= "=") (identifier "DAT_00072bb0")) (; ";")) (if_statement "if (DAT_00072bb0 != 0) {\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }" (if "if") (parenthesized_expression "(DAT_00072bb0 != 0)" (( "(") (binary_expression "DAT_00072bb0 != 0" (identifier "DAT_00072bb0") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = FUN_0003fd70();\n    if (iVar3 == 0) {\n      return 0;\n    }\n    uVar1 = *(ushort *)(iVar3 + 4);\n    uVar2 = *(undefined2 *)(iVar3 + 6);\n    *(undefined1 *)(param_2 + 0xc) = 5;\n    *(uint *)(param_2 + 8) = (uint)uVar1;\n    *(undefined2 *)(param_2 + 0xe) = uVar2;\n    iVar3 = 1;\n  }" ({ "{") (expression_statement "iVar3 = FUN_0003fd70();" (assignment_expression "iVar3 = FUN_0003fd70()" (identifier "iVar3") (= "=") (call_expression "FUN_0003fd70()" (identifier "FUN_0003fd70") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = *(ushort *)(iVar3 + 4);" (assignment_expression "uVar1 = *(ushort *)(iVar3 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(iVar3 + 4)" (* "*") (cast_expression "(ushort *)(iVar3 + 4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined2 *)(iVar3 + 6);" (assignment_expression "uVar2 = *(undefined2 *)(iVar3 + 6)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined2 *)(iVar3 + 6)" (* "*") (cast_expression "(undefined2 *)(iVar3 + 6)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 6)" (( "(") (binary_expression "iVar3 + 6" (identifier "iVar3") (+ "+") (number_literal "6")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 5;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 5" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "5")) (; ";")) (expression_statement "*(uint *)(param_2 + 8) = (uint)uVar1;" (assignment_expression "*(uint *)(param_2 + 8) = (uint)uVar1" (pointer_expression "*(uint *)(param_2 + 8)" (* "*") (cast_expression "(uint *)(param_2 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (cast_expression "(uint)uVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar1"))) (; ";")) (expression_statement "*(undefined2 *)(param_2 + 0xe) = uVar2;" (assignment_expression "*(undefined2 *)(param_2 + 0xe) = uVar2" (pointer_expression "*(undefined2 *)(param_2 + 0xe)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0xe)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xe)" (( "(") (binary_expression "param_2 + 0xe" (identifier "param_2") (+ "+") (number_literal "0xe")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

int function_1(char *var_3,type_1 *exp)

{
  type_2 uVar1;
  type_2 uVar2;
  type_3 *var_4;
  type_4 bVar4;
  
  bVar4 = var_1;
  if (var_1 != 0) {
    var_4 = var_2(cr_names,0xd,var_3 + (*var_3 == '%'));
    if (var_4 == (type_3 *)0x0) {
      return 0;
    }
    uVar1 = var_4->value;
    uVar2 = var_4->flags;
    exp->field_0xc = 5;
    exp->X_add_number = (type_5)uVar1;
    exp->X_md = uVar2;
    bVar4 = 1;
  }
  return bVar4;
}


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

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

int MASKED(undefined4 param_1,int param_2)

{
  ushort uVar1;
  undefined2 uVar2;
  int iVar3;
  
  iVar3 = DAT_00072bb0;
  if (DAT_00072bb0 != 0) {
    iVar3 = FUN_0003fd70();
    if (iVar3 == 0) {
      return 0;
    }
    uVar1 = *(ushort *)(iVar3 + 4);
    uVar2 = *(undefined2 *)(iVar3 + 6);
    *(undefined1 *)(param_2 + 0xc) = 5;
    *(uint *)(param_2 + 8) = (uint)uVar1;
    *(undefined2 *)(param_2 + 0xe) = uVar2;
    iVar3 = 1;
  }
  return iVar3;
}

