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

void i386_find_call(Sym *parent,bfd_vma p_lowpc,bfd_vma p_highpc)

{
  uint address;
  bfd_vma bVar1;
  int iVar2;
  Sym *child;
  char *pcVar3;
  uint local_30;
  
  if ((debug_level & 0x100U) != 0) {
    printf("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,p_lowpc,p_highpc);
  }
  if (p_highpc <= p_lowpc) {
    return;
  }
  do {
    while (pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space),
          *pcVar3 != -0x18) {
LAB_0001d838:
      p_lowpc = p_lowpc + 1;
      if (p_highpc == p_lowpc) {
        return;
      }
    }
    if ((debug_level & 0x100U) != 0) {
      printf("[findcall]\t0x%lx:call",p_lowpc);
    }
    bVar1 = (*core_bfd->xvec->bfd_getx32)(pcVar3 + 1);
    address = bVar1 + 5 + p_lowpc;
    iVar2 = hist_check_address(address);
    if ((iVar2 == 0) || (child = sym_lookup(&symtab,address), child == (Sym *)0x0)) {
      local_30 = debug_level & 0x100;
    }
    else {
      local_30 = debug_level & 0x100;
      if (child->addr == address) {
        if (local_30 != 0) {
          printf("\tdestpc 0x%lx (%s)\n",address,child->name);
        }
        arc_add(parent,child,0);
        goto LAB_0001d838;
      }
    }
    if (local_30 == 0) goto LAB_0001d838;
    p_lowpc = p_lowpc + 1;
    puts("\tbut it\'s a botch");
    if (p_highpc == p_lowpc) {
      return;
    }
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void FUN_0001d7e0(int param_1,uint param_2,uint param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  char *pcVar4;
  uint local_30;
  
  if ((_DAT_0002d158 & 0x100) != 0) {
    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);
  }
  if (param_3 <= param_2) {
    return;
  }
  do {
    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),
          *pcVar4 != -0x18) {
LAB_0001d838:
      param_2 = param_2 + 1;
      if (param_3 == param_2) {
        return;
      }
    }
    if ((_DAT_0002d158 & 0x100) != 0) {
      printf("[findcall]\t0x%lx:call",param_2);
    }
    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);
    iVar1 = iVar1 + 5 + param_2;
    iVar2 = FUN_0001b900(iVar1);
    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {
      local_30 = _DAT_0002d158 & 0x100;
    }
    else {
      local_30 = _DAT_0002d158 & 0x100;
      if (*piVar3 == iVar1) {
        if (local_30 != 0) {
          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);
        }
        FUN_00014750(param_1,piVar3,0);
        goto LAB_0001d838;
      }
    }
    if (local_30 == 0) goto LAB_0001d838;
    param_2 = param_2 + 1;
    puts("\tbut it\'s a botch");
    if (param_3 == param_2) {
      return;
    }
  } while( true );
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0xe817
SUB ESP,0x2c
MOV ESI,dword ptr [ESP + 0x44]
LEA EDX,[EBX + 0x1158]
TEST dword ptr [EDX],0x100
JNZ 0x0001d970
CMP ESI,dword ptr [ESP + 0x48]
JNC 0x0001d8d8
LEA EAX,[EBX + 0x1478]
LEA ECX,[EBX + 0x147c]
LEA EDI,[EBX + 0x1488]
MOV dword ptr [ESP + 0x14],EAX
LEA EAX,[EBX + 0x14a8]
MOV dword ptr [ESP + 0x18],EAX
JMP 0x0001d845
ADD ESI,0x1
CMP dword ptr [ESP + 0x48],ESI
JZ 0x0001d8d8
MOV EAX,dword ptr [EDI]
MOV EBP,ESI
SUB EBP,dword ptr [EAX + 0x1c]
ADD EBP,dword ptr [ECX]
CMP byte ptr [EBP],0xe8
JNZ 0x0001d838
TEST dword ptr [EDX],0x100
JNZ 0x0001d948
MOV dword ptr [ESP + 0x10],ECX
SUB ESP,0xc
ADD EBP,0x1
MOV dword ptr [ESP + 0x18],EDX
MOV EAX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x4]
PUSH EBP
CALL dword ptr [EAX + 0x28]
LEA EBP,[EAX + ESI*0x1 + 0x5]
MOV dword ptr [ESP],EBP
CALL 0x0001b900
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JNZ 0x0001d8e0
MOV EAX,dword ptr [EDX]
AND EAX,0x100
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x0001d838
MOV dword ptr [ESP + 0x10],ECX
LEA EAX,[EBX + 0xffff744b]
SUB ESP,0xc
ADD ESI,0x1
MOV dword ptr [ESP + 0x18],EDX
PUSH EAX
CALL 0x00012270
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0xc]
CMP dword ptr [ESP + 0x48],ESI
JNZ 0x0001d845
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EBP
PUSH dword ptr [ESP + 0x24]
CALL 0x0001cac0
MOV dword ptr [ESP + 0x2c],EAX
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
MOV ECX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDX]
JZ 0x0001d898
AND EAX,0x100
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x1c]
CMP dword ptr [EAX],EBP
JNZ 0x0001d8a1
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x0001d998
MOV dword ptr [ESP + 0x10],ECX
SUB ESP,0x4
MOV dword ptr [ESP + 0x10],EDX
PUSH 0x0
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x4c]
CALL 0x00014750
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x10]
JMP 0x0001d838
MOV dword ptr [ESP + 0x10],ECX
LEA EAX,[EBX + 0xffff7193]
SUB ESP,0x8
MOV dword ptr [ESP + 0x14],EDX
PUSH ESI
PUSH EAX
CALL 0x00012070
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x0001d860
MOV dword ptr [ESP + 0xc],EDX
PUSH dword ptr [ESP + 0x48]
PUSH ESI
MOV EAX,dword ptr [ESP + 0x48]
PUSH dword ptr [EAX + 0x8]
LEA EAX,[EBX + 0xffff7174]
PUSH EAX
CALL 0x00012070
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x0001d808
MOV dword ptr [ESP + 0x10],ECX
SUB ESP,0x4
MOV dword ptr [ESP + 0x10],EDX
MOV EAX,dword ptr [ESP + 0x20]
PUSH dword ptr [EAX + 0x8]
LEA EAX,[EBX + 0xffff71a9]
PUSH EBP
PUSH EAX
CALL 0x00012070
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x0001d91b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid FUN_0001d7e0(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  uint local_30;\n  \n  if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }\n  if (param_3 <= param_2) {\n    return;\n  }\n  do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );\n}\n\n" comment comment (function_definition "void FUN_0001d7e0(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  uint local_30;\n  \n  if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }\n  if (param_3 <= param_2) {\n    return;\n  }\n  do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0001d7e0(int param_1,uint param_2,uint param_3)" identifier (parameter_list "(int param_1,uint param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  uint local_30;\n  \n  if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }\n  if (param_3 <= param_2) {\n    return;\n  }\n  do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (if_statement "if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }" if (parenthesized_expression "((_DAT_0002d158 & 0x100) != 0)" ( (binary_expression "(_DAT_0002d158 & 0x100) != 0" (parenthesized_expression "(_DAT_0002d158 & 0x100)" ( (binary_expression "_DAT_0002d158 & 0x100" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }" { (expression_statement "printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);" (call_expression "printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3)" identifier (argument_list "("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3)" ( (string_literal ""[findcall] %s: 0x%lx to 0x%lx\n"" " string_content escape_sequence ") , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , identifier ))) ;) })) (if_statement "if (param_3 <= param_2) {\n    return;\n  }" if (parenthesized_expression "(param_3 <= param_2)" ( (binary_expression "param_3 <= param_2" identifier <= identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  }" { (while_statement "while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }" while (parenthesized_expression "(pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18)" ( (comma_expression "pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18" (assignment_expression "pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c)" identifier = (cast_expression "(char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c)" ( (binary_expression "(param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c" (parenthesized_expression "(param_2 - *(int *)(DAT_0002d488 + 0x1c))" ( (binary_expression "param_2 - *(int *)(DAT_0002d488 + 0x1c)" identifier - (pointer_expression "*(int *)(DAT_0002d488 + 0x1c)" * (cast_expression "(int *)(DAT_0002d488 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d488 + 0x1c)" ( (binary_expression "DAT_0002d488 + 0x1c" identifier + number_literal) ))))) )) + identifier) )))) , (binary_expression "*pcVar4 != -0x18" (pointer_expression "*pcVar4" * identifier) != number_literal)) )) (compound_statement "{\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }" { (labeled_statement "LAB_0001d838:\n      param_2 = param_2 + 1;" statement_identifier : (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;)) (if_statement "if (param_3 == param_2) {\n        return;\n      }" if (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (if_statement "if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }" if (parenthesized_expression "((_DAT_0002d158 & 0x100) != 0)" ( (binary_expression "(_DAT_0002d158 & 0x100) != 0" (parenthesized_expression "(_DAT_0002d158 & 0x100)" ( (binary_expression "_DAT_0002d158 & 0x100" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      printf("[findcall]\t0x%lx:call",param_2);\n    }" { (expression_statement "printf("[findcall]\t0x%lx:call",param_2);" (call_expression "printf("[findcall]\t0x%lx:call",param_2)" identifier (argument_list "("[findcall]\t0x%lx:call",param_2)" ( (string_literal ""[findcall]\t0x%lx:call"" " string_content escape_sequence string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);" (assignment_expression "iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1)" identifier = (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x28)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x28)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x28" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(pcVar4 + 1)" ( (binary_expression "pcVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar1 = iVar1 + 5 + param_2;" (assignment_expression "iVar1 = iVar1 + 5 + param_2" identifier = (binary_expression "iVar1 + 5 + param_2" (binary_expression "iVar1 + 5" identifier + number_literal) + identifier)) ;) (expression_statement "iVar2 = FUN_0001b900(iVar1);" (assignment_expression "iVar2 = FUN_0001b900(iVar1)" identifier = (call_expression "FUN_0001b900(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }" if (parenthesized_expression "((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0))" ( (binary_expression "(iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)" ( (comma_expression "piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0" (assignment_expression "piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1)" identifier = (cast_expression "(int *)FUN_0001cac0(&DAT_0002d4a8,iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001cac0(&DAT_0002d4a8,iVar1)" identifier (argument_list "(&DAT_0002d4a8,iVar1)" ( (pointer_expression "&DAT_0002d4a8" & identifier) , identifier ))))) , (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      local_30 = _DAT_0002d158 & 0x100;\n    }" { (expression_statement "local_30 = _DAT_0002d158 & 0x100;" (assignment_expression "local_30 = _DAT_0002d158 & 0x100" identifier = (binary_expression "_DAT_0002d158 & 0x100" identifier & number_literal)) ;) }) (else_clause "else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }" else (compound_statement "{\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }" { (expression_statement "local_30 = _DAT_0002d158 & 0x100;" (assignment_expression "local_30 = _DAT_0002d158 & 0x100" identifier = (binary_expression "_DAT_0002d158 & 0x100" identifier & number_literal)) ;) (if_statement "if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }" if (parenthesized_expression "(*piVar3 == iVar1)" ( (binary_expression "*piVar3 == iVar1" (pointer_expression "*piVar3" * identifier) == identifier) )) (compound_statement "{\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }" { (if_statement "if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }" { (expression_statement "printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);" (call_expression "printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2])" identifier (argument_list "("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2])" ( (string_literal ""\tdestpc 0x%lx (%s)\n"" " escape_sequence string_content escape_sequence ") , identifier , (subscript_expression "piVar3[2]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_00014750(param_1,piVar3,0);" (call_expression "FUN_00014750(param_1,piVar3,0)" identifier (argument_list "(param_1,piVar3,0)" ( identifier , identifier , number_literal ))) ;) (goto_statement "goto LAB_0001d838;" goto statement_identifier ;) })) }))) (if_statement "if (local_30 == 0) goto LAB_0001d838;" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001d838;" goto statement_identifier ;)) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "puts("\tbut it\'s a botch");" (call_expression "puts("\tbut it\'s a botch")" identifier (argument_list "("\tbut it\'s a botch")" ( (string_literal ""\tbut it\'s a botch"" " escape_sequence string_content escape_sequence string_content ") ))) ;) (if_statement "if (param_3 == param_2) {\n      return;\n    }" if (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid i386_find_call(Sym *parent,bfd_vma p_lowpc,bfd_vma p_highpc)\n\n{\n  uint address;\n  bfd_vma bVar1;\n  int iVar2;\n  Sym *child;\n  char *pcVar3;\n  uint local_30;\n  \n  if ((debug_level & 0x100U) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,p_lowpc,p_highpc);\n  }\n  if (p_highpc <= p_lowpc) {\n    return;\n  }\n  do {\n    while (pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space),\n          *pcVar3 != -0x18) {\nLAB_0001d838:\n      p_lowpc = p_lowpc + 1;\n      if (p_highpc == p_lowpc) {\n        return;\n      }\n    }\n    if ((debug_level & 0x100U) != 0) {\n      printf("[findcall]\t0x%lx:call",p_lowpc);\n    }\n    bVar1 = (*core_bfd->xvec->bfd_getx32)(pcVar3 + 1);\n    address = bVar1 + 5 + p_lowpc;\n    iVar2 = hist_check_address(address);\n    if ((iVar2 == 0) || (child = sym_lookup(&symtab,address), child == (Sym *)0x0)) {\n      local_30 = debug_level & 0x100;\n    }\n    else {\n      local_30 = debug_level & 0x100;\n      if (child->addr == address) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    p_lowpc = p_lowpc + 1;\n    puts("\tbut it\'s a botch");\n    if (p_highpc == p_lowpc) {\n      return;\n    }\n  } while( true );\n}\n\n" comment comment (function_definition "void i386_find_call(Sym *parent,bfd_vma p_lowpc,bfd_vma p_highpc)\n\n{\n  uint address;\n  bfd_vma bVar1;\n  int iVar2;\n  Sym *child;\n  char *pcVar3;\n  uint local_30;\n  \n  if ((debug_level & 0x100U) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,p_lowpc,p_highpc);\n  }\n  if (p_highpc <= p_lowpc) {\n    return;\n  }\n  do {\n    while (pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space),\n          *pcVar3 != -0x18) {\nLAB_0001d838:\n      p_lowpc = p_lowpc + 1;\n      if (p_highpc == p_lowpc) {\n        return;\n      }\n    }\n    if ((debug_level & 0x100U) != 0) {\n      printf("[findcall]\t0x%lx:call",p_lowpc);\n    }\n    bVar1 = (*core_bfd->xvec->bfd_getx32)(pcVar3 + 1);\n    address = bVar1 + 5 + p_lowpc;\n    iVar2 = hist_check_address(address);\n    if ((iVar2 == 0) || (child = sym_lookup(&symtab,address), child == (Sym *)0x0)) {\n      local_30 = debug_level & 0x100;\n    }\n    else {\n      local_30 = debug_level & 0x100;\n      if (child->addr == address) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    p_lowpc = p_lowpc + 1;\n    puts("\tbut it\'s a botch");\n    if (p_highpc == p_lowpc) {\n      return;\n    }\n  } while( true );\n}" primitive_type (function_declarator "i386_find_call(Sym *parent,bfd_vma p_lowpc,bfd_vma p_highpc)" identifier (parameter_list "(Sym *parent,bfd_vma p_lowpc,bfd_vma p_highpc)" ( (parameter_declaration "Sym *parent" type_identifier (pointer_declarator "*parent" * identifier)) , (parameter_declaration "bfd_vma p_lowpc" type_identifier identifier) , (parameter_declaration "bfd_vma p_highpc" type_identifier identifier) ))) (compound_statement "{\n  uint address;\n  bfd_vma bVar1;\n  int iVar2;\n  Sym *child;\n  char *pcVar3;\n  uint local_30;\n  \n  if ((debug_level & 0x100U) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,p_lowpc,p_highpc);\n  }\n  if (p_highpc <= p_lowpc) {\n    return;\n  }\n  do {\n    while (pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space),\n          *pcVar3 != -0x18) {\nLAB_0001d838:\n      p_lowpc = p_lowpc + 1;\n      if (p_highpc == p_lowpc) {\n        return;\n      }\n    }\n    if ((debug_level & 0x100U) != 0) {\n      printf("[findcall]\t0x%lx:call",p_lowpc);\n    }\n    bVar1 = (*core_bfd->xvec->bfd_getx32)(pcVar3 + 1);\n    address = bVar1 + 5 + p_lowpc;\n    iVar2 = hist_check_address(address);\n    if ((iVar2 == 0) || (child = sym_lookup(&symtab,address), child == (Sym *)0x0)) {\n      local_30 = debug_level & 0x100;\n    }\n    else {\n      local_30 = debug_level & 0x100;\n      if (child->addr == address) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    p_lowpc = p_lowpc + 1;\n    puts("\tbut it\'s a botch");\n    if (p_highpc == p_lowpc) {\n      return;\n    }\n  } while( true );\n}" { (declaration "uint address;" type_identifier identifier ;) (declaration "bfd_vma bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Sym *child;" type_identifier (pointer_declarator "*child" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (if_statement "if ((debug_level & 0x100U) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,p_lowpc,p_highpc);\n  }" if (parenthesized_expression "((debug_level & 0x100U) != 0)" ( (binary_expression "(debug_level & 0x100U) != 0" (parenthesized_expression "(debug_level & 0x100U)" ( (binary_expression "debug_level & 0x100U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,p_lowpc,p_highpc);\n  }" { (expression_statement "printf("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,p_lowpc,p_highpc);" (call_expression "printf("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,p_lowpc,p_highpc)" identifier (argument_list "("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,p_lowpc,p_highpc)" ( (string_literal ""[findcall] %s: 0x%lx to 0x%lx\n"" " string_content escape_sequence ") , (field_expression "parent->name" identifier -> field_identifier) , identifier , identifier ))) ;) })) (if_statement "if (p_highpc <= p_lowpc) {\n    return;\n  }" if (parenthesized_expression "(p_highpc <= p_lowpc)" ( (binary_expression "p_highpc <= p_lowpc" identifier <= identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    while (pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space),\n          *pcVar3 != -0x18) {\nLAB_0001d838:\n      p_lowpc = p_lowpc + 1;\n      if (p_highpc == p_lowpc) {\n        return;\n      }\n    }\n    if ((debug_level & 0x100U) != 0) {\n      printf("[findcall]\t0x%lx:call",p_lowpc);\n    }\n    bVar1 = (*core_bfd->xvec->bfd_getx32)(pcVar3 + 1);\n    address = bVar1 + 5 + p_lowpc;\n    iVar2 = hist_check_address(address);\n    if ((iVar2 == 0) || (child = sym_lookup(&symtab,address), child == (Sym *)0x0)) {\n      local_30 = debug_level & 0x100;\n    }\n    else {\n      local_30 = debug_level & 0x100;\n      if (child->addr == address) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    p_lowpc = p_lowpc + 1;\n    puts("\tbut it\'s a botch");\n    if (p_highpc == p_lowpc) {\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    while (pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space),\n          *pcVar3 != -0x18) {\nLAB_0001d838:\n      p_lowpc = p_lowpc + 1;\n      if (p_highpc == p_lowpc) {\n        return;\n      }\n    }\n    if ((debug_level & 0x100U) != 0) {\n      printf("[findcall]\t0x%lx:call",p_lowpc);\n    }\n    bVar1 = (*core_bfd->xvec->bfd_getx32)(pcVar3 + 1);\n    address = bVar1 + 5 + p_lowpc;\n    iVar2 = hist_check_address(address);\n    if ((iVar2 == 0) || (child = sym_lookup(&symtab,address), child == (Sym *)0x0)) {\n      local_30 = debug_level & 0x100;\n    }\n    else {\n      local_30 = debug_level & 0x100;\n      if (child->addr == address) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    p_lowpc = p_lowpc + 1;\n    puts("\tbut it\'s a botch");\n    if (p_highpc == p_lowpc) {\n      return;\n    }\n  }" { (while_statement "while (pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space),\n          *pcVar3 != -0x18) {\nLAB_0001d838:\n      p_lowpc = p_lowpc + 1;\n      if (p_highpc == p_lowpc) {\n        return;\n      }\n    }" while (parenthesized_expression "(pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space),\n          *pcVar3 != -0x18)" ( (comma_expression "pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space),\n          *pcVar3 != -0x18" (assignment_expression "pcVar3 = (char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space)" identifier = (cast_expression "(char *)((p_lowpc - core_text_sect->vma) + (int)core_text_space)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((p_lowpc - core_text_sect->vma) + (int)core_text_space)" ( (binary_expression "(p_lowpc - core_text_sect->vma) + (int)core_text_space" (parenthesized_expression "(p_lowpc - core_text_sect->vma)" ( (binary_expression "p_lowpc - core_text_sect->vma" identifier - (field_expression "core_text_sect->vma" identifier -> field_identifier)) )) + (cast_expression "(int)core_text_space" ( (type_descriptor "int" primitive_type) ) identifier)) )))) , (binary_expression "*pcVar3 != -0x18" (pointer_expression "*pcVar3" * identifier) != number_literal)) )) (compound_statement "{\nLAB_0001d838:\n      p_lowpc = p_lowpc + 1;\n      if (p_highpc == p_lowpc) {\n        return;\n      }\n    }" { (labeled_statement "LAB_0001d838:\n      p_lowpc = p_lowpc + 1;" statement_identifier : (expression_statement "p_lowpc = p_lowpc + 1;" (assignment_expression "p_lowpc = p_lowpc + 1" identifier = (binary_expression "p_lowpc + 1" identifier + number_literal)) ;)) (if_statement "if (p_highpc == p_lowpc) {\n        return;\n      }" if (parenthesized_expression "(p_highpc == p_lowpc)" ( (binary_expression "p_highpc == p_lowpc" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (if_statement "if ((debug_level & 0x100U) != 0) {\n      printf("[findcall]\t0x%lx:call",p_lowpc);\n    }" if (parenthesized_expression "((debug_level & 0x100U) != 0)" ( (binary_expression "(debug_level & 0x100U) != 0" (parenthesized_expression "(debug_level & 0x100U)" ( (binary_expression "debug_level & 0x100U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      printf("[findcall]\t0x%lx:call",p_lowpc);\n    }" { (expression_statement "printf("[findcall]\t0x%lx:call",p_lowpc);" (call_expression "printf("[findcall]\t0x%lx:call",p_lowpc)" identifier (argument_list "("[findcall]\t0x%lx:call",p_lowpc)" ( (string_literal ""[findcall]\t0x%lx:call"" " string_content escape_sequence string_content ") , identifier ))) ;) })) (expression_statement "bVar1 = (*core_bfd->xvec->bfd_getx32)(pcVar3 + 1);" (assignment_expression "bVar1 = (*core_bfd->xvec->bfd_getx32)(pcVar3 + 1)" identifier = (call_expression "(*core_bfd->xvec->bfd_getx32)(pcVar3 + 1)" (parenthesized_expression "(*core_bfd->xvec->bfd_getx32)" ( (pointer_expression "*core_bfd->xvec->bfd_getx32" * (field_expression "core_bfd->xvec->bfd_getx32" (field_expression "core_bfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(pcVar3 + 1)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "address = bVar1 + 5 + p_lowpc;" (assignment_expression "address = bVar1 + 5 + p_lowpc" identifier = (binary_expression "bVar1 + 5 + p_lowpc" (binary_expression "bVar1 + 5" identifier + number_literal) + identifier)) ;) (expression_statement "iVar2 = hist_check_address(address);" (assignment_expression "iVar2 = hist_check_address(address)" identifier = (call_expression "hist_check_address(address)" identifier (argument_list "(address)" ( identifier )))) ;) (if_statement "if ((iVar2 == 0) || (child = sym_lookup(&symtab,address), child == (Sym *)0x0)) {\n      local_30 = debug_level & 0x100;\n    }\n    else {\n      local_30 = debug_level & 0x100;\n      if (child->addr == address) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }\n    }" if (parenthesized_expression "((iVar2 == 0) || (child = sym_lookup(&symtab,address), child == (Sym *)0x0))" ( (binary_expression "(iVar2 == 0) || (child = sym_lookup(&symtab,address), child == (Sym *)0x0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(child = sym_lookup(&symtab,address), child == (Sym *)0x0)" ( (comma_expression "child = sym_lookup(&symtab,address), child == (Sym *)0x0" (assignment_expression "child = sym_lookup(&symtab,address)" identifier = (call_expression "sym_lookup(&symtab,address)" identifier (argument_list "(&symtab,address)" ( (pointer_expression "&symtab" & identifier) , identifier )))) , (binary_expression "child == (Sym *)0x0" identifier == (cast_expression "(Sym *)0x0" ( (type_descriptor "Sym *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      local_30 = debug_level & 0x100;\n    }" { (expression_statement "local_30 = debug_level & 0x100;" (assignment_expression "local_30 = debug_level & 0x100" identifier = (binary_expression "debug_level & 0x100" identifier & number_literal)) ;) }) (else_clause "else {\n      local_30 = debug_level & 0x100;\n      if (child->addr == address) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }\n    }" else (compound_statement "{\n      local_30 = debug_level & 0x100;\n      if (child->addr == address) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }\n    }" { (expression_statement "local_30 = debug_level & 0x100;" (assignment_expression "local_30 = debug_level & 0x100" identifier = (binary_expression "debug_level & 0x100" identifier & number_literal)) ;) (if_statement "if (child->addr == address) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }" if (parenthesized_expression "(child->addr == address)" ( (binary_expression "child->addr == address" (field_expression "child->addr" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }\n        arc_add(parent,child,0);\n        goto LAB_0001d838;\n      }" { (if_statement "if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n          printf("\tdestpc 0x%lx (%s)\n",address,child->name);\n        }" { (expression_statement "printf("\tdestpc 0x%lx (%s)\n",address,child->name);" (call_expression "printf("\tdestpc 0x%lx (%s)\n",address,child->name)" identifier (argument_list "("\tdestpc 0x%lx (%s)\n",address,child->name)" ( (string_literal ""\tdestpc 0x%lx (%s)\n"" " escape_sequence string_content escape_sequence ") , identifier , (field_expression "child->name" identifier -> field_identifier) ))) ;) })) (expression_statement "arc_add(parent,child,0);" (call_expression "arc_add(parent,child,0)" identifier (argument_list "(parent,child,0)" ( identifier , identifier , number_literal ))) ;) (goto_statement "goto LAB_0001d838;" goto statement_identifier ;) })) }))) (if_statement "if (local_30 == 0) goto LAB_0001d838;" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001d838;" goto statement_identifier ;)) (expression_statement "p_lowpc = p_lowpc + 1;" (assignment_expression "p_lowpc = p_lowpc + 1" identifier = (binary_expression "p_lowpc + 1" identifier + number_literal)) ;) (expression_statement "puts("\tbut it\'s a botch");" (call_expression "puts("\tbut it\'s a botch")" identifier (argument_list "("\tbut it\'s a botch")" ( (string_literal ""\tbut it\'s a botch"" " escape_sequence string_content escape_sequence string_content ") ))) ;) (if_statement "if (p_highpc == p_lowpc) {\n      return;\n    }" if (parenthesized_expression "(p_highpc == p_lowpc)" ( (binary_expression "p_highpc == p_lowpc" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_0001d7e0(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  uint local_30;\n  \n  if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }\n  if (param_3 <= param_2) {\n    return;\n  }\n  do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_0001d7e0(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  uint local_30;\n  \n  if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }\n  if (param_3 <= param_2) {\n    return;\n  }\n  do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_0001d7e0(int param_1,uint param_2,uint param_3)" identifier (parameter_list "(int param_1,uint param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  uint local_30;\n  \n  if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }\n  if (param_3 <= param_2) {\n    return;\n  }\n  do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (if_statement "if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }" if (parenthesized_expression "((_DAT_0002d158 & 0x100) != 0)" ( (binary_expression "(_DAT_0002d158 & 0x100) != 0" (parenthesized_expression "(_DAT_0002d158 & 0x100)" ( (binary_expression "_DAT_0002d158 & 0x100" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }" { (expression_statement "printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);" (call_expression "printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3)" identifier (argument_list "("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3)" ( (string_literal ""[findcall] %s: 0x%lx to 0x%lx\n"" " string_content escape_sequence ") , (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier , identifier ))) ;) })) (if_statement "if (param_3 <= param_2) {\n    return;\n  }" if (parenthesized_expression "(param_3 <= param_2)" ( (binary_expression "param_3 <= param_2" identifier <= identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  }" { (while_statement "while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }" while (parenthesized_expression "(pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18)" ( (comma_expression "pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18" (assignment_expression "pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c)" identifier = (cast_expression "(char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c)" ( (binary_expression "(param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c" (parenthesized_expression "(param_2 - *(int *)(DAT_0002d488 + 0x1c))" ( (binary_expression "param_2 - *(int *)(DAT_0002d488 + 0x1c)" identifier - (pointer_expression "*(int *)(DAT_0002d488 + 0x1c)" * (cast_expression "(int *)(DAT_0002d488 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d488 + 0x1c)" ( (binary_expression "DAT_0002d488 + 0x1c" identifier + number_literal) ))))) )) + identifier) )))) , (binary_expression "*pcVar4 != -0x18" (pointer_expression "*pcVar4" * identifier) != number_literal)) )) (compound_statement "{\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }" { (labeled_statement "LAB_0001d838:\n      param_2 = param_2 + 1;" statement_identifier : (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;)) (if_statement "if (param_3 == param_2) {\n        return;\n      }" if (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (if_statement "if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }" if (parenthesized_expression "((_DAT_0002d158 & 0x100) != 0)" ( (binary_expression "(_DAT_0002d158 & 0x100) != 0" (parenthesized_expression "(_DAT_0002d158 & 0x100)" ( (binary_expression "_DAT_0002d158 & 0x100" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      printf("[findcall]\t0x%lx:call",param_2);\n    }" { (expression_statement "printf("[findcall]\t0x%lx:call",param_2);" (call_expression "printf("[findcall]\t0x%lx:call",param_2)" identifier (argument_list "("[findcall]\t0x%lx:call",param_2)" ( (string_literal ""[findcall]\t0x%lx:call"" " string_content escape_sequence string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);" (assignment_expression "iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1)" identifier = (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x28)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x28)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x28" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(pcVar4 + 1)" ( (binary_expression "pcVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar1 = iVar1 + 5 + param_2;" (assignment_expression "iVar1 = iVar1 + 5 + param_2" identifier = (binary_expression "iVar1 + 5 + param_2" (binary_expression "iVar1 + 5" identifier + number_literal) + identifier)) ;) (expression_statement "iVar2 = FUN_0001b900(iVar1);" (assignment_expression "iVar2 = FUN_0001b900(iVar1)" identifier = (call_expression "FUN_0001b900(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }" if (parenthesized_expression "((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0))" ( (binary_expression "(iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)" ( (comma_expression "piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0" (assignment_expression "piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1)" identifier = (cast_expression "(int *)FUN_0001cac0(&DAT_0002d4a8,iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001cac0(&DAT_0002d4a8,iVar1)" identifier (argument_list "(&DAT_0002d4a8,iVar1)" ( (pointer_expression "&DAT_0002d4a8" & identifier) , identifier ))))) , (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      local_30 = _DAT_0002d158 & 0x100;\n    }" { (expression_statement "local_30 = _DAT_0002d158 & 0x100;" (assignment_expression "local_30 = _DAT_0002d158 & 0x100" identifier = (binary_expression "_DAT_0002d158 & 0x100" identifier & number_literal)) ;) }) (else_clause "else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }" else (compound_statement "{\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }" { (expression_statement "local_30 = _DAT_0002d158 & 0x100;" (assignment_expression "local_30 = _DAT_0002d158 & 0x100" identifier = (binary_expression "_DAT_0002d158 & 0x100" identifier & number_literal)) ;) (if_statement "if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }" if (parenthesized_expression "(*piVar3 == iVar1)" ( (binary_expression "*piVar3 == iVar1" (pointer_expression "*piVar3" * identifier) == identifier) )) (compound_statement "{\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }" { (if_statement "if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }" { (expression_statement "printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);" (call_expression "printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2])" identifier (argument_list "("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2])" ( (string_literal ""\tdestpc 0x%lx (%s)\n"" " escape_sequence string_content escape_sequence ") , identifier , (subscript_expression "piVar3[2]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_00014750(param_1,piVar3,0);" (call_expression "FUN_00014750(param_1,piVar3,0)" identifier (argument_list "(param_1,piVar3,0)" ( identifier , identifier , number_literal ))) ;) (goto_statement "goto LAB_0001d838;" goto statement_identifier ;) })) }))) (if_statement "if (local_30 == 0) goto LAB_0001d838;" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0001d838;" goto statement_identifier ;)) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "puts("\tbut it\'s a botch");" (call_expression "puts("\tbut it\'s a botch")" identifier (argument_list "("\tbut it\'s a botch")" ( (string_literal ""\tbut it\'s a botch"" " escape_sequence string_content escape_sequence string_content ") ))) ;) (if_statement "if (param_3 == param_2) {\n      return;\n    }" if (parenthesized_expression "(param_3 == param_2)" ( (binary_expression "param_3 == param_2" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) + IDENT) )))) , (binary_expression (pointer_expression * IDENT) != LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_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) ))))) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content escape_sequence ") , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (goto_statement goto statement_identifier ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content escape_sequence string_content ") ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_0001d7e0(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  uint local_30;\n  \n  if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }\n  if (param_3 <= param_2) {\n    return;\n  }\n  do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_0001d7e0(int param_1,uint param_2,uint param_3)" (identifier "FUN_0001d7e0") (parameter_list "(int param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  uint local_30;\n  \n  if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }\n  if (param_3 <= param_2) {\n    return;\n  }\n  do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (if_statement "if ((_DAT_0002d158 & 0x100) != 0) {\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }" (if "if") (parenthesized_expression "((_DAT_0002d158 & 0x100) != 0)" (( "(") (binary_expression "(_DAT_0002d158 & 0x100) != 0" (parenthesized_expression "(_DAT_0002d158 & 0x100)" (( "(") (binary_expression "_DAT_0002d158 & 0x100" (identifier "_DAT_0002d158") (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);\n  }" ({ "{") (expression_statement "printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);" (call_expression "printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3)" (identifier "printf") (argument_list "("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3)" (( "(") (string_literal ""[findcall] %s: 0x%lx to 0x%lx\n"" (" """) (string_content "[findcall] %s: 0x%lx to 0x%lx") (escape_sequence "\n") (" """)) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 <= param_2) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 <= param_2)" (( "(") (binary_expression "param_3 <= param_2" (identifier "param_3") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (do_statement "do {\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }\n    if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }\n    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);\n    iVar1 = iVar1 + 5 + param_2;\n    iVar2 = FUN_0001b900(iVar1);\n    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }\n    if (local_30 == 0) goto LAB_0001d838;\n    param_2 = param_2 + 1;\n    puts("\tbut it\'s a botch");\n    if (param_3 == param_2) {\n      return;\n    }\n  }" ({ "{") (while_statement "while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18) {\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "(pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18)" (( "(") (comma_expression "pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),\n          *pcVar4 != -0x18" (assignment_expression "pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c)" (identifier "pcVar4") (= "=") (cast_expression "(char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c)" (( "(") (binary_expression "(param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c" (parenthesized_expression "(param_2 - *(int *)(DAT_0002d488 + 0x1c))" (( "(") (binary_expression "param_2 - *(int *)(DAT_0002d488 + 0x1c)" (identifier "param_2") (- "-") (pointer_expression "*(int *)(DAT_0002d488 + 0x1c)" (* "*") (cast_expression "(int *)(DAT_0002d488 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0002d488 + 0x1c)" (( "(") (binary_expression "DAT_0002d488 + 0x1c" (identifier "DAT_0002d488") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (+ "+") (identifier "DAT_0002d47c")) () ")")))) (, ",") (binary_expression "*pcVar4 != -0x18" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (!= "!=") (number_literal "-0x18"))) () ")")) (compound_statement "{\nLAB_0001d838:\n      param_2 = param_2 + 1;\n      if (param_3 == param_2) {\n        return;\n      }\n    }" ({ "{") (labeled_statement "LAB_0001d838:\n      param_2 = param_2 + 1;" (statement_identifier "LAB_0001d838") (: ":") (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";"))) (if_statement "if (param_3 == param_2) {\n        return;\n      }" (if "if") (parenthesized_expression "(param_3 == param_2)" (( "(") (binary_expression "param_3 == param_2" (identifier "param_3") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (if_statement "if ((_DAT_0002d158 & 0x100) != 0) {\n      printf("[findcall]\t0x%lx:call",param_2);\n    }" (if "if") (parenthesized_expression "((_DAT_0002d158 & 0x100) != 0)" (( "(") (binary_expression "(_DAT_0002d158 & 0x100) != 0" (parenthesized_expression "(_DAT_0002d158 & 0x100)" (( "(") (binary_expression "_DAT_0002d158 & 0x100" (identifier "_DAT_0002d158") (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      printf("[findcall]\t0x%lx:call",param_2);\n    }" ({ "{") (expression_statement "printf("[findcall]\t0x%lx:call",param_2);" (call_expression "printf("[findcall]\t0x%lx:call",param_2)" (identifier "printf") (argument_list "("[findcall]\t0x%lx:call",param_2)" (( "(") (string_literal ""[findcall]\t0x%lx:call"" (" """) (string_content "[findcall]") (escape_sequence "\t") (string_content "0x%lx:call") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);" (assignment_expression "iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))" (( "(") (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28)" (* "*") (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x28)" (* "*") (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x28)" (( "(") (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x28" (pointer_expression "*(int *)(DAT_0002d478 + 4)" (* "*") (cast_expression "(int *)(DAT_0002d478 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0002d478 + 4)" (( "(") (binary_expression "DAT_0002d478 + 4" (identifier "DAT_0002d478") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(pcVar4 + 1)" (( "(") (binary_expression "pcVar4 + 1" (identifier "pcVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "iVar1 = iVar1 + 5 + param_2;" (assignment_expression "iVar1 = iVar1 + 5 + param_2" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 5 + param_2" (binary_expression "iVar1 + 5" (identifier "iVar1") (+ "+") (number_literal "5")) (+ "+") (identifier "param_2"))) (; ";")) (expression_statement "iVar2 = FUN_0001b900(iVar1);" (assignment_expression "iVar2 = FUN_0001b900(iVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_0001b900(iVar1)" (identifier "FUN_0001b900") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {\n      local_30 = _DAT_0002d158 & 0x100;\n    }\n    else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }" (if "if") (parenthesized_expression "((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0))" (( "(") (binary_expression "(iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)" (( "(") (comma_expression "piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0" (assignment_expression "piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_0001cac0(&DAT_0002d4a8,iVar1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001cac0(&DAT_0002d4a8,iVar1)" (identifier "FUN_0001cac0") (argument_list "(&DAT_0002d4a8,iVar1)" (( "(") (pointer_expression "&DAT_0002d4a8" (& "&") (identifier "DAT_0002d4a8")) (, ",") (identifier "iVar1") () ")"))))) (, ",") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n      local_30 = _DAT_0002d158 & 0x100;\n    }" ({ "{") (expression_statement "local_30 = _DAT_0002d158 & 0x100;" (assignment_expression "local_30 = _DAT_0002d158 & 0x100" (identifier "local_30") (= "=") (binary_expression "_DAT_0002d158 & 0x100" (identifier "_DAT_0002d158") (& "&") (number_literal "0x100"))) (; ";")) (} "}")) (else_clause "else {\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }" (else "else") (compound_statement "{\n      local_30 = _DAT_0002d158 & 0x100;\n      if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }\n    }" ({ "{") (expression_statement "local_30 = _DAT_0002d158 & 0x100;" (assignment_expression "local_30 = _DAT_0002d158 & 0x100" (identifier "local_30") (= "=") (binary_expression "_DAT_0002d158 & 0x100" (identifier "_DAT_0002d158") (& "&") (number_literal "0x100"))) (; ";")) (if_statement "if (*piVar3 == iVar1) {\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }" (if "if") (parenthesized_expression "(*piVar3 == iVar1)" (( "(") (binary_expression "*piVar3 == iVar1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n        if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }\n        FUN_00014750(param_1,piVar3,0);\n        goto LAB_0001d838;\n      }" ({ "{") (if_statement "if (local_30 != 0) {\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);\n        }" ({ "{") (expression_statement "printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);" (call_expression "printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2])" (identifier "printf") (argument_list "("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2])" (( "(") (string_literal ""\tdestpc 0x%lx (%s)\n"" (" """) (escape_sequence "\t") (string_content "destpc 0x%lx (%s)") (escape_sequence "\n") (" """)) (, ",") (identifier "iVar1") (, ",") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00014750(param_1,piVar3,0);" (call_expression "FUN_00014750(param_1,piVar3,0)" (identifier "FUN_00014750") (argument_list "(param_1,piVar3,0)" (( "(") (identifier "param_1") (, ",") (identifier "piVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (goto_statement "goto LAB_0001d838;" (goto "goto") (statement_identifier "LAB_0001d838") (; ";")) (} "}"))) (} "}")))) (if_statement "if (local_30 == 0) goto LAB_0001d838;" (if "if") (parenthesized_expression "(local_30 == 0)" (( "(") (binary_expression "local_30 == 0" (identifier "local_30") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001d838;" (goto "goto") (statement_identifier "LAB_0001d838") (; ";"))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puts("\tbut it\'s a botch");" (call_expression "puts("\tbut it\'s a botch")" (identifier "puts") (argument_list "("\tbut it\'s a botch")" (( "(") (string_literal ""\tbut it\'s a botch"" (" """) (escape_sequence "\t") (string_content "but it") (escape_sequence "\'") (string_content "s a botch") (" """)) () ")"))) (; ";")) (if_statement "if (param_3 == param_2) {\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 == param_2)" (( "(") (binary_expression "param_3 == param_2" (identifier "param_3") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

void function_1(type_1 *parent,type_2 var_4,type_2 var_3)

{
  type_3 var_11;
  type_2 var_6;
  int var_8;
  type_1 *var_10;
  char *var_5;
  type_3 var_12;
  
  if ((var_1 & 0x100U) != 0) {
    var_2("[findcall] %s: 0x%lx to 0x%lx\n",parent->name,var_4,var_3);
  }
  if (var_3 <= var_4) {
    return;
  }
  do {
    while (var_5 = (char *)((var_4 - core_text_sect->vma) + (int)core_text_space),
          *var_5 != -0x18) {
LAB_0001d838:
      var_4 = var_4 + 1;
      if (var_3 == var_4) {
        return;
      }
    }
    if ((var_1 & 0x100U) != 0) {
      var_2("[findcall]\t0x%lx:call",var_4);
    }
    var_6 = (*core_bfd->xvec->bfd_getx32)(var_5 + 1);
    var_11 = var_6 + 5 + var_4;
    var_8 = var_7(var_11);
    if ((var_8 == 0) || (var_10 = var_9(&symtab,var_11), var_10 == (type_1 *)0x0)) {
      var_12 = var_1 & 0x100;
    }
    else {
      var_12 = var_1 & 0x100;
      if (var_10->addr == var_11) {
        if (var_12 != 0) {
          var_2("\tdestpc 0x%lx (%s)\n",var_11,var_10->name);
        }
        var_13(parent,var_10,0);
        goto LAB_0001d838;
      }
    }
    if (var_12 == 0) goto LAB_0001d838;
    var_4 = var_4 + 1;
    var_14("\tbut it\'s a botch");
    if (var_3 == var_4) {
      return;
    }
  } while( true );
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void MASKED(int param_1,uint param_2,uint param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  char *pcVar4;
  uint local_30;
  
  if ((_DAT_0002d158 & 0x100) != 0) {
    printf("[findcall] %s: 0x%lx to 0x%lx\n",*(undefined4 *)(param_1 + 8),param_2,param_3);
  }
  if (param_3 <= param_2) {
    return;
  }
  do {
    while (pcVar4 = (char *)((param_2 - *(int *)(DAT_0002d488 + 0x1c)) + DAT_0002d47c),
          *pcVar4 != -0x18) {
LAB_0001d838:
      param_2 = param_2 + 1;
      if (param_3 == param_2) {
        return;
      }
    }
    if ((_DAT_0002d158 & 0x100) != 0) {
      printf("[findcall]\t0x%lx:call",param_2);
    }
    iVar1 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x28))(pcVar4 + 1);
    iVar1 = iVar1 + 5 + param_2;
    iVar2 = FUN_0001b900(iVar1);
    if ((iVar2 == 0) || (piVar3 = (int *)FUN_0001cac0(&DAT_0002d4a8,iVar1), piVar3 == (int *)0x0)) {
      local_30 = _DAT_0002d158 & 0x100;
    }
    else {
      local_30 = _DAT_0002d158 & 0x100;
      if (*piVar3 == iVar1) {
        if (local_30 != 0) {
          printf("\tdestpc 0x%lx (%s)\n",iVar1,piVar3[2]);
        }
        FUN_00014750(param_1,piVar3,0);
        goto LAB_0001d838;
      }
    }
    if (local_30 == 0) goto LAB_0001d838;
    param_2 = param_2 + 1;
    puts("\tbut it\'s a botch");
    if (param_3 == param_2) {
      return;
    }
  } while( true );
}

