
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void push_exported_var(void *data)

{
  int iVar1;
  VAR_CONTEXT *pVVar2;
  SHELL_VAR *pSVar3;
  
                    /* WARNING: Load size is inaccurate */
  if ((*(uint *)((int)data + 0x14) & 0x300001) == 0x300001) {
    *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffefffff;
    pSVar3 = bind_variable_internal(*data,*(char **)((int)data + 4),shell_variables->table,0,0);
    pVVar2 = shell_variables;
    if (shell_variables == global_variables) {
      *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff;
    }
    if (pSVar3 != (SHELL_VAR *)0x0) {
      iVar1 = pVVar2->scope;
      pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14);
      pSVar3->context = iVar1;
      dispose_variable((SHELL_VAR *)data);
      return;
    }
  }
  else {
    stupidly_hack_special_variables(*data);
  }
  dispose_variable((SHELL_VAR *)data);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void FUN_000586d0(undefined4 *param_1)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  
  if ((param_1[5] & 0x300001) == 0x300001) {
    param_1[5] = param_1[5] & 0xffefffff;
    iVar3 = FUN_00054490(0,0);
    iVar2 = shell_variables;
    if (shell_variables == global_variables) {
      param_1[5] = param_1[5] & 0xffdfffff;
    }
    if (iVar3 != 0) {
      uVar1 = *(undefined4 *)(iVar2 + 4);
      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];
      *(undefined4 *)(iVar3 + 0x18) = uVar1;
      dispose_variable();
      return;
    }
  }
  else {
    stupidly_hack_special_variables(*param_1);
  }
  dispose_variable();
  return;
}


