
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

ssh_signkey * ec_alg_by_oid(int len,void *oid,ec_curve **curve)

{
  int iVar1;
  ec_curve *peVar2;
  ecsign_extra *peVar3;
  ssh_signkey **ppsVar4;
  ssh_signkey *psVar5;
  
  ppsVar4 = ec_alg_by_oid::algs_with_oid;
  peVar3 = &sign_extra_nistp256;
  psVar5 = &ssh_ecdsa_nistp256;
  if (len == 8) goto LAB_0002cb67;
  do {
    do {
      ppsVar4 = ppsVar4 + 1;
      if ((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex) {
        return (ssh_signkey *)0x0;
      }
      psVar5 = *ppsVar4;
      peVar3 = (ecsign_extra *)psVar5->extra;
    } while (len != peVar3->oidlen);
LAB_0002cb67:
    iVar1 = memcmp(oid,peVar3->oid,len);
  } while (iVar1 != 0);
  peVar2 = (*peVar3->curve)();
  *curve = peVar2;
  return psVar5;
}



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

undefined ** FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined **ppuVar3;
  undefined **ppuVar4;
  undefined **ppuVar5;
  
  ppuVar4 = &PTR_PTR_FUN_0005c920;
  ppuVar3 = &PTR_FUN_0005cd44;
  ppuVar5 = &PTR_FUN_0005c9e0;
  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;
  do {
    do {
      ppuVar4 = ppuVar4 + 1;
      if (ppuVar4 == (undefined **)&DAT_0005c92c) {
        return (undefined **)0x0;
      }
      ppuVar5 = (undefined **)*ppuVar4;
      ppuVar3 = (undefined **)ppuVar5[0xe];
    } while (param_1 != ppuVar3[3]);
LAB_0002cb67:
    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);
  } while (iVar1 != 0);
  uVar2 = (*(code *)*ppuVar3)();
  *param_3 = uVar2;
  return ppuVar5;
}


