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

bfd_boolean finish_stab(void *dhandle,void *handle)

{
  undefined4 *puVar1;
  debug_type_kind kind;
  debug_type_conflict pdVar2;
  bfd_boolean bVar3;
  
  if (*(int *)((int)handle + 0x34) != 0) {
    bVar3 = stab_emit_pending_vars(dhandle,(stab_handle *)((int)handle + 0x40));
    if (bVar3 == 0) {
      return 0;
    }
    bVar3 = debug_end_function(dhandle,*(bfd_vma *)((int)handle + 0x38));
    if (bVar3 == 0) {
      return 0;
    }
    *(undefined4 *)((int)handle + 0x34) = 0;
    *(undefined4 *)((int)handle + 0x38) = 0xffffffff;
  }
  puVar1 = *(undefined4 **)((int)handle + 0xd4);
  while( true ) {
    if (puVar1 == (undefined4 *)0x0) {
      return 1;
    }
    kind = puVar1[2];
    if (kind == DEBUG_KIND_ILLEGAL) {
      kind = DEBUG_KIND_STRUCT;
    }
    pdVar2 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);
    puVar1[3] = pdVar2;
    if (pdVar2 == (debug_type_conflict)0x0) break;
    puVar1 = (undefined4 *)*puVar1;
  }
  return 0;
}



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

undefined4 FUN_00025b70(undefined4 param_1,int param_2)

{
  undefined4 *puVar1;
  int iVar2;
  
  if (*(int *)(param_2 + 0x34) != 0) {
    iVar2 = FUN_00020080();
    if (iVar2 == 0) {
      return 0;
    }
    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));
    if (iVar2 == 0) {
      return 0;
    }
    *(undefined4 *)(param_2 + 0x34) = 0;
    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;
  }
  puVar1 = *(undefined4 **)(param_2 + 0xd4);
  while( true ) {
    if (puVar1 == (undefined4 *)0x0) {
      return 1;
    }
    iVar2 = puVar1[2];
    if (iVar2 == 0) {
      iVar2 = 7;
    }
    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);
    puVar1[3] = iVar2;
    if (iVar2 == 0) break;
    puVar1 = (undefined4 *)*puVar1;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000165d0
