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

void tokpush(int type,int line,char *token)

{
  TOKSTK *pTVar1;
  TOKSTK *p;
  int iVar2;
  
  p = token_stack;
  iVar2 = tos + 1;
  pTVar1 = token_stack + tos;
  pTVar1->type = type;
  tos = iVar2;
  pTVar1->token = token;
  pTVar1->line = line;
  if (iVar2 != token_stack_length) {
    return;
  }
  token_stack_length = iVar2 + token_stack_increase;
  token_stack = (TOKSTK *)xrealloc(p,token_stack_length * 0xc);
  return;
}



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

void FUN_00018700(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = DAT_00036bd0;
  iVar3 = DAT_00036bcc + 1;
  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);
  *puVar1 = param_1;
  DAT_00036bcc = iVar3;
  puVar1[1] = param_3;
  puVar1[2] = param_2;
  if (iVar3 != DAT_00036700) {
    return;
  }
  DAT_00036700 = iVar3 + DAT_000366fc;
  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012800
ADD EBX,0x1d767
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x20]
LEA EDI,[EBX + 0xd5c]
LEA ESI,[EBX + 0xd60]
MOV EAX,dword ptr [EDI]
MOV ECX,dword ptr [ESI]
LEA EDX,[EAX + EAX*0x2]
ADD EAX,0x1
LEA EDX,[ECX + EDX*0x4]
MOV dword ptr [EDX],EBP
MOV EBP,dword ptr [ESP + 0x28]
MOV dword ptr [EDI],EAX
MOV dword ptr [EDX + 0x4],EBP
MOV EBP,dword ptr [ESP + 0x24]
MOV dword ptr [EDX + 0x8],EBP
CMP EAX,dword ptr [EBX + 0x890]
JZ 0x00018758
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD EAX,dword ptr [EBX + 0x88c]
SUB ESP,0x8
MOV dword ptr [EBX + 0x890],EAX
LEA EAX,[EAX + EAX*0x2]
SHL EAX,0x2
PUSH EAX
PUSH ECX
CALL 0x00022d20
ADD ESP,0x10
MOV dword ptr [ESI],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00018700(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = DAT_00036bd0;\n  iVar3 = DAT_00036bcc + 1;\n  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);\n  *puVar1 = param_1;\n  DAT_00036bcc = iVar3;\n  puVar1[1] = param_3;\n  puVar1[2] = param_2;\n  if (iVar3 != DAT_00036700) {\n    return;\n  }\n  DAT_00036700 = iVar3 + DAT_000366fc;\n  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);\n  return;\n}\n\n" comment (function_definition "void FUN_00018700(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = DAT_00036bd0;\n  iVar3 = DAT_00036bcc + 1;\n  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);\n  *puVar1 = param_1;\n  DAT_00036bcc = iVar3;\n  puVar1[1] = param_3;\n  puVar1[2] = param_2;\n  if (iVar3 != DAT_00036700) {\n    return;\n  }\n  DAT_00036700 = iVar3 + DAT_000366fc;\n  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);\n  return;\n}" primitive_type (function_declarator "FUN_00018700(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = DAT_00036bd0;\n  iVar3 = DAT_00036bcc + 1;\n  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);\n  *puVar1 = param_1;\n  DAT_00036bcc = iVar3;\n  puVar1[1] = param_3;\n  puVar1[2] = param_2;\n  if (iVar3 != DAT_00036700) {\n    return;\n  }\n  DAT_00036700 = iVar3 + DAT_000366fc;\n  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = DAT_00036bd0;" (assignment_expression "iVar2 = DAT_00036bd0" identifier = identifier) ;) (expression_statement "iVar3 = DAT_00036bcc + 1;" (assignment_expression "iVar3 = DAT_00036bcc + 1" identifier = (binary_expression "DAT_00036bcc + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);" (assignment_expression "puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc)" identifier = (cast_expression "(undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00036bd0 + DAT_00036bcc * 0xc)" ( (binary_expression "DAT_00036bd0 + DAT_00036bcc * 0xc" identifier + (binary_expression "DAT_00036bcc * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "DAT_00036bcc = iVar3;" (assignment_expression "DAT_00036bcc = iVar3" identifier = identifier) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = param_2;" (assignment_expression "puVar1[2] = param_2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 != DAT_00036700) {\n    return;\n  }" if (parenthesized_expression "(iVar3 != DAT_00036700)" ( (binary_expression "iVar3 != DAT_00036700" identifier != identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "DAT_00036700 = iVar3 + DAT_000366fc;" (assignment_expression "DAT_00036700 = iVar3 + DAT_000366fc" identifier = (binary_expression "iVar3 + DAT_000366fc" identifier + identifier)) ;) (expression_statement "DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);" (assignment_expression "DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc)" identifier = (call_expression "FUN_00022d20(iVar2,DAT_00036700 * 0xc)" identifier (argument_list "(iVar2,DAT_00036700 * 0xc)" ( identifier , (binary_expression "DAT_00036700 * 0xc" identifier * number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid tokpush(int type,int line,char *token)\n\n{\n  TOKSTK *pTVar1;\n  TOKSTK *p;\n  int iVar2;\n  \n  p = token_stack;\n  iVar2 = tos + 1;\n  pTVar1 = token_stack + tos;\n  pTVar1->type = type;\n  tos = iVar2;\n  pTVar1->token = token;\n  pTVar1->line = line;\n  if (iVar2 != token_stack_length) {\n    return;\n  }\n  token_stack_length = iVar2 + token_stack_increase;\n  token_stack = (TOKSTK *)xrealloc(p,token_stack_length * 0xc);\n  return;\n}\n\n" comment comment (function_definition "void tokpush(int type,int line,char *token)\n\n{\n  TOKSTK *pTVar1;\n  TOKSTK *p;\n  int iVar2;\n  \n  p = token_stack;\n  iVar2 = tos + 1;\n  pTVar1 = token_stack + tos;\n  pTVar1->type = type;\n  tos = iVar2;\n  pTVar1->token = token;\n  pTVar1->line = line;\n  if (iVar2 != token_stack_length) {\n    return;\n  }\n  token_stack_length = iVar2 + token_stack_increase;\n  token_stack = (TOKSTK *)xrealloc(p,token_stack_length * 0xc);\n  return;\n}" primitive_type (function_declarator "tokpush(int type,int line,char *token)" identifier (parameter_list "(int type,int line,char *token)" ( (parameter_declaration "int type" primitive_type identifier) , (parameter_declaration "int line" primitive_type identifier) , (parameter_declaration "char *token" primitive_type (pointer_declarator "*token" * identifier)) ))) (compound_statement "{\n  TOKSTK *pTVar1;\n  TOKSTK *p;\n  int iVar2;\n  \n  p = token_stack;\n  iVar2 = tos + 1;\n  pTVar1 = token_stack + tos;\n  pTVar1->type = type;\n  tos = iVar2;\n  pTVar1->token = token;\n  pTVar1->line = line;\n  if (iVar2 != token_stack_length) {\n    return;\n  }\n  token_stack_length = iVar2 + token_stack_increase;\n  token_stack = (TOKSTK *)xrealloc(p,token_stack_length * 0xc);\n  return;\n}" { (declaration "TOKSTK *pTVar1;" type_identifier (pointer_declarator "*pTVar1" * identifier) ;) (declaration "TOKSTK *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "p = token_stack;" (assignment_expression "p = token_stack" identifier = identifier) ;) (expression_statement "iVar2 = tos + 1;" (assignment_expression "iVar2 = tos + 1" identifier = (binary_expression "tos + 1" identifier + number_literal)) ;) (expression_statement "pTVar1 = token_stack + tos;" (assignment_expression "pTVar1 = token_stack + tos" identifier = (binary_expression "token_stack + tos" identifier + identifier)) ;) (expression_statement "pTVar1->type = type;" (assignment_expression "pTVar1->type = type" (field_expression "pTVar1->type" identifier -> field_identifier) = identifier) ;) (expression_statement "tos = iVar2;" (assignment_expression "tos = iVar2" identifier = identifier) ;) (expression_statement "pTVar1->token = token;" (assignment_expression "pTVar1->token = token" (field_expression "pTVar1->token" identifier -> field_identifier) = identifier) ;) (expression_statement "pTVar1->line = line;" (assignment_expression "pTVar1->line = line" (field_expression "pTVar1->line" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar2 != token_stack_length) {\n    return;\n  }" if (parenthesized_expression "(iVar2 != token_stack_length)" ( (binary_expression "iVar2 != token_stack_length" identifier != identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "token_stack_length = iVar2 + token_stack_increase;" (assignment_expression "token_stack_length = iVar2 + token_stack_increase" identifier = (binary_expression "iVar2 + token_stack_increase" identifier + identifier)) ;) (expression_statement "token_stack = (TOKSTK *)xrealloc(p,token_stack_length * 0xc);" (assignment_expression "token_stack = (TOKSTK *)xrealloc(p,token_stack_length * 0xc)" identifier = (cast_expression "(TOKSTK *)xrealloc(p,token_stack_length * 0xc)" ( (type_descriptor "TOKSTK *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(p,token_stack_length * 0xc)" identifier (argument_list "(p,token_stack_length * 0xc)" ( identifier , (binary_expression "token_stack_length * 0xc" identifier * number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00018700(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = DAT_00036bd0;\n  iVar3 = DAT_00036bcc + 1;\n  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);\n  *puVar1 = param_1;\n  DAT_00036bcc = iVar3;\n  puVar1[1] = param_3;\n  puVar1[2] = param_2;\n  if (iVar3 != DAT_00036700) {\n    return;\n  }\n  DAT_00036700 = iVar3 + DAT_000366fc;\n  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);\n  return;\n}\n\n" (function_definition "void FUN_00018700(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = DAT_00036bd0;\n  iVar3 = DAT_00036bcc + 1;\n  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);\n  *puVar1 = param_1;\n  DAT_00036bcc = iVar3;\n  puVar1[1] = param_3;\n  puVar1[2] = param_2;\n  if (iVar3 != DAT_00036700) {\n    return;\n  }\n  DAT_00036700 = iVar3 + DAT_000366fc;\n  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);\n  return;\n}" primitive_type (function_declarator "FUN_00018700(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = DAT_00036bd0;\n  iVar3 = DAT_00036bcc + 1;\n  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);\n  *puVar1 = param_1;\n  DAT_00036bcc = iVar3;\n  puVar1[1] = param_3;\n  puVar1[2] = param_2;\n  if (iVar3 != DAT_00036700) {\n    return;\n  }\n  DAT_00036700 = iVar3 + DAT_000366fc;\n  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = DAT_00036bd0;" (assignment_expression "iVar2 = DAT_00036bd0" identifier = identifier) ;) (expression_statement "iVar3 = DAT_00036bcc + 1;" (assignment_expression "iVar3 = DAT_00036bcc + 1" identifier = (binary_expression "DAT_00036bcc + 1" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);" (assignment_expression "puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc)" identifier = (cast_expression "(undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00036bd0 + DAT_00036bcc * 0xc)" ( (binary_expression "DAT_00036bd0 + DAT_00036bcc * 0xc" identifier + (binary_expression "DAT_00036bcc * 0xc" identifier * number_literal)) )))) ;) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "DAT_00036bcc = iVar3;" (assignment_expression "DAT_00036bcc = iVar3" identifier = identifier) ;) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = param_2;" (assignment_expression "puVar1[2] = param_2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 != DAT_00036700) {\n    return;\n  }" if (parenthesized_expression "(iVar3 != DAT_00036700)" ( (binary_expression "iVar3 != DAT_00036700" identifier != identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "DAT_00036700 = iVar3 + DAT_000366fc;" (assignment_expression "DAT_00036700 = iVar3 + DAT_000366fc" identifier = (binary_expression "iVar3 + DAT_000366fc" identifier + identifier)) ;) (expression_statement "DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);" (assignment_expression "DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc)" identifier = (call_expression "FUN_00022d20(iVar2,DAT_00036700 * 0xc)" identifier (argument_list "(iVar2,DAT_00036700 * 0xc)" ( identifier , (binary_expression "DAT_00036700 * 0xc" identifier * number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT * LIT) )))) ;) (return_statement return ;) })))
(function_definition "void FUN_00018700(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = DAT_00036bd0;\n  iVar3 = DAT_00036bcc + 1;\n  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);\n  *puVar1 = param_1;\n  DAT_00036bcc = iVar3;\n  puVar1[1] = param_3;\n  puVar1[2] = param_2;\n  if (iVar3 != DAT_00036700) {\n    return;\n  }\n  DAT_00036700 = iVar3 + DAT_000366fc;\n  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00018700(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00018700") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = DAT_00036bd0;\n  iVar3 = DAT_00036bcc + 1;\n  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);\n  *puVar1 = param_1;\n  DAT_00036bcc = iVar3;\n  puVar1[1] = param_3;\n  puVar1[2] = param_2;\n  if (iVar3 != DAT_00036700) {\n    return;\n  }\n  DAT_00036700 = iVar3 + DAT_000366fc;\n  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar2 = DAT_00036bd0;" (assignment_expression "iVar2 = DAT_00036bd0" (identifier "iVar2") (= "=") (identifier "DAT_00036bd0")) (; ";")) (expression_statement "iVar3 = DAT_00036bcc + 1;" (assignment_expression "iVar3 = DAT_00036bcc + 1" (identifier "iVar3") (= "=") (binary_expression "DAT_00036bcc + 1" (identifier "DAT_00036bcc") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);" (assignment_expression "puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00036bd0 + DAT_00036bcc * 0xc)" (( "(") (binary_expression "DAT_00036bd0 + DAT_00036bcc * 0xc" (identifier "DAT_00036bd0") (+ "+") (binary_expression "DAT_00036bcc * 0xc" (identifier "DAT_00036bcc") (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "*puVar1 = param_1;" (assignment_expression "*puVar1 = param_1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "DAT_00036bcc = iVar3;" (assignment_expression "DAT_00036bcc = iVar3" (identifier "DAT_00036bcc") (= "=") (identifier "iVar3")) (; ";")) (expression_statement "puVar1[1] = param_3;" (assignment_expression "puVar1[1] = param_3" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar1[2] = param_2;" (assignment_expression "puVar1[2] = param_2" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (iVar3 != DAT_00036700) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar3 != DAT_00036700)" (( "(") (binary_expression "iVar3 != DAT_00036700" (identifier "iVar3") (!= "!=") (identifier "DAT_00036700")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "DAT_00036700 = iVar3 + DAT_000366fc;" (assignment_expression "DAT_00036700 = iVar3 + DAT_000366fc" (identifier "DAT_00036700") (= "=") (binary_expression "iVar3 + DAT_000366fc" (identifier "iVar3") (+ "+") (identifier "DAT_000366fc"))) (; ";")) (expression_statement "DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);" (assignment_expression "DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc)" (identifier "DAT_00036bd0") (= "=") (call_expression "FUN_00022d20(iVar2,DAT_00036700 * 0xc)" (identifier "FUN_00022d20") (argument_list "(iVar2,DAT_00036700 * 0xc)" (( "(") (identifier "iVar2") (, ",") (binary_expression "DAT_00036700 * 0xc" (identifier "DAT_00036700") (* "*") (number_literal "0xc")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(int type,int line,char *token)

{
  type_1 *pTVar1;
  type_1 *p;
  int var_3;
  
  p = var_2;
  var_3 = var_1 + 1;
  pTVar1 = var_2 + var_1;
  pTVar1->type = type;
  var_1 = var_3;
  pTVar1->token = token;
  pTVar1->line = line;
  if (var_3 != var_4) {
    return;
  }
  var_4 = var_3 + var_5;
  var_2 = (type_1 *)var_6(p,var_4 * 0xc);
  return;
}


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

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

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

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = DAT_00036bd0;
  iVar3 = DAT_00036bcc + 1;
  puVar1 = (undefined4 *)(DAT_00036bd0 + DAT_00036bcc * 0xc);
  *puVar1 = param_1;
  DAT_00036bcc = iVar3;
  puVar1[1] = param_3;
  puVar1[2] = param_2;
  if (iVar3 != DAT_00036700) {
    return;
  }
  DAT_00036700 = iVar3 + DAT_000366fc;
  DAT_00036bd0 = FUN_00022d20(iVar2,DAT_00036700 * 0xc);
  return;
}

