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

bfd_boolean debug_start_block(void *handle,bfd_vma addr)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  uint uVar6;
  
  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0x10) != 0)) {
    puVar3 = (undefined4 *)xmalloc(0x20);
    uVar6 = 0;
    *puVar3 = 0;
    puVar3[7] = 0;
    do {
      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));
    iVar1 = *(int *)((int)handle + 0x10);
    puVar3[5] = 0xffffffff;
    puVar3[6] = 0xffffffff;
    puVar3[1] = iVar1;
    puVar2 = *(undefined4 **)(iVar1 + 8);
    *(bfd_vma *)(puVar3 + 3) = addr;
    if (puVar2 == (undefined4 *)0x0) {
      puVar5 = (undefined4 *)(iVar1 + 8);
    }
    else {
      do {
        puVar5 = puVar2;
        puVar2 = (undefined4 *)*puVar5;
      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);
    }
    *puVar5 = puVar3;
    *(undefined4 **)((int)handle + 0x10) = puVar3;
    return 1;
  }
  uVar4 = dcgettext(0,"debug_start_block: no current block",5);
  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);
  return 0;
}



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

undefined4 FUN_0001f200(int param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  uint uVar6;
  
  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {
    puVar3 = (undefined4 *)xmalloc(0x20);
    uVar6 = 0;
    *puVar3 = 0;
    puVar3[7] = 0;
    do {
      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));
    iVar1 = *(int *)(param_1 + 0x10);
    puVar3[5] = 0xffffffff;
    puVar3[6] = 0xffffffff;
    puVar3[1] = iVar1;
    puVar3[3] = param_2;
    puVar2 = *(undefined4 **)(iVar1 + 8);
    puVar3[4] = param_3;
    if (puVar2 == (undefined4 *)0x0) {
      puVar5 = (undefined4 *)(iVar1 + 8);
    }
    else {
      do {
        puVar5 = puVar2;
        puVar2 = (undefined4 *)*puVar5;
      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);
    }
    *puVar5 = puVar3;
    *(undefined4 **)(param_1 + 0x10) = puVar3;
    return 1;
  }
  uVar4 = dcgettext(0,"debug_start_block: no current block",5);
  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);
  return 0;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x20df5