PUSH ESI
CALL 0x0003363d
ADD ESI,0xf192a
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EBX + 0x14]
MOV EAX,dword ptr [EBX]
MOV ECX,EDX
AND ECX,0x300001
CMP ECX,0x300001
JZ 0x00058718
SUB ESP,0xc
PUSH EAX
CALL 0x00056a70
ADD ESP,0x10
MOV dword ptr [ESP + 0x10],EBX
ADD ESP,0x4
POP EBX
POP ESI
JMP 0x000537c0
AND EDX,0xffefffff
SUB ESP,0x8
MOV dword ptr [EBX + 0x14],EDX
MOV EDX,dword ptr [ESI + 0x5d10]
MOV ECX,dword ptr [EDX + 0x14]
MOV EDX,dword ptr [EBX + 0x4]
PUSH 0x0
PUSH 0x0
CALL 0x00054490
MOV EDX,dword ptr [ESI + 0x5d10]
ADD ESP,0x10
CMP EDX,dword ptr [ESI + 0x5d14]
JZ 0x00058770
TEST EAX,EAX
JZ 0x00058705
MOV EDX,dword ptr [EDX + 0x4]
MOV ECX,dword ptr [EBX + 0x14]
OR dword ptr [EAX + 0x14],ECX
MOV dword ptr [EAX + 0x18],EDX
MOV dword ptr [ESP + 0x10],EBX
ADD ESP,0x4
POP EBX
POP ESI
JMP 0x000537c0
AND dword ptr [EBX + 0x14],0xffdfffff
JMP 0x0005874a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_000586d0(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }\n  dispose_variable();\n  return;\n}\n\n" comment (function_definition "void FUN_000586d0(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }\n  dispose_variable();\n  return;\n}" primitive_type (function_declarator "FUN_000586d0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }\n  dispose_variable();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }" if (parenthesized_expression "((param_1[5] & 0x300001) == 0x300001)" ( (binary_expression "(param_1[5] & 0x300001) == 0x300001" (parenthesized_expression "(param_1[5] & 0x300001)" ( (binary_expression "param_1[5] & 0x300001" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }" { (expression_statement "param_1[5] = param_1[5] & 0xffefffff;" (assignment_expression "param_1[5] = param_1[5] & 0xffefffff" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1[5] & 0xffefffff" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "iVar3 = FUN_00054490(0,0);" (assignment_expression "iVar3 = FUN_00054490(0,0)" identifier = (call_expression "FUN_00054490(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal )))) ;) (expression_statement "iVar2 = shell_variables;" (assignment_expression "iVar2 = shell_variables" identifier = identifier) ;) (if_statement "if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }" if (parenthesized_expression "(shell_variables == global_variables)" ( (binary_expression "shell_variables == global_variables" identifier == identifier) )) (compound_statement "{\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }" { (expression_statement "param_1[5] = param_1[5] & 0xffdfffff;" (assignment_expression "param_1[5] = param_1[5] & 0xffdfffff" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1[5] & 0xffdfffff" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal)) ;) })) (if_statement "if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }" { (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];" (assignment_expression "*(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5]" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar3 + 0x14) | param_1[5]" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(iVar3 + 0x18)" * (cast_expression "(undefined4 *)(iVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "dispose_variable();" (call_expression "dispose_variable()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    stupidly_hack_special_variables(*param_1);\n  }" else (compound_statement "{\n    stupidly_hack_special_variables(*param_1);\n  }" { (expression_statement "stupidly_hack_special_variables(*param_1);" (call_expression "stupidly_hack_special_variables(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) }))) (expression_statement "dispose_variable();" (call_expression "dispose_variable()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid push_exported_var(void *data)\n\n{\n  int iVar1;\n  VAR_CONTEXT *pVVar2;\n  SHELL_VAR *pSVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  if ((*(uint *)((int)data + 0x14) & 0x300001) == 0x300001) {\n    *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffefffff;\n    pSVar3 = bind_variable_internal(*data,*(char **)((int)data + 4),shell_variables->table,0,0);\n    pVVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff;\n    }\n    if (pSVar3 != (SHELL_VAR *)0x0) {\n      iVar1 = pVVar2->scope;\n      pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14);\n      pSVar3->context = iVar1;\n      dispose_variable((SHELL_VAR *)data);\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*data);\n  }\n  dispose_variable((SHELL_VAR *)data);\n  return;\n}\n\n" comment (function_definition "void push_exported_var(void *data)\n\n{\n  int iVar1;\n  VAR_CONTEXT *pVVar2;\n  SHELL_VAR *pSVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  if ((*(uint *)((int)data + 0x14) & 0x300001) == 0x300001) {\n    *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffefffff;\n    pSVar3 = bind_variable_internal(*data,*(char **)((int)data + 4),shell_variables->table,0,0);\n    pVVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff;\n    }\n    if (pSVar3 != (SHELL_VAR *)0x0) {\n      iVar1 = pVVar2->scope;\n      pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14);\n      pSVar3->context = iVar1;\n      dispose_variable((SHELL_VAR *)data);\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*data);\n  }\n  dispose_variable((SHELL_VAR *)data);\n  return;\n}" primitive_type (function_declarator "push_exported_var(void *data)" identifier (parameter_list "(void *data)" ( (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  VAR_CONTEXT *pVVar2;\n  SHELL_VAR *pSVar3;\n  \n                    /* WARNING: Load size is inaccurate */\n  if ((*(uint *)((int)data + 0x14) & 0x300001) == 0x300001) {\n    *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffefffff;\n    pSVar3 = bind_variable_internal(*data,*(char **)((int)data + 4),shell_variables->table,0,0);\n    pVVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff;\n    }\n    if (pSVar3 != (SHELL_VAR *)0x0) {\n      iVar1 = pVVar2->scope;\n      pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14);\n      pSVar3->context = iVar1;\n      dispose_variable((SHELL_VAR *)data);\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*data);\n  }\n  dispose_variable((SHELL_VAR *)data);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "VAR_CONTEXT *pVVar2;" type_identifier (pointer_declarator "*pVVar2" * identifier) ;) (declaration "SHELL_VAR *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) comment (if_statement "if ((*(uint *)((int)data + 0x14) & 0x300001) == 0x300001) {\n    *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffefffff;\n    pSVar3 = bind_variable_internal(*data,*(char **)((int)data + 4),shell_variables->table,0,0);\n    pVVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff;\n    }\n    if (pSVar3 != (SHELL_VAR *)0x0) {\n      iVar1 = pVVar2->scope;\n      pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14);\n      pSVar3->context = iVar1;\n      dispose_variable((SHELL_VAR *)data);\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*data);\n  }" if (parenthesized_expression "((*(uint *)((int)data + 0x14) & 0x300001) == 0x300001)" ( (binary_expression "(*(uint *)((int)data + 0x14) & 0x300001) == 0x300001" (parenthesized_expression "(*(uint *)((int)data + 0x14) & 0x300001)" ( (binary_expression "*(uint *)((int)data + 0x14) & 0x300001" (pointer_expression "*(uint *)((int)data + 0x14)" * (cast_expression "(uint *)((int)data + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x14)" ( (binary_expression "(int)data + 0x14" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffefffff;\n    pSVar3 = bind_variable_internal(*data,*(char **)((int)data + 4),shell_variables->table,0,0);\n    pVVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff;\n    }\n    if (pSVar3 != (SHELL_VAR *)0x0) {\n      iVar1 = pVVar2->scope;\n      pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14);\n      pSVar3->context = iVar1;\n      dispose_variable((SHELL_VAR *)data);\n      return;\n    }\n  }" { (expression_statement "*(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffefffff;" (assignment_expression "*(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffefffff" (pointer_expression "*(uint *)((int)data + 0x14)" * (cast_expression "(uint *)((int)data + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x14)" ( (binary_expression "(int)data + 0x14" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((int)data + 0x14) & 0xffefffff" (pointer_expression "*(uint *)((int)data + 0x14)" * (cast_expression "(uint *)((int)data + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x14)" ( (binary_expression "(int)data + 0x14" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) (expression_statement "pSVar3 = bind_variable_internal(*data,*(char **)((int)data + 4),shell_variables->table,0,0);" (assignment_expression "pSVar3 = bind_variable_internal(*data,*(char **)((int)data + 4),shell_variables->table,0,0)" identifier = (call_expression "bind_variable_internal(*data,*(char **)((int)data + 4),shell_variables->table,0,0)" identifier (argument_list "(*data,*(char **)((int)data + 4),shell_variables->table,0,0)" ( (pointer_expression "*data" * identifier) , (pointer_expression "*(char **)((int)data + 4)" * (cast_expression "(char **)((int)data + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (field_expression "shell_variables->table" identifier -> field_identifier) , number_literal , number_literal )))) ;) (expression_statement "pVVar2 = shell_variables;" (assignment_expression "pVVar2 = shell_variables" identifier = identifier) ;) (if_statement "if (shell_variables == global_variables) {\n      *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff;\n    }" if (parenthesized_expression "(shell_variables == global_variables)" ( (binary_expression "shell_variables == global_variables" identifier == identifier) )) (compound_statement "{\n      *(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff;\n    }" { (expression_statement "*(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff;" (assignment_expression "*(uint *)((int)data + 0x14) = *(uint *)((int)data + 0x14) & 0xffdfffff" (pointer_expression "*(uint *)((int)data + 0x14)" * (cast_expression "(uint *)((int)data + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x14)" ( (binary_expression "(int)data + 0x14" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(uint *)((int)data + 0x14) & 0xffdfffff" (pointer_expression "*(uint *)((int)data + 0x14)" * (cast_expression "(uint *)((int)data + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x14)" ( (binary_expression "(int)data + 0x14" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal)) ;) })) (if_statement "if (pSVar3 != (SHELL_VAR *)0x0) {\n      iVar1 = pVVar2->scope;\n      pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14);\n      pSVar3->context = iVar1;\n      dispose_variable((SHELL_VAR *)data);\n      return;\n    }" if (parenthesized_expression "(pSVar3 != (SHELL_VAR *)0x0)" ( (binary_expression "pSVar3 != (SHELL_VAR *)0x0" identifier != (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = pVVar2->scope;\n      pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14);\n      pSVar3->context = iVar1;\n      dispose_variable((SHELL_VAR *)data);\n      return;\n    }" { (expression_statement "iVar1 = pVVar2->scope;" (assignment_expression "iVar1 = pVVar2->scope" identifier = (field_expression "pVVar2->scope" identifier -> field_identifier)) ;) (expression_statement "pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14);" (assignment_expression "pSVar3->attributes = pSVar3->attributes | *(uint *)((int)data + 0x14)" (field_expression "pSVar3->attributes" identifier -> field_identifier) = (binary_expression "pSVar3->attributes | *(uint *)((int)data + 0x14)" (field_expression "pSVar3->attributes" identifier -> field_identifier) | (pointer_expression "*(uint *)((int)data + 0x14)" * (cast_expression "(uint *)((int)data + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x14)" ( (binary_expression "(int)data + 0x14" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (expression_statement "pSVar3->context = iVar1;" (assignment_expression "pSVar3->context = iVar1" (field_expression "pSVar3->context" identifier -> field_identifier) = identifier) ;) (expression_statement "dispose_variable((SHELL_VAR *)data);" (call_expression "dispose_variable((SHELL_VAR *)data)" identifier (argument_list "((SHELL_VAR *)data)" ( (cast_expression "(SHELL_VAR *)data" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    stupidly_hack_special_variables(*data);\n  }" else (compound_statement "{\n    stupidly_hack_special_variables(*data);\n  }" { (expression_statement "stupidly_hack_special_variables(*data);" (call_expression "stupidly_hack_special_variables(*data)" identifier (argument_list "(*data)" ( (pointer_expression "*data" * identifier) ))) ;) }))) (expression_statement "dispose_variable((SHELL_VAR *)data);" (call_expression "dispose_variable((SHELL_VAR *)data)" identifier (argument_list "((SHELL_VAR *)data)" ( (cast_expression "(SHELL_VAR *)data" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000586d0(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }\n  dispose_variable();\n  return;\n}\n\n" (function_definition "void FUN_000586d0(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }\n  dispose_variable();\n  return;\n}" primitive_type (function_declarator "FUN_000586d0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }\n  dispose_variable();\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }" if (parenthesized_expression "((param_1[5] & 0x300001) == 0x300001)" ( (binary_expression "(param_1[5] & 0x300001) == 0x300001" (parenthesized_expression "(param_1[5] & 0x300001)" ( (binary_expression "param_1[5] & 0x300001" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }" { (expression_statement "param_1[5] = param_1[5] & 0xffefffff;" (assignment_expression "param_1[5] = param_1[5] & 0xffefffff" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1[5] & 0xffefffff" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "iVar3 = FUN_00054490(0,0);" (assignment_expression "iVar3 = FUN_00054490(0,0)" identifier = (call_expression "FUN_00054490(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal )))) ;) (expression_statement "iVar2 = shell_variables;" (assignment_expression "iVar2 = shell_variables" identifier = identifier) ;) (if_statement "if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }" if (parenthesized_expression "(shell_variables == global_variables)" ( (binary_expression "shell_variables == global_variables" identifier == identifier) )) (compound_statement "{\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }" { (expression_statement "param_1[5] = param_1[5] & 0xffdfffff;" (assignment_expression "param_1[5] = param_1[5] & 0xffdfffff" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (binary_expression "param_1[5] & 0xffdfffff" (subscript_expression "param_1[5]" identifier [ number_literal ]) & number_literal)) ;) })) (if_statement "if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }" { (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];" (assignment_expression "*(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5]" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar3 + 0x14) | param_1[5]" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(iVar3 + 0x18)" * (cast_expression "(undefined4 *)(iVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x18)" ( (binary_expression "iVar3 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "dispose_variable();" (call_expression "dispose_variable()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    stupidly_hack_special_variables(*param_1);\n  }" else (compound_statement "{\n    stupidly_hack_special_variables(*param_1);\n  }" { (expression_statement "stupidly_hack_special_variables(*param_1);" (call_expression "stupidly_hack_special_variables(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) }))) (expression_statement "dispose_variable();" (call_expression "dispose_variable()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000586d0(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }\n  dispose_variable();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000586d0(undefined4 *param_1)" (identifier "FUN_000586d0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }\n  dispose_variable();\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if ((param_1[5] & 0x300001) == 0x300001) {\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }\n  else {\n    stupidly_hack_special_variables(*param_1);\n  }" (if "if") (parenthesized_expression "((param_1[5] & 0x300001) == 0x300001)" (( "(") (binary_expression "(param_1[5] & 0x300001) == 0x300001" (parenthesized_expression "(param_1[5] & 0x300001)" (( "(") (binary_expression "param_1[5] & 0x300001" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (& "&") (number_literal "0x300001")) () ")")) (== "==") (number_literal "0x300001")) () ")")) (compound_statement "{\n    param_1[5] = param_1[5] & 0xffefffff;\n    iVar3 = FUN_00054490(0,0);\n    iVar2 = shell_variables;\n    if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }\n    if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }\n  }" ({ "{") (expression_statement "param_1[5] = param_1[5] & 0xffefffff;" (assignment_expression "param_1[5] = param_1[5] & 0xffefffff" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "param_1[5] & 0xffefffff" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (& "&") (number_literal "0xffefffff"))) (; ";")) (expression_statement "iVar3 = FUN_00054490(0,0);" (assignment_expression "iVar3 = FUN_00054490(0,0)" (identifier "iVar3") (= "=") (call_expression "FUN_00054490(0,0)" (identifier "FUN_00054490") (argument_list "(0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar2 = shell_variables;" (assignment_expression "iVar2 = shell_variables" (identifier "iVar2") (= "=") (identifier "shell_variables")) (; ";")) (if_statement "if (shell_variables == global_variables) {\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }" (if "if") (parenthesized_expression "(shell_variables == global_variables)" (( "(") (binary_expression "shell_variables == global_variables" (identifier "shell_variables") (== "==") (identifier "global_variables")) () ")")) (compound_statement "{\n      param_1[5] = param_1[5] & 0xffdfffff;\n    }" ({ "{") (expression_statement "param_1[5] = param_1[5] & 0xffdfffff;" (assignment_expression "param_1[5] = param_1[5] & 0xffdfffff" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "param_1[5] & 0xffdfffff" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (& "&") (number_literal "0xffdfffff"))) (; ";")) (} "}"))) (if_statement "if (iVar3 != 0) {\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = *(undefined4 *)(iVar2 + 4);\n      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];\n      *(undefined4 *)(iVar3 + 0x18) = uVar1;\n      dispose_variable();\n      return;\n    }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];" (assignment_expression "*(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5]" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(uint *)(iVar3 + 0x14) | param_1[5]" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x18) = uVar1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x18) = uVar1" (pointer_expression "*(undefined4 *)(iVar3 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x18)" (( "(") (binary_expression "iVar3 + 0x18" (identifier "iVar3") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "dispose_variable();" (call_expression "dispose_variable()" (identifier "dispose_variable") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    stupidly_hack_special_variables(*param_1);\n  }" (else "else") (compound_statement "{\n    stupidly_hack_special_variables(*param_1);\n  }" ({ "{") (expression_statement "stupidly_hack_special_variables(*param_1);" (call_expression "stupidly_hack_special_variables(*param_1)" (identifier "stupidly_hack_special_variables") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}")))) (expression_statement "dispose_variable();" (call_expression "dispose_variable()" (identifier "dispose_variable") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void function_1(void *data)

{
  int iVar1;
  type_1 *pVVar2;
  type_2 *var_4;
  
                    /* WARNING: Load size is inaccurate */
  if ((*(type_3 *)((int)data + 0x14) & 0x300001) == 0x300001) {
    *(type_3 *)((int)data + 0x14) = *(type_3 *)((int)data + 0x14) & 0xffefffff;
    var_4 = var_1(*data,*(char **)((int)data + 4),var_2->table,0,0);
    pVVar2 = var_2;
    if (var_2 == var_3) {
      *(type_3 *)((int)data + 0x14) = *(type_3 *)((int)data + 0x14) & 0xffdfffff;
    }
    if (var_4 != (type_2 *)0x0) {
      iVar1 = pVVar2->scope;
      var_4->attributes = var_4->attributes | *(type_3 *)((int)data + 0x14);
      var_4->context = iVar1;
      var_5((type_2 *)data);
      return;
    }
  }
  else {
    var_6(*data);
  }
  var_5((type_2 *)data);
  return;
}


(translation_unit (function_definition type: (primitive_type) 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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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)) 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: (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: (subscript_expression argument: (identifier) index: (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: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  
  if ((param_1[5] & 0x300001) == 0x300001) {
    param_1[5] = param_1[5] & 0xffefffff;
    iVar3 = FUN_00054490(0,0);
    iVar2 = shell_variables;
    if (shell_variables == global_variables) {
      param_1[5] = param_1[5] & 0xffdfffff;
    }
    if (iVar3 != 0) {
      uVar1 = *(undefined4 *)(iVar2 + 4);
      *(uint *)(iVar3 + 0x14) = *(uint *)(iVar3 + 0x14) | param_1[5];
      *(undefined4 *)(iVar3 + 0x18) = uVar1;
      dispose_variable();
      return;
    }
  }
  else {
    stupidly_hack_special_variables(*param_1);
  }
  dispose_variable();
  return;
}

