
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

Ssh_gss_stat
ssh_gssapi_init_sec_context
          (ssh_gss_library *lib,Ssh_gss_ctx *ctx,Ssh_gss_name srv_name,int to_deleg,
          Ssh_gss_buf *recv_tok,Ssh_gss_buf *send_tok)

{
  Ssh_gss_stat *pSVar1;
  Ssh_gss_stat SVar2;
  int in_GS_OFFSET;
  OM_uint32 ret_flags;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  pSVar1 = (Ssh_gss_stat *)*ctx;
  SVar2 = (*(lib->u).gssapi.init_sec_context)
                    (pSVar1 + 1,(gss_cred_id_t)0x0,(gss_ctx_id_t *)(pSVar1 + 2),srv_name,
                     GSS_MECH_KRB5,SUB14(to_deleg != 0,0) | 0x22,0,(gss_channel_bindings_t)0x0,
                     recv_tok,(gss_OID *)0x0,send_tok,&ret_flags,(OM_uint32 *)0x0);
  *pSVar1 = SVar2;
  if ((SVar2 != SSH_GSS_OK) && (SVar2 != SSH_GSS_S_CONTINUE_NEEDED)) {
    SVar2 = SSH_GSS_FAILURE;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return SVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int FUN_0004de30(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,
                undefined4 param_6)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined1 local_14 [4];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  param_2 = (int *)*param_2;
  iVar1 = (**(code **)(param_1 + 0x40))
                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,
                     param_5,0,param_6,local_14,0);
  *param_2 = iVar1;
  if ((iVar1 != 0) && (iVar1 != 1)) {
    iVar1 = 4;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006dad0();
}


CALL 0x000160d5
ADD EDX,0x56f3b
PUSH EBX
SUB ESP,0x24
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x18],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV EBX,dword ptr [EAX]
PUSH 0x0
LEA EAX,[ESP + 0x18]
PUSH EAX
XOR EAX,EAX
PUSH dword ptr [ESP + 0x48]
PUSH 0x0
PUSH dword ptr [ESP + 0x4c]
PUSH 0x0
PUSH 0x0
MOV ECX,dword ptr [ESP + 0x54]
TEST ECX,ECX
SETNZ AL
OR EAX,0x22
PUSH EAX
LEA EAX,[EDX + 0xffffe9f0]
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0x8]
PUSH dword ptr [ESP + 0x58]
PUSH EAX
LEA EAX,[EBX + 0x4]
PUSH 0x0
PUSH EAX
MOV EAX,dword ptr [ESP + 0x60]
CALL dword ptr [EAX + 0x40]
MOV dword ptr [EBX],EAX
ADD ESP,0x40
TEST EAX,EAX
JZ 0x0004dea6
CMP EAX,0x1
MOV EDX,0x4
CMOVNZ EAX,EDX
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0004deb8
ADD ESP,0x18
POP EBX
RET
CALL 0x0006dad0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nint FUN_0004de30(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = (int *)*param_2;\n  iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);\n  *param_2 = iVar1;\n  if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006dad0();\n}\n\n" comment (function_definition "int FUN_0004de30(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = (int *)*param_2;\n  iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);\n  *param_2 = iVar1;\n  if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006dad0();\n}" primitive_type (function_declarator "FUN_0004de30(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)" identifier (parameter_list "(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = (int *)*param_2;\n  iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);\n  *param_2 = iVar1;\n  if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006dad0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);" (assignment_expression "iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0)" identifier = (call_expression "(**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0)" (parenthesized_expression "(**(code **)(param_1 + 0x40))" ( (pointer_expression "**(code **)(param_1 + 0x40)" * (pointer_expression "*(code **)(param_1 + 0x40)" * (cast_expression "(code **)(param_1 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) )) (argument_list "(param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0)" ( (binary_expression "param_2 + 1" identifier + number_literal) , number_literal , (binary_expression "param_2 + 2" identifier + number_literal) , identifier , identifier , (binary_expression "param_4 != 0 | 0x22" (binary_expression "param_4 != 0" identifier != number_literal) | number_literal) , number_literal , number_literal , identifier , number_literal , identifier , identifier , number_literal )))) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (if_statement "if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 != 1))" ( (binary_expression "(iVar1 != 0) && (iVar1 != 1)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) ))) )) (compound_statement "{\n    iVar1 = 4;\n  }" { (expression_statement "iVar1 = 4;" (assignment_expression "iVar1 = 4" identifier = number_literal) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nSsh_gss_stat\nssh_gssapi_init_sec_context\n          (ssh_gss_library *lib,Ssh_gss_ctx *ctx,Ssh_gss_name srv_name,int to_deleg,\n          Ssh_gss_buf *recv_tok,Ssh_gss_buf *send_tok)\n\n{\n  Ssh_gss_stat *pSVar1;\n  Ssh_gss_stat SVar2;\n  int in_GS_OFFSET;\n  OM_uint32 ret_flags;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  pSVar1 = (Ssh_gss_stat *)*ctx;\n  SVar2 = (*(lib->u).gssapi.init_sec_context)\n                    (pSVar1 + 1,(gss_cred_id_t)0x0,(gss_ctx_id_t *)(pSVar1 + 2),srv_name,\n                     GSS_MECH_KRB5,SUB14(to_deleg != 0,0) | 0x22,0,(gss_channel_bindings_t)0x0,\n                     recv_tok,(gss_OID *)0x0,send_tok,&ret_flags,(OM_uint32 *)0x0);\n  *pSVar1 = SVar2;\n  if ((SVar2 != SSH_GSS_OK) && (SVar2 != SSH_GSS_S_CONTINUE_NEEDED)) {\n    SVar2 = SSH_GSS_FAILURE;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return SVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "Ssh_gss_stat\nssh_gssapi_init_sec_context\n          (ssh_gss_library *lib,Ssh_gss_ctx *ctx,Ssh_gss_name srv_name,int to_deleg,\n          Ssh_gss_buf *recv_tok,Ssh_gss_buf *send_tok)\n\n{\n  Ssh_gss_stat *pSVar1;\n  Ssh_gss_stat SVar2;\n  int in_GS_OFFSET;\n  OM_uint32 ret_flags;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  pSVar1 = (Ssh_gss_stat *)*ctx;\n  SVar2 = (*(lib->u).gssapi.init_sec_context)\n                    (pSVar1 + 1,(gss_cred_id_t)0x0,(gss_ctx_id_t *)(pSVar1 + 2),srv_name,\n                     GSS_MECH_KRB5,SUB14(to_deleg != 0,0) | 0x22,0,(gss_channel_bindings_t)0x0,\n                     recv_tok,(gss_OID *)0x0,send_tok,&ret_flags,(OM_uint32 *)0x0);\n  *pSVar1 = SVar2;\n  if ((SVar2 != SSH_GSS_OK) && (SVar2 != SSH_GSS_S_CONTINUE_NEEDED)) {\n    SVar2 = SSH_GSS_FAILURE;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return SVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "ssh_gssapi_init_sec_context\n          (ssh_gss_library *lib,Ssh_gss_ctx *ctx,Ssh_gss_name srv_name,int to_deleg,\n          Ssh_gss_buf *recv_tok,Ssh_gss_buf *send_tok)" identifier (parameter_list "(ssh_gss_library *lib,Ssh_gss_ctx *ctx,Ssh_gss_name srv_name,int to_deleg,\n          Ssh_gss_buf *recv_tok,Ssh_gss_buf *send_tok)" ( (parameter_declaration "ssh_gss_library *lib" type_identifier (pointer_declarator "*lib" * identifier)) , (parameter_declaration "Ssh_gss_ctx *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "Ssh_gss_name srv_name" type_identifier identifier) , (parameter_declaration "int to_deleg" primitive_type identifier) , (parameter_declaration "Ssh_gss_buf *recv_tok" type_identifier (pointer_declarator "*recv_tok" * identifier)) , (parameter_declaration "Ssh_gss_buf *send_tok" type_identifier (pointer_declarator "*send_tok" * identifier)) ))) (compound_statement "{\n  Ssh_gss_stat *pSVar1;\n  Ssh_gss_stat SVar2;\n  int in_GS_OFFSET;\n  OM_uint32 ret_flags;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  pSVar1 = (Ssh_gss_stat *)*ctx;\n  SVar2 = (*(lib->u).gssapi.init_sec_context)\n                    (pSVar1 + 1,(gss_cred_id_t)0x0,(gss_ctx_id_t *)(pSVar1 + 2),srv_name,\n                     GSS_MECH_KRB5,SUB14(to_deleg != 0,0) | 0x22,0,(gss_channel_bindings_t)0x0,\n                     recv_tok,(gss_OID *)0x0,send_tok,&ret_flags,(OM_uint32 *)0x0);\n  *pSVar1 = SVar2;\n  if ((SVar2 != SSH_GSS_OK) && (SVar2 != SSH_GSS_S_CONTINUE_NEEDED)) {\n    SVar2 = SSH_GSS_FAILURE;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return SVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "Ssh_gss_stat *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "Ssh_gss_stat SVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "OM_uint32 ret_flags;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pSVar1 = (Ssh_gss_stat *)*ctx;" (assignment_expression "pSVar1 = (Ssh_gss_stat *)*ctx" identifier = (cast_expression "(Ssh_gss_stat *)*ctx" ( (type_descriptor "Ssh_gss_stat *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ctx" * identifier))) ;) (expression_statement "SVar2 = (*(lib->u).gssapi.init_sec_context)\n                    (pSVar1 + 1,(gss_cred_id_t)0x0,(gss_ctx_id_t *)(pSVar1 + 2),srv_name,\n                     GSS_MECH_KRB5,SUB14(to_deleg != 0,0) | 0x22,0,(gss_channel_bindings_t)0x0,\n                     recv_tok,(gss_OID *)0x0,send_tok,&ret_flags,(OM_uint32 *)0x0);" (assignment_expression "SVar2 = (*(lib->u).gssapi.init_sec_context)\n                    (pSVar1 + 1,(gss_cred_id_t)0x0,(gss_ctx_id_t *)(pSVar1 + 2),srv_name,\n                     GSS_MECH_KRB5,SUB14(to_deleg != 0,0) | 0x22,0,(gss_channel_bindings_t)0x0,\n                     recv_tok,(gss_OID *)0x0,send_tok,&ret_flags,(OM_uint32 *)0x0)" identifier = (call_expression "(*(lib->u).gssapi.init_sec_context)\n                    (pSVar1 + 1,(gss_cred_id_t)0x0,(gss_ctx_id_t *)(pSVar1 + 2),srv_name,\n                     GSS_MECH_KRB5,SUB14(to_deleg != 0,0) | 0x22,0,(gss_channel_bindings_t)0x0,\n                     recv_tok,(gss_OID *)0x0,send_tok,&ret_flags,(OM_uint32 *)0x0)" (parenthesized_expression "(*(lib->u).gssapi.init_sec_context)" ( (pointer_expression "*(lib->u).gssapi.init_sec_context" * (field_expression "(lib->u).gssapi.init_sec_context" (field_expression "(lib->u).gssapi" (parenthesized_expression "(lib->u)" ( (field_expression "lib->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) )) (argument_list "(pSVar1 + 1,(gss_cred_id_t)0x0,(gss_ctx_id_t *)(pSVar1 + 2),srv_name,\n                     GSS_MECH_KRB5,SUB14(to_deleg != 0,0) | 0x22,0,(gss_channel_bindings_t)0x0,\n                     recv_tok,(gss_OID *)0x0,send_tok,&ret_flags,(OM_uint32 *)0x0)" ( (binary_expression "pSVar1 + 1" identifier + number_literal) , (cast_expression "(gss_cred_id_t)0x0" ( (type_descriptor "gss_cred_id_t" type_identifier) ) number_literal) , (cast_expression "(gss_ctx_id_t *)(pSVar1 + 2)" ( (type_descriptor "gss_ctx_id_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pSVar1 + 2)" ( (binary_expression "pSVar1 + 2" identifier + number_literal) ))) , identifier , identifier , (binary_expression "SUB14(to_deleg != 0,0) | 0x22" (call_expression "SUB14(to_deleg != 0,0)" identifier (argument_list "(to_deleg != 0,0)" ( (binary_expression "to_deleg != 0" identifier != number_literal) , number_literal ))) | number_literal) , number_literal , (cast_expression "(gss_channel_bindings_t)0x0" ( (type_descriptor "gss_channel_bindings_t" type_identifier) ) number_literal) , identifier , (cast_expression "(gss_OID *)0x0" ( (type_descriptor "gss_OID *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (pointer_expression "&ret_flags" & identifier) , (cast_expression "(OM_uint32 *)0x0" ( (type_descriptor "OM_uint32 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "*pSVar1 = SVar2;" (assignment_expression "*pSVar1 = SVar2" (pointer_expression "*pSVar1" * identifier) = identifier) ;) (if_statement "if ((SVar2 != SSH_GSS_OK) && (SVar2 != SSH_GSS_S_CONTINUE_NEEDED)) {\n    SVar2 = SSH_GSS_FAILURE;\n  }" if (parenthesized_expression "((SVar2 != SSH_GSS_OK) && (SVar2 != SSH_GSS_S_CONTINUE_NEEDED))" ( (binary_expression "(SVar2 != SSH_GSS_OK) && (SVar2 != SSH_GSS_S_CONTINUE_NEEDED)" (parenthesized_expression "(SVar2 != SSH_GSS_OK)" ( (binary_expression "SVar2 != SSH_GSS_OK" identifier != identifier) )) && (parenthesized_expression "(SVar2 != SSH_GSS_S_CONTINUE_NEEDED)" ( (binary_expression "SVar2 != SSH_GSS_S_CONTINUE_NEEDED" identifier != identifier) ))) )) (compound_statement "{\n    SVar2 = SSH_GSS_FAILURE;\n  }" { (expression_statement "SVar2 = SSH_GSS_FAILURE;" (assignment_expression "SVar2 = SSH_GSS_FAILURE" identifier = identifier) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return SVar2;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return SVar2;\n  }" { (return_statement "return SVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_0004de30(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = (int *)*param_2;\n  iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);\n  *param_2 = iVar1;\n  if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0006dad0();\n}\n\n" (function_definition "int FUN_0004de30(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = (int *)*param_2;\n  iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);\n  *param_2 = iVar1;\n  if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0006dad0();\n}" primitive_type (function_declarator "FUN_0004de30(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)" identifier (parameter_list "(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = (int *)*param_2;\n  iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);\n  *param_2 = iVar1;\n  if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0006dad0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);" (assignment_expression "iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0)" identifier = (call_expression "(**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0)" (parenthesized_expression "(**(code **)(param_1 + 0x40))" ( (pointer_expression "**(code **)(param_1 + 0x40)" * (pointer_expression "*(code **)(param_1 + 0x40)" * (cast_expression "(code **)(param_1 + 0x40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) ))))) )) (argument_list "(param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0)" ( (binary_expression "param_2 + 1" identifier + number_literal) , number_literal , (binary_expression "param_2 + 2" identifier + number_literal) , identifier , identifier , (binary_expression "param_4 != 0 | 0x22" (binary_expression "param_4 != 0" identifier != number_literal) | number_literal) , number_literal , number_literal , identifier , number_literal , identifier , identifier , number_literal )))) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (if_statement "if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 != 1))" ( (binary_expression "(iVar1 != 0) && (iVar1 != 1)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) ))) )) (compound_statement "{\n    iVar1 = 4;\n  }" { (expression_statement "iVar1 = 4;" (assignment_expression "iVar1 = 4" identifier = number_literal) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , IDENT , IDENT , (binary_expression (binary_expression IDENT != LIT) | LIT) , LIT , LIT , IDENT , LIT , IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_0004de30(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = (int *)*param_2;\n  iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);\n  *param_2 = iVar1;\n  if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0006dad0();\n}" (primitive_type "int") (function_declarator "FUN_0004de30(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)" (identifier "FUN_0004de30") (parameter_list "(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,\n                undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_14 [4];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2 = (int *)*param_2;\n  iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);\n  *param_2 = iVar1;\n  if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0006dad0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_14 [4];" (type_identifier "undefined1") (array_declarator "local_14 [4]" (identifier "local_14") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" (identifier "param_2") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0);" (assignment_expression "iVar1 = (**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(param_1 + 0x40))\n                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0)" (parenthesized_expression "(**(code **)(param_1 + 0x40))" (( "(") (pointer_expression "**(code **)(param_1 + 0x40)" (* "*") (pointer_expression "*(code **)(param_1 + 0x40)" (* "*") (cast_expression "(code **)(param_1 + 0x40)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")"))))) () ")")) (argument_list "(param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,\n                     param_5,0,param_6,local_14,0)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (, ",") (number_literal "0") (, ",") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) (, ",") (identifier "param_3") (, ",") (identifier "PTR_DAT_000a3760") (, ",") (binary_expression "param_4 != 0 | 0x22" (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) (| "|") (number_literal "0x22")) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_5") (, ",") (number_literal "0") (, ",") (identifier "param_6") (, ",") (identifier "local_14") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar1 != 1)) {\n    iVar1 = 4;\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar1 != 1))" (( "(") (binary_expression "(iVar1 != 0) && (iVar1 != 1)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n    iVar1 = 4;\n  }" ({ "{") (expression_statement "iVar1 = 4;" (assignment_expression "iVar1 = 4" (identifier "iVar1") (= "=") (number_literal "4")) (; ";")) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "FUN_0006dad0();" (call_expression "FUN_0006dad0()" (identifier "FUN_0006dad0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

type_1
function_1
          (type_2 *lib,type_3 *ctx,type_4 srv_name,int var_4,
          type_5 *recv_tok,type_5 *send_tok)

{
  type_1 *var_2;
  type_1 var_5;
  int var_1;
  type_6 ret_flags;
  int var_8;
  
  var_8 = *(int *)(var_1 + 0x14);
  var_2 = (type_1 *)*ctx;
  var_5 = (*(lib->u).gssapi.init_sec_context)
                    (var_2 + 1,(type_7)0x0,(type_8 *)(var_2 + 2),srv_name,
                     GSS_MECH_KRB5,var_3(var_4 != 0,0) | 0x22,0,(type_9)0x0,
                     recv_tok,(type_10 *)0x0,send_tok,&ret_flags,(type_6 *)0x0);
  *var_2 = var_5;
  if ((var_5 != var_6) && (var_5 != var_7)) {
    var_5 = SSH_GSS_FAILURE;
  }
  if (var_8 == *(int *)(var_1 + 0x14)) {
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


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

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int MASKED(int param_1,int *param_2,undefined4 param_3,int param_4,undefined4 param_5,
                undefined4 param_6)

{
  int iVar1;
  int in_GS_OFFSET;
  undefined1 local_14 [4];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  param_2 = (int *)*param_2;
  iVar1 = (**(code **)(param_1 + 0x40))
                    (param_2 + 1,0,param_2 + 2,param_3,PTR_DAT_000a3760,param_4 != 0 | 0x22,0,0,
                     param_5,0,param_6,local_14,0);
  *param_2 = iVar1;
  if ((iVar1 != 0) && (iVar1 != 1)) {
    iVar1 = 4;
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006dad0();
}

