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

void * sqlite3_value_blob(sqlite3_value *pVal)

{
  ushort uVar1;
  int iVar2;
  uchar *puVar3;
  
  uVar1 = pVal->flags;
  if ((uVar1 & 0x12) == 0) {
    puVar3 = sqlite3_value_text(pVal);
    return puVar3;
  }
  if ((uVar1 & 0x4000) == 0) {
    pVal->flags = uVar1 | 0x10;
    iVar2 = pVal->n;
  }
  else {
    iVar2 = sqlite3VdbeMemExpandBlob(pVal);
    if (iVar2 != 0) {
      return (void *)0x0;
    }
    pVal->flags = pVal->flags | 0x10;
    iVar2 = pVal->n;
  }
  if (iVar2 == 0) {
    return (void *)0x0;
  }
  return pVal->z;
}



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

undefined4 FUN_0004ceb0(int param_1)

{
  ushort uVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar1 = *(ushort *)(param_1 + 8);
  if ((uVar1 & 0x12) == 0) {
    uVar3 = FUN_0004ce60(param_1);
    return uVar3;
  }
  if ((uVar1 & 0x4000) == 0) {
    *(ushort *)(param_1 + 8) = uVar1 | 0x10;
    iVar2 = *(int *)(param_1 + 0xc);
  }
  else {
    iVar2 = FUN_000451e0(0x4ceb7);
    if (iVar2 != 0) {
      return 0;
    }
    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;
    iVar2 = *(int *)(param_1 + 0xc);
  }
  if (iVar2 == 0) {
    return 0;
  }
  return *(undefined4 *)(param_1 + 0x10);
}


PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0xfc01d
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
MOVZX EAX,word ptr [ESI + 0x8]
TEST AL,0x12
JZ 0x0004cf20
TEST AH,0x40
JNZ 0x0004cef0
OR EAX,0x10
MOV word ptr [ESI + 0x8],AX
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JNZ 0x0004cf0d
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
MOV EAX,ESI
CALL 0x000451e0
TEST EAX,EAX
JNZ 0x0004cedf
MOVZX EAX,word ptr [ESI + 0x8]
OR EAX,0x10
MOV word ptr [ESI + 0x8],AX
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x0004cedf
MOV EAX,dword ptr [ESI + 0x10]
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH ESI
CALL 0x0004ce60
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0004ceb0(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  if (iVar2 == 0) {\n    return 0;\n  }\n  return *(undefined4 *)(param_1 + 0x10);\n}\n\n" comment (function_definition "undefined4 FUN_0004ceb0(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  if (iVar2 == 0) {\n    return 0;\n  }\n  return *(undefined4 *)(param_1 + 0x10);\n}" type_identifier (function_declarator "FUN_0004ceb0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  if (iVar2 == 0) {\n    return 0;\n  }\n  return *(undefined4 *)(param_1 + 0x10);\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }" if (parenthesized_expression "((uVar1 & 0x12) == 0)" ( (binary_expression "(uVar1 & 0x12) == 0" (parenthesized_expression "(uVar1 & 0x12)" ( (binary_expression "uVar1 & 0x12" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }" { (expression_statement "uVar3 = FUN_0004ce60(param_1);" (assignment_expression "uVar3 = FUN_0004ce60(param_1)" identifier = (call_expression "FUN_0004ce60(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (if_statement "if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" if (parenthesized_expression "((uVar1 & 0x4000) == 0)" ( (binary_expression "(uVar1 & 0x4000) == 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "*(ushort *)(param_1 + 8) = uVar1 | 0x10;" (assignment_expression "*(ushort *)(param_1 + 8) = uVar1 | 0x10" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "uVar1 | 0x10" identifier | number_literal)) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" else (compound_statement "{\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "iVar2 = FUN_000451e0(0x4ceb7);" (assignment_expression "iVar2 = FUN_000451e0(0x4ceb7)" identifier = (call_expression "FUN_000451e0(0x4ceb7)" identifier (argument_list "(0x4ceb7)" ( number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;" (assignment_expression "*(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 8) | 0x10" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return *(undefined4 *)(param_1 + 0x10);" return (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid * sqlite3_value_blob(sqlite3_value *pVal)\n\n{\n  ushort uVar1;\n  int iVar2;\n  uchar *puVar3;\n  \n  uVar1 = pVal->flags;\n  if ((uVar1 & 0x12) == 0) {\n    puVar3 = sqlite3_value_text(pVal);\n    return puVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    pVal->flags = uVar1 | 0x10;\n    iVar2 = pVal->n;\n  }\n  else {\n    iVar2 = sqlite3VdbeMemExpandBlob(pVal);\n    if (iVar2 != 0) {\n      return (void *)0x0;\n    }\n    pVal->flags = pVal->flags | 0x10;\n    iVar2 = pVal->n;\n  }\n  if (iVar2 == 0) {\n    return (void *)0x0;\n  }\n  return pVal->z;\n}\n\n" comment comment (function_definition "void * sqlite3_value_blob(sqlite3_value *pVal)\n\n{\n  ushort uVar1;\n  int iVar2;\n  uchar *puVar3;\n  \n  uVar1 = pVal->flags;\n  if ((uVar1 & 0x12) == 0) {\n    puVar3 = sqlite3_value_text(pVal);\n    return puVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    pVal->flags = uVar1 | 0x10;\n    iVar2 = pVal->n;\n  }\n  else {\n    iVar2 = sqlite3VdbeMemExpandBlob(pVal);\n    if (iVar2 != 0) {\n      return (void *)0x0;\n    }\n    pVal->flags = pVal->flags | 0x10;\n    iVar2 = pVal->n;\n  }\n  if (iVar2 == 0) {\n    return (void *)0x0;\n  }\n  return pVal->z;\n}" primitive_type (pointer_declarator "* sqlite3_value_blob(sqlite3_value *pVal)" * (function_declarator "sqlite3_value_blob(sqlite3_value *pVal)" identifier (parameter_list "(sqlite3_value *pVal)" ( (parameter_declaration "sqlite3_value *pVal" type_identifier (pointer_declarator "*pVal" * identifier)) )))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  uchar *puVar3;\n  \n  uVar1 = pVal->flags;\n  if ((uVar1 & 0x12) == 0) {\n    puVar3 = sqlite3_value_text(pVal);\n    return puVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    pVal->flags = uVar1 | 0x10;\n    iVar2 = pVal->n;\n  }\n  else {\n    iVar2 = sqlite3VdbeMemExpandBlob(pVal);\n    if (iVar2 != 0) {\n      return (void *)0x0;\n    }\n    pVal->flags = pVal->flags | 0x10;\n    iVar2 = pVal->n;\n  }\n  if (iVar2 == 0) {\n    return (void *)0x0;\n  }\n  return pVal->z;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "uVar1 = pVal->flags;" (assignment_expression "uVar1 = pVal->flags" identifier = (field_expression "pVal->flags" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 & 0x12) == 0) {\n    puVar3 = sqlite3_value_text(pVal);\n    return puVar3;\n  }" if (parenthesized_expression "((uVar1 & 0x12) == 0)" ( (binary_expression "(uVar1 & 0x12) == 0" (parenthesized_expression "(uVar1 & 0x12)" ( (binary_expression "uVar1 & 0x12" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    puVar3 = sqlite3_value_text(pVal);\n    return puVar3;\n  }" { (expression_statement "puVar3 = sqlite3_value_text(pVal);" (assignment_expression "puVar3 = sqlite3_value_text(pVal)" identifier = (call_expression "sqlite3_value_text(pVal)" identifier (argument_list "(pVal)" ( identifier )))) ;) (return_statement "return puVar3;" return identifier ;) })) (if_statement "if ((uVar1 & 0x4000) == 0) {\n    pVal->flags = uVar1 | 0x10;\n    iVar2 = pVal->n;\n  }\n  else {\n    iVar2 = sqlite3VdbeMemExpandBlob(pVal);\n    if (iVar2 != 0) {\n      return (void *)0x0;\n    }\n    pVal->flags = pVal->flags | 0x10;\n    iVar2 = pVal->n;\n  }" if (parenthesized_expression "((uVar1 & 0x4000) == 0)" ( (binary_expression "(uVar1 & 0x4000) == 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    pVal->flags = uVar1 | 0x10;\n    iVar2 = pVal->n;\n  }" { (expression_statement "pVal->flags = uVar1 | 0x10;" (assignment_expression "pVal->flags = uVar1 | 0x10" (field_expression "pVal->flags" identifier -> field_identifier) = (binary_expression "uVar1 | 0x10" identifier | number_literal)) ;) (expression_statement "iVar2 = pVal->n;" (assignment_expression "iVar2 = pVal->n" identifier = (field_expression "pVal->n" identifier -> field_identifier)) ;) }) (else_clause "else {\n    iVar2 = sqlite3VdbeMemExpandBlob(pVal);\n    if (iVar2 != 0) {\n      return (void *)0x0;\n    }\n    pVal->flags = pVal->flags | 0x10;\n    iVar2 = pVal->n;\n  }" else (compound_statement "{\n    iVar2 = sqlite3VdbeMemExpandBlob(pVal);\n    if (iVar2 != 0) {\n      return (void *)0x0;\n    }\n    pVal->flags = pVal->flags | 0x10;\n    iVar2 = pVal->n;\n  }" { (expression_statement "iVar2 = sqlite3VdbeMemExpandBlob(pVal);" (assignment_expression "iVar2 = sqlite3VdbeMemExpandBlob(pVal)" identifier = (call_expression "sqlite3VdbeMemExpandBlob(pVal)" identifier (argument_list "(pVal)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      return (void *)0x0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return (void *)0x0;\n    }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pVal->flags = pVal->flags | 0x10;" (assignment_expression "pVal->flags = pVal->flags | 0x10" (field_expression "pVal->flags" identifier -> field_identifier) = (binary_expression "pVal->flags | 0x10" (field_expression "pVal->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "iVar2 = pVal->n;" (assignment_expression "iVar2 = pVal->n" identifier = (field_expression "pVal->n" identifier -> field_identifier)) ;) }))) (if_statement "if (iVar2 == 0) {\n    return (void *)0x0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return (void *)0x0;\n  }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return pVal->z;" return (field_expression "pVal->z" identifier -> field_identifier) ;) })))
(translation_unit "undefined4 FUN_0004ceb0(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  if (iVar2 == 0) {\n    return 0;\n  }\n  return *(undefined4 *)(param_1 + 0x10);\n}\n\n" (function_definition "undefined4 FUN_0004ceb0(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  if (iVar2 == 0) {\n    return 0;\n  }\n  return *(undefined4 *)(param_1 + 0x10);\n}" type_identifier (function_declarator "FUN_0004ceb0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  if (iVar2 == 0) {\n    return 0;\n  }\n  return *(undefined4 *)(param_1 + 0x10);\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" identifier = (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }" if (parenthesized_expression "((uVar1 & 0x12) == 0)" ( (binary_expression "(uVar1 & 0x12) == 0" (parenthesized_expression "(uVar1 & 0x12)" ( (binary_expression "uVar1 & 0x12" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }" { (expression_statement "uVar3 = FUN_0004ce60(param_1);" (assignment_expression "uVar3 = FUN_0004ce60(param_1)" identifier = (call_expression "FUN_0004ce60(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (if_statement "if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" if (parenthesized_expression "((uVar1 & 0x4000) == 0)" ( (binary_expression "(uVar1 & 0x4000) == 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "*(ushort *)(param_1 + 8) = uVar1 | 0x10;" (assignment_expression "*(ushort *)(param_1 + 8) = uVar1 | 0x10" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "uVar1 | 0x10" identifier | number_literal)) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" else (compound_statement "{\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "iVar2 = FUN_000451e0(0x4ceb7);" (assignment_expression "iVar2 = FUN_000451e0(0x4ceb7)" identifier = (call_expression "FUN_000451e0(0x4ceb7)" identifier (argument_list "(0x4ceb7)" ( number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;" (assignment_expression "*(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 8) | 0x10" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return *(undefined4 *)(param_1 + 0x10);" return (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (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) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })))
(function_definition "undefined4 FUN_0004ceb0(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  if (iVar2 == 0) {\n    return 0;\n  }\n  return *(undefined4 *)(param_1 + 0x10);\n}" (type_identifier "undefined4") (function_declarator "FUN_0004ceb0(int param_1)" (identifier "FUN_0004ceb0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(ushort *)(param_1 + 8);\n  if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }\n  if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  if (iVar2 == 0) {\n    return 0;\n  }\n  return *(undefined4 *)(param_1 + 0x10);\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar1 = *(ushort *)(param_1 + 8);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 8)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 0x12) == 0) {\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x12) == 0)" (( "(") (binary_expression "(uVar1 & 0x12) == 0" (parenthesized_expression "(uVar1 & 0x12)" (( "(") (binary_expression "uVar1 & 0x12" (identifier "uVar1") (& "&") (number_literal "0x12")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = FUN_0004ce60(param_1);\n    return uVar3;\n  }" ({ "{") (expression_statement "uVar3 = FUN_0004ce60(param_1);" (assignment_expression "uVar3 = FUN_0004ce60(param_1)" (identifier "uVar3") (= "=") (call_expression "FUN_0004ce60(param_1)" (identifier "FUN_0004ce60") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (if_statement "if ((uVar1 & 0x4000) == 0) {\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }\n  else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x4000) == 0)" (( "(") (binary_expression "(uVar1 & 0x4000) == 0" (parenthesized_expression "(uVar1 & 0x4000)" (( "(") (binary_expression "uVar1 & 0x4000" (identifier "uVar1") (& "&") (number_literal "0x4000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(ushort *)(param_1 + 8) = uVar1 | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" ({ "{") (expression_statement "*(ushort *)(param_1 + 8) = uVar1 | 0x10;" (assignment_expression "*(ushort *)(param_1 + 8) = uVar1 | 0x10" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "uVar1 | 0x10" (identifier "uVar1") (| "|") (number_literal "0x10"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" (else "else") (compound_statement "{\n    iVar2 = FUN_000451e0(0x4ceb7);\n    if (iVar2 != 0) {\n      return 0;\n    }\n    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;\n    iVar2 = *(int *)(param_1 + 0xc);\n  }" ({ "{") (expression_statement "iVar2 = FUN_000451e0(0x4ceb7);" (assignment_expression "iVar2 = FUN_000451e0(0x4ceb7)" (identifier "iVar2") (= "=") (call_expression "FUN_000451e0(0x4ceb7)" (identifier "FUN_000451e0") (argument_list "(0x4ceb7)" (( "(") (number_literal "0x4ceb7") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;" (assignment_expression "*(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(ushort *)(param_1 + 8) | 0x10" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (| "|") (number_literal "0x10"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xc)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return *(undefined4 *)(param_1 + 0x10);" (return "return") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (} "}")))

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

void * function_1(type_1 *pVal)

{
  type_2 var_1;
  int var_4;
  type_3 *puVar3;
  
  var_1 = pVal->flags;
  if ((var_1 & 0x12) == 0) {
    puVar3 = var_2(pVal);
    return puVar3;
  }
  if ((var_1 & 0x4000) == 0) {
    pVal->flags = var_1 | 0x10;
    var_4 = pVal->n;
  }
  else {
    var_4 = var_3(pVal);
    if (var_4 != 0) {
      return (void *)0x0;
    }
    pVal->flags = pVal->flags | 0x10;
    var_4 = pVal->n;
  }
  if (var_4 == 0) {
    return (void *)0x0;
  }
  return pVal->z;
}


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

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

undefined4 MASKED(int param_1)

{
  ushort uVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar1 = *(ushort *)(param_1 + 8);
  if ((uVar1 & 0x12) == 0) {
    uVar3 = FUN_0004ce60(param_1);
    return uVar3;
  }
  if ((uVar1 & 0x4000) == 0) {
    *(ushort *)(param_1 + 8) = uVar1 | 0x10;
    iVar2 = *(int *)(param_1 + 0xc);
  }
  else {
    iVar2 = FUN_000451e0(0x4ceb7);
    if (iVar2 != 0) {
      return 0;
    }
    *(ushort *)(param_1 + 8) = *(ushort *)(param_1 + 8) | 0x10;
    iVar2 = *(int *)(param_1 + 0xc);
  }
  if (iVar2 == 0) {
    return 0;
  }
  return *(undefined4 *)(param_1 + 0x10);
}