SUB ESP,0x1c
MOV EDX,dword ptr [EBP + 0x10]
MOV ESI,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EBP + 0xc]
MOV dword ptr [EBP + -0x1c],EDX
MOV EDX,dword ptr [ESI + 0x4]
MOV dword ptr [EBP + -0x20],EAX
TEST EDX,EDX
JZ 0x0001f2c0
MOV EAX,dword ptr [ESI + 0x10]
TEST EAX,EAX
JZ 0x0001f2c0
SUB ESP,0xc
XOR EDI,EDI
PUSH 0x20
CALL 0x000132e0
XOR EDX,EDX
LEA EBX,[EAX + 0x4]
MOV ECX,EAX
MOV dword ptr [EAX],0x0
AND EBX,0xfffffffc
MOV dword ptr [EAX + 0x1c],0x0
SUB ECX,EBX
ADD ECX,0x20
AND ECX,0xfffffffc
MOV dword ptr [EBX + EDX*0x1],EDI
ADD EDX,0x4
CMP EDX,ECX
JC 0x0001f264
MOV EDX,dword ptr [ESI + 0x10]
MOV ECX,dword ptr [EBP + -0x20]
MOV dword ptr [EAX + 0x14],0xffffffff
ADD ESP,0x10
MOV EBX,dword ptr [EBP + -0x1c]
MOV dword ptr [EAX + 0x18],0xffffffff
MOV dword ptr [EAX + 0x4],EDX
MOV dword ptr [EAX + 0xc],ECX
MOV ECX,dword ptr [EDX + 0x8]
MOV dword ptr [EAX + 0x10],EBX
TEST ECX,ECX
JNZ 0x0001f2a2
JMP 0x0001f2f8
MOV ECX,EDX
MOV EDX,dword ptr [ECX]
TEST EDX,EDX
JNZ 0x0001f2a0
MOV dword ptr [ECX],EAX
MOV dword ptr [ESI + 0x10],EAX
LEA ESP,[EBP + -0xc]
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffff3a70]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013200
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xffff532f]
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffa8]
PUSH dword ptr [EAX]
CALL 0x00013520
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ECX,[EDX + 0x8]
JMP 0x0001f2a8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001f200(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0001f200(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" type_identifier (function_declarator "FUN_0001f200(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (if_statement "if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0))" ( (binary_expression "(*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x20);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x20)" identifier = (cast_expression "(undefined4 *)xmalloc(0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[7] = 0;" (assignment_expression "puVar3[7] = 0" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = number_literal) ;) (do_statement "do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" * (cast_expression "(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (binary_expression "((uint)(puVar3 + 1) & 0xfffffffc) + uVar6" (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc))" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x20 - ((uint)(puVar3 + 1) & 0xfffffffc))" ( (binary_expression "0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "puVar3[5] = 0xffffffff;" (assignment_expression "puVar3[5] = 0xffffffff" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[6] = 0xffffffff;" (assignment_expression "puVar3[6] = 0xffffffff" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = iVar1;" (assignment_expression "puVar3[1] = iVar1" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[3] = param_2;" (assignment_expression "puVar3[3] = param_2" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 8)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 8)" * (cast_expression "(undefined4 **)(iVar1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "puVar3[4] = param_3;" (assignment_expression "puVar3[4] = param_3" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }" { (expression_statement "puVar5 = (undefined4 *)(iVar1 + 8);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + 8)" identifier = (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) }) (else_clause "else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" else (compound_statement "{\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" { (do_statement "do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);" do (compound_statement "{\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      }" { (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" identifier = identifier) ;) (expression_statement "puVar2 = (undefined4 *)*puVar5;" (assignment_expression "puVar2 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }) while (parenthesized_expression "((undefined4 *)*puVar5 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*puVar5 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (expression_statement "*puVar5 = puVar3;" (assignment_expression "*puVar5 = puVar3" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar4 = dcgettext(0,"debug_start_block: no current block",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_start_block: no current block",5)" identifier = (call_expression "dcgettext(0,"debug_start_block: no current block",5)" identifier (argument_list "(0,"debug_start_block: no current block",5)" ( number_literal , (string_literal ""debug_start_block: no current block"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean debug_start_block(void *handle,bfd_vma addr)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)((int)handle + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    *(bfd_vma *)(puVar3 + 3) = addr;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)((int)handle + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}\n\n" comment (function_definition "bfd_boolean debug_start_block(void *handle,bfd_vma addr)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)((int)handle + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    *(bfd_vma *)(puVar3 + 3) = addr;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)((int)handle + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" type_identifier (function_declarator "debug_start_block(void *handle,bfd_vma addr)" identifier (parameter_list "(void *handle,bfd_vma addr)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "bfd_vma addr" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)((int)handle + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    *(bfd_vma *)(puVar3 + 3) = addr;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)((int)handle + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (if_statement "if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)((int)handle + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    *(bfd_vma *)(puVar3 + 3) = addr;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)((int)handle + 0x10) = puVar3;\n    return 1;\n  }" if (parenthesized_expression "((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0x10) != 0))" ( (binary_expression "(*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0x10) != 0)" (parenthesized_expression "(*(int *)((int)handle + 4) != 0)" ( (binary_expression "*(int *)((int)handle + 4) != 0" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)((int)handle + 0x10) != 0)" ( (binary_expression "*(int *)((int)handle + 0x10) != 0" (pointer_expression "*(int *)((int)handle + 0x10)" * (cast_expression "(int *)((int)handle + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)((int)handle + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    *(bfd_vma *)(puVar3 + 3) = addr;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)((int)handle + 0x10) = puVar3;\n    return 1;\n  }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x20);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x20)" identifier = (cast_expression "(undefined4 *)xmalloc(0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[7] = 0;" (assignment_expression "puVar3[7] = 0" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = number_literal) ;) (do_statement "do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" * (cast_expression "(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (binary_expression "((uint)(puVar3 + 1) & 0xfffffffc) + uVar6" (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc))" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x20 - ((uint)(puVar3 + 1) & 0xfffffffc))" ( (binary_expression "0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "iVar1 = *(int *)((int)handle + 0x10);" (assignment_expression "iVar1 = *(int *)((int)handle + 0x10)" identifier = (pointer_expression "*(int *)((int)handle + 0x10)" * (cast_expression "(int *)((int)handle + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "puVar3[5] = 0xffffffff;" (assignment_expression "puVar3[5] = 0xffffffff" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[6] = 0xffffffff;" (assignment_expression "puVar3[6] = 0xffffffff" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = iVar1;" (assignment_expression "puVar3[1] = iVar1" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 8)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 8)" * (cast_expression "(undefined4 **)(iVar1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(bfd_vma *)(puVar3 + 3) = addr;" (assignment_expression "*(bfd_vma *)(puVar3 + 3) = addr" (pointer_expression "*(bfd_vma *)(puVar3 + 3)" * (cast_expression "(bfd_vma *)(puVar3 + 3)" ( (type_descriptor "bfd_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 3)" ( (binary_expression "puVar3 + 3" identifier + number_literal) )))) = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }" { (expression_statement "puVar5 = (undefined4 *)(iVar1 + 8);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + 8)" identifier = (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) }) (else_clause "else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" else (compound_statement "{\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" { (do_statement "do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);" do (compound_statement "{\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      }" { (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" identifier = identifier) ;) (expression_statement "puVar2 = (undefined4 *)*puVar5;" (assignment_expression "puVar2 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }) while (parenthesized_expression "((undefined4 *)*puVar5 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*puVar5 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (expression_statement "*puVar5 = puVar3;" (assignment_expression "*puVar5 = puVar3" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)((int)handle + 0x10) = puVar3;" (assignment_expression "*(undefined4 **)((int)handle + 0x10) = puVar3" (pointer_expression "*(undefined4 **)((int)handle + 0x10)" * (cast_expression "(undefined4 **)((int)handle + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar4 = dcgettext(0,"debug_start_block: no current block",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_start_block: no current block",5)" identifier = (call_expression "dcgettext(0,"debug_start_block: no current block",5)" identifier (argument_list "(0,"debug_start_block: no current block",5)" ( number_literal , (string_literal ""debug_start_block: no current block"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0001f200(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0001f200(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" type_identifier (function_declarator "FUN_0001f200(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (if_statement "if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0))" ( (binary_expression "(*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x20);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x20)" identifier = (cast_expression "(undefined4 *)xmalloc(0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[7] = 0;" (assignment_expression "puVar3[7] = 0" (subscript_expression "puVar3[7]" identifier [ number_literal ]) = number_literal) ;) (do_statement "do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" * (cast_expression "(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" ( (binary_expression "((uint)(puVar3 + 1) & 0xfffffffc) + uVar6" (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc))" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x20 - ((uint)(puVar3 + 1) & 0xfffffffc))" ( (binary_expression "0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "puVar3[5] = 0xffffffff;" (assignment_expression "puVar3[5] = 0xffffffff" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[6] = 0xffffffff;" (assignment_expression "puVar3[6] = 0xffffffff" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = iVar1;" (assignment_expression "puVar3[1] = iVar1" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[3] = param_2;" (assignment_expression "puVar3[3] = param_2" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 8)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 8)" * (cast_expression "(undefined4 **)(iVar1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "puVar3[4] = param_3;" (assignment_expression "puVar3[4] = param_3" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }" { (expression_statement "puVar5 = (undefined4 *)(iVar1 + 8);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + 8)" identifier = (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) }) (else_clause "else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" else (compound_statement "{\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" { (do_statement "do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);" do (compound_statement "{\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      }" { (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" identifier = identifier) ;) (expression_statement "puVar2 = (undefined4 *)*puVar5;" (assignment_expression "puVar2 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }) while (parenthesized_expression "((undefined4 *)*puVar5 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*puVar5 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (expression_statement "*puVar5 = puVar3;" (assignment_expression "*puVar5 = puVar3" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar4 = dcgettext(0,"debug_start_block: no current block",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_start_block: no current block",5)" identifier = (call_expression "dcgettext(0,"debug_start_block: no current block",5)" identifier (argument_list "(0,"debug_start_block: no current block",5)" ( number_literal , (string_literal ""debug_start_block: no current block"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))) ))) & LIT) ))) )) ;) (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001f200(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001f200(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_0001f200") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  \n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_start_block: no current block",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (if_statement "if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0))" (( "(") (binary_expression "(*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)" (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x20);\n    uVar6 = 0;\n    *puVar3 = 0;\n    puVar3[7] = 0;\n    do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));\n    iVar1 = *(int *)(param_1 + 0x10);\n    puVar3[5] = 0xffffffff;\n    puVar3[6] = 0xffffffff;\n    puVar3[1] = iVar1;\n    puVar3[3] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 8);\n    puVar3[4] = param_3;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    *(undefined4 **)(param_1 + 0x10) = puVar3;\n    return 1;\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)xmalloc(0x20);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x20)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)xmalloc(0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x20)" (identifier "xmalloc") (argument_list "(0x20)" (( "(") (number_literal "0x20") () ")"))))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[7] = 0;" (assignment_expression "puVar3[7] = 0" (subscript_expression "puVar3[7]" (identifier "puVar3") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));" (do "do") (compound_statement "{\n      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;\n      uVar6 = uVar6 + 4;\n    }" ({ "{") (expression_statement "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" (* "*") (cast_expression "(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6)" (( "(") (binary_expression "((uint)(puVar3 + 1) & 0xfffffffc) + uVar6" (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar3 + 1)" (( "(") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (identifier "uVar6")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 4" (identifier "uVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc))" (( "(") (binary_expression "uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc)" (identifier "uVar6") (< "<") (parenthesized_expression "((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc)" (( "(") (binary_expression "(int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc))" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (parenthesized_expression "(0x20 - ((uint)(puVar3 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)" (number_literal "0x20") (- "-") (parenthesized_expression "((uint)(puVar3 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar3 + 1) & 0xfffffffc" (call_expression "(uint)(puVar3 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar3 + 1)" (( "(") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "puVar3[5] = 0xffffffff;" (assignment_expression "puVar3[5] = 0xffffffff" (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar3[6] = 0xffffffff;" (assignment_expression "puVar3[6] = 0xffffffff" (subscript_expression "puVar3[6]" (identifier "puVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar3[1] = iVar1;" (assignment_expression "puVar3[1] = iVar1" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "puVar3[3] = param_2;" (assignment_expression "puVar3[3] = param_2" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 8)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "puVar3[4] = param_3;" (assignment_expression "puVar3[4] = param_3" (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar5 = (undefined4 *)(iVar1 + 8);\n    }" ({ "{") (expression_statement "puVar5 = (undefined4 *)(iVar1 + 8);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + 8)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" (else "else") (compound_statement "{\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" ({ "{") (do_statement "do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      }" ({ "{") (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" (identifier "puVar5") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = (undefined4 *)*puVar5;" (assignment_expression "puVar2 = (undefined4 *)*puVar5" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*puVar5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)*puVar5 != (undefined4 *)0x0)" (( "(") (binary_expression "(undefined4 *)*puVar5 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}")))) (expression_statement "*puVar5 = puVar3;" (assignment_expression "*puVar5 = puVar3" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar3;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar3" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar4 = dcgettext(0,"debug_start_block: no current block",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_start_block: no current block",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"debug_start_block: no current block",5)" (identifier "dcgettext") (argument_list "(0,"debug_start_block: no current block",5)" (( "(") (number_literal "0") (, ",") (string_literal ""debug_start_block: no current block"" (" """) (string_content "debug_start_block: no current block") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" (* "*") (cast_expression "(FILE **)PTR_stderr_0003ffa8" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0003ffa8"))) (, ",") (string_literal ""%s\n"" (" """) (string_content "%s") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(void *handle,type_2 addr)

{
  int var_4;
  type_3 *var_5;
  type_3 *var_2;
  type_3 uVar4;
  type_3 *puVar5;
  type_4 var_3;
  
  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0x10) != 0)) {
    var_2 = (type_3 *)var_1(0x20);
    var_3 = 0;
    *var_2 = 0;
    var_2[7] = 0;
    do {
      *(type_3 *)(((type_4)(var_2 + 1) & 0xfffffffc) + var_3) = 0;
      var_3 = var_3 + 4;
    } while (var_3 < ((int)var_2 + (0x20 - ((type_4)(var_2 + 1) & 0xfffffffc)) & 0xfffffffc));
    var_4 = *(int *)((int)handle + 0x10);
    var_2[5] = 0xffffffff;
    var_2[6] = 0xffffffff;
    var_2[1] = var_4;
    var_5 = *(type_3 **)(var_4 + 8);
    *(type_2 *)(var_2 + 3) = addr;
    if (var_5 == (type_3 *)0x0) {
      puVar5 = (type_3 *)(var_4 + 8);
    }
    else {
      do {
        puVar5 = var_5;
        var_5 = (type_3 *)*puVar5;
      } while ((type_3 *)*puVar5 != (type_3 *)0x0);
    }
    *puVar5 = var_2;
    *(type_3 **)((int)handle + 0x10) = var_2;
    return 1;
  }
  uVar4 = var_6(0,"debug_start_block: no current block",5);
  var_7(*(type_5 **)PTR_stderr_0003ffa8,"%s\n",uVar4);
  return 0;
}


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

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

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

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  uint uVar6;
  
  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0x10) != 0)) {
    puVar3 = (undefined4 *)xmalloc(0x20);
    uVar6 = 0;
    *puVar3 = 0;
    puVar3[7] = 0;
    do {
      *(undefined4 *)(((uint)(puVar3 + 1) & 0xfffffffc) + uVar6) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < ((int)puVar3 + (0x20 - ((uint)(puVar3 + 1) & 0xfffffffc)) & 0xfffffffc));
    iVar1 = *(int *)(param_1 + 0x10);
    puVar3[5] = 0xffffffff;
    puVar3[6] = 0xffffffff;
    puVar3[1] = iVar1;
    puVar3[3] = param_2;
    puVar2 = *(undefined4 **)(iVar1 + 8);
    puVar3[4] = param_3;
    if (puVar2 == (undefined4 *)0x0) {
      puVar5 = (undefined4 *)(iVar1 + 8);
    }
    else {
      do {
        puVar5 = puVar2;
        puVar2 = (undefined4 *)*puVar5;
      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);
    }
    *puVar5 = puVar3;
    *(undefined4 **)(param_1 + 0x10) = puVar3;
    return 1;
  }
  uVar4 = dcgettext(0,"debug_start_block: no current block",5);
  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);
  return 0;
}

