
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

node_conflict * __regparm3 chain_node(uint32_t info)

{
  int *piVar1;
  char *unaff_EBX;
  
  piVar1 = *(int **)(ptr_to_globals[-1].line_buf + 0x38);
  if (*piVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    xzalloc(0x14);
  }
  if (piVar1[2] != *(int *)(ptr_to_globals[-1].line_buf + 0x58)) {
    piVar1[2] = *(int *)(ptr_to_globals[-1].line_buf + 0x58);
    chain_node(0x300);
                    /* WARNING: Subroutine does not return */
    xstrdup(unaff_EBX);
  }
  *(uint32_t *)piVar1[1] = info;
                    /* WARNING: Subroutine does not return */
  xzalloc(0x14);
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined4 * __regparm3 FUN_000923d2(undefined4 param_1)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int *piVar6;
  
  iVar1 = DAT_000d1700;
  piVar6 = *(int **)(DAT_000d1700 + -0x48);
  if (*piVar6 == 0) {
    puVar2 = (undefined4 *)FUN_00019b89();
    *puVar2 = 0;
    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);
    piVar6[1] = (int)puVar2;
    piVar6 = *(int **)(iVar1 + -0x48);
    *piVar6 = (int)puVar2;
  }
  if (piVar6[2] != *(int *)(iVar1 + -0x28)) {
    piVar6[2] = *(int *)(iVar1 + -0x28);
    iVar3 = FUN_000923d2();
    uVar4 = FUN_00019ba3();
    *(undefined4 *)(iVar3 + 8) = uVar4;
    piVar6 = *(int **)(iVar1 + -0x48);
  }
  puVar2 = (undefined4 *)piVar6[1];
  *puVar2 = param_1;
  puVar5 = (undefined4 *)FUN_00019b89();
  *puVar5 = 0x2800;
  puVar5[1] = *(undefined4 *)(iVar1 + -0x24);
  puVar2[4] = puVar5;
  *(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;
  return puVar2;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017e71
ADD EDX,0x3e646
MOV EDI,EAX
MOV EBX,dword ptr [EDX + 0xce0]
MOV ESI,dword ptr [EBX + -0x48]
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JNZ 0x0009240f
MOV EAX,0x14
CALL 0x00019b89
MOV dword ptr [EAX],0x0
MOV EDX,dword ptr [EBX + -0x24]
MOV dword ptr [EAX + 0x4],EDX
MOV dword ptr [ESI + 0x4],EAX
MOV ESI,dword ptr [EBX + -0x48]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EBX + -0x28]
CMP dword ptr [ESI + 0x8],EAX
JZ 0x00092434
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,0x300
CALL 0x000923d2
MOV ESI,EAX
MOV EAX,dword ptr [EBX + -0x28]
CALL 0x00019ba3
MOV dword ptr [ESI + 0x8],EAX
MOV ESI,dword ptr [EBX + -0x48]
MOV ESI,dword ptr [ESI + 0x4]
MOV dword ptr [ESI],EDI
MOV EAX,0x14
CALL 0x00019b89
MOV dword ptr [EAX],0x2800
MOV EDX,dword ptr [EBX + -0x24]
MOV dword ptr [EAX + 0x4],EDX
MOV dword ptr [ESI + 0x10],EAX
MOV EDX,dword ptr [EBX + -0x48]
MOV dword ptr [EDX + 0x4],EAX
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nundefined4 * __regparm3 FUN_000923d2(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  \n  iVar1 = DAT_000d1700;\n  piVar6 = *(int **)(DAT_000d1700 + -0x48);\n  if (*piVar6 == 0) {\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }\n  if (piVar6[2] != *(int *)(iVar1 + -0x28)) {\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }\n  puVar2 = (undefined4 *)piVar6[1];\n  *puVar2 = param_1;\n  puVar5 = (undefined4 *)FUN_00019b89();\n  *puVar5 = 0x2800;\n  puVar5[1] = *(undefined4 *)(iVar1 + -0x24);\n  puVar2[4] = puVar5;\n  *(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;\n  return puVar2;\n}\n\n" comment (ERROR "undefined4 * __regparm3 FUN_000923d2(undefined4 param_1)" (binary_expression "undefined4 * __regparm3 FUN_000923d2(undefined4 param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000923d2(undefined4 param_1)" identifier (argument_list "(undefined4 param_1)" ( identifier (ERROR "param_1" identifier) ))))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  \n  iVar1 = DAT_000d1700;\n  piVar6 = *(int **)(DAT_000d1700 + -0x48);\n  if (*piVar6 == 0) {\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }\n  if (piVar6[2] != *(int *)(iVar1 + -0x28)) {\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }\n  puVar2 = (undefined4 *)piVar6[1];\n  *puVar2 = param_1;\n  puVar5 = (undefined4 *)FUN_00019b89();\n  *puVar5 = 0x2800;\n  puVar5[1] = *(undefined4 *)(iVar1 + -0x24);\n  puVar2[4] = puVar5;\n  *(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "iVar1 = DAT_000d1700;" (assignment_expression "iVar1 = DAT_000d1700" identifier = identifier) ;) (expression_statement "piVar6 = *(int **)(DAT_000d1700 + -0x48);" (assignment_expression "piVar6 = *(int **)(DAT_000d1700 + -0x48)" identifier = (pointer_expression "*(int **)(DAT_000d1700 + -0x48)" * (cast_expression "(int **)(DAT_000d1700 + -0x48)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000d1700 + -0x48)" ( (binary_expression "DAT_000d1700 + -0x48" identifier + number_literal) ))))) ;) (if_statement "if (*piVar6 == 0) {\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }" if (parenthesized_expression "(*piVar6 == 0)" ( (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }" { (expression_statement "puVar2 = (undefined4 *)FUN_00019b89();" (assignment_expression "puVar2 = (undefined4 *)FUN_00019b89()" identifier = (cast_expression "(undefined4 *)FUN_00019b89()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b89()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = *(undefined4 *)(iVar1 + -0x24);" (assignment_expression "puVar2[1] = *(undefined4 *)(iVar1 + -0x24)" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + -0x24)" * (cast_expression "(undefined4 *)(iVar1 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x24)" ( (binary_expression "iVar1 + -0x24" identifier + number_literal) ))))) ;) (expression_statement "piVar6[1] = (int)puVar2;" (assignment_expression "piVar6[1] = (int)puVar2" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar6 = *(int **)(iVar1 + -0x48);" (assignment_expression "piVar6 = *(int **)(iVar1 + -0x48)" identifier = (pointer_expression "*(int **)(iVar1 + -0x48)" * (cast_expression "(int **)(iVar1 + -0x48)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + -0x48)" ( (binary_expression "iVar1 + -0x48" identifier + number_literal) ))))) ;) (expression_statement "*piVar6 = (int)puVar2;" (assignment_expression "*piVar6 = (int)puVar2" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (if_statement "if (piVar6[2] != *(int *)(iVar1 + -0x28)) {\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }" if (parenthesized_expression "(piVar6[2] != *(int *)(iVar1 + -0x28))" ( (binary_expression "piVar6[2] != *(int *)(iVar1 + -0x28)" (subscript_expression "piVar6[2]" identifier [ number_literal ]) != (pointer_expression "*(int *)(iVar1 + -0x28)" * (cast_expression "(int *)(iVar1 + -0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x28)" ( (binary_expression "iVar1 + -0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }" { (expression_statement "piVar6[2] = *(int *)(iVar1 + -0x28);" (assignment_expression "piVar6[2] = *(int *)(iVar1 + -0x28)" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = (pointer_expression "*(int *)(iVar1 + -0x28)" * (cast_expression "(int *)(iVar1 + -0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x28)" ( (binary_expression "iVar1 + -0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = FUN_000923d2();" (assignment_expression "iVar3 = FUN_000923d2()" identifier = (call_expression "FUN_000923d2()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = FUN_00019ba3();" (assignment_expression "uVar4 = FUN_00019ba3()" identifier = (call_expression "FUN_00019ba3()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 8) = uVar4;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = uVar4" (pointer_expression "*(undefined4 *)(iVar3 + 8)" * (cast_expression "(undefined4 *)(iVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar6 = *(int **)(iVar1 + -0x48);" (assignment_expression "piVar6 = *(int **)(iVar1 + -0x48)" identifier = (pointer_expression "*(int **)(iVar1 + -0x48)" * (cast_expression "(int **)(iVar1 + -0x48)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + -0x48)" ( (binary_expression "iVar1 + -0x48" identifier + number_literal) ))))) ;) })) (expression_statement "puVar2 = (undefined4 *)piVar6[1];" (assignment_expression "puVar2 = (undefined4 *)piVar6[1]" identifier = (cast_expression "(undefined4 *)piVar6[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar5 = (undefined4 *)FUN_00019b89();" (assignment_expression "puVar5 = (undefined4 *)FUN_00019b89()" identifier = (cast_expression "(undefined4 *)FUN_00019b89()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b89()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*puVar5 = 0x2800;" (assignment_expression "*puVar5 = 0x2800" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[1] = *(undefined4 *)(iVar1 + -0x24);" (assignment_expression "puVar5[1] = *(undefined4 *)(iVar1 + -0x24)" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + -0x24)" * (cast_expression "(undefined4 *)(iVar1 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x24)" ( (binary_expression "iVar1 + -0x24" identifier + number_literal) ))))) ;) (expression_statement "puVar2[4] = puVar5;" (assignment_expression "puVar2[4] = puVar5" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;" (assignment_expression "*(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5" (pointer_expression "*(undefined4 **)(*(int *)(iVar1 + -0x48) + 4)" * (cast_expression "(undefined4 **)(*(int *)(iVar1 + -0x48) + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar1 + -0x48) + 4)" ( (binary_expression "*(int *)(iVar1 + -0x48) + 4" (pointer_expression "*(int *)(iVar1 + -0x48)" * (cast_expression "(int *)(iVar1 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x48)" ( (binary_expression "iVar1 + -0x48" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (return_statement "return puVar2;" return identifier ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nnode_conflict * __regparm3 chain_node(uint32_t info)\n\n{\n  int *piVar1;\n  char *unaff_EBX;\n  \n  piVar1 = *(int **)(ptr_to_globals[-1].line_buf + 0x38);\n  if (*piVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    xzalloc(0x14);\n  }\n  if (piVar1[2] != *(int *)(ptr_to_globals[-1].line_buf + 0x58)) {\n    piVar1[2] = *(int *)(ptr_to_globals[-1].line_buf + 0x58);\n    chain_node(0x300);\n                    /* WARNING: Subroutine does not return */\n    xstrdup(unaff_EBX);\n  }\n  *(uint32_t *)piVar1[1] = info;\n                    /* WARNING: Subroutine does not return */\n  xzalloc(0x14);\n}\n\n" comment (ERROR "node_conflict * __regparm3 chain_node(uint32_t info)" (binary_expression "node_conflict * __regparm3 chain_node(uint32_t info)" identifier * (ERROR "__regparm3" identifier) (call_expression "chain_node(uint32_t info)" identifier (argument_list "(uint32_t info)" ( identifier (ERROR "info" identifier) ))))) (compound_statement "{\n  int *piVar1;\n  char *unaff_EBX;\n  \n  piVar1 = *(int **)(ptr_to_globals[-1].line_buf + 0x38);\n  if (*piVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    xzalloc(0x14);\n  }\n  if (piVar1[2] != *(int *)(ptr_to_globals[-1].line_buf + 0x58)) {\n    piVar1[2] = *(int *)(ptr_to_globals[-1].line_buf + 0x58);\n    chain_node(0x300);\n                    /* WARNING: Subroutine does not return */\n    xstrdup(unaff_EBX);\n  }\n  *(uint32_t *)piVar1[1] = info;\n                    /* WARNING: Subroutine does not return */\n  xzalloc(0x14);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *unaff_EBX;" primitive_type (pointer_declarator "*unaff_EBX" * identifier) ;) (expression_statement "piVar1 = *(int **)(ptr_to_globals[-1].line_buf + 0x38);" (assignment_expression "piVar1 = *(int **)(ptr_to_globals[-1].line_buf + 0x38)" identifier = (pointer_expression "*(int **)(ptr_to_globals[-1].line_buf + 0x38)" * (cast_expression "(int **)(ptr_to_globals[-1].line_buf + 0x38)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(ptr_to_globals[-1].line_buf + 0x38)" ( (binary_expression "ptr_to_globals[-1].line_buf + 0x38" (field_expression "ptr_to_globals[-1].line_buf" (subscript_expression "ptr_to_globals[-1]" identifier [ number_literal ]) . field_identifier) + number_literal) ))))) ;) (if_statement "if (*piVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    xzalloc(0x14);\n  }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    xzalloc(0x14);\n  }" { comment (expression_statement "xzalloc(0x14);" (call_expression "xzalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))) ;) })) (if_statement "if (piVar1[2] != *(int *)(ptr_to_globals[-1].line_buf + 0x58)) {\n    piVar1[2] = *(int *)(ptr_to_globals[-1].line_buf + 0x58);\n    chain_node(0x300);\n                    /* WARNING: Subroutine does not return */\n    xstrdup(unaff_EBX);\n  }" if (parenthesized_expression "(piVar1[2] != *(int *)(ptr_to_globals[-1].line_buf + 0x58))" ( (binary_expression "piVar1[2] != *(int *)(ptr_to_globals[-1].line_buf + 0x58)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != (pointer_expression "*(int *)(ptr_to_globals[-1].line_buf + 0x58)" * (cast_expression "(int *)(ptr_to_globals[-1].line_buf + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ptr_to_globals[-1].line_buf + 0x58)" ( (binary_expression "ptr_to_globals[-1].line_buf + 0x58" (field_expression "ptr_to_globals[-1].line_buf" (subscript_expression "ptr_to_globals[-1]" identifier [ number_literal ]) . field_identifier) + number_literal) ))))) )) (compound_statement "{\n    piVar1[2] = *(int *)(ptr_to_globals[-1].line_buf + 0x58);\n    chain_node(0x300);\n                    /* WARNING: Subroutine does not return */\n    xstrdup(unaff_EBX);\n  }" { (expression_statement "piVar1[2] = *(int *)(ptr_to_globals[-1].line_buf + 0x58);" (assignment_expression "piVar1[2] = *(int *)(ptr_to_globals[-1].line_buf + 0x58)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (pointer_expression "*(int *)(ptr_to_globals[-1].line_buf + 0x58)" * (cast_expression "(int *)(ptr_to_globals[-1].line_buf + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ptr_to_globals[-1].line_buf + 0x58)" ( (binary_expression "ptr_to_globals[-1].line_buf + 0x58" (field_expression "ptr_to_globals[-1].line_buf" (subscript_expression "ptr_to_globals[-1]" identifier [ number_literal ]) . field_identifier) + number_literal) ))))) ;) (expression_statement "chain_node(0x300);" (call_expression "chain_node(0x300)" identifier (argument_list "(0x300)" ( number_literal ))) ;) comment (expression_statement "xstrdup(unaff_EBX);" (call_expression "xstrdup(unaff_EBX)" identifier (argument_list "(unaff_EBX)" ( identifier ))) ;) })) (expression_statement "*(uint32_t *)piVar1[1] = info;" (assignment_expression "*(uint32_t *)piVar1[1] = info" (pointer_expression "*(uint32_t *)piVar1[1]" * (cast_expression "(uint32_t *)piVar1[1]" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) = identifier) ;) comment (expression_statement "xzalloc(0x14);" (call_expression "xzalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))) ;) }))
(translation_unit "undefined4 * __regparm3 FUN_000923d2(undefined4 param_1)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  \n  iVar1 = DAT_000d1700;\n  piVar6 = *(int **)(DAT_000d1700 + -0x48);\n  if (*piVar6 == 0) {\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }\n  if (piVar6[2] != *(int *)(iVar1 + -0x28)) {\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }\n  puVar2 = (undefined4 *)piVar6[1];\n  *puVar2 = param_1;\n  puVar5 = (undefined4 *)FUN_00019b89();\n  *puVar5 = 0x2800;\n  puVar5[1] = *(undefined4 *)(iVar1 + -0x24);\n  puVar2[4] = puVar5;\n  *(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;\n  return puVar2;\n}\n\n" (ERROR "undefined4 * __regparm3 FUN_000923d2(undefined4 param_1)" (binary_expression "undefined4 * __regparm3 FUN_000923d2(undefined4 param_1)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_000923d2(undefined4 param_1)" identifier (argument_list "(undefined4 param_1)" ( identifier (ERROR "param_1" identifier) ))))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  \n  iVar1 = DAT_000d1700;\n  piVar6 = *(int **)(DAT_000d1700 + -0x48);\n  if (*piVar6 == 0) {\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }\n  if (piVar6[2] != *(int *)(iVar1 + -0x28)) {\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }\n  puVar2 = (undefined4 *)piVar6[1];\n  *puVar2 = param_1;\n  puVar5 = (undefined4 *)FUN_00019b89();\n  *puVar5 = 0x2800;\n  puVar5[1] = *(undefined4 *)(iVar1 + -0x24);\n  puVar2[4] = puVar5;\n  *(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "iVar1 = DAT_000d1700;" (assignment_expression "iVar1 = DAT_000d1700" identifier = identifier) ;) (expression_statement "piVar6 = *(int **)(DAT_000d1700 + -0x48);" (assignment_expression "piVar6 = *(int **)(DAT_000d1700 + -0x48)" identifier = (pointer_expression "*(int **)(DAT_000d1700 + -0x48)" * (cast_expression "(int **)(DAT_000d1700 + -0x48)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_000d1700 + -0x48)" ( (binary_expression "DAT_000d1700 + -0x48" identifier + number_literal) ))))) ;) (if_statement "if (*piVar6 == 0) {\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }" if (parenthesized_expression "(*piVar6 == 0)" ( (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }" { (expression_statement "puVar2 = (undefined4 *)FUN_00019b89();" (assignment_expression "puVar2 = (undefined4 *)FUN_00019b89()" identifier = (cast_expression "(undefined4 *)FUN_00019b89()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b89()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[1] = *(undefined4 *)(iVar1 + -0x24);" (assignment_expression "puVar2[1] = *(undefined4 *)(iVar1 + -0x24)" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + -0x24)" * (cast_expression "(undefined4 *)(iVar1 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x24)" ( (binary_expression "iVar1 + -0x24" identifier + number_literal) ))))) ;) (expression_statement "piVar6[1] = (int)puVar2;" (assignment_expression "piVar6[1] = (int)puVar2" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar6 = *(int **)(iVar1 + -0x48);" (assignment_expression "piVar6 = *(int **)(iVar1 + -0x48)" identifier = (pointer_expression "*(int **)(iVar1 + -0x48)" * (cast_expression "(int **)(iVar1 + -0x48)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + -0x48)" ( (binary_expression "iVar1 + -0x48" identifier + number_literal) ))))) ;) (expression_statement "*piVar6 = (int)puVar2;" (assignment_expression "*piVar6 = (int)puVar2" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (if_statement "if (piVar6[2] != *(int *)(iVar1 + -0x28)) {\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }" if (parenthesized_expression "(piVar6[2] != *(int *)(iVar1 + -0x28))" ( (binary_expression "piVar6[2] != *(int *)(iVar1 + -0x28)" (subscript_expression "piVar6[2]" identifier [ number_literal ]) != (pointer_expression "*(int *)(iVar1 + -0x28)" * (cast_expression "(int *)(iVar1 + -0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x28)" ( (binary_expression "iVar1 + -0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }" { (expression_statement "piVar6[2] = *(int *)(iVar1 + -0x28);" (assignment_expression "piVar6[2] = *(int *)(iVar1 + -0x28)" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = (pointer_expression "*(int *)(iVar1 + -0x28)" * (cast_expression "(int *)(iVar1 + -0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x28)" ( (binary_expression "iVar1 + -0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = FUN_000923d2();" (assignment_expression "iVar3 = FUN_000923d2()" identifier = (call_expression "FUN_000923d2()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = FUN_00019ba3();" (assignment_expression "uVar4 = FUN_00019ba3()" identifier = (call_expression "FUN_00019ba3()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 8) = uVar4;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = uVar4" (pointer_expression "*(undefined4 *)(iVar3 + 8)" * (cast_expression "(undefined4 *)(iVar3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar6 = *(int **)(iVar1 + -0x48);" (assignment_expression "piVar6 = *(int **)(iVar1 + -0x48)" identifier = (pointer_expression "*(int **)(iVar1 + -0x48)" * (cast_expression "(int **)(iVar1 + -0x48)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + -0x48)" ( (binary_expression "iVar1 + -0x48" identifier + number_literal) ))))) ;) })) (expression_statement "puVar2 = (undefined4 *)piVar6[1];" (assignment_expression "puVar2 = (undefined4 *)piVar6[1]" identifier = (cast_expression "(undefined4 *)piVar6[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar5 = (undefined4 *)FUN_00019b89();" (assignment_expression "puVar5 = (undefined4 *)FUN_00019b89()" identifier = (cast_expression "(undefined4 *)FUN_00019b89()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019b89()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*puVar5 = 0x2800;" (assignment_expression "*puVar5 = 0x2800" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[1] = *(undefined4 *)(iVar1 + -0x24);" (assignment_expression "puVar5[1] = *(undefined4 *)(iVar1 + -0x24)" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + -0x24)" * (cast_expression "(undefined4 *)(iVar1 + -0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x24)" ( (binary_expression "iVar1 + -0x24" identifier + number_literal) ))))) ;) (expression_statement "puVar2[4] = puVar5;" (assignment_expression "puVar2[4] = puVar5" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;" (assignment_expression "*(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5" (pointer_expression "*(undefined4 **)(*(int *)(iVar1 + -0x48) + 4)" * (cast_expression "(undefined4 **)(*(int *)(iVar1 + -0x48) + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar1 + -0x48) + 4)" ( (binary_expression "*(int *)(iVar1 + -0x48) + 4" (pointer_expression "*(int *)(iVar1 + -0x48)" * (cast_expression "(int *)(iVar1 + -0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x48)" ( (binary_expression "iVar1 + -0x48" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (return_statement "return puVar2;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( IDENT (ERROR IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (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 ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) }))
(ERROR "undefined4 * __regparm3 FUN_000923d2(undefined4 param_1)" (binary_expression "undefined4 * __regparm3 FUN_000923d2(undefined4 param_1)" (identifier "undefined4") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_000923d2(undefined4 param_1)" (identifier "FUN_000923d2") (argument_list "(undefined4 param_1)" (( "(") (identifier "undefined4") (ERROR "param_1" (identifier "param_1")) () ")"))))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  \n  iVar1 = DAT_000d1700;\n  piVar6 = *(int **)(DAT_000d1700 + -0x48);\n  if (*piVar6 == 0) {\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }\n  if (piVar6[2] != *(int *)(iVar1 + -0x28)) {\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }\n  puVar2 = (undefined4 *)piVar6[1];\n  *puVar2 = param_1;\n  puVar5 = (undefined4 *)FUN_00019b89();\n  *puVar5 = 0x2800;\n  puVar5[1] = *(undefined4 *)(iVar1 + -0x24);\n  puVar2[4] = puVar5;\n  *(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;\n  return puVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (expression_statement "iVar1 = DAT_000d1700;" (assignment_expression "iVar1 = DAT_000d1700" (identifier "iVar1") (= "=") (identifier "DAT_000d1700")) (; ";")) (expression_statement "piVar6 = *(int **)(DAT_000d1700 + -0x48);" (assignment_expression "piVar6 = *(int **)(DAT_000d1700 + -0x48)" (identifier "piVar6") (= "=") (pointer_expression "*(int **)(DAT_000d1700 + -0x48)" (* "*") (cast_expression "(int **)(DAT_000d1700 + -0x48)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_000d1700 + -0x48)" (( "(") (binary_expression "DAT_000d1700 + -0x48" (identifier "DAT_000d1700") (+ "+") (number_literal "-0x48")) () ")"))))) (; ";")) (if_statement "if (*piVar6 == 0) {\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }" (if "if") (parenthesized_expression "(*piVar6 == 0)" (( "(") (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)FUN_00019b89();\n    *puVar2 = 0;\n    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);\n    piVar6[1] = (int)puVar2;\n    piVar6 = *(int **)(iVar1 + -0x48);\n    *piVar6 = (int)puVar2;\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)FUN_00019b89();" (assignment_expression "puVar2 = (undefined4 *)FUN_00019b89()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_00019b89()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019b89()" (identifier "FUN_00019b89") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[1] = *(undefined4 *)(iVar1 + -0x24);" (assignment_expression "puVar2[1] = *(undefined4 *)(iVar1 + -0x24)" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + -0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x24)" (( "(") (binary_expression "iVar1 + -0x24" (identifier "iVar1") (+ "+") (number_literal "-0x24")) () ")"))))) (; ";")) (expression_statement "piVar6[1] = (int)puVar2;" (assignment_expression "piVar6[1] = (int)puVar2" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (; ";")) (expression_statement "piVar6 = *(int **)(iVar1 + -0x48);" (assignment_expression "piVar6 = *(int **)(iVar1 + -0x48)" (identifier "piVar6") (= "=") (pointer_expression "*(int **)(iVar1 + -0x48)" (* "*") (cast_expression "(int **)(iVar1 + -0x48)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + -0x48)" (( "(") (binary_expression "iVar1 + -0x48" (identifier "iVar1") (+ "+") (number_literal "-0x48")) () ")"))))) (; ";")) (expression_statement "*piVar6 = (int)puVar2;" (assignment_expression "*piVar6 = (int)puVar2" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (; ";")) (} "}"))) (if_statement "if (piVar6[2] != *(int *)(iVar1 + -0x28)) {\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }" (if "if") (parenthesized_expression "(piVar6[2] != *(int *)(iVar1 + -0x28))" (( "(") (binary_expression "piVar6[2] != *(int *)(iVar1 + -0x28)" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (!= "!=") (pointer_expression "*(int *)(iVar1 + -0x28)" (* "*") (cast_expression "(int *)(iVar1 + -0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x28)" (( "(") (binary_expression "iVar1 + -0x28" (identifier "iVar1") (+ "+") (number_literal "-0x28")) () ")"))))) () ")")) (compound_statement "{\n    piVar6[2] = *(int *)(iVar1 + -0x28);\n    iVar3 = FUN_000923d2();\n    uVar4 = FUN_00019ba3();\n    *(undefined4 *)(iVar3 + 8) = uVar4;\n    piVar6 = *(int **)(iVar1 + -0x48);\n  }" ({ "{") (expression_statement "piVar6[2] = *(int *)(iVar1 + -0x28);" (assignment_expression "piVar6[2] = *(int *)(iVar1 + -0x28)" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(int *)(iVar1 + -0x28)" (* "*") (cast_expression "(int *)(iVar1 + -0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x28)" (( "(") (binary_expression "iVar1 + -0x28" (identifier "iVar1") (+ "+") (number_literal "-0x28")) () ")"))))) (; ";")) (expression_statement "iVar3 = FUN_000923d2();" (assignment_expression "iVar3 = FUN_000923d2()" (identifier "iVar3") (= "=") (call_expression "FUN_000923d2()" (identifier "FUN_000923d2") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = FUN_00019ba3();" (assignment_expression "uVar4 = FUN_00019ba3()" (identifier "uVar4") (= "=") (call_expression "FUN_00019ba3()" (identifier "FUN_00019ba3") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 8) = uVar4;" (assignment_expression "*(undefined4 *)(iVar3 + 8) = uVar4" (pointer_expression "*(undefined4 *)(iVar3 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "piVar6 = *(int **)(iVar1 + -0x48);" (assignment_expression "piVar6 = *(int **)(iVar1 + -0x48)" (identifier "piVar6") (= "=") (pointer_expression "*(int **)(iVar1 + -0x48)" (* "*") (cast_expression "(int **)(iVar1 + -0x48)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + -0x48)" (( "(") (binary_expression "iVar1 + -0x48" (identifier "iVar1") (+ "+") (number_literal "-0x48")) () ")"))))) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)piVar6[1];" (assignment_expression "puVar2 = (undefined4 *)piVar6[1]" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)piVar6[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar5 = (undefined4 *)FUN_00019b89();" (assignment_expression "puVar5 = (undefined4 *)FUN_00019b89()" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)FUN_00019b89()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019b89()" (identifier "FUN_00019b89") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar5 = 0x2800;" (assignment_expression "*puVar5 = 0x2800" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0x2800")) (; ";")) (expression_statement "puVar5[1] = *(undefined4 *)(iVar1 + -0x24);" (assignment_expression "puVar5[1] = *(undefined4 *)(iVar1 + -0x24)" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + -0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x24)" (( "(") (binary_expression "iVar1 + -0x24" (identifier "iVar1") (+ "+") (number_literal "-0x24")) () ")"))))) (; ";")) (expression_statement "puVar2[4] = puVar5;" (assignment_expression "puVar2[4] = puVar5" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "*(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;" (assignment_expression "*(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5" (pointer_expression "*(undefined4 **)(*(int *)(iVar1 + -0x48) + 4)" (* "*") (cast_expression "(undefined4 **)(*(int *)(iVar1 + -0x48) + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar1 + -0x48) + 4)" (( "(") (binary_expression "*(int *)(iVar1 + -0x48) + 4" (pointer_expression "*(int *)(iVar1 + -0x48)" (* "*") (cast_expression "(int *)(iVar1 + -0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x48)" (( "(") (binary_expression "iVar1 + -0x48" (identifier "iVar1") (+ "+") (number_literal "-0x48")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "puVar5")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

node_conflict * __regparm3 var_2(uint32_t info)

{
  int *piVar1;
  char *unaff_EBX;
  
  piVar1 = *(int **)(ptr_to_globals[-1].line_buf + 0x38);
  if (*piVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    var_1(0x14);
  }
  if (piVar1[2] != *(int *)(ptr_to_globals[-1].line_buf + 0x58)) {
    piVar1[2] = *(int *)(ptr_to_globals[-1].line_buf + 0x58);
    var_2(0x300);
                    /* WARNING: Subroutine does not return */
    var_3(unaff_EBX);
  }
  *(uint32_t *)piVar1[1] = info;
                    /* WARNING: Subroutine does not return */
  var_1(0x14);
}


(translation_unit (ERROR (binary_expression left: (identifier) (ERROR (identifier)) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (ERROR (identifier)))))) (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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 (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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 (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (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: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (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: (number_literal))))) right: (identifier))) (return_statement (identifier))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined4 * __regparm3 MASKED(undefined4 param_1)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int *piVar6;
  
  iVar1 = DAT_000d1700;
  piVar6 = *(int **)(DAT_000d1700 + -0x48);
  if (*piVar6 == 0) {
    puVar2 = (undefined4 *)FUN_00019b89();
    *puVar2 = 0;
    puVar2[1] = *(undefined4 *)(iVar1 + -0x24);
    piVar6[1] = (int)puVar2;
    piVar6 = *(int **)(iVar1 + -0x48);
    *piVar6 = (int)puVar2;
  }
  if (piVar6[2] != *(int *)(iVar1 + -0x28)) {
    piVar6[2] = *(int *)(iVar1 + -0x28);
    iVar3 = MASKED();
    uVar4 = FUN_00019ba3();
    *(undefined4 *)(iVar3 + 8) = uVar4;
    piVar6 = *(int **)(iVar1 + -0x48);
  }
  puVar2 = (undefined4 *)piVar6[1];
  *puVar2 = param_1;
  puVar5 = (undefined4 *)FUN_00019b89();
  *puVar5 = 0x2800;
  puVar5[1] = *(undefined4 *)(iVar1 + -0x24);
  puVar2[4] = puVar5;
  *(undefined4 **)(*(int *)(iVar1 + -0x48) + 4) = puVar5;
  return puVar2;
}

