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

void __regparm3 ssh2_log_incoming_packet(Ssh_conflict ssh,Packet *pkt)

{
  int iVar1;
  char *texttype;
  int n_blanks;
  int type;
  int in_GS_OFFSET;
  char *str;
  int slen;
  logblank_t blanks [4];
  
  n_blanks = ssh->logomitdata;
  type = pkt->type;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  pkt->savedpos = 0;
  if ((n_blanks != 0) && (n_blanks = 0, type - 0x5eU < 2)) {
    ssh_pkt_getuint32(pkt);
    if (pkt->type == 0x5f) {
      ssh_pkt_getuint32(pkt);
    }
    blanks[0].type = 2;
    blanks[0].offset = pkt->savedpos + 4;
    ssh_pkt_getstring(pkt,&str,&slen);
    if (str == (char *)0x0) {
      type = pkt->type;
      n_blanks = 0;
    }
    else {
      type = pkt->type;
      n_blanks = 1;
    }
  }
  texttype = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,type);
  log_packet(ssh->logctx,0,type,texttype,pkt->body,pkt->length,n_blanks,blanks,&pkt->sequence,0,
             (char *)0x0);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void __regparm3 FUN_0002bb60(int param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  int local_58;
  int local_50 [2];
  undefined4 local_48;
  int local_20;
  
  iVar2 = *(int *)(param_1 + 0x24c);
  iVar3 = param_2[2];
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  param_2[6] = 0;
  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {
    FUN_0002b1c0();
    if (param_2[2] == 0x5f) {
      FUN_0002b1c0();
    }
    local_48 = 2;
    local_50[0] = param_2[6] + 4;
    FUN_0002bab0();
    if (local_58 == 0) {
      iVar3 = param_2[2];
      iVar2 = 0;
    }
    else {
      iVar3 = param_2[2];
      iVar2 = 1;
    }
  }
  uVar1 = FUN_0002ad50();
  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,
               param_2 + 3,0,0);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}


