
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

fragS * symbol_get_frag(symbolS *s)

{
  fragS *pfVar1;
  
  pfVar1 = (fragS *)s;
  if (((uint)s->sy_flags & 1) != 0) {
    pfVar1 = (fragS *)(s->sy_value).X_op_symbol;
    if ((segT)s->bsym != reg_section) {
      return pfVar1;
    }
  }
  return (fragS *)pfVar1->fr_file;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

byte * FUN_00039230(byte *param_1)

{
  byte *pbVar1;
  
  pbVar1 = param_1;
  if ((*param_1 & 1) != 0) {
    pbVar1 = *(byte **)(param_1 + 0xc);
    if (*(int *)(param_1 + 4) != DAT_00072d5c) {
      return pbVar1;
    }
  }
  return *(byte **)(pbVar1 + 0x20);
}


CALL 0x00019a95
ADD ECX,0x30dcb
MOV EDX,dword ptr [ESP + 0x4]
TEST byte ptr [EDX],0x1
JZ 0x0003925a
LEA ECX,[ECX + 0x8d5c]
MOV EAX,dword ptr [EDX + 0xc]
MOV ECX,dword ptr [ECX]
CMP dword ptr [EDX + 0x4],ECX
JZ 0x00039258
RET
MOV EDX,EAX
MOV EAX,dword ptr [EDX + 0x20]
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nbyte * FUN_00039230(byte *param_1)\n\n{\n  byte *pbVar1;\n  \n  pbVar1 = param_1;\n  if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }\n  return *(byte **)(pbVar1 + 0x20);\n}\n\n" comment (function_definition "byte * FUN_00039230(byte *param_1)\n\n{\n  byte *pbVar1;\n  \n  pbVar1 = param_1;\n  if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }\n  return *(byte **)(pbVar1 + 0x20);\n}" type_identifier (pointer_declarator "* FUN_00039230(byte *param_1)" * (function_declarator "FUN_00039230(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  \n  pbVar1 = param_1;\n  if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }\n  return *(byte **)(pbVar1 + 0x20);\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (expression_statement "pbVar1 = param_1;" (assignment_expression "pbVar1 = param_1" identifier = identifier) ;) (if_statement "if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }" { (expression_statement "pbVar1 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar1 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00072d5c)" ( (binary_expression "*(int *)(param_1 + 4) != DAT_00072d5c" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n      return pbVar1;\n    }" { (return_statement "return pbVar1;" return identifier ;) })) })) (return_statement "return *(byte **)(pbVar1 + 0x20);" return (pointer_expression "*(byte **)(pbVar1 + 0x20)" * (cast_expression "(byte **)(pbVar1 + 0x20)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pbVar1 + 0x20)" ( (binary_expression "pbVar1 + 0x20" identifier + number_literal) )))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* WARNING: Unknown calling convention */\n\nfragS * symbol_get_frag(symbolS *s)\n\n{\n  fragS *pfVar1;\n  \n  pfVar1 = (fragS *)s;\n  if (((uint)s->sy_flags & 1) != 0) {\n    pfVar1 = (fragS *)(s->sy_value).X_op_symbol;\n    if ((segT)s->bsym != reg_section) {\n      return pfVar1;\n    }\n  }\n  return (fragS *)pfVar1->fr_file;\n}\n\n" comment comment (function_definition "fragS * symbol_get_frag(symbolS *s)\n\n{\n  fragS *pfVar1;\n  \n  pfVar1 = (fragS *)s;\n  if (((uint)s->sy_flags & 1) != 0) {\n    pfVar1 = (fragS *)(s->sy_value).X_op_symbol;\n    if ((segT)s->bsym != reg_section) {\n      return pfVar1;\n    }\n  }\n  return (fragS *)pfVar1->fr_file;\n}" type_identifier (pointer_declarator "* symbol_get_frag(symbolS *s)" * (function_declarator "symbol_get_frag(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) )))) (compound_statement "{\n  fragS *pfVar1;\n  \n  pfVar1 = (fragS *)s;\n  if (((uint)s->sy_flags & 1) != 0) {\n    pfVar1 = (fragS *)(s->sy_value).X_op_symbol;\n    if ((segT)s->bsym != reg_section) {\n      return pfVar1;\n    }\n  }\n  return (fragS *)pfVar1->fr_file;\n}" { (declaration "fragS *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (expression_statement "pfVar1 = (fragS *)s;" (assignment_expression "pfVar1 = (fragS *)s" identifier = (cast_expression "(fragS *)s" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n    pfVar1 = (fragS *)(s->sy_value).X_op_symbol;\n    if ((segT)s->bsym != reg_section) {\n      return pfVar1;\n    }\n  }" if (parenthesized_expression "(((uint)s->sy_flags & 1) != 0)" ( (binary_expression "((uint)s->sy_flags & 1) != 0" (parenthesized_expression "((uint)s->sy_flags & 1)" ( (binary_expression "(uint)s->sy_flags & 1" (cast_expression "(uint)s->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "s->sy_flags" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n    pfVar1 = (fragS *)(s->sy_value).X_op_symbol;\n    if ((segT)s->bsym != reg_section) {\n      return pfVar1;\n    }\n  }" { (expression_statement "pfVar1 = (fragS *)(s->sy_value).X_op_symbol;" (assignment_expression "pfVar1 = (fragS *)(s->sy_value).X_op_symbol" identifier = (cast_expression "(fragS *)(s->sy_value).X_op_symbol" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier))) ;) (if_statement "if ((segT)s->bsym != reg_section) {\n      return pfVar1;\n    }" if (parenthesized_expression "((segT)s->bsym != reg_section)" ( (binary_expression "(segT)s->bsym != reg_section" (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier)) != identifier) )) (compound_statement "{\n      return pfVar1;\n    }" { (return_statement "return pfVar1;" return identifier ;) })) })) (return_statement "return (fragS *)pfVar1->fr_file;" return (cast_expression "(fragS *)pfVar1->fr_file" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pfVar1->fr_file" identifier -> field_identifier)) ;) })))
(translation_unit "byte * FUN_00039230(byte *param_1)\n\n{\n  byte *pbVar1;\n  \n  pbVar1 = param_1;\n  if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }\n  return *(byte **)(pbVar1 + 0x20);\n}\n\n" (function_definition "byte * FUN_00039230(byte *param_1)\n\n{\n  byte *pbVar1;\n  \n  pbVar1 = param_1;\n  if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }\n  return *(byte **)(pbVar1 + 0x20);\n}" type_identifier (pointer_declarator "* FUN_00039230(byte *param_1)" * (function_declarator "FUN_00039230(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  byte *pbVar1;\n  \n  pbVar1 = param_1;\n  if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }\n  return *(byte **)(pbVar1 + 0x20);\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (expression_statement "pbVar1 = param_1;" (assignment_expression "pbVar1 = param_1" identifier = identifier) ;) (if_statement "if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }" { (expression_statement "pbVar1 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar1 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00072d5c)" ( (binary_expression "*(int *)(param_1 + 4) != DAT_00072d5c" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n      return pbVar1;\n    }" { (return_statement "return pbVar1;" return identifier ;) })) })) (return_statement "return *(byte **)(pbVar1 + 0x20);" return (pointer_expression "*(byte **)(pbVar1 + 0x20)" * (cast_expression "(byte **)(pbVar1 + 0x20)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pbVar1 + 0x20)" ( (binary_expression "pbVar1 + 0x20" identifier + number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })))
(function_definition "byte * FUN_00039230(byte *param_1)\n\n{\n  byte *pbVar1;\n  \n  pbVar1 = param_1;\n  if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }\n  return *(byte **)(pbVar1 + 0x20);\n}" (type_identifier "byte") (pointer_declarator "* FUN_00039230(byte *param_1)" (* "*") (function_declarator "FUN_00039230(byte *param_1)" (identifier "FUN_00039230") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  byte *pbVar1;\n  \n  pbVar1 = param_1;\n  if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }\n  return *(byte **)(pbVar1 + 0x20);\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (expression_statement "pbVar1 = param_1;" (assignment_expression "pbVar1 = param_1" (identifier "pbVar1") (= "=") (identifier "param_1")) (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }" (if "if") (parenthesized_expression "((*param_1 & 1) != 0)" (( "(") (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" (( "(") (binary_expression "*param_1 & 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pbVar1 = *(byte **)(param_1 + 0xc);\n    if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }\n  }" ({ "{") (expression_statement "pbVar1 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar1 = *(byte **)(param_1 + 0xc)" (identifier "pbVar1") (= "=") (pointer_expression "*(byte **)(param_1 + 0xc)" (* "*") (cast_expression "(byte **)(param_1 + 0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 4) != DAT_00072d5c) {\n      return pbVar1;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00072d5c)" (( "(") (binary_expression "*(int *)(param_1 + 4) != DAT_00072d5c" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (identifier "DAT_00072d5c")) () ")")) (compound_statement "{\n      return pbVar1;\n    }" ({ "{") (return_statement "return pbVar1;" (return "return") (identifier "pbVar1") (; ";")) (} "}"))) (} "}"))) (return_statement "return *(byte **)(pbVar1 + 0x20);" (return "return") (pointer_expression "*(byte **)(pbVar1 + 0x20)" (* "*") (cast_expression "(byte **)(pbVar1 + 0x20)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pbVar1 + 0x20)" (( "(") (binary_expression "pbVar1 + 0x20" (identifier "pbVar1") (+ "+") (number_literal "0x20")) () ")")))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

type_1 * function_1(type_2 *s)

{
  type_1 *pfVar1;
  
  pfVar1 = (type_1 *)s;
  if (((type_3)s->sy_flags & 1) != 0) {
    pfVar1 = (type_1 *)(s->sy_value).X_op_symbol;
    if ((type_4)s->bsym != var_1) {
      return pfVar1;
    }
  }
  return (type_1 *)pfVar1->fr_file;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))))) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

byte * MASKED(byte *param_1)

{
  byte *pbVar1;
  
  pbVar1 = param_1;
  if ((*param_1 & 1) != 0) {
    pbVar1 = *(byte **)(param_1 + 0xc);
    if (*(int *)(param_1 + 4) != DAT_00072d5c) {
      return pbVar1;
    }
  }
  return *(byte **)(pbVar1 + 0x20);
}

