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

void md_number_to_chars(char *buf,valueT val,int n)

{
  if ((target_big_endian == 0) &&
     (((target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||
      ((now_seg->flags & 1) != 0)))) {
    number_to_chars_littleendian(buf,val,n);
    return;
  }
  number_to_chars_bigendian(buf,val,n);
  return;
}



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

void FUN_00046470(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  if ((DAT_0006e2c8 == 0) &&
     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||
      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {
    FUN_00040dc0(param_1,param_2,param_3,param_4);
    return;
  }
  FUN_00040d50(param_1,param_2,param_3,param_4);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
CALL 0x00016040
ADD EBX,0x27b84
MOV EDI,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x1c]
LEA EDX,[EBX + 0x2c8]
MOV ECX,dword ptr [EDX]
TEST ECX,ECX
JNZ 0x000464d0
MOV EDX,dword ptr [EBX + 0x94e0]
TEST EDX,EDX
JZ 0x000464b6
LEA EDX,[EAX + -0x2]
AND EDX,0xfffffffd
JNZ 0x000464b6
LEA EDX,[EBX + 0x963c]
MOV EDX,dword ptr [EDX]
TEST byte ptr [EDX + 0x14],0x1
JZ 0x000464d0
PUSH EAX
PUSH EDI
PUSH ESI
PUSH dword ptr [ESP + 0x1c]
CALL 0x00040dc0
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
PUSH EAX
PUSH EDI
PUSH ESI
PUSH dword ptr [ESP + 0x1c]
CALL 0x00040d50
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00046470(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }\n  FUN_00040d50(param_1,param_2,param_3,param_4);\n  return;\n}\n\n" comment (function_definition "void FUN_00046470(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }\n  FUN_00040d50(param_1,param_2,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_00046470(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int 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 "int param_4" primitive_type identifier) ))) (compound_statement "{\n  if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }\n  FUN_00040d50(param_1,param_2,param_3,param_4);\n  return;\n}" { (if_statement "if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }" if (parenthesized_expression "((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0))))" ( (binary_expression "(DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))" (parenthesized_expression "(DAT_0006e2c8 == 0)" ( (binary_expression "DAT_0006e2c8 == 0" identifier == number_literal) )) && (parenthesized_expression "(((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))" ( (parenthesized_expression "((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0))" ( (binary_expression "(DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)" (parenthesized_expression "(DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0))" ( (binary_expression "DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)" (binary_expression "DAT_000774e0 == 0" identifier == number_literal) || (parenthesized_expression "((param_4 - 2U & 0xfffffffd) != 0)" ( (binary_expression "(param_4 - 2U & 0xfffffffd) != 0" (parenthesized_expression "(param_4 - 2U & 0xfffffffd)" ( (binary_expression "param_4 - 2U & 0xfffffffd" (binary_expression "param_4 - 2U" identifier - number_literal) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)" ( (binary_expression "(*(byte *)(DAT_0007763c + 0x14) & 1) != 0" (parenthesized_expression "(*(byte *)(DAT_0007763c + 0x14) & 1)" ( (binary_expression "*(byte *)(DAT_0007763c + 0x14) & 1" (pointer_expression "*(byte *)(DAT_0007763c + 0x14)" * (cast_expression "(byte *)(DAT_0007763c + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007763c + 0x14)" ( (binary_expression "DAT_0007763c + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) ))) )) (compound_statement "{\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }" { (expression_statement "FUN_00040dc0(param_1,param_2,param_3,param_4);" (call_expression "FUN_00040dc0(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00040d50(param_1,param_2,param_3,param_4);" (call_expression "FUN_00040d50(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid md_number_to_chars(char *buf,valueT val,int n)\n\n{\n  if ((target_big_endian == 0) &&\n     (((target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||\n      ((now_seg->flags & 1) != 0)))) {\n    number_to_chars_littleendian(buf,val,n);\n    return;\n  }\n  number_to_chars_bigendian(buf,val,n);\n  return;\n}\n\n" comment (function_definition "void md_number_to_chars(char *buf,valueT val,int n)\n\n{\n  if ((target_big_endian == 0) &&\n     (((target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||\n      ((now_seg->flags & 1) != 0)))) {\n    number_to_chars_littleendian(buf,val,n);\n    return;\n  }\n  number_to_chars_bigendian(buf,val,n);\n  return;\n}" primitive_type (function_declarator "md_number_to_chars(char *buf,valueT val,int n)" identifier (parameter_list "(char *buf,valueT val,int n)" ( (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "valueT val" type_identifier identifier) , (parameter_declaration "int n" primitive_type identifier) ))) (compound_statement "{\n  if ((target_big_endian == 0) &&\n     (((target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||\n      ((now_seg->flags & 1) != 0)))) {\n    number_to_chars_littleendian(buf,val,n);\n    return;\n  }\n  number_to_chars_bigendian(buf,val,n);\n  return;\n}" { (if_statement "if ((target_big_endian == 0) &&\n     (((target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||\n      ((now_seg->flags & 1) != 0)))) {\n    number_to_chars_littleendian(buf,val,n);\n    return;\n  }" if (parenthesized_expression "((target_big_endian == 0) &&\n     (((target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||\n      ((now_seg->flags & 1) != 0))))" ( (binary_expression "(target_big_endian == 0) &&\n     (((target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||\n      ((now_seg->flags & 1) != 0)))" (parenthesized_expression "(target_big_endian == 0)" ( (binary_expression "target_big_endian == 0" identifier == number_literal) )) && (parenthesized_expression "(((target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||\n      ((now_seg->flags & 1) != 0)))" ( (parenthesized_expression "((target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||\n      ((now_seg->flags & 1) != 0))" ( (binary_expression "(target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)) ||\n      ((now_seg->flags & 1) != 0)" (parenthesized_expression "(target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0))" ( (binary_expression "target_little_endian_data == 0 || ((n - 2U & 0xfffffffd) != 0)" (binary_expression "target_little_endian_data == 0" identifier == number_literal) || (parenthesized_expression "((n - 2U & 0xfffffffd) != 0)" ( (binary_expression "(n - 2U & 0xfffffffd) != 0" (parenthesized_expression "(n - 2U & 0xfffffffd)" ( (binary_expression "n - 2U & 0xfffffffd" (binary_expression "n - 2U" identifier - number_literal) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((now_seg->flags & 1) != 0)" ( (binary_expression "(now_seg->flags & 1) != 0" (parenthesized_expression "(now_seg->flags & 1)" ( (binary_expression "now_seg->flags & 1" (field_expression "now_seg->flags" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) ))) )) (compound_statement "{\n    number_to_chars_littleendian(buf,val,n);\n    return;\n  }" { (expression_statement "number_to_chars_littleendian(buf,val,n);" (call_expression "number_to_chars_littleendian(buf,val,n)" identifier (argument_list "(buf,val,n)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "number_to_chars_bigendian(buf,val,n);" (call_expression "number_to_chars_bigendian(buf,val,n)" identifier (argument_list "(buf,val,n)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00046470(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }\n  FUN_00040d50(param_1,param_2,param_3,param_4);\n  return;\n}\n\n" (function_definition "void FUN_00046470(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }\n  FUN_00040d50(param_1,param_2,param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_00046470(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int 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 "int param_4" primitive_type identifier) ))) (compound_statement "{\n  if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }\n  FUN_00040d50(param_1,param_2,param_3,param_4);\n  return;\n}" { (if_statement "if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }" if (parenthesized_expression "((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0))))" ( (binary_expression "(DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))" (parenthesized_expression "(DAT_0006e2c8 == 0)" ( (binary_expression "DAT_0006e2c8 == 0" identifier == number_literal) )) && (parenthesized_expression "(((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))" ( (parenthesized_expression "((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0))" ( (binary_expression "(DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)" (parenthesized_expression "(DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0))" ( (binary_expression "DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)" (binary_expression "DAT_000774e0 == 0" identifier == number_literal) || (parenthesized_expression "((param_4 - 2U & 0xfffffffd) != 0)" ( (binary_expression "(param_4 - 2U & 0xfffffffd) != 0" (parenthesized_expression "(param_4 - 2U & 0xfffffffd)" ( (binary_expression "param_4 - 2U & 0xfffffffd" (binary_expression "param_4 - 2U" identifier - number_literal) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)" ( (binary_expression "(*(byte *)(DAT_0007763c + 0x14) & 1) != 0" (parenthesized_expression "(*(byte *)(DAT_0007763c + 0x14) & 1)" ( (binary_expression "*(byte *)(DAT_0007763c + 0x14) & 1" (pointer_expression "*(byte *)(DAT_0007763c + 0x14)" * (cast_expression "(byte *)(DAT_0007763c + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007763c + 0x14)" ( (binary_expression "DAT_0007763c + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) ))) )) (compound_statement "{\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }" { (expression_statement "FUN_00040dc0(param_1,param_2,param_3,param_4);" (call_expression "FUN_00040dc0(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00040d50(param_1,param_2,param_3,param_4);" (call_expression "FUN_00040d50(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(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 { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) != LIT) ))) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00046470(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }\n  FUN_00040d50(param_1,param_2,param_3,param_4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00046470(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_00046470") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int 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 "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }\n  FUN_00040d50(param_1,param_2,param_3,param_4);\n  return;\n}" ({ "{") (if_statement "if ((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }" (if "if") (parenthesized_expression "((DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0))))" (( "(") (binary_expression "(DAT_0006e2c8 == 0) &&\n     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))" (parenthesized_expression "(DAT_0006e2c8 == 0)" (( "(") (binary_expression "DAT_0006e2c8 == 0" (identifier "DAT_0006e2c8") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))" (( "(") (parenthesized_expression "((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0))" (( "(") (binary_expression "(DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||\n      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)" (parenthesized_expression "(DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0))" (( "(") (binary_expression "DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)" (binary_expression "DAT_000774e0 == 0" (identifier "DAT_000774e0") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "((param_4 - 2U & 0xfffffffd) != 0)" (( "(") (binary_expression "(param_4 - 2U & 0xfffffffd) != 0" (parenthesized_expression "(param_4 - 2U & 0xfffffffd)" (( "(") (binary_expression "param_4 - 2U & 0xfffffffd" (binary_expression "param_4 - 2U" (identifier "param_4") (- "-") (number_literal "2U")) (& "&") (number_literal "0xfffffffd")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(DAT_0007763c + 0x14) & 1) != 0" (parenthesized_expression "(*(byte *)(DAT_0007763c + 0x14) & 1)" (( "(") (binary_expression "*(byte *)(DAT_0007763c + 0x14) & 1" (pointer_expression "*(byte *)(DAT_0007763c + 0x14)" (* "*") (cast_expression "(byte *)(DAT_0007763c + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007763c + 0x14)" (( "(") (binary_expression "DAT_0007763c + 0x14" (identifier "DAT_0007763c") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    FUN_00040dc0(param_1,param_2,param_3,param_4);\n    return;\n  }" ({ "{") (expression_statement "FUN_00040dc0(param_1,param_2,param_3,param_4);" (call_expression "FUN_00040dc0(param_1,param_2,param_3,param_4)" (identifier "FUN_00040dc0") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00040d50(param_1,param_2,param_3,param_4);" (call_expression "FUN_00040d50(param_1,param_2,param_3,param_4)" (identifier "FUN_00040d50") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *buf,type_1 val,int var_3)

{
  if ((var_1 == 0) &&
     (((var_2 == 0 || ((var_3 - 2U & 0xfffffffd) != 0)) ||
      ((now_seg->flags & 1) != 0)))) {
    var_4(buf,val,var_3);
    return;
  }
  var_5(buf,val,var_3);
  return;
}


(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: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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))) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (return_statement))))

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

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

{
  if ((DAT_0006e2c8 == 0) &&
     (((DAT_000774e0 == 0 || ((param_4 - 2U & 0xfffffffd) != 0)) ||
      ((*(byte *)(DAT_0007763c + 0x14) & 1) != 0)))) {
    FUN_00040dc0(param_1,param_2,param_3,param_4);
    return;
  }
  FUN_00040d50(param_1,param_2,param_3,param_4);
  return;
}