CALL 0x0001b89b
ADD ECX,0x7e22b
PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EBX,EDX
SUB ESP,0x5c
MOV EBP,dword ptr [ESI + 0x24c]
MOV EDI,dword ptr [EDX + 0x8]
MOV dword ptr [ESP + 0xc],ECX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x4c],EAX
XOR EAX,EAX
MOV dword ptr [EDX + 0x18],0x0
TEST EBP,EBP
JZ 0x0002bba4
LEA EAX,[EDI + -0x5e]
XOR EBP,EBP
CMP EAX,0x1
JBE 0x0002bbf8
MOV EDX,dword ptr [ESI + 0x188]
MOV EAX,dword ptr [ESI + 0x184]
MOV ECX,EDI
CALL 0x0002ad50
SUB ESP,0x4
LEA EDX,[EBX + 0xc]
PUSH 0x0
PUSH 0x0
PUSH EDX
LEA EDX,[ESP + 0x2c]
PUSH EDX
PUSH EBP
PUSH dword ptr [EBX]
PUSH dword ptr [EBX + 0x14]
PUSH EAX
PUSH EDI
PUSH 0x0
PUSH dword ptr [ESI + 0x18]
MOV EBX,dword ptr [ESP + 0x3c]
CALL 0x00019860
ADD ESP,0x30
MOV EAX,dword ptr [ESP + 0x4c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0002bc61
ADD ESP,0x5c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,EDX
CALL 0x0002b1c0
CMP dword ptr [EBX + 0x8],0x5f
JZ 0x0002bc58
MOV EAX,dword ptr [EBX + 0x18]
LEA ECX,[ESP + 0x18]
LEA EDX,[ESP + 0x14]
MOV dword ptr [ESP + 0x24],0x2
ADD EAX,0x4
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,EBX
CALL 0x0002bab0
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x0002bc48
MOV EAX,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [EBX + 0x8]
MOV EBP,0x1
MOV dword ptr [ESP + 0x20],EAX
JMP 0x0002bba4
MOV EDI,dword ptr [EBX + 0x8]
XOR EBP,EBP
JMP 0x0002bba4
MOV EAX,EBX
CALL 0x0002b1c0
JMP 0x0002bc05
CALL 0x0006f430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid __regparm3 FUN_0002bb60(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_58;\n  int local_50 [2];\n  undefined4 local_48;\n  int local_20;\n  \n  iVar2 = *(int *)(param_1 + 0x24c);\n  iVar3 = param_2[2];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2[6] = 0;\n  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }\n  uVar1 = FUN_0002ad50();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}\n\n" comment (function_definition "void __regparm3 FUN_0002bb60(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_58;\n  int local_50 [2];\n  undefined4 local_48;\n  int local_20;\n  \n  iVar2 = *(int *)(param_1 + 0x24c);\n  iVar3 = param_2[2];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2[6] = 0;\n  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }\n  uVar1 = FUN_0002ad50();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002bb60(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_58;\n  int local_50 [2];\n  undefined4 local_48;\n  int local_20;\n  \n  iVar2 = *(int *)(param_1 + 0x24c);\n  iVar3 = param_2[2];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2[6] = 0;\n  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }\n  uVar1 = FUN_0002ad50();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_58;" primitive_type identifier ;) (declaration "int local_50 [2];" primitive_type (array_declarator "local_50 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24c)" identifier = (pointer_expression "*(int *)(param_1 + 0x24c)" * (cast_expression "(int *)(param_1 + 0x24c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24c)" ( (binary_expression "param_1 + 0x24c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = param_2[2];" (assignment_expression "iVar3 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2))" ( (binary_expression "(iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = 0, iVar3 - 0x5eU < 2)" ( (comma_expression "iVar2 = 0, iVar3 - 0x5eU < 2" (assignment_expression "iVar2 = 0" identifier = number_literal) , (binary_expression "iVar3 - 0x5eU < 2" (binary_expression "iVar3 - 0x5eU" identifier - number_literal) < number_literal)) ))) )) (compound_statement "{\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }" { (expression_statement "FUN_0002b1c0();" (call_expression "FUN_0002b1c0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }" if (parenthesized_expression "(param_2[2] == 0x5f)" ( (binary_expression "param_2[2] == 0x5f" (subscript_expression "param_2[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_0002b1c0();\n    }" { (expression_statement "FUN_0002b1c0();" (call_expression "FUN_0002b1c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_48 = 2;" (assignment_expression "local_48 = 2" identifier = number_literal) ;) (expression_statement "local_50[0] = param_2[6] + 4;" (assignment_expression "local_50[0] = param_2[6] + 4" (subscript_expression "local_50[0]" identifier [ number_literal ]) = (binary_expression "param_2[6] + 4" (subscript_expression "param_2[6]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }" if (parenthesized_expression "(local_58 == 0)" ( (binary_expression "local_58 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }" { (expression_statement "iVar3 = param_2[2];" (assignment_expression "iVar3 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }" else (compound_statement "{\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }" { (expression_statement "iVar3 = param_2[2];" (assignment_expression "iVar3 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }))) })) (expression_statement "uVar1 = FUN_0002ad50();" (assignment_expression "uVar1 = FUN_0002ad50()" identifier = (call_expression "FUN_0002ad50()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);" (call_expression "FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal , identifier , identifier , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (pointer_expression "*param_2" * identifier) , identifier , identifier , (binary_expression "param_2 + 3" identifier + number_literal) , number_literal , number_literal ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 ssh2_log_incoming_packet(Ssh_conflict ssh,Packet *pkt)\n\n{\n  int iVar1;\n  char *texttype;\n  int n_blanks;\n  int type;\n  int in_GS_OFFSET;\n  char *str;\n  int slen;\n  logblank_t blanks [4];\n  \n  n_blanks = ssh->logomitdata;\n  type = pkt->type;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pkt->savedpos = 0;\n  if ((n_blanks != 0) && (n_blanks = 0, type - 0x5eU < 2)) {\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pkt);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = pkt->type;\n      n_blanks = 0;\n    }\n    else {\n      type = pkt->type;\n      n_blanks = 1;\n    }\n  }\n  texttype = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,type);\n  log_packet(ssh->logctx,0,type,texttype,pkt->body,pkt->length,n_blanks,blanks,&pkt->sequence,0,\n             (char *)0x0);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void __regparm3 ssh2_log_incoming_packet(Ssh_conflict ssh,Packet *pkt)\n\n{\n  int iVar1;\n  char *texttype;\n  int n_blanks;\n  int type;\n  int in_GS_OFFSET;\n  char *str;\n  int slen;\n  logblank_t blanks [4];\n  \n  n_blanks = ssh->logomitdata;\n  type = pkt->type;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pkt->savedpos = 0;\n  if ((n_blanks != 0) && (n_blanks = 0, type - 0x5eU < 2)) {\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pkt);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = pkt->type;\n      n_blanks = 0;\n    }\n    else {\n      type = pkt->type;\n      n_blanks = 1;\n    }\n  }\n  texttype = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,type);\n  log_packet(ssh->logctx,0,type,texttype,pkt->body,pkt->length,n_blanks,blanks,&pkt->sequence,0,\n             (char *)0x0);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "ssh2_log_incoming_packet(Ssh_conflict ssh,Packet *pkt)" identifier (parameter_list "(Ssh_conflict ssh,Packet *pkt)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *texttype;\n  int n_blanks;\n  int type;\n  int in_GS_OFFSET;\n  char *str;\n  int slen;\n  logblank_t blanks [4];\n  \n  n_blanks = ssh->logomitdata;\n  type = pkt->type;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pkt->savedpos = 0;\n  if ((n_blanks != 0) && (n_blanks = 0, type - 0x5eU < 2)) {\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pkt);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = pkt->type;\n      n_blanks = 0;\n    }\n    else {\n      type = pkt->type;\n      n_blanks = 1;\n    }\n  }\n  texttype = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,type);\n  log_packet(ssh->logctx,0,type,texttype,pkt->body,pkt->length,n_blanks,blanks,&pkt->sequence,0,\n             (char *)0x0);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *texttype;" primitive_type (pointer_declarator "*texttype" * identifier) ;) (declaration "int n_blanks;" primitive_type identifier ;) (declaration "int type;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *str;" primitive_type (pointer_declarator "*str" * identifier) ;) (declaration "int slen;" primitive_type identifier ;) (declaration "logblank_t blanks [4];" type_identifier (array_declarator "blanks [4]" identifier [ number_literal ]) ;) (expression_statement "n_blanks = ssh->logomitdata;" (assignment_expression "n_blanks = ssh->logomitdata" identifier = (field_expression "ssh->logomitdata" identifier -> field_identifier)) ;) (expression_statement "type = pkt->type;" (assignment_expression "type = pkt->type" identifier = (field_expression "pkt->type" identifier -> field_identifier)) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 "pkt->savedpos = 0;" (assignment_expression "pkt->savedpos = 0" (field_expression "pkt->savedpos" identifier -> field_identifier) = number_literal) ;) (if_statement "if ((n_blanks != 0) && (n_blanks = 0, type - 0x5eU < 2)) {\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pkt);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = pkt->type;\n      n_blanks = 0;\n    }\n    else {\n      type = pkt->type;\n      n_blanks = 1;\n    }\n  }" if (parenthesized_expression "((n_blanks != 0) && (n_blanks = 0, type - 0x5eU < 2))" ( (binary_expression "(n_blanks != 0) && (n_blanks = 0, type - 0x5eU < 2)" (parenthesized_expression "(n_blanks != 0)" ( (binary_expression "n_blanks != 0" identifier != number_literal) )) && (parenthesized_expression "(n_blanks = 0, type - 0x5eU < 2)" ( (comma_expression "n_blanks = 0, type - 0x5eU < 2" (assignment_expression "n_blanks = 0" identifier = number_literal) , (binary_expression "type - 0x5eU < 2" (binary_expression "type - 0x5eU" identifier - number_literal) < number_literal)) ))) )) (compound_statement "{\n    ssh_pkt_getuint32(pkt);\n    if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pkt);\n    }\n    blanks[0].type = 2;\n    blanks[0].offset = pkt->savedpos + 4;\n    ssh_pkt_getstring(pkt,&str,&slen);\n    if (str == (char *)0x0) {\n      type = pkt->type;\n      n_blanks = 0;\n    }\n    else {\n      type = pkt->type;\n      n_blanks = 1;\n    }\n  }" { (expression_statement "ssh_pkt_getuint32(pkt);" (call_expression "ssh_pkt_getuint32(pkt)" identifier (argument_list "(pkt)" ( identifier ))) ;) (if_statement "if (pkt->type == 0x5f) {\n      ssh_pkt_getuint32(pkt);\n    }" if (parenthesized_expression "(pkt->type == 0x5f)" ( (binary_expression "pkt->type == 0x5f" (field_expression "pkt->type" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      ssh_pkt_getuint32(pkt);\n    }" { (expression_statement "ssh_pkt_getuint32(pkt);" (call_expression "ssh_pkt_getuint32(pkt)" identifier (argument_list "(pkt)" ( identifier ))) ;) })) (expression_statement "blanks[0].type = 2;" (assignment_expression "blanks[0].type = 2" (field_expression "blanks[0].type" (subscript_expression "blanks[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "blanks[0].offset = pkt->savedpos + 4;" (assignment_expression "blanks[0].offset = pkt->savedpos + 4" (field_expression "blanks[0].offset" (subscript_expression "blanks[0]" identifier [ number_literal ]) . field_identifier) = (binary_expression "pkt->savedpos + 4" (field_expression "pkt->savedpos" identifier -> field_identifier) + number_literal)) ;) (expression_statement "ssh_pkt_getstring(pkt,&str,&slen);" (call_expression "ssh_pkt_getstring(pkt,&str,&slen)" identifier (argument_list "(pkt,&str,&slen)" ( identifier , (pointer_expression "&str" & identifier) , (pointer_expression "&slen" & identifier) ))) ;) (if_statement "if (str == (char *)0x0) {\n      type = pkt->type;\n      n_blanks = 0;\n    }\n    else {\n      type = pkt->type;\n      n_blanks = 1;\n    }" if (parenthesized_expression "(str == (char *)0x0)" ( (binary_expression "str == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      type = pkt->type;\n      n_blanks = 0;\n    }" { (expression_statement "type = pkt->type;" (assignment_expression "type = pkt->type" identifier = (field_expression "pkt->type" identifier -> field_identifier)) ;) (expression_statement "n_blanks = 0;" (assignment_expression "n_blanks = 0" identifier = number_literal) ;) }) (else_clause "else {\n      type = pkt->type;\n      n_blanks = 1;\n    }" else (compound_statement "{\n      type = pkt->type;\n      n_blanks = 1;\n    }" { (expression_statement "type = pkt->type;" (assignment_expression "type = pkt->type" identifier = (field_expression "pkt->type" identifier -> field_identifier)) ;) (expression_statement "n_blanks = 1;" (assignment_expression "n_blanks = 1" identifier = number_literal) ;) }))) })) (expression_statement "texttype = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,type);" (assignment_expression "texttype = ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,type)" identifier = (call_expression "ssh2_pkt_type(ssh->pkt_kctx,ssh->pkt_actx,type)" identifier (argument_list "(ssh->pkt_kctx,ssh->pkt_actx,type)" ( (field_expression "ssh->pkt_kctx" identifier -> field_identifier) , (field_expression "ssh->pkt_actx" identifier -> field_identifier) , identifier )))) ;) (expression_statement "log_packet(ssh->logctx,0,type,texttype,pkt->body,pkt->length,n_blanks,blanks,&pkt->sequence,0,\n             (char *)0x0);" (call_expression "log_packet(ssh->logctx,0,type,texttype,pkt->body,pkt->length,n_blanks,blanks,&pkt->sequence,0,\n             (char *)0x0)" identifier (argument_list "(ssh->logctx,0,type,texttype,pkt->body,pkt->length,n_blanks,blanks,&pkt->sequence,0,\n             (char *)0x0)" ( (field_expression "ssh->logctx" identifier -> field_identifier) , number_literal , identifier , identifier , (field_expression "pkt->body" identifier -> field_identifier) , (field_expression "pkt->length" identifier -> field_identifier) , identifier , identifier , (pointer_expression "&pkt->sequence" & (field_expression "pkt->sequence" identifier -> field_identifier)) , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 FUN_0002bb60(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_58;\n  int local_50 [2];\n  undefined4 local_48;\n  int local_20;\n  \n  iVar2 = *(int *)(param_1 + 0x24c);\n  iVar3 = param_2[2];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2[6] = 0;\n  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }\n  uVar1 = FUN_0002ad50();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}\n\n" (function_definition "void __regparm3 FUN_0002bb60(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_58;\n  int local_50 [2];\n  undefined4 local_48;\n  int local_20;\n  \n  iVar2 = *(int *)(param_1 + 0x24c);\n  iVar3 = param_2[2];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2[6] = 0;\n  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }\n  uVar1 = FUN_0002ad50();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002bb60(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_58;\n  int local_50 [2];\n  undefined4 local_48;\n  int local_20;\n  \n  iVar2 = *(int *)(param_1 + 0x24c);\n  iVar3 = param_2[2];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2[6] = 0;\n  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }\n  uVar1 = FUN_0002ad50();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_58;" primitive_type identifier ;) (declaration "int local_50 [2];" primitive_type (array_declarator "local_50 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24c)" identifier = (pointer_expression "*(int *)(param_1 + 0x24c)" * (cast_expression "(int *)(param_1 + 0x24c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24c)" ( (binary_expression "param_1 + 0x24c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = param_2[2];" (assignment_expression "iVar3 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2))" ( (binary_expression "(iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = 0, iVar3 - 0x5eU < 2)" ( (comma_expression "iVar2 = 0, iVar3 - 0x5eU < 2" (assignment_expression "iVar2 = 0" identifier = number_literal) , (binary_expression "iVar3 - 0x5eU < 2" (binary_expression "iVar3 - 0x5eU" identifier - number_literal) < number_literal)) ))) )) (compound_statement "{\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }" { (expression_statement "FUN_0002b1c0();" (call_expression "FUN_0002b1c0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }" if (parenthesized_expression "(param_2[2] == 0x5f)" ( (binary_expression "param_2[2] == 0x5f" (subscript_expression "param_2[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_0002b1c0();\n    }" { (expression_statement "FUN_0002b1c0();" (call_expression "FUN_0002b1c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_48 = 2;" (assignment_expression "local_48 = 2" identifier = number_literal) ;) (expression_statement "local_50[0] = param_2[6] + 4;" (assignment_expression "local_50[0] = param_2[6] + 4" (subscript_expression "local_50[0]" identifier [ number_literal ]) = (binary_expression "param_2[6] + 4" (subscript_expression "param_2[6]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }" if (parenthesized_expression "(local_58 == 0)" ( (binary_expression "local_58 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }" { (expression_statement "iVar3 = param_2[2];" (assignment_expression "iVar3 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }" else (compound_statement "{\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }" { (expression_statement "iVar3 = param_2[2];" (assignment_expression "iVar3 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }))) })) (expression_statement "uVar1 = FUN_0002ad50();" (assignment_expression "uVar1 = FUN_0002ad50()" identifier = (call_expression "FUN_0002ad50()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);" (call_expression "FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , number_literal , identifier , identifier , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (pointer_expression "*param_2" * identifier) , identifier , identifier , (binary_expression "param_2 + 3" identifier + number_literal) , number_literal , number_literal ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (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 = (subscript_expression IDENT [ LIT ])) ;) (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (binary_expression IDENT - LIT) < LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , (pointer_expression * IDENT) , IDENT , IDENT , (binary_expression IDENT + LIT) , LIT , 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 ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_0002bb60(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_58;\n  int local_50 [2];\n  undefined4 local_48;\n  int local_20;\n  \n  iVar2 = *(int *)(param_1 + 0x24c);\n  iVar3 = param_2[2];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2[6] = 0;\n  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }\n  uVar1 = FUN_0002ad50();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002bb60(int param_1,undefined4 *param_2)" (identifier "FUN_0002bb60") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int local_58;\n  int local_50 [2];\n  undefined4 local_48;\n  int local_20;\n  \n  iVar2 = *(int *)(param_1 + 0x24c);\n  iVar3 = param_2[2];\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_2[6] = 0;\n  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }\n  uVar1 = FUN_0002ad50();\n  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0006f430();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_58;" (primitive_type "int") (identifier "local_58") (; ";")) (declaration "int local_50 [2];" (primitive_type "int") (array_declarator "local_50 [2]" (identifier "local_50") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined4 local_48;" (type_identifier "undefined4") (identifier "local_48") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x24c);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x24c)" (* "*") (cast_expression "(int *)(param_1 + 0x24c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24c)" (( "(") (binary_expression "param_1 + 0x24c" (identifier "param_1") (+ "+") (number_literal "0x24c")) () ")"))))) (; ";")) (expression_statement "iVar3 = param_2[2];" (assignment_expression "iVar3 = param_2[2]" (identifier "iVar3") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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[6] = 0;" (assignment_expression "param_2[6] = 0" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2))" (( "(") (binary_expression "(iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = 0, iVar3 - 0x5eU < 2)" (( "(") (comma_expression "iVar2 = 0, iVar3 - 0x5eU < 2" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (, ",") (binary_expression "iVar3 - 0x5eU < 2" (binary_expression "iVar3 - 0x5eU" (identifier "iVar3") (- "-") (number_literal "0x5eU")) (< "<") (number_literal "2"))) () ")"))) () ")")) (compound_statement "{\n    FUN_0002b1c0();\n    if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }\n    local_48 = 2;\n    local_50[0] = param_2[6] + 4;\n    FUN_0002bab0();\n    if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }\n  }" ({ "{") (expression_statement "FUN_0002b1c0();" (call_expression "FUN_0002b1c0()" (identifier "FUN_0002b1c0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_2[2] == 0x5f) {\n      FUN_0002b1c0();\n    }" (if "if") (parenthesized_expression "(param_2[2] == 0x5f)" (( "(") (binary_expression "param_2[2] == 0x5f" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0x5f")) () ")")) (compound_statement "{\n      FUN_0002b1c0();\n    }" ({ "{") (expression_statement "FUN_0002b1c0();" (call_expression "FUN_0002b1c0()" (identifier "FUN_0002b1c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_48 = 2;" (assignment_expression "local_48 = 2" (identifier "local_48") (= "=") (number_literal "2")) (; ";")) (expression_statement "local_50[0] = param_2[6] + 4;" (assignment_expression "local_50[0] = param_2[6] + 4" (subscript_expression "local_50[0]" (identifier "local_50") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "param_2[6] + 4" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "FUN_0002bab0();" (call_expression "FUN_0002bab0()" (identifier "FUN_0002bab0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_58 == 0) {\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }\n    else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }" (if "if") (parenthesized_expression "(local_58 == 0)" (( "(") (binary_expression "local_58 == 0" (identifier "local_58") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = param_2[2];\n      iVar2 = 0;\n    }" ({ "{") (expression_statement "iVar3 = param_2[2];" (assignment_expression "iVar3 = param_2[2]" (identifier "iVar3") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }" (else "else") (compound_statement "{\n      iVar3 = param_2[2];\n      iVar2 = 1;\n    }" ({ "{") (expression_statement "iVar3 = param_2[2];" (assignment_expression "iVar3 = param_2[2]" (identifier "iVar3") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" (identifier "iVar2") (= "=") (number_literal "1")) (; ";")) (} "}")))) (} "}"))) (expression_statement "uVar1 = FUN_0002ad50();" (assignment_expression "uVar1 = FUN_0002ad50()" (identifier "uVar1") (= "=") (call_expression "FUN_0002ad50()" (identifier "FUN_0002ad50") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0);" (call_expression "FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0)" (identifier "FUN_00019860") (argument_list "(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,\n               param_2 + 3,0,0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "0") (, ",") (identifier "iVar3") (, ",") (identifier "uVar1") (, ",") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "iVar2") (, ",") (identifier "local_50") (, ",") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 ssh,type_2 *pkt)

{
  int var_9;
  char *texttype;
  int var_2;
  int var_3;
  int var_1;
  char *var_6;
  int slen;
  type_3 blanks [4];
  
  var_2 = ssh->logomitdata;
  var_3 = pkt->var_3;
  var_9 = *(int *)(var_1 + 0x14);
  pkt->savedpos = 0;
  if ((var_2 != 0) && (var_2 = 0, var_3 - 0x5eU < 2)) {
    var_4(pkt);
    if (pkt->var_3 == 0x5f) {
      var_4(pkt);
    }
    blanks[0].var_3 = 2;
    blanks[0].offset = pkt->savedpos + 4;
    var_5(pkt,&var_6,&slen);
    if (var_6 == (char *)0x0) {
      var_3 = pkt->var_3;
      var_2 = 0;
    }
    else {
      var_3 = pkt->var_3;
      var_2 = 1;
    }
  }
  texttype = var_7(ssh->pkt_kctx,ssh->pkt_actx,var_3);
  var_8(ssh->logctx,0,var_3,texttype,pkt->body,pkt->length,var_2,blanks,&pkt->sequence,0,
             (char *)0x0);
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


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

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void __regparm3 MASKED(int param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  int local_58;
  int local_50 [2];
  undefined4 local_48;
  int local_20;
  
  iVar2 = *(int *)(param_1 + 0x24c);
  iVar3 = param_2[2];
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  param_2[6] = 0;
  if ((iVar2 != 0) && (iVar2 = 0, iVar3 - 0x5eU < 2)) {
    FUN_0002b1c0();
    if (param_2[2] == 0x5f) {
      FUN_0002b1c0();
    }
    local_48 = 2;
    local_50[0] = param_2[6] + 4;
    FUN_0002bab0();
    if (local_58 == 0) {
      iVar3 = param_2[2];
      iVar2 = 0;
    }
    else {
      iVar3 = param_2[2];
      iVar2 = 1;
    }
  }
  uVar1 = FUN_0002ad50();
  FUN_00019860(*(undefined4 *)(param_1 + 0x18),0,iVar3,uVar1,param_2[5],*param_2,iVar2,local_50,
               param_2 + 3,0,0);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}