PUSH EBP
MOV EAX,0x8
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014540
ADD EBX,0x30336
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x30]
LEA ESI,[EBX + 0xfffffabc]
LEA EBP,[EBX + 0xfffffee0]
LEA ECX,[ESI + 0xc]
LEA EDI,[EBX + 0xfffffb7c]
CMP EDX,EAX
JZ 0x0002cb67
ADD ESI,0x4
CMP ESI,ECX
JZ 0x0002cba0
MOV EDI,dword ptr [ESI]
MOV EBP,dword ptr [EDI + 0x38]
MOV EAX,dword ptr [EBP + 0xc]
CMP EDX,EAX
JNZ 0x0002cb54
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0x4
PUSH EDX
MOV dword ptr [ESP + 0x38],EDX
PUSH dword ptr [EBP + 0x8]
PUSH dword ptr [ESP + 0x40]
CALL 0x00012150
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x0002cb54
CALL dword ptr [EBP]
MOV EDX,dword ptr [ESP + 0x38]
MOV dword ptr [EDX],EAX
JMP 0x0002cba2
XOR EDI,EDI
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined ** FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  undefined **ppuVar4;\n  undefined **ppuVar5;\n  \n  ppuVar4 = &PTR_PTR_FUN_0005c920;\n  ppuVar3 = &PTR_FUN_0005cd44;\n  ppuVar5 = &PTR_FUN_0005c9e0;\n  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;\n  do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);\n  uVar2 = (*(code *)*ppuVar3)();\n  *param_3 = uVar2;\n  return ppuVar5;\n}\n\n" comment (function_definition "undefined ** FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  undefined **ppuVar4;\n  undefined **ppuVar5;\n  \n  ppuVar4 = &PTR_PTR_FUN_0005c920;\n  ppuVar3 = &PTR_FUN_0005cd44;\n  ppuVar5 = &PTR_FUN_0005c9e0;\n  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;\n  do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);\n  uVar2 = (*(code *)*ppuVar3)();\n  *param_3 = uVar2;\n  return ppuVar5;\n}" type_identifier (pointer_declarator "** FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)" * (pointer_declarator "* FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)" * (function_declarator "FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined *param_1,void *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  undefined **ppuVar4;\n  undefined **ppuVar5;\n  \n  ppuVar4 = &PTR_PTR_FUN_0005c920;\n  ppuVar3 = &PTR_FUN_0005cd44;\n  ppuVar5 = &PTR_FUN_0005c9e0;\n  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;\n  do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);\n  uVar2 = (*(code *)*ppuVar3)();\n  *param_3 = uVar2;\n  return ppuVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "undefined **ppuVar4;" type_identifier (pointer_declarator "**ppuVar4" * (pointer_declarator "*ppuVar4" * identifier)) ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (expression_statement "ppuVar4 = &PTR_PTR_FUN_0005c920;" (assignment_expression "ppuVar4 = &PTR_PTR_FUN_0005c920" identifier = (pointer_expression "&PTR_PTR_FUN_0005c920" & identifier)) ;) (expression_statement "ppuVar3 = &PTR_FUN_0005cd44;" (assignment_expression "ppuVar3 = &PTR_FUN_0005cd44" identifier = (pointer_expression "&PTR_FUN_0005cd44" & identifier)) ;) (expression_statement "ppuVar5 = &PTR_FUN_0005c9e0;" (assignment_expression "ppuVar5 = &PTR_FUN_0005c9e0" identifier = (pointer_expression "&PTR_FUN_0005c9e0" & identifier)) ;) (if_statement "if (param_1 == (undefined *)0x8) goto LAB_0002cb67;" if (parenthesized_expression "(param_1 == (undefined *)0x8)" ( (binary_expression "param_1 == (undefined *)0x8" identifier == (cast_expression "(undefined *)0x8" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0002cb67;" goto statement_identifier ;)) (do_statement "do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);" do (compound_statement "{\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  }" { (do_statement "do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);" do (compound_statement "{\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    }" { (expression_statement "ppuVar4 = ppuVar4 + 1;" (assignment_expression "ppuVar4 = ppuVar4 + 1" identifier = (binary_expression "ppuVar4 + 1" identifier + number_literal)) ;) (if_statement "if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }" if (parenthesized_expression "(ppuVar4 == (undefined **)&DAT_0005c92c)" ( (binary_expression "ppuVar4 == (undefined **)&DAT_0005c92c" identifier == (cast_expression "(undefined **)&DAT_0005c92c" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_0005c92c" & identifier))) )) (compound_statement "{\n        return (undefined **)0x0;\n      }" { (return_statement "return (undefined **)0x0;" return (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ;) })) (expression_statement "ppuVar5 = (undefined **)*ppuVar4;" (assignment_expression "ppuVar5 = (undefined **)*ppuVar4" identifier = (cast_expression "(undefined **)*ppuVar4" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*ppuVar4" * identifier))) ;) (expression_statement "ppuVar3 = (undefined **)ppuVar5[0xe];" (assignment_expression "ppuVar3 = (undefined **)ppuVar5[0xe]" identifier = (cast_expression "(undefined **)ppuVar5[0xe]" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "ppuVar5[0xe]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(param_1 != ppuVar3[3])" ( (binary_expression "param_1 != ppuVar3[3]" identifier != (subscript_expression "ppuVar3[3]" identifier [ number_literal ])) )) ;) (labeled_statement "LAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);" statement_identifier : (expression_statement "iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);" (assignment_expression "iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1)" identifier = (call_expression "memcmp(param_2,ppuVar3[2],(size_t)param_1)" identifier (argument_list "(param_2,ppuVar3[2],(size_t)param_1)" ( identifier , (subscript_expression "ppuVar3[2]" identifier [ number_literal ]) , (cast_expression "(size_t)param_1" ( (type_descriptor "size_t" primitive_type) ) identifier) )))) ;)) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (expression_statement "uVar2 = (*(code *)*ppuVar3)();" (assignment_expression "uVar2 = (*(code *)*ppuVar3)()" identifier = (call_expression "(*(code *)*ppuVar3)()" (parenthesized_expression "(*(code *)*ppuVar3)" ( (pointer_expression "*(code *)*ppuVar3" * (cast_expression "(code *)*ppuVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppuVar3" * identifier))) )) (argument_list "()" ( )))) ;) (expression_statement "*param_3 = uVar2;" (assignment_expression "*param_3 = uVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return ppuVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nssh_signkey * ec_alg_by_oid(int len,void *oid,ec_curve **curve)\n\n{\n  int iVar1;\n  ec_curve *peVar2;\n  ecsign_extra *peVar3;\n  ssh_signkey **ppsVar4;\n  ssh_signkey *psVar5;\n  \n  ppsVar4 = ec_alg_by_oid::algs_with_oid;\n  peVar3 = &sign_extra_nistp256;\n  psVar5 = &ssh_ecdsa_nistp256;\n  if (len == 8) goto LAB_0002cb67;\n  do {\n    do {\n      ppsVar4 = ppsVar4 + 1;\n      if ((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex) {\n        return (ssh_signkey *)0x0;\n      }\n      psVar5 = *ppsVar4;\n      peVar3 = (ecsign_extra *)psVar5->extra;\n    } while (len != peVar3->oidlen);\nLAB_0002cb67:\n    iVar1 = memcmp(oid,peVar3->oid,len);\n  } while (iVar1 != 0);\n  peVar2 = (*peVar3->curve)();\n  *curve = peVar2;\n  return psVar5;\n}\n\n" comment comment (function_definition "ssh_signkey * ec_alg_by_oid(int len,void *oid,ec_curve **curve)\n\n{\n  int iVar1;\n  ec_curve *peVar2;\n  ecsign_extra *peVar3;\n  ssh_signkey **ppsVar4;\n  ssh_signkey *psVar5;\n  \n  ppsVar4 = ec_alg_by_oid::algs_with_oid;\n  peVar3 = &sign_extra_nistp256;\n  psVar5 = &ssh_ecdsa_nistp256;\n  if (len == 8) goto LAB_0002cb67;\n  do {\n    do {\n      ppsVar4 = ppsVar4 + 1;\n      if ((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex) {\n        return (ssh_signkey *)0x0;\n      }\n      psVar5 = *ppsVar4;\n      peVar3 = (ecsign_extra *)psVar5->extra;\n    } while (len != peVar3->oidlen);\nLAB_0002cb67:\n    iVar1 = memcmp(oid,peVar3->oid,len);\n  } while (iVar1 != 0);\n  peVar2 = (*peVar3->curve)();\n  *curve = peVar2;\n  return psVar5;\n}" type_identifier (pointer_declarator "* ec_alg_by_oid(int len,void *oid,ec_curve **curve)" * (function_declarator "ec_alg_by_oid(int len,void *oid,ec_curve **curve)" identifier (parameter_list "(int len,void *oid,ec_curve **curve)" ( (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "void *oid" primitive_type (pointer_declarator "*oid" * identifier)) , (parameter_declaration "ec_curve **curve" type_identifier (pointer_declarator "**curve" * (pointer_declarator "*curve" * identifier))) )))) (compound_statement "{\n  int iVar1;\n  ec_curve *peVar2;\n  ecsign_extra *peVar3;\n  ssh_signkey **ppsVar4;\n  ssh_signkey *psVar5;\n  \n  ppsVar4 = ec_alg_by_oid::algs_with_oid;\n  peVar3 = &sign_extra_nistp256;\n  psVar5 = &ssh_ecdsa_nistp256;\n  if (len == 8) goto LAB_0002cb67;\n  do {\n    do {\n      ppsVar4 = ppsVar4 + 1;\n      if ((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex) {\n        return (ssh_signkey *)0x0;\n      }\n      psVar5 = *ppsVar4;\n      peVar3 = (ecsign_extra *)psVar5->extra;\n    } while (len != peVar3->oidlen);\nLAB_0002cb67:\n    iVar1 = memcmp(oid,peVar3->oid,len);\n  } while (iVar1 != 0);\n  peVar2 = (*peVar3->curve)();\n  *curve = peVar2;\n  return psVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ec_curve *peVar2;" type_identifier (pointer_declarator "*peVar2" * identifier) ;) (declaration "ecsign_extra *peVar3;" type_identifier (pointer_declarator "*peVar3" * identifier) ;) (declaration "ssh_signkey **ppsVar4;" type_identifier (pointer_declarator "**ppsVar4" * (pointer_declarator "*ppsVar4" * identifier)) ;) (declaration "ssh_signkey *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (expression_statement "ppsVar4 = ec_alg_by_oid::algs_with_oid;" (assignment_expression "ppsVar4 = ec_alg_by_oid" identifier = identifier) (ERROR "::algs_with_oid" : : identifier) ;) (expression_statement "peVar3 = &sign_extra_nistp256;" (assignment_expression "peVar3 = &sign_extra_nistp256" identifier = (pointer_expression "&sign_extra_nistp256" & identifier)) ;) (expression_statement "psVar5 = &ssh_ecdsa_nistp256;" (assignment_expression "psVar5 = &ssh_ecdsa_nistp256" identifier = (pointer_expression "&ssh_ecdsa_nistp256" & identifier)) ;) (if_statement "if (len == 8) goto LAB_0002cb67;" if (parenthesized_expression "(len == 8)" ( (binary_expression "len == 8" identifier == number_literal) )) (goto_statement "goto LAB_0002cb67;" goto statement_identifier ;)) (do_statement "do {\n    do {\n      ppsVar4 = ppsVar4 + 1;\n      if ((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex) {\n        return (ssh_signkey *)0x0;\n      }\n      psVar5 = *ppsVar4;\n      peVar3 = (ecsign_extra *)psVar5->extra;\n    } while (len != peVar3->oidlen);\nLAB_0002cb67:\n    iVar1 = memcmp(oid,peVar3->oid,len);\n  } while (iVar1 != 0);" do (compound_statement "{\n    do {\n      ppsVar4 = ppsVar4 + 1;\n      if ((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex) {\n        return (ssh_signkey *)0x0;\n      }\n      psVar5 = *ppsVar4;\n      peVar3 = (ecsign_extra *)psVar5->extra;\n    } while (len != peVar3->oidlen);\nLAB_0002cb67:\n    iVar1 = memcmp(oid,peVar3->oid,len);\n  }" { (do_statement "do {\n      ppsVar4 = ppsVar4 + 1;\n      if ((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex) {\n        return (ssh_signkey *)0x0;\n      }\n      psVar5 = *ppsVar4;\n      peVar3 = (ecsign_extra *)psVar5->extra;\n    } while (len != peVar3->oidlen);" do (compound_statement "{\n      ppsVar4 = ppsVar4 + 1;\n      if ((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex) {\n        return (ssh_signkey *)0x0;\n      }\n      psVar5 = *ppsVar4;\n      peVar3 = (ecsign_extra *)psVar5->extra;\n    }" { (expression_statement "ppsVar4 = ppsVar4 + 1;" (assignment_expression "ppsVar4 = ppsVar4 + 1" identifier = (binary_expression "ppsVar4 + 1" identifier + number_literal)) ;) (if_statement "if ((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex) {\n        return (ssh_signkey *)0x0;\n      }" if (parenthesized_expression "((ssh_kexes *)ppsVar4 == &ssh_ecdh_kex)" ( (binary_expression "(ssh_kexes *)ppsVar4 == &ssh_ecdh_kex" (cast_expression "(ssh_kexes *)ppsVar4" ( (type_descriptor "ssh_kexes *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (pointer_expression "&ssh_ecdh_kex" & identifier)) )) (compound_statement "{\n        return (ssh_signkey *)0x0;\n      }" { (return_statement "return (ssh_signkey *)0x0;" return (cast_expression "(ssh_signkey *)0x0" ( (type_descriptor "ssh_signkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "psVar5 = *ppsVar4;" (assignment_expression "psVar5 = *ppsVar4" identifier = (pointer_expression "*ppsVar4" * identifier)) ;) (expression_statement "peVar3 = (ecsign_extra *)psVar5->extra;" (assignment_expression "peVar3 = (ecsign_extra *)psVar5->extra" identifier = (cast_expression "(ecsign_extra *)psVar5->extra" ( (type_descriptor "ecsign_extra *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar5->extra" identifier -> field_identifier))) ;) }) while (parenthesized_expression "(len != peVar3->oidlen)" ( (binary_expression "len != peVar3->oidlen" identifier != (field_expression "peVar3->oidlen" identifier -> field_identifier)) )) ;) (labeled_statement "LAB_0002cb67:\n    iVar1 = memcmp(oid,peVar3->oid,len);" statement_identifier : (expression_statement "iVar1 = memcmp(oid,peVar3->oid,len);" (assignment_expression "iVar1 = memcmp(oid,peVar3->oid,len)" identifier = (call_expression "memcmp(oid,peVar3->oid,len)" identifier (argument_list "(oid,peVar3->oid,len)" ( identifier , (field_expression "peVar3->oid" identifier -> field_identifier) , identifier )))) ;)) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (expression_statement "peVar2 = (*peVar3->curve)();" (assignment_expression "peVar2 = (*peVar3->curve)()" identifier = (call_expression "(*peVar3->curve)()" (parenthesized_expression "(*peVar3->curve)" ( (pointer_expression "*peVar3->curve" * (field_expression "peVar3->curve" identifier -> field_identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*curve = peVar2;" (assignment_expression "*curve = peVar2" (pointer_expression "*curve" * identifier) = identifier) ;) (return_statement "return psVar5;" return identifier ;) })))
(translation_unit "undefined ** FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  undefined **ppuVar4;\n  undefined **ppuVar5;\n  \n  ppuVar4 = &PTR_PTR_FUN_0005c920;\n  ppuVar3 = &PTR_FUN_0005cd44;\n  ppuVar5 = &PTR_FUN_0005c9e0;\n  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;\n  do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);\n  uVar2 = (*(code *)*ppuVar3)();\n  *param_3 = uVar2;\n  return ppuVar5;\n}\n\n" (function_definition "undefined ** FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  undefined **ppuVar4;\n  undefined **ppuVar5;\n  \n  ppuVar4 = &PTR_PTR_FUN_0005c920;\n  ppuVar3 = &PTR_FUN_0005cd44;\n  ppuVar5 = &PTR_FUN_0005c9e0;\n  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;\n  do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);\n  uVar2 = (*(code *)*ppuVar3)();\n  *param_3 = uVar2;\n  return ppuVar5;\n}" type_identifier (pointer_declarator "** FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)" * (pointer_declarator "* FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)" * (function_declarator "FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined *param_1,void *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  undefined **ppuVar4;\n  undefined **ppuVar5;\n  \n  ppuVar4 = &PTR_PTR_FUN_0005c920;\n  ppuVar3 = &PTR_FUN_0005cd44;\n  ppuVar5 = &PTR_FUN_0005c9e0;\n  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;\n  do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);\n  uVar2 = (*(code *)*ppuVar3)();\n  *param_3 = uVar2;\n  return ppuVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "undefined **ppuVar4;" type_identifier (pointer_declarator "**ppuVar4" * (pointer_declarator "*ppuVar4" * identifier)) ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (expression_statement "ppuVar4 = &PTR_PTR_FUN_0005c920;" (assignment_expression "ppuVar4 = &PTR_PTR_FUN_0005c920" identifier = (pointer_expression "&PTR_PTR_FUN_0005c920" & identifier)) ;) (expression_statement "ppuVar3 = &PTR_FUN_0005cd44;" (assignment_expression "ppuVar3 = &PTR_FUN_0005cd44" identifier = (pointer_expression "&PTR_FUN_0005cd44" & identifier)) ;) (expression_statement "ppuVar5 = &PTR_FUN_0005c9e0;" (assignment_expression "ppuVar5 = &PTR_FUN_0005c9e0" identifier = (pointer_expression "&PTR_FUN_0005c9e0" & identifier)) ;) (if_statement "if (param_1 == (undefined *)0x8) goto LAB_0002cb67;" if (parenthesized_expression "(param_1 == (undefined *)0x8)" ( (binary_expression "param_1 == (undefined *)0x8" identifier == (cast_expression "(undefined *)0x8" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0002cb67;" goto statement_identifier ;)) (do_statement "do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);" do (compound_statement "{\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  }" { (do_statement "do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);" do (compound_statement "{\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    }" { (expression_statement "ppuVar4 = ppuVar4 + 1;" (assignment_expression "ppuVar4 = ppuVar4 + 1" identifier = (binary_expression "ppuVar4 + 1" identifier + number_literal)) ;) (if_statement "if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }" if (parenthesized_expression "(ppuVar4 == (undefined **)&DAT_0005c92c)" ( (binary_expression "ppuVar4 == (undefined **)&DAT_0005c92c" identifier == (cast_expression "(undefined **)&DAT_0005c92c" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&DAT_0005c92c" & identifier))) )) (compound_statement "{\n        return (undefined **)0x0;\n      }" { (return_statement "return (undefined **)0x0;" return (cast_expression "(undefined **)0x0" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ;) })) (expression_statement "ppuVar5 = (undefined **)*ppuVar4;" (assignment_expression "ppuVar5 = (undefined **)*ppuVar4" identifier = (cast_expression "(undefined **)*ppuVar4" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*ppuVar4" * identifier))) ;) (expression_statement "ppuVar3 = (undefined **)ppuVar5[0xe];" (assignment_expression "ppuVar3 = (undefined **)ppuVar5[0xe]" identifier = (cast_expression "(undefined **)ppuVar5[0xe]" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "ppuVar5[0xe]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(param_1 != ppuVar3[3])" ( (binary_expression "param_1 != ppuVar3[3]" identifier != (subscript_expression "ppuVar3[3]" identifier [ number_literal ])) )) ;) (labeled_statement "LAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);" statement_identifier : (expression_statement "iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);" (assignment_expression "iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1)" identifier = (call_expression "memcmp(param_2,ppuVar3[2],(size_t)param_1)" identifier (argument_list "(param_2,ppuVar3[2],(size_t)param_1)" ( identifier , (subscript_expression "ppuVar3[2]" identifier [ number_literal ]) , (cast_expression "(size_t)param_1" ( (type_descriptor "size_t" primitive_type) ) identifier) )))) ;)) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (expression_statement "uVar2 = (*(code *)*ppuVar3)();" (assignment_expression "uVar2 = (*(code *)*ppuVar3)()" identifier = (call_expression "(*(code *)*ppuVar3)()" (parenthesized_expression "(*(code *)*ppuVar3)" ( (pointer_expression "*(code *)*ppuVar3" * (cast_expression "(code *)*ppuVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppuVar3" * identifier))) )) (argument_list "()" ( )))) ;) (expression_statement "*param_3 = uVar2;" (assignment_expression "*param_3 = uVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return ppuVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (do_statement do (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression & IDENT))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (subscript_expression IDENT [ LIT ])) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;)) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined ** FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  undefined **ppuVar4;\n  undefined **ppuVar5;\n  \n  ppuVar4 = &PTR_PTR_FUN_0005c920;\n  ppuVar3 = &PTR_FUN_0005cd44;\n  ppuVar5 = &PTR_FUN_0005c9e0;\n  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;\n  do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);\n  uVar2 = (*(code *)*ppuVar3)();\n  *param_3 = uVar2;\n  return ppuVar5;\n}" (type_identifier "undefined") (pointer_declarator "** FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)" (* "*") (pointer_declarator "* FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)" (* "*") (function_declarator "FUN_0002cb20(undefined *param_1,void *param_2,undefined4 *param_3)" (identifier "FUN_0002cb20") (parameter_list "(undefined *param_1,void *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined *param_1" (type_identifier "undefined") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined **ppuVar3;\n  undefined **ppuVar4;\n  undefined **ppuVar5;\n  \n  ppuVar4 = &PTR_PTR_FUN_0005c920;\n  ppuVar3 = &PTR_FUN_0005cd44;\n  ppuVar5 = &PTR_FUN_0005c9e0;\n  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;\n  do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);\n  uVar2 = (*(code *)*ppuVar3)();\n  *param_3 = uVar2;\n  return ppuVar5;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined **ppuVar3;" (type_identifier "undefined") (pointer_declarator "**ppuVar3" (* "*") (pointer_declarator "*ppuVar3" (* "*") (identifier "ppuVar3"))) (; ";")) (declaration "undefined **ppuVar4;" (type_identifier "undefined") (pointer_declarator "**ppuVar4" (* "*") (pointer_declarator "*ppuVar4" (* "*") (identifier "ppuVar4"))) (; ";")) (declaration "undefined **ppuVar5;" (type_identifier "undefined") (pointer_declarator "**ppuVar5" (* "*") (pointer_declarator "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (expression_statement "ppuVar4 = &PTR_PTR_FUN_0005c920;" (assignment_expression "ppuVar4 = &PTR_PTR_FUN_0005c920" (identifier "ppuVar4") (= "=") (pointer_expression "&PTR_PTR_FUN_0005c920" (& "&") (identifier "PTR_PTR_FUN_0005c920"))) (; ";")) (expression_statement "ppuVar3 = &PTR_FUN_0005cd44;" (assignment_expression "ppuVar3 = &PTR_FUN_0005cd44" (identifier "ppuVar3") (= "=") (pointer_expression "&PTR_FUN_0005cd44" (& "&") (identifier "PTR_FUN_0005cd44"))) (; ";")) (expression_statement "ppuVar5 = &PTR_FUN_0005c9e0;" (assignment_expression "ppuVar5 = &PTR_FUN_0005c9e0" (identifier "ppuVar5") (= "=") (pointer_expression "&PTR_FUN_0005c9e0" (& "&") (identifier "PTR_FUN_0005c9e0"))) (; ";")) (if_statement "if (param_1 == (undefined *)0x8) goto LAB_0002cb67;" (if "if") (parenthesized_expression "(param_1 == (undefined *)0x8)" (( "(") (binary_expression "param_1 == (undefined *)0x8" (identifier "param_1") (== "==") (cast_expression "(undefined *)0x8" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x8"))) () ")")) (goto_statement "goto LAB_0002cb67;" (goto "goto") (statement_identifier "LAB_0002cb67") (; ";"))) (do_statement "do {\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  } while (iVar1 != 0);" (do "do") (compound_statement "{\n    do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);\nLAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);\n  }" ({ "{") (do_statement "do {\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    } while (param_1 != ppuVar3[3]);" (do "do") (compound_statement "{\n      ppuVar4 = ppuVar4 + 1;\n      if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }\n      ppuVar5 = (undefined **)*ppuVar4;\n      ppuVar3 = (undefined **)ppuVar5[0xe];\n    }" ({ "{") (expression_statement "ppuVar4 = ppuVar4 + 1;" (assignment_expression "ppuVar4 = ppuVar4 + 1" (identifier "ppuVar4") (= "=") (binary_expression "ppuVar4 + 1" (identifier "ppuVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (ppuVar4 == (undefined **)&DAT_0005c92c) {\n        return (undefined **)0x0;\n      }" (if "if") (parenthesized_expression "(ppuVar4 == (undefined **)&DAT_0005c92c)" (( "(") (binary_expression "ppuVar4 == (undefined **)&DAT_0005c92c" (identifier "ppuVar4") (== "==") (cast_expression "(undefined **)&DAT_0005c92c" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "&DAT_0005c92c" (& "&") (identifier "DAT_0005c92c")))) () ")")) (compound_statement "{\n        return (undefined **)0x0;\n      }" ({ "{") (return_statement "return (undefined **)0x0;" (return "return") (cast_expression "(undefined **)0x0" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "ppuVar5 = (undefined **)*ppuVar4;" (assignment_expression "ppuVar5 = (undefined **)*ppuVar4" (identifier "ppuVar5") (= "=") (cast_expression "(undefined **)*ppuVar4" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*ppuVar4" (* "*") (identifier "ppuVar4")))) (; ";")) (expression_statement "ppuVar3 = (undefined **)ppuVar5[0xe];" (assignment_expression "ppuVar3 = (undefined **)ppuVar5[0xe]" (identifier "ppuVar3") (= "=") (cast_expression "(undefined **)ppuVar5[0xe]" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (subscript_expression "ppuVar5[0xe]" (identifier "ppuVar5") ([ "[") (number_literal "0xe") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != ppuVar3[3])" (( "(") (binary_expression "param_1 != ppuVar3[3]" (identifier "param_1") (!= "!=") (subscript_expression "ppuVar3[3]" (identifier "ppuVar3") ([ "[") (number_literal "3") (] "]"))) () ")")) (; ";")) (labeled_statement "LAB_0002cb67:\n    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);" (statement_identifier "LAB_0002cb67") (: ":") (expression_statement "iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);" (assignment_expression "iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1)" (identifier "iVar1") (= "=") (call_expression "memcmp(param_2,ppuVar3[2],(size_t)param_1)" (identifier "memcmp") (argument_list "(param_2,ppuVar3[2],(size_t)param_1)" (( "(") (identifier "param_2") (, ",") (subscript_expression "ppuVar3[2]" (identifier "ppuVar3") ([ "[") (number_literal "2") (] "]")) (, ",") (cast_expression "(size_t)param_1" (( "(") (type_descriptor "size_t" (primitive_type "size_t")) () ")") (identifier "param_1")) () ")")))) (; ";"))) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "uVar2 = (*(code *)*ppuVar3)();" (assignment_expression "uVar2 = (*(code *)*ppuVar3)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)*ppuVar3)()" (parenthesized_expression "(*(code *)*ppuVar3)" (( "(") (pointer_expression "*(code *)*ppuVar3" (* "*") (cast_expression "(code *)*ppuVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*ppuVar3" (* "*") (identifier "ppuVar3")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_3 = uVar2;" (assignment_expression "*param_3 = uVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return ppuVar5;" (return "return") (identifier "ppuVar5") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 * function_1(int var_1,void *oid,type_2 **curve)

{
  int var_4;
  type_2 *peVar2;
  type_3 *peVar3;
  type_1 **var_2;
  type_1 *psVar5;
  
  var_2 = function_1::algs_with_oid;
  peVar3 = &sign_extra_nistp256;
  psVar5 = &ssh_ecdsa_nistp256;
  if (var_1 == 8) goto LAB_0002cb67;
  do {
    do {
      var_2 = var_2 + 1;
      if ((type_4 *)var_2 == &ssh_ecdh_kex) {
        return (type_1 *)0x0;
      }
      psVar5 = *var_2;
      peVar3 = (type_3 *)psVar5->extra;
    } while (var_1 != peVar3->oidlen);
LAB_0002cb67:
    var_4 = var_3(oid,peVar3->oid,var_1);
  } while (var_4 != 0);
  peVar2 = (*peVar3->curve)();
  *curve = peVar2;
  return psVar5;
}


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

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

undefined ** MASKED(undefined *param_1,void *param_2,undefined4 *param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined **ppuVar3;
  undefined **ppuVar4;
  undefined **ppuVar5;
  
  ppuVar4 = &PTR_PTR_FUN_0005c920;
  ppuVar3 = &PTR_FUN_0005cd44;
  ppuVar5 = &PTR_FUN_0005c9e0;
  if (param_1 == (undefined *)0x8) goto LAB_0002cb67;
  do {
    do {
      ppuVar4 = ppuVar4 + 1;
      if (ppuVar4 == (undefined **)&DAT_0005c92c) {
        return (undefined **)0x0;
      }
      ppuVar5 = (undefined **)*ppuVar4;
      ppuVar3 = (undefined **)ppuVar5[0xe];
    } while (param_1 != ppuVar3[3]);
LAB_0002cb67:
    iVar1 = memcmp(param_2,ppuVar3[2],(size_t)param_1);
  } while (iVar1 != 0);
  uVar2 = (*(code *)*ppuVar3)();
  *param_3 = uVar2;
  return ppuVar5;
}

