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

int dss_pubkey_bits(ssh_signkey *self,void *blob,int len)

{
  undefined4 *ptr;
  int iVar1;
  int in_ECX;
  
  ptr = (undefined4 *)dss_newkey((ssh_signkey *)blob,(char *)len,in_ECX);
  if (ptr == (undefined4 *)0x0) {
    iVar1 = -1;
  }
  else {
    iVar1 = bignum_bitcount((Bignum_conflict)*ptr);
    if ((Bignum_conflict)*ptr != (Bignum_conflict)0x0) {
      freebn((Bignum_conflict)*ptr);
    }
    if ((Bignum_conflict)ptr[1] != (Bignum_conflict)0x0) {
      freebn((Bignum_conflict)ptr[1]);
    }
    if ((Bignum_conflict)ptr[2] != (Bignum_conflict)0x0) {
      freebn((Bignum_conflict)ptr[2]);
    }
    if ((Bignum_conflict)ptr[3] != (Bignum_conflict)0x0) {
      freebn((Bignum_conflict)ptr[3]);
    }
    if ((Bignum_conflict)ptr[4] != (Bignum_conflict)0x0) {
      freebn((Bignum_conflict)ptr[4]);
    }
    safefree(ptr);
  }
  return iVar1;
}



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

undefined4 FUN_000612e0(void)

