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

void tag_handle_form(int tagid,taginfo *tag,map_context *ctx)

{
  char *link_uri;
  urlpos *puVar1;
  int in_GS_OFFSET;
  int attrind;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  link_uri = find_attr((taginfo *)tag->nattrs,(char *)&tag->attrs,(int *)"action",
                       (taginfo *)&attrind);
  if (link_uri != (char *)0x0) {
    puVar1 = append_url(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,
                        tag->attrs[attrind].value_raw_size,ctx);
    if (puVar1 != (urlpos *)0x0) {
      puVar1->field_0x8 = puVar1->field_0x8 | 1;
    }
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_0002d880(undefined4 param_1,int param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  int local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_0002ce50(&local_14);
  if (iVar2 != 0) {
    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;
    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);
    if (iVar2 != 0) {
      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;
    }
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006da50();
}


CALL 0x0002e480
ADD ECX,0x7334b
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x18],EAX
XOR EAX,EAX
MOV EBX,dword ptr [ESP + 0x30]
LEA EDI,[ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x34]
LEA ECX,[ECX + 0xfffd8c7c]
MOV EAX,dword ptr [EBX + 0x8]
PUSH EDI
LEA EDX,[EBX + 0xc]
CALL 0x0002ce50
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002d8ea
MOV EDX,dword ptr [ESP + 0x8]
LEA ECX,[EDX + EDX*0x2]
MOV EDX,dword ptr [EBX + 0xc]
PUSH ESI
LEA EDX,[EDX + ECX*0x8]
PUSH dword ptr [EDX + 0xc]
MOV EDX,dword ptr [EDX + 0x8]
SUB EDX,dword ptr [ESI]
PUSH EDX
PUSH EAX
CALL 0x0002cfe0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002d8ea
OR byte ptr [EAX + 0x8],0x1
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0002d8fe
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
CALL 0x0006da50
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid FUN_0002d880(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_0002ce50(&local_14);\n  if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006da50();\n}\n\n" comment (function_definition "void FUN_0002d880(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_0002ce50(&local_14);\n  if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006da50();\n}" primitive_type (function_declarator "FUN_0002d880(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_0002ce50(&local_14);\n  if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006da50();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_0002ce50(&local_14);" (assignment_expression "iVar2 = FUN_0002ce50(&local_14)" identifier = (call_expression "FUN_0002ce50(&local_14)" identifier (argument_list "(&local_14)" ( (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;" (assignment_expression "iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18" identifier = (binary_expression "*(int *)(param_2 + 0xc) + local_14 * 0x18" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) + (binary_expression "local_14 * 0x18" identifier * number_literal))) ;) (expression_statement "iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);" (assignment_expression "iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3)" identifier = (call_expression "FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3)" identifier (argument_list "(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3)" ( identifier , (binary_expression "*(int *)(iVar1 + 8) - *param_3" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) - (pointer_expression "*param_3" * identifier)) , (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }" { (expression_statement "*(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;" (assignment_expression "*(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1" (pointer_expression "*(byte *)(iVar2 + 8)" * (cast_expression "(byte *)(iVar2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar2 + 8) | 1" (pointer_expression "*(byte *)(iVar2 + 8)" * (cast_expression "(byte *)(iVar2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) | number_literal)) ;) })) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* WARNING: Unknown calling convention */\n\nvoid tag_handle_form(int tagid,taginfo *tag,map_context *ctx)\n\n{\n  char *link_uri;\n  urlpos *puVar1;\n  int in_GS_OFFSET;\n  int attrind;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  link_uri = find_attr((taginfo *)tag->nattrs,(char *)&tag->attrs,(int *)"action",\n                       (taginfo *)&attrind);\n  if (link_uri != (char *)0x0) {\n    puVar1 = append_url(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,\n                        tag->attrs[attrind].value_raw_size,ctx);\n    if (puVar1 != (urlpos *)0x0) {\n      puVar1->field_0x8 = puVar1->field_0x8 | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void tag_handle_form(int tagid,taginfo *tag,map_context *ctx)\n\n{\n  char *link_uri;\n  urlpos *puVar1;\n  int in_GS_OFFSET;\n  int attrind;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  link_uri = find_attr((taginfo *)tag->nattrs,(char *)&tag->attrs,(int *)"action",\n                       (taginfo *)&attrind);\n  if (link_uri != (char *)0x0) {\n    puVar1 = append_url(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,\n                        tag->attrs[attrind].value_raw_size,ctx);\n    if (puVar1 != (urlpos *)0x0) {\n      puVar1->field_0x8 = puVar1->field_0x8 | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "tag_handle_form(int tagid,taginfo *tag,map_context *ctx)" identifier (parameter_list "(int tagid,taginfo *tag,map_context *ctx)" ( (parameter_declaration "int tagid" primitive_type identifier) , (parameter_declaration "taginfo *tag" type_identifier (pointer_declarator "*tag" * identifier)) , (parameter_declaration "map_context *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) ))) (compound_statement "{\n  char *link_uri;\n  urlpos *puVar1;\n  int in_GS_OFFSET;\n  int attrind;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  link_uri = find_attr((taginfo *)tag->nattrs,(char *)&tag->attrs,(int *)"action",\n                       (taginfo *)&attrind);\n  if (link_uri != (char *)0x0) {\n    puVar1 = append_url(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,\n                        tag->attrs[attrind].value_raw_size,ctx);\n    if (puVar1 != (urlpos *)0x0) {\n      puVar1->field_0x8 = puVar1->field_0x8 | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "char *link_uri;" primitive_type (pointer_declarator "*link_uri" * identifier) ;) (declaration "urlpos *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int attrind;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "link_uri = find_attr((taginfo *)tag->nattrs,(char *)&tag->attrs,(int *)"action",\n                       (taginfo *)&attrind);" (assignment_expression "link_uri = find_attr((taginfo *)tag->nattrs,(char *)&tag->attrs,(int *)"action",\n                       (taginfo *)&attrind)" identifier = (call_expression "find_attr((taginfo *)tag->nattrs,(char *)&tag->attrs,(int *)"action",\n                       (taginfo *)&attrind)" identifier (argument_list "((taginfo *)tag->nattrs,(char *)&tag->attrs,(int *)"action",\n                       (taginfo *)&attrind)" ( (cast_expression "(taginfo *)tag->nattrs" ( (type_descriptor "taginfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "tag->nattrs" identifier -> field_identifier)) , (cast_expression "(char *)&tag->attrs" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&tag->attrs" & (field_expression "tag->attrs" identifier -> field_identifier))) , (cast_expression "(int *)"action"" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (string_literal ""action"" " string_content ")) , (cast_expression "(taginfo *)&attrind" ( (type_descriptor "taginfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&attrind" & identifier)) )))) ;) (if_statement "if (link_uri != (char *)0x0) {\n    puVar1 = append_url(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,\n                        tag->attrs[attrind].value_raw_size,ctx);\n    if (puVar1 != (urlpos *)0x0) {\n      puVar1->field_0x8 = puVar1->field_0x8 | 1;\n    }\n  }" if (parenthesized_expression "(link_uri != (char *)0x0)" ( (binary_expression "link_uri != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = append_url(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,\n                        tag->attrs[attrind].value_raw_size,ctx);\n    if (puVar1 != (urlpos *)0x0) {\n      puVar1->field_0x8 = puVar1->field_0x8 | 1;\n    }\n  }" { (expression_statement "puVar1 = append_url(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,\n                        tag->attrs[attrind].value_raw_size,ctx);" (assignment_expression "puVar1 = append_url(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,\n                        tag->attrs[attrind].value_raw_size,ctx)" identifier = (call_expression "append_url(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,\n                        tag->attrs[attrind].value_raw_size,ctx)" identifier (argument_list "(link_uri,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,\n                        tag->attrs[attrind].value_raw_size,ctx)" ( identifier , (binary_expression "(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text" (cast_expression "(int)tag->attrs[attrind].value_raw_beginning" ( (type_descriptor "int" primitive_type) ) (field_expression "tag->attrs[attrind].value_raw_beginning" (subscript_expression "tag->attrs[attrind]" (field_expression "tag->attrs" identifier -> field_identifier) [ identifier ]) . field_identifier)) - (cast_expression "(int)ctx->text" ( (type_descriptor "int" primitive_type) ) (field_expression "ctx->text" identifier -> field_identifier))) , (field_expression "tag->attrs[attrind].value_raw_size" (subscript_expression "tag->attrs[attrind]" (field_expression "tag->attrs" identifier -> field_identifier) [ identifier ]) . field_identifier) , identifier )))) ;) (if_statement "if (puVar1 != (urlpos *)0x0) {\n      puVar1->field_0x8 = puVar1->field_0x8 | 1;\n    }" if (parenthesized_expression "(puVar1 != (urlpos *)0x0)" ( (binary_expression "puVar1 != (urlpos *)0x0" identifier != (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar1->field_0x8 = puVar1->field_0x8 | 1;\n    }" { (expression_statement "puVar1->field_0x8 = puVar1->field_0x8 | 1;" (assignment_expression "puVar1->field_0x8 = puVar1->field_0x8 | 1" (field_expression "puVar1->field_0x8" identifier -> field_identifier) = (binary_expression "puVar1->field_0x8 | 1" (field_expression "puVar1->field_0x8" identifier -> field_identifier) | number_literal)) ;) })) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0002d880(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_0002ce50(&local_14);\n  if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}\n\n" (function_definition "void FUN_0002d880(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_0002ce50(&local_14);\n  if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}" primitive_type (function_declarator "FUN_0002d880(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_0002ce50(&local_14);\n  if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_0002ce50(&local_14);" (assignment_expression "iVar2 = FUN_0002ce50(&local_14)" identifier = (call_expression "FUN_0002ce50(&local_14)" identifier (argument_list "(&local_14)" ( (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;" (assignment_expression "iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18" identifier = (binary_expression "*(int *)(param_2 + 0xc) + local_14 * 0x18" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) + (binary_expression "local_14 * 0x18" identifier * number_literal))) ;) (expression_statement "iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);" (assignment_expression "iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3)" identifier = (call_expression "FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3)" identifier (argument_list "(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3)" ( identifier , (binary_expression "*(int *)(iVar1 + 8) - *param_3" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) - (pointer_expression "*param_3" * identifier)) , (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }" { (expression_statement "*(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;" (assignment_expression "*(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1" (pointer_expression "*(byte *)(iVar2 + 8)" * (cast_expression "(byte *)(iVar2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar2 + 8) | 1" (pointer_expression "*(byte *)(iVar2 + 8)" * (cast_expression "(byte *)(iVar2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) | number_literal)) ;) })) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_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 = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * IDENT)) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0002d880(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_0002ce50(&local_14);\n  if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}" (primitive_type "void") (function_declarator "FUN_0002d880(undefined4 param_1,int param_2,int *param_3)" (identifier "FUN_0002d880") (parameter_list "(undefined4 param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int in_GS_OFFSET;\n  int local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_0002ce50(&local_14);\n  if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006da50();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_0002ce50(&local_14);" (assignment_expression "iVar2 = FUN_0002ce50(&local_14)" (identifier "iVar2") (= "=") (call_expression "FUN_0002ce50(&local_14)" (identifier "FUN_0002ce50") (argument_list "(&local_14)" (( "(") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;\n    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);\n    if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;" (assignment_expression "iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_2 + 0xc) + local_14 * 0x18" (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (binary_expression "local_14 * 0x18" (identifier "local_14") (* "*") (number_literal "0x18")))) (; ";")) (expression_statement "iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);" (assignment_expression "iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3)" (identifier "iVar2") (= "=") (call_expression "FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3)" (identifier "FUN_0002cfe0") (argument_list "(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3)" (( "(") (identifier "iVar2") (, ",") (binary_expression "*(int *)(iVar1 + 8) - *param_3" (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (- "-") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;\n    }" ({ "{") (expression_statement "*(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;" (assignment_expression "*(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1" (pointer_expression "*(byte *)(iVar2 + 8)" (* "*") (cast_expression "(byte *)(iVar2 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(byte *)(iVar2 + 8) | 1" (pointer_expression "*(byte *)(iVar2 + 8)" (* "*") (cast_expression "(byte *)(iVar2 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0006da50();" (call_expression "FUN_0006da50()" (identifier "FUN_0006da50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(int tagid,type_1 *tag,type_2 *ctx)

{
  char *var_3;
  type_3 *var_5;
  int var_1;
  int attrind;
  int var_6;
  
  var_6 = *(int *)(var_1 + 0x14);
  var_3 = var_2((type_1 *)tag->nattrs,(char *)&tag->attrs,(int *)"action",
                       (type_1 *)&attrind);
  if (var_3 != (char *)0x0) {
    var_5 = var_4(var_3,(int)tag->attrs[attrind].value_raw_beginning - (int)ctx->text,
                        tag->attrs[attrind].value_raw_size,ctx);
    if (var_5 != (type_3 *)0x0) {
      var_5->field_0x8 = var_5->field_0x8 | 1;
    }
  }
  if (var_6 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

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

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

{
  int iVar1;
  int iVar2;
  int in_GS_OFFSET;
  int local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_0002ce50(&local_14);
  if (iVar2 != 0) {
    iVar1 = *(int *)(param_2 + 0xc) + local_14 * 0x18;
    iVar2 = FUN_0002cfe0(iVar2,*(int *)(iVar1 + 8) - *param_3,*(undefined4 *)(iVar1 + 0xc),param_3);
    if (iVar2 != 0) {
      *(byte *)(iVar2 + 8) = *(byte *)(iVar2 + 8) | 1;
    }
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006da50();
}