ADD EBX,0x19487
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESI + 0x34]
TEST EAX,EAX
JNZ 0x00025bf0
MOV ESI,dword ptr [ESI + 0xd4]
MOV EBP,0x7
TEST ESI,ESI
JNZ 0x00025bae
JMP 0x00025be0
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x00025be0
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
CMOVZ EAX,EBP
SUB ESP,0x4
PUSH EAX
PUSH dword ptr [ESI + 0x4]
PUSH EDI
CALL 0x0001f5b0
ADD ESP,0x10
MOV dword ptr [ESI + 0xc],EAX
TEST EAX,EAX
JNZ 0x00025ba8
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDX,[ESI + 0x40]
MOV EAX,EDI
CALL 0x00020080
TEST EAX,EAX
JZ 0x00025bcd
SUB ESP,0x8
PUSH dword ptr [ESI + 0x38]
PUSH EDI
CALL 0x0001e6d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00025bcd
MOV dword ptr [ESI + 0x34],0x0
MOV dword ptr [ESI + 0x38],0xffffffff
JMP 0x00025b91
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00025b70(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)(param_2 + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00025b70(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)(param_2 + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00025b70(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)(param_2 + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x34) != 0)" ( (binary_expression "*(int *)(param_2 + 0x34) != 0" (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }" { (expression_statement "iVar2 = FUN_00020080();" (assignment_expression "iVar2 = FUN_00020080()" identifier = (call_expression "FUN_00020080()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));" (assignment_expression "iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38))" identifier = (call_expression "FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0x38))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x38)" * (cast_expression "(undefined4 *)(param_2 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x34) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x34)" * (cast_expression "(undefined4 *)(param_2 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_2 + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_2 + 0x38)" * (cast_expression "(undefined4 *)(param_2 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "puVar1 = *(undefined4 **)(param_2 + 0xd4);" (assignment_expression "puVar1 = *(undefined4 **)(param_2 + 0xd4)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0xd4)" * (cast_expression "(undefined4 **)(param_2 + 0xd4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = puVar1[2];" (assignment_expression "iVar2 = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = 7;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = 7;\n    }" { (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) })) (expression_statement "iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);" (assignment_expression "iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2)" identifier = (call_expression "FUN_0001f5b0(param_1,puVar1[1],iVar2)" identifier (argument_list "(param_1,puVar1[1],iVar2)" ( identifier , (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "puVar1[3] = iVar2;" (assignment_expression "puVar1[3] = iVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean finish_stab(void *dhandle,void *handle)\n\n{\n  undefined4 *puVar1;\n  debug_type_kind kind;\n  debug_type_conflict pdVar2;\n  bfd_boolean bVar3;\n  \n  if (*(int *)((int)handle + 0x34) != 0) {\n    bVar3 = stab_emit_pending_vars(dhandle,(stab_handle *)((int)handle + 0x40));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = debug_end_function(dhandle,*(bfd_vma *)((int)handle + 0x38));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((int)handle + 0x34) = 0;\n    *(undefined4 *)((int)handle + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)((int)handle + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    kind = puVar1[2];\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar2 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar2;\n    if (pdVar2 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean finish_stab(void *dhandle,void *handle)\n\n{\n  undefined4 *puVar1;\n  debug_type_kind kind;\n  debug_type_conflict pdVar2;\n  bfd_boolean bVar3;\n  \n  if (*(int *)((int)handle + 0x34) != 0) {\n    bVar3 = stab_emit_pending_vars(dhandle,(stab_handle *)((int)handle + 0x40));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = debug_end_function(dhandle,*(bfd_vma *)((int)handle + 0x38));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((int)handle + 0x34) = 0;\n    *(undefined4 *)((int)handle + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)((int)handle + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    kind = puVar1[2];\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar2 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar2;\n    if (pdVar2 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "finish_stab(void *dhandle,void *handle)" identifier (parameter_list "(void *dhandle,void *handle)" ( (parameter_declaration "void *dhandle" primitive_type (pointer_declarator "*dhandle" * identifier)) , (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  debug_type_kind kind;\n  debug_type_conflict pdVar2;\n  bfd_boolean bVar3;\n  \n  if (*(int *)((int)handle + 0x34) != 0) {\n    bVar3 = stab_emit_pending_vars(dhandle,(stab_handle *)((int)handle + 0x40));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = debug_end_function(dhandle,*(bfd_vma *)((int)handle + 0x38));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((int)handle + 0x34) = 0;\n    *(undefined4 *)((int)handle + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)((int)handle + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    kind = puVar1[2];\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar2 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar2;\n    if (pdVar2 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "debug_type_kind kind;" type_identifier identifier ;) (declaration "debug_type_conflict pdVar2;" type_identifier identifier ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (if_statement "if (*(int *)((int)handle + 0x34) != 0) {\n    bVar3 = stab_emit_pending_vars(dhandle,(stab_handle *)((int)handle + 0x40));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = debug_end_function(dhandle,*(bfd_vma *)((int)handle + 0x38));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((int)handle + 0x34) = 0;\n    *(undefined4 *)((int)handle + 0x38) = 0xffffffff;\n  }" if (parenthesized_expression "(*(int *)((int)handle + 0x34) != 0)" ( (binary_expression "*(int *)((int)handle + 0x34) != 0" (pointer_expression "*(int *)((int)handle + 0x34)" * (cast_expression "(int *)((int)handle + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x34)" ( (binary_expression "(int)handle + 0x34" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    bVar3 = stab_emit_pending_vars(dhandle,(stab_handle *)((int)handle + 0x40));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    bVar3 = debug_end_function(dhandle,*(bfd_vma *)((int)handle + 0x38));\n    if (bVar3 == 0) {\n      return 0;\n    }\n    *(undefined4 *)((int)handle + 0x34) = 0;\n    *(undefined4 *)((int)handle + 0x38) = 0xffffffff;\n  }" { (expression_statement "bVar3 = stab_emit_pending_vars(dhandle,(stab_handle *)((int)handle + 0x40));" (assignment_expression "bVar3 = stab_emit_pending_vars(dhandle,(stab_handle *)((int)handle + 0x40))" identifier = (call_expression "stab_emit_pending_vars(dhandle,(stab_handle *)((int)handle + 0x40))" identifier (argument_list "(dhandle,(stab_handle *)((int)handle + 0x40))" ( identifier , (cast_expression "(stab_handle *)((int)handle + 0x40)" ( (type_descriptor "stab_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x40)" ( (binary_expression "(int)handle + 0x40" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )))) ;) (if_statement "if (bVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar3 = debug_end_function(dhandle,*(bfd_vma *)((int)handle + 0x38));" (assignment_expression "bVar3 = debug_end_function(dhandle,*(bfd_vma *)((int)handle + 0x38))" identifier = (call_expression "debug_end_function(dhandle,*(bfd_vma *)((int)handle + 0x38))" identifier (argument_list "(dhandle,*(bfd_vma *)((int)handle + 0x38))" ( identifier , (pointer_expression "*(bfd_vma *)((int)handle + 0x38)" * (cast_expression "(bfd_vma *)((int)handle + 0x38)" ( (type_descriptor "bfd_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x38)" ( (binary_expression "(int)handle + 0x38" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (if_statement "if (bVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)((int)handle + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x34)" * (cast_expression "(undefined4 *)((int)handle + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x34)" ( (binary_expression "(int)handle + 0x34" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)handle + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)handle + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)handle + 0x38)" * (cast_expression "(undefined4 *)((int)handle + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x38)" ( (binary_expression "(int)handle + 0x38" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (expression_statement "puVar1 = *(undefined4 **)((int)handle + 0xd4);" (assignment_expression "puVar1 = *(undefined4 **)((int)handle + 0xd4)" identifier = (pointer_expression "*(undefined4 **)((int)handle + 0xd4)" * (cast_expression "(undefined4 **)((int)handle + 0xd4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0xd4)" ( (binary_expression "(int)handle + 0xd4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    kind = puVar1[2];\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar2 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar2;\n    if (pdVar2 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    kind = puVar1[2];\n    if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }\n    pdVar2 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);\n    puVar1[3] = pdVar2;\n    if (pdVar2 == (debug_type_conflict)0x0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "kind = puVar1[2];" (assignment_expression "kind = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (kind == DEBUG_KIND_ILLEGAL) {\n      kind = DEBUG_KIND_STRUCT;\n    }" if (parenthesized_expression "(kind == DEBUG_KIND_ILLEGAL)" ( (binary_expression "kind == DEBUG_KIND_ILLEGAL" identifier == identifier) )) (compound_statement "{\n      kind = DEBUG_KIND_STRUCT;\n    }" { (expression_statement "kind = DEBUG_KIND_STRUCT;" (assignment_expression "kind = DEBUG_KIND_STRUCT" identifier = identifier) ;) })) (expression_statement "pdVar2 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind);" (assignment_expression "pdVar2 = debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind)" identifier = (call_expression "debug_make_undefined_tagged_type(dhandle,(char *)puVar1[1],kind)" identifier (argument_list "(dhandle,(char *)puVar1[1],kind)" ( identifier , (cast_expression "(char *)puVar1[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ])) , identifier )))) ;) (expression_statement "puVar1[3] = pdVar2;" (assignment_expression "puVar1[3] = pdVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pdVar2 == (debug_type_conflict)0x0) break;" if (parenthesized_expression "(pdVar2 == (debug_type_conflict)0x0)" ( (binary_expression "pdVar2 == (debug_type_conflict)0x0" identifier == (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00025b70(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)(param_2 + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00025b70(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)(param_2 + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00025b70(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)(param_2 + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x34) != 0)" ( (binary_expression "*(int *)(param_2 + 0x34) != 0" (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }" { (expression_statement "iVar2 = FUN_00020080();" (assignment_expression "iVar2 = FUN_00020080()" identifier = (call_expression "FUN_00020080()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));" (assignment_expression "iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38))" identifier = (call_expression "FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0x38))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x38)" * (cast_expression "(undefined4 *)(param_2 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x34) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x34)" * (cast_expression "(undefined4 *)(param_2 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_2 + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_2 + 0x38)" * (cast_expression "(undefined4 *)(param_2 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "puVar1 = *(undefined4 **)(param_2 + 0xd4);" (assignment_expression "puVar1 = *(undefined4 **)(param_2 + 0xd4)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0xd4)" * (cast_expression "(undefined4 **)(param_2 + 0xd4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = puVar1[2];" (assignment_expression "iVar2 = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = 7;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = 7;\n    }" { (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" identifier = number_literal) ;) })) (expression_statement "iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);" (assignment_expression "iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2)" identifier = (call_expression "FUN_0001f5b0(param_1,puVar1[1],iVar2)" identifier (argument_list "(param_1,puVar1[1],iVar2)" ( identifier , (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "puVar1[3] = iVar2;" (assignment_expression "puVar1[3] = iVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00025b70(undefined4 param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)(param_2 + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00025b70(undefined4 param_1,int param_2)" (identifier "FUN_00025b70") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  \n  if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }\n  puVar1 = *(undefined4 **)(param_2 + 0xd4);\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (*(int *)(param_2 + 0x34) != 0) {\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x34) != 0" (pointer_expression "*(int *)(param_2 + 0x34)" (* "*") (cast_expression "(int *)(param_2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x34)" (( "(") (binary_expression "param_2 + 0x34" (identifier "param_2") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_00020080();\n    if (iVar2 == 0) {\n      return 0;\n    }\n    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));\n    if (iVar2 == 0) {\n      return 0;\n    }\n    *(undefined4 *)(param_2 + 0x34) = 0;\n    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;\n  }" ({ "{") (expression_statement "iVar2 = FUN_00020080();" (assignment_expression "iVar2 = FUN_00020080()" (identifier "iVar2") (= "=") (call_expression "FUN_00020080()" (identifier "FUN_00020080") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));" (assignment_expression "iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38))" (identifier "iVar2") (= "=") (call_expression "FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38))" (identifier "FUN_0001e6d0") (argument_list "(param_1,*(undefined4 *)(param_2 + 0x38))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x38)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_2 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x34) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x34)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x34)" (( "(") (binary_expression "param_2 + 0x34" (identifier "param_2") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x38) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_2 + 0x38) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_2 + 0x38)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (expression_statement "puVar1 = *(undefined4 **)(param_2 + 0xd4);" (assignment_expression "puVar1 = *(undefined4 **)(param_2 + 0xd4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 0xd4)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0xd4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xd4)" (( "(") (binary_expression "param_2 + 0xd4" (identifier "param_2") (+ "+") (number_literal "0xd4")) () ")"))))) (; ";")) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    iVar2 = puVar1[2];\n    if (iVar2 == 0) {\n      iVar2 = 7;\n    }\n    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);\n    puVar1[3] = iVar2;\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" ({ "{") (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar2 = puVar1[2];" (assignment_expression "iVar2 = puVar1[2]" (identifier "iVar2") (= "=") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar2 = 7;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = 7;\n    }" ({ "{") (expression_statement "iVar2 = 7;" (assignment_expression "iVar2 = 7" (identifier "iVar2") (= "=") (number_literal "7")) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);" (assignment_expression "iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2)" (identifier "iVar2") (= "=") (call_expression "FUN_0001f5b0(param_1,puVar1[1],iVar2)" (identifier "FUN_0001f5b0") (argument_list "(param_1,puVar1[1],iVar2)" (( "(") (identifier "param_1") (, ",") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "puVar1[3] = iVar2;" (assignment_expression "puVar1[3] = iVar2" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(void *dhandle,void *handle)

{
  type_2 *var_4;
  type_3 var_5;
  type_4 var_8;
  type_1 var_2;
  
  if (*(int *)((int)handle + 0x34) != 0) {
    var_2 = var_1(dhandle,(type_5 *)((int)handle + 0x40));
    if (var_2 == 0) {
      return 0;
    }
    var_2 = var_3(dhandle,*(type_6 *)((int)handle + 0x38));
    if (var_2 == 0) {
      return 0;
    }
    *(type_2 *)((int)handle + 0x34) = 0;
    *(type_2 *)((int)handle + 0x38) = 0xffffffff;
  }
  var_4 = *(type_2 **)((int)handle + 0xd4);
  while( true ) {
    if (var_4 == (type_2 *)0x0) {
      return 1;
    }
    var_5 = var_4[2];
    if (var_5 == var_6) {
      var_5 = DEBUG_KIND_STRUCT;
    }
    var_8 = var_7(dhandle,(char *)var_4[1],var_5);
    var_4[3] = var_8;
    if (var_8 == (type_4)0x0) break;
    var_4 = (type_2 *)*var_4;
  }
  return 0;
}


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

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

undefined4 MASKED(undefined4 param_1,int param_2)

{
  undefined4 *puVar1;
  int iVar2;
  
  if (*(int *)(param_2 + 0x34) != 0) {
    iVar2 = FUN_00020080();
    if (iVar2 == 0) {
      return 0;
    }
    iVar2 = FUN_0001e6d0(param_1,*(undefined4 *)(param_2 + 0x38));
    if (iVar2 == 0) {
      return 0;
    }
    *(undefined4 *)(param_2 + 0x34) = 0;
    *(undefined4 *)(param_2 + 0x38) = 0xffffffff;
  }
  puVar1 = *(undefined4 **)(param_2 + 0xd4);
  while( true ) {
    if (puVar1 == (undefined4 *)0x0) {
      return 1;
    }
    iVar2 = puVar1[2];
    if (iVar2 == 0) {
      iVar2 = 7;
    }
    iVar2 = FUN_0001f5b0(param_1,puVar1[1],iVar2);
    puVar1[3] = iVar2;
    if (iVar2 == 0) break;
    puVar1 = (undefined4 *)*puVar1;
  }
  return 0;
}