{
  int *piVar1;
  undefined4 uVar2;
  
  piVar1 = (int *)FUN_00061120();
  if (piVar1 == (int *)0x0) {
    uVar2 = 0xffffffff;
  }
  else {
    uVar2 = FUN_00057c10(*piVar1);
    if (*piVar1 != 0) {
      FUN_00056670(*piVar1);
    }
    if (piVar1[1] != 0) {
      FUN_00056670(piVar1[1]);
    }
    if (piVar1[2] != 0) {
      FUN_00056670(piVar1[2]);
    }
    if (piVar1[3] != 0) {
      FUN_00056670(piVar1[3]);
    }
    if (piVar1[4] != 0) {
      FUN_00056670(piVar1[4]);
    }
    FUN_0001dd30(piVar1);
  }
  return uVar2;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDX,dword ptr [ESP + 0x18]
CALL 0x000149a0
ADD EBX,0x6eaa4
MOV EAX,dword ptr [ESP + 0x14]
CALL 0x00061120
TEST EAX,EAX
JZ 0x00061384
SUB ESP,0xc
PUSH dword ptr [EAX]
MOV ESI,EAX
CALL 0x00057c10
ADD ESP,0x10
MOV EDI,EAX
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x00061326
SUB ESP,0xc
PUSH EAX
CALL 0x00056670
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x4]
TEST EAX,EAX
JZ 0x00061339
SUB ESP,0xc
PUSH EAX
CALL 0x00056670
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x0006134c
SUB ESP,0xc
PUSH EAX
CALL 0x00056670
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x0006135f
SUB ESP,0xc
PUSH EAX
CALL 0x00056670
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x10]
TEST EAX,EAX
JZ 0x00061372
SUB ESP,0xc
PUSH EAX
CALL 0x00056670
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x0001dd30
ADD ESP,0x10
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
MOV EDI,0xffffffff
JMP 0x0006137e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000612e0(void)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  piVar1 = (int *)FUN_00061120();\n  if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 FUN_000612e0(void)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  piVar1 = (int *)FUN_00061120();\n  if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000612e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  piVar1 = (int *)FUN_00061120();\n  if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }\n  return uVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)FUN_00061120();" (assignment_expression "piVar1 = (int *)FUN_00061120()" identifier = (cast_expression "(int *)FUN_00061120()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00061120()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }" else (compound_statement "{\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }" { (expression_statement "uVar2 = FUN_00057c10(*piVar1);" (assignment_expression "uVar2 = FUN_00057c10(*piVar1)" identifier = (call_expression "FUN_00057c10(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (if_statement "if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n      FUN_00056670(*piVar1);\n    }" { (expression_statement "FUN_00056670(*piVar1);" (call_expression "FUN_00056670(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) ))) ;) })) (if_statement "if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }" if (parenthesized_expression "(piVar1[1] != 0)" ( (binary_expression "piVar1[1] != 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00056670(piVar1[1]);\n    }" { (expression_statement "FUN_00056670(piVar1[1]);" (call_expression "FUN_00056670(piVar1[1])" identifier (argument_list "(piVar1[1])" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) ))) ;) })) (if_statement "if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }" if (parenthesized_expression "(piVar1[2] != 0)" ( (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00056670(piVar1[2]);\n    }" { (expression_statement "FUN_00056670(piVar1[2]);" (call_expression "FUN_00056670(piVar1[2])" identifier (argument_list "(piVar1[2])" ( (subscript_expression "piVar1[2]" identifier [ number_literal ]) ))) ;) })) (if_statement "if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }" if (parenthesized_expression "(piVar1[3] != 0)" ( (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00056670(piVar1[3]);\n    }" { (expression_statement "FUN_00056670(piVar1[3]);" (call_expression "FUN_00056670(piVar1[3])" identifier (argument_list "(piVar1[3])" ( (subscript_expression "piVar1[3]" identifier [ number_literal ]) ))) ;) })) (if_statement "if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }" if (parenthesized_expression "(piVar1[4] != 0)" ( (binary_expression "piVar1[4] != 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00056670(piVar1[4]);\n    }" { (expression_statement "FUN_00056670(piVar1[4]);" (call_expression "FUN_00056670(piVar1[4])" identifier (argument_list "(piVar1[4])" ( (subscript_expression "piVar1[4]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_0001dd30(piVar1);" (call_expression "FUN_0001dd30(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint dss_pubkey_bits(ssh_signkey *self,void *blob,int len)\n\n{\n  undefined4 *ptr;\n  int iVar1;\n  int in_ECX;\n  \n  ptr = (undefined4 *)dss_newkey((ssh_signkey *)blob,(char *)len,in_ECX);\n  if (ptr == (undefined4 *)0x0) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = bignum_bitcount((Bignum_conflict)*ptr);\n    if ((Bignum_conflict)*ptr != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)*ptr);\n    }\n    if ((Bignum_conflict)ptr[1] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[1]);\n    }\n    if ((Bignum_conflict)ptr[2] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[2]);\n    }\n    if ((Bignum_conflict)ptr[3] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[3]);\n    }\n    if ((Bignum_conflict)ptr[4] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[4]);\n    }\n    safefree(ptr);\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int dss_pubkey_bits(ssh_signkey *self,void *blob,int len)\n\n{\n  undefined4 *ptr;\n  int iVar1;\n  int in_ECX;\n  \n  ptr = (undefined4 *)dss_newkey((ssh_signkey *)blob,(char *)len,in_ECX);\n  if (ptr == (undefined4 *)0x0) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = bignum_bitcount((Bignum_conflict)*ptr);\n    if ((Bignum_conflict)*ptr != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)*ptr);\n    }\n    if ((Bignum_conflict)ptr[1] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[1]);\n    }\n    if ((Bignum_conflict)ptr[2] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[2]);\n    }\n    if ((Bignum_conflict)ptr[3] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[3]);\n    }\n    if ((Bignum_conflict)ptr[4] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[4]);\n    }\n    safefree(ptr);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "dss_pubkey_bits(ssh_signkey *self,void *blob,int len)" identifier (parameter_list "(ssh_signkey *self,void *blob,int len)" ( (parameter_declaration "ssh_signkey *self" type_identifier (pointer_declarator "*self" * identifier)) , (parameter_declaration "void *blob" primitive_type (pointer_declarator "*blob" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *ptr;\n  int iVar1;\n  int in_ECX;\n  \n  ptr = (undefined4 *)dss_newkey((ssh_signkey *)blob,(char *)len,in_ECX);\n  if (ptr == (undefined4 *)0x0) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = bignum_bitcount((Bignum_conflict)*ptr);\n    if ((Bignum_conflict)*ptr != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)*ptr);\n    }\n    if ((Bignum_conflict)ptr[1] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[1]);\n    }\n    if ((Bignum_conflict)ptr[2] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[2]);\n    }\n    if ((Bignum_conflict)ptr[3] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[3]);\n    }\n    if ((Bignum_conflict)ptr[4] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[4]);\n    }\n    safefree(ptr);\n  }\n  return iVar1;\n}" { (declaration "undefined4 *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_ECX;" primitive_type identifier ;) (expression_statement "ptr = (undefined4 *)dss_newkey((ssh_signkey *)blob,(char *)len,in_ECX);" (assignment_expression "ptr = (undefined4 *)dss_newkey((ssh_signkey *)blob,(char *)len,in_ECX)" identifier = (cast_expression "(undefined4 *)dss_newkey((ssh_signkey *)blob,(char *)len,in_ECX)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dss_newkey((ssh_signkey *)blob,(char *)len,in_ECX)" identifier (argument_list "((ssh_signkey *)blob,(char *)len,in_ECX)" ( (cast_expression "(ssh_signkey *)blob" ( (type_descriptor "ssh_signkey *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)len" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))))) ;) (if_statement "if (ptr == (undefined4 *)0x0) {\n    iVar1 = -1;\n  }\n  else {\n    iVar1 = bignum_bitcount((Bignum_conflict)*ptr);\n    if ((Bignum_conflict)*ptr != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)*ptr);\n    }\n    if ((Bignum_conflict)ptr[1] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[1]);\n    }\n    if ((Bignum_conflict)ptr[2] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[2]);\n    }\n    if ((Bignum_conflict)ptr[3] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[3]);\n    }\n    if ((Bignum_conflict)ptr[4] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[4]);\n    }\n    safefree(ptr);\n  }" if (parenthesized_expression "(ptr == (undefined4 *)0x0)" ( (binary_expression "ptr == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = bignum_bitcount((Bignum_conflict)*ptr);\n    if ((Bignum_conflict)*ptr != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)*ptr);\n    }\n    if ((Bignum_conflict)ptr[1] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[1]);\n    }\n    if ((Bignum_conflict)ptr[2] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[2]);\n    }\n    if ((Bignum_conflict)ptr[3] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[3]);\n    }\n    if ((Bignum_conflict)ptr[4] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[4]);\n    }\n    safefree(ptr);\n  }" else (compound_statement "{\n    iVar1 = bignum_bitcount((Bignum_conflict)*ptr);\n    if ((Bignum_conflict)*ptr != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)*ptr);\n    }\n    if ((Bignum_conflict)ptr[1] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[1]);\n    }\n    if ((Bignum_conflict)ptr[2] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[2]);\n    }\n    if ((Bignum_conflict)ptr[3] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[3]);\n    }\n    if ((Bignum_conflict)ptr[4] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[4]);\n    }\n    safefree(ptr);\n  }" { (expression_statement "iVar1 = bignum_bitcount((Bignum_conflict)*ptr);" (assignment_expression "iVar1 = bignum_bitcount((Bignum_conflict)*ptr)" identifier = (call_expression "bignum_bitcount((Bignum_conflict)*ptr)" identifier (argument_list "((Bignum_conflict)*ptr)" ( (binary_expression "(Bignum_conflict)*ptr" (parenthesized_expression "(Bignum_conflict)" ( identifier )) * identifier) )))) ;) (if_statement "if ((Bignum_conflict)*ptr != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)*ptr);\n    }" if (parenthesized_expression "((Bignum_conflict)*ptr != (Bignum_conflict)0x0)" ( (binary_expression "(Bignum_conflict)*ptr != (Bignum_conflict)0x0" (binary_expression "(Bignum_conflict)*ptr" (parenthesized_expression "(Bignum_conflict)" ( identifier )) * identifier) != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n      freebn((Bignum_conflict)*ptr);\n    }" { (expression_statement "freebn((Bignum_conflict)*ptr);" (call_expression "freebn((Bignum_conflict)*ptr)" identifier (argument_list "((Bignum_conflict)*ptr)" ( (binary_expression "(Bignum_conflict)*ptr" (parenthesized_expression "(Bignum_conflict)" ( identifier )) * identifier) ))) ;) })) (if_statement "if ((Bignum_conflict)ptr[1] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[1]);\n    }" if (parenthesized_expression "((Bignum_conflict)ptr[1] != (Bignum_conflict)0x0)" ( (binary_expression "(Bignum_conflict)ptr[1] != (Bignum_conflict)0x0" (cast_expression "(Bignum_conflict)ptr[1]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "ptr[1]" identifier [ number_literal ])) != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n      freebn((Bignum_conflict)ptr[1]);\n    }" { (expression_statement "freebn((Bignum_conflict)ptr[1]);" (call_expression "freebn((Bignum_conflict)ptr[1])" identifier (argument_list "((Bignum_conflict)ptr[1])" ( (cast_expression "(Bignum_conflict)ptr[1]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "ptr[1]" identifier [ number_literal ])) ))) ;) })) (if_statement "if ((Bignum_conflict)ptr[2] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[2]);\n    }" if (parenthesized_expression "((Bignum_conflict)ptr[2] != (Bignum_conflict)0x0)" ( (binary_expression "(Bignum_conflict)ptr[2] != (Bignum_conflict)0x0" (cast_expression "(Bignum_conflict)ptr[2]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "ptr[2]" identifier [ number_literal ])) != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n      freebn((Bignum_conflict)ptr[2]);\n    }" { (expression_statement "freebn((Bignum_conflict)ptr[2]);" (call_expression "freebn((Bignum_conflict)ptr[2])" identifier (argument_list "((Bignum_conflict)ptr[2])" ( (cast_expression "(Bignum_conflict)ptr[2]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "ptr[2]" identifier [ number_literal ])) ))) ;) })) (if_statement "if ((Bignum_conflict)ptr[3] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[3]);\n    }" if (parenthesized_expression "((Bignum_conflict)ptr[3] != (Bignum_conflict)0x0)" ( (binary_expression "(Bignum_conflict)ptr[3] != (Bignum_conflict)0x0" (cast_expression "(Bignum_conflict)ptr[3]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "ptr[3]" identifier [ number_literal ])) != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n      freebn((Bignum_conflict)ptr[3]);\n    }" { (expression_statement "freebn((Bignum_conflict)ptr[3]);" (call_expression "freebn((Bignum_conflict)ptr[3])" identifier (argument_list "((Bignum_conflict)ptr[3])" ( (cast_expression "(Bignum_conflict)ptr[3]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "ptr[3]" identifier [ number_literal ])) ))) ;) })) (if_statement "if ((Bignum_conflict)ptr[4] != (Bignum_conflict)0x0) {\n      freebn((Bignum_conflict)ptr[4]);\n    }" if (parenthesized_expression "((Bignum_conflict)ptr[4] != (Bignum_conflict)0x0)" ( (binary_expression "(Bignum_conflict)ptr[4] != (Bignum_conflict)0x0" (cast_expression "(Bignum_conflict)ptr[4]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "ptr[4]" identifier [ number_literal ])) != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n      freebn((Bignum_conflict)ptr[4]);\n    }" { (expression_statement "freebn((Bignum_conflict)ptr[4]);" (call_expression "freebn((Bignum_conflict)ptr[4])" identifier (argument_list "((Bignum_conflict)ptr[4])" ( (cast_expression "(Bignum_conflict)ptr[4]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "ptr[4]" identifier [ number_literal ])) ))) ;) })) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_000612e0(void)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  piVar1 = (int *)FUN_00061120();\n  if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_000612e0(void)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  piVar1 = (int *)FUN_00061120();\n  if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_000612e0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  piVar1 = (int *)FUN_00061120();\n  if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }\n  return uVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)FUN_00061120();" (assignment_expression "piVar1 = (int *)FUN_00061120()" identifier = (cast_expression "(int *)FUN_00061120()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00061120()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }" else (compound_statement "{\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }" { (expression_statement "uVar2 = FUN_00057c10(*piVar1);" (assignment_expression "uVar2 = FUN_00057c10(*piVar1)" identifier = (call_expression "FUN_00057c10(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) )))) ;) (if_statement "if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n      FUN_00056670(*piVar1);\n    }" { (expression_statement "FUN_00056670(*piVar1);" (call_expression "FUN_00056670(*piVar1)" identifier (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) ))) ;) })) (if_statement "if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }" if (parenthesized_expression "(piVar1[1] != 0)" ( (binary_expression "piVar1[1] != 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00056670(piVar1[1]);\n    }" { (expression_statement "FUN_00056670(piVar1[1]);" (call_expression "FUN_00056670(piVar1[1])" identifier (argument_list "(piVar1[1])" ( (subscript_expression "piVar1[1]" identifier [ number_literal ]) ))) ;) })) (if_statement "if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }" if (parenthesized_expression "(piVar1[2] != 0)" ( (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00056670(piVar1[2]);\n    }" { (expression_statement "FUN_00056670(piVar1[2]);" (call_expression "FUN_00056670(piVar1[2])" identifier (argument_list "(piVar1[2])" ( (subscript_expression "piVar1[2]" identifier [ number_literal ]) ))) ;) })) (if_statement "if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }" if (parenthesized_expression "(piVar1[3] != 0)" ( (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00056670(piVar1[3]);\n    }" { (expression_statement "FUN_00056670(piVar1[3]);" (call_expression "FUN_00056670(piVar1[3])" identifier (argument_list "(piVar1[3])" ( (subscript_expression "piVar1[3]" identifier [ number_literal ]) ))) ;) })) (if_statement "if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }" if (parenthesized_expression "(piVar1[4] != 0)" ( (binary_expression "piVar1[4] != 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_00056670(piVar1[4]);\n    }" { (expression_statement "FUN_00056670(piVar1[4]);" (call_expression "FUN_00056670(piVar1[4])" identifier (argument_list "(piVar1[4])" ( (subscript_expression "piVar1[4]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_0001dd30(piVar1);" (call_expression "FUN_0001dd30(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000612e0(void)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  piVar1 = (int *)FUN_00061120();\n  if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_000612e0(void)" (identifier "FUN_000612e0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  \n  piVar1 = (int *)FUN_00061120();\n  if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }\n  return uVar2;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "piVar1 = (int *)FUN_00061120();" (assignment_expression "piVar1 = (int *)FUN_00061120()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00061120()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00061120()" (identifier "FUN_00061120") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n    uVar2 = 0xffffffff;\n  }\n  else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }" (else "else") (compound_statement "{\n    uVar2 = FUN_00057c10(*piVar1);\n    if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }\n    if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }\n    if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }\n    if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }\n    if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }\n    FUN_0001dd30(piVar1);\n  }" ({ "{") (expression_statement "uVar2 = FUN_00057c10(*piVar1);" (assignment_expression "uVar2 = FUN_00057c10(*piVar1)" (identifier "uVar2") (= "=") (call_expression "FUN_00057c10(*piVar1)" (identifier "FUN_00057c10") (argument_list "(*piVar1)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) () ")")))) (; ";")) (if_statement "if (*piVar1 != 0) {\n      FUN_00056670(*piVar1);\n    }" (if "if") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00056670(*piVar1);\n    }" ({ "{") (expression_statement "FUN_00056670(*piVar1);" (call_expression "FUN_00056670(*piVar1)" (identifier "FUN_00056670") (argument_list "(*piVar1)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) () ")"))) (; ";")) (} "}"))) (if_statement "if (piVar1[1] != 0) {\n      FUN_00056670(piVar1[1]);\n    }" (if "if") (parenthesized_expression "(piVar1[1] != 0)" (( "(") (binary_expression "piVar1[1] != 0" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00056670(piVar1[1]);\n    }" ({ "{") (expression_statement "FUN_00056670(piVar1[1]);" (call_expression "FUN_00056670(piVar1[1])" (identifier "FUN_00056670") (argument_list "(piVar1[1])" (( "(") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (} "}"))) (if_statement "if (piVar1[2] != 0) {\n      FUN_00056670(piVar1[2]);\n    }" (if "if") (parenthesized_expression "(piVar1[2] != 0)" (( "(") (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00056670(piVar1[2]);\n    }" ({ "{") (expression_statement "FUN_00056670(piVar1[2]);" (call_expression "FUN_00056670(piVar1[2])" (identifier "FUN_00056670") (argument_list "(piVar1[2])" (( "(") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (} "}"))) (if_statement "if (piVar1[3] != 0) {\n      FUN_00056670(piVar1[3]);\n    }" (if "if") (parenthesized_expression "(piVar1[3] != 0)" (( "(") (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00056670(piVar1[3]);\n    }" ({ "{") (expression_statement "FUN_00056670(piVar1[3]);" (call_expression "FUN_00056670(piVar1[3])" (identifier "FUN_00056670") (argument_list "(piVar1[3])" (( "(") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (} "}"))) (if_statement "if (piVar1[4] != 0) {\n      FUN_00056670(piVar1[4]);\n    }" (if "if") (parenthesized_expression "(piVar1[4] != 0)" (( "(") (binary_expression "piVar1[4] != 0" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00056670(piVar1[4]);\n    }" ({ "{") (expression_statement "FUN_00056670(piVar1[4]);" (call_expression "FUN_00056670(piVar1[4])" (identifier "FUN_00056670") (argument_list "(piVar1[4])" (( "(") (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0001dd30(piVar1);" (call_expression "FUN_0001dd30(piVar1)" (identifier "FUN_0001dd30") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

int function_1(type_1 *self,void *blob,int len)

{
  type_2 *var_2;
  int iVar1;
  int in_ECX;
  
  var_2 = (type_2 *)var_1((type_1 *)blob,(char *)len,in_ECX);
  if (var_2 == (type_2 *)0x0) {
    iVar1 = -1;
  }
  else {
    iVar1 = var_3((type_3)*var_2);
    if ((type_3)*var_2 != (type_3)0x0) {
      var_4((type_3)*var_2);
    }
    if ((type_3)var_2[1] != (type_3)0x0) {
      var_4((type_3)var_2[1]);
    }
    if ((type_3)var_2[2] != (type_3)0x0) {
      var_4((type_3)var_2[2]);
    }
    if ((type_3)var_2[3] != (type_3)0x0) {
      var_4((type_3)var_2[3]);
    }
    if ((type_3)var_2[4] != (type_3)0x0) {
      var_4((type_3)var_2[4]);
    }
    var_5(var_2);
  }
  return iVar1;
}


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

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

undefined4 MASKED(void)

{
  int *piVar1;
  undefined4 uVar2;
  
  piVar1 = (int *)FUN_00061120();
  if (piVar1 == (int *)0x0) {
    uVar2 = 0xffffffff;
  }
  else {
    uVar2 = FUN_00057c10(*piVar1);
    if (*piVar1 != 0) {
      FUN_00056670(*piVar1);
    }
    if (piVar1[1] != 0) {
      FUN_00056670(piVar1[1]);
    }
    if (piVar1[2] != 0) {
      FUN_00056670(piVar1[2]);
    }
    if (piVar1[3] != 0) {
      FUN_00056670(piVar1[3]);
    }
    if (piVar1[4] != 0) {
      FUN_00056670(piVar1[4]);
    }
    FUN_0001dd30(piVar1);
  }
  return uVar2;
}

