
/* WARNING: Unknown calling convention */

Ssh_gss_stat
ssh_gssapi_get_mic(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf,Ssh_gss_buf *hash)

{
  Ssh_gss_stat SVar1;
  
  if (ctx != (Ssh_gss_ctx)0x0) {
    SVar1 = (*(lib->u).gssapi.get_mic)
                      ((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash);
    return SVar1;
  }
  return SSH_GSS_FAILURE;
}



undefined4 FUN_00052640(int param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  
  if (param_2 != 0) {
    uVar1 = (**(code **)(param_1 + 0x38))
                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);
    return uVar1;
  }
  return 4;
}


SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x00052670
SUB ESP,0xc
ADD EAX,0x4
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH 0x0
PUSH dword ptr [EAX + 0x4]
PUSH EAX
MOV EAX,dword ptr [ESP + 0x30]
CALL dword ptr [EAX + 0x38]
ADD ESP,0x20
ADD ESP,0xc
RET
MOV EAX,0x4
ADD ESP,0xc
RET
(translation_unit "undefined4 FUN_00052640(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }\n  return 4;\n}\n\n" (function_definition "undefined4 FUN_00052640(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }\n  return 4;\n}" type_identifier (function_declarator "FUN_00052640(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }\n  return 4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);" (assignment_expression "uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4)" identifier = (call_expression "(**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4)" (parenthesized_expression "(**(code **)(param_1 + 0x38))" ( (pointer_expression "**(code **)(param_1 + 0x38)" * (pointer_expression "*(code **)(param_1 + 0x38)" * (cast_expression "(code **)(param_1 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) )) (argument_list "(param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4)" ( (binary_expression "param_2 + 4" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , number_literal , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 4;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nSsh_gss_stat\nssh_gssapi_get_mic(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf,Ssh_gss_buf *hash)\n\n{\n  Ssh_gss_stat SVar1;\n  \n  if (ctx != (Ssh_gss_ctx)0x0) {\n    SVar1 = (*(lib->u).gssapi.get_mic)\n                      ((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash);\n    return SVar1;\n  }\n  return SSH_GSS_FAILURE;\n}\n\n" comment (function_definition "Ssh_gss_stat\nssh_gssapi_get_mic(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf,Ssh_gss_buf *hash)\n\n{\n  Ssh_gss_stat SVar1;\n  \n  if (ctx != (Ssh_gss_ctx)0x0) {\n    SVar1 = (*(lib->u).gssapi.get_mic)\n                      ((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash);\n    return SVar1;\n  }\n  return SSH_GSS_FAILURE;\n}" type_identifier (function_declarator "ssh_gssapi_get_mic(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf,Ssh_gss_buf *hash)" identifier (parameter_list "(ssh_gss_library *lib,Ssh_gss_ctx ctx,Ssh_gss_buf *buf,Ssh_gss_buf *hash)" ( (parameter_declaration "ssh_gss_library *lib" type_identifier (pointer_declarator "*lib" * identifier)) , (parameter_declaration "Ssh_gss_ctx ctx" type_identifier identifier) , (parameter_declaration "Ssh_gss_buf *buf" type_identifier (pointer_declarator "*buf" * identifier)) , (parameter_declaration "Ssh_gss_buf *hash" type_identifier (pointer_declarator "*hash" * identifier)) ))) (compound_statement "{\n  Ssh_gss_stat SVar1;\n  \n  if (ctx != (Ssh_gss_ctx)0x0) {\n    SVar1 = (*(lib->u).gssapi.get_mic)\n                      ((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash);\n    return SVar1;\n  }\n  return SSH_GSS_FAILURE;\n}" { (declaration "Ssh_gss_stat SVar1;" type_identifier identifier ;) (if_statement "if (ctx != (Ssh_gss_ctx)0x0) {\n    SVar1 = (*(lib->u).gssapi.get_mic)\n                      ((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash);\n    return SVar1;\n  }" if (parenthesized_expression "(ctx != (Ssh_gss_ctx)0x0)" ( (binary_expression "ctx != (Ssh_gss_ctx)0x0" identifier != (cast_expression "(Ssh_gss_ctx)0x0" ( (type_descriptor "Ssh_gss_ctx" type_identifier) ) number_literal)) )) (compound_statement "{\n    SVar1 = (*(lib->u).gssapi.get_mic)\n                      ((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash);\n    return SVar1;\n  }" { (expression_statement "SVar1 = (*(lib->u).gssapi.get_mic)\n                      ((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash);" (assignment_expression "SVar1 = (*(lib->u).gssapi.get_mic)\n                      ((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash)" identifier = (call_expression "(*(lib->u).gssapi.get_mic)\n                      ((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash)" (parenthesized_expression "(*(lib->u).gssapi.get_mic)" ( (pointer_expression "*(lib->u).gssapi.get_mic" * (field_expression "(lib->u).gssapi.get_mic" (field_expression "(lib->u).gssapi" (parenthesized_expression "(lib->u)" ( (field_expression "lib->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) )) (argument_list "((OM_uint32 *)((int)ctx + 4),*(gss_ctx_id_t *)((int)ctx + 8),0,buf,hash)" ( (cast_expression "(OM_uint32 *)((int)ctx + 4)" ( (type_descriptor "OM_uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 4)" ( (binary_expression "(int)ctx + 4" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , (pointer_expression "*(gss_ctx_id_t *)((int)ctx + 8)" * (cast_expression "(gss_ctx_id_t *)((int)ctx + 8)" ( (type_descriptor "gss_ctx_id_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ctx + 8)" ( (binary_expression "(int)ctx + 8" (cast_expression "(int)ctx" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , identifier , identifier )))) ;) (return_statement "return SVar1;" return identifier ;) })) (return_statement "return SSH_GSS_FAILURE;" return identifier ;) })))
(translation_unit "undefined4 FUN_00052640(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }\n  return 4;\n}\n\n" (function_definition "undefined4 FUN_00052640(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }\n  return 4;\n}" type_identifier (function_declarator "FUN_00052640(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }\n  return 4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }" { (expression_statement "uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);" (assignment_expression "uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4)" identifier = (call_expression "(**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4)" (parenthesized_expression "(**(code **)(param_1 + 0x38))" ( (pointer_expression "**(code **)(param_1 + 0x38)" * (pointer_expression "*(code **)(param_1 + 0x38)" * (cast_expression "(code **)(param_1 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) )) (argument_list "(param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4)" ( (binary_expression "param_2 + 4" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , number_literal , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (return_statement "return 4;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00052640(int param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }\n  return 4;\n}" (type_identifier "undefined4") (function_declarator "FUN_00052640(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00052640") (parameter_list "(int param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }\n  return 4;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_2 != 0) {\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);" (assignment_expression "uVar1 = (**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(param_1 + 0x38))\n                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4)" (parenthesized_expression "(**(code **)(param_1 + 0x38))" (( "(") (pointer_expression "**(code **)(param_1 + 0x38)" (* "*") (pointer_expression "*(code **)(param_1 + 0x38)" (* "*") (cast_expression "(code **)(param_1 + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (argument_list "(param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (, ",") (number_literal "0") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (return_statement "return 4;" (return "return") (number_literal "4") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1
function_1(type_2 *lib,type_3 var_1,type_4 *buf,type_4 *hash)

{
  type_1 SVar1;
  
  if (var_1 != (type_3)0x0) {
    SVar1 = (*(lib->u).gssapi.get_mic)
                      ((type_5 *)((int)var_1 + 4),*(type_6 *)((int)var_1 + 8),0,buf,hash);
    return SVar1;
  }
  return SSH_GSS_FAILURE;
}


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

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

{
  undefined4 uVar1;
  
  if (param_2 != 0) {
    uVar1 = (**(code **)(param_1 + 0x38))
                      (param_2 + 4,*(undefined4 *)(param_2 + 8),0,param_3,param_4);
    return uVar1;
  }
  return 4;
}

