
Bignum ssh2_pkt_getmp(Packet *pkt)

{
  long in_FS_OFFSET;
  int length;
  char *p;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  ssh_pkt_getstring(pkt,&p,&length);
  if (p != (char *)0x0) {
    if (*p < '\0') {
      p = (char *)0x0;
    }
    else {
      p = (char *)bignum_from_bytes((uchar *)p,length);
    }
  }
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return p;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



char * FUN_0011f7f2(undefined8 param_1)

{
  long in_FS_OFFSET;
  undefined4 local_1c;
  char *local_18;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  FUN_0011e174(param_1,&local_18,&local_1c);
  if (local_18 != (char *)0x0) {
    if (*local_18 < '\0') {
      local_18 = (char *)0x0;
    }
    else {
      local_18 = (char *)FUN_0013651e(local_18,local_1c);
    }
  }
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return local_18;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


SUB RSP,0x28
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
LEA RDX,[RSP + 0xc]
LEA RSI,[RSP + 0x10]
CALL 0x0011e174
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x0011f830
CMP byte ptr [RAX],0x0
JS 0x0011f845
MOV ESI,dword ptr [RSP + 0xc]
MOV RDI,RAX
CALL 0x0013651e
MOV RCX,qword ptr [RSP + 0x18]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0011f84c
ADD RSP,0x28
RET
MOV EAX,0x0
JMP 0x0011f830
CALL 0x00107290
(translation_unit "char * FUN_0011f7f2(undefined8 param_1)\n\n{\n  long in_FS_OFFSET;\n  undefined4 local_1c;\n  char *local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  FUN_0011e174(param_1,&local_18,&local_1c);\n  if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "char * FUN_0011f7f2(undefined8 param_1)\n\n{\n  long in_FS_OFFSET;\n  undefined4 local_1c;\n  char *local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  FUN_0011e174(param_1,&local_18,&local_1c);\n  if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (pointer_declarator "* FUN_0011f7f2(undefined8 param_1)" * (function_declarator "FUN_0011f7f2(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) )))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined4 local_1c;\n  char *local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  FUN_0011e174(param_1,&local_18,&local_1c);\n  if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "char *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "FUN_0011e174(param_1,&local_18,&local_1c);" (call_expression "FUN_0011e174(param_1,&local_18,&local_1c)" identifier (argument_list "(param_1,&local_18,&local_1c)" ( identifier , (pointer_expression "&local_18" & identifier) , (pointer_expression "&local_1c" & identifier) ))) ;) (if_statement "if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }" if (parenthesized_expression "(local_18 != (char *)0x0)" ( (binary_expression "local_18 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }" { (if_statement "if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }" if (parenthesized_expression "(*local_18 < '\0')" ( (binary_expression "*local_18 < '\0'" (pointer_expression "*local_18" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_18 = (char *)0x0;\n    }" { (expression_statement "local_18 = (char *)0x0;" (assignment_expression "local_18 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }" else (compound_statement "{\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }" { (expression_statement "local_18 = (char *)FUN_0013651e(local_18,local_1c);" (assignment_expression "local_18 = (char *)FUN_0013651e(local_18,local_1c)" identifier = (cast_expression "(char *)FUN_0013651e(local_18,local_1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0013651e(local_18,local_1c)" identifier (argument_list "(local_18,local_1c)" ( identifier , identifier ))))) ;) }))) })) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_18;\n  }" { (return_statement "return local_18;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "Bignum ssh2_pkt_getmp(Packet *pkt)\n\n{\n  long in_FS_OFFSET;\n  int length;\n  char *p;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  ssh_pkt_getstring(pkt,&p,&length);\n  if (p != (char *)0x0) {\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return p;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "Bignum ssh2_pkt_getmp(Packet *pkt)\n\n{\n  long in_FS_OFFSET;\n  int length;\n  char *p;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  ssh_pkt_getstring(pkt,&p,&length);\n  if (p != (char *)0x0) {\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return p;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "ssh2_pkt_getmp(Packet *pkt)" identifier (parameter_list "(Packet *pkt)" ( (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) ))) (compound_statement "{\n  long in_FS_OFFSET;\n  int length;\n  char *p;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  ssh_pkt_getstring(pkt,&p,&length);\n  if (p != (char *)0x0) {\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return p;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int length;" primitive_type identifier ;) (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "ssh_pkt_getstring(pkt,&p,&length);" (call_expression "ssh_pkt_getstring(pkt,&p,&length)" identifier (argument_list "(pkt,&p,&length)" ( identifier , (pointer_expression "&p" & identifier) , (pointer_expression "&length" & identifier) ))) ;) (if_statement "if (p != (char *)0x0) {\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }" if (parenthesized_expression "(p != (char *)0x0)" ( (binary_expression "p != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }\n  }" { (if_statement "if (*p < '\0') {\n      p = (char *)0x0;\n    }\n    else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }" if (parenthesized_expression "(*p < '\0')" ( (binary_expression "*p < '\0'" (pointer_expression "*p" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      p = (char *)0x0;\n    }" { (expression_statement "p = (char *)0x0;" (assignment_expression "p = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }" else (compound_statement "{\n      p = (char *)bignum_from_bytes((uchar *)p,length);\n    }" { (expression_statement "p = (char *)bignum_from_bytes((uchar *)p,length);" (assignment_expression "p = (char *)bignum_from_bytes((uchar *)p,length)" identifier = (cast_expression "(char *)bignum_from_bytes((uchar *)p,length)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bignum_from_bytes((uchar *)p,length)" identifier (argument_list "((uchar *)p,length)" ( (cast_expression "(uchar *)p" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))))) ;) }))) })) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return p;\n  }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return p;\n  }" { (return_statement "return p;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "char * FUN_0011f7f2(undefined8 param_1)\n\n{\n  long in_FS_OFFSET;\n  undefined4 local_1c;\n  char *local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  FUN_0011e174(param_1,&local_18,&local_1c);\n  if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "char * FUN_0011f7f2(undefined8 param_1)\n\n{\n  long in_FS_OFFSET;\n  undefined4 local_1c;\n  char *local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  FUN_0011e174(param_1,&local_18,&local_1c);\n  if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (pointer_declarator "* FUN_0011f7f2(undefined8 param_1)" * (function_declarator "FUN_0011f7f2(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) )))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined4 local_1c;\n  char *local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  FUN_0011e174(param_1,&local_18,&local_1c);\n  if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "char *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "FUN_0011e174(param_1,&local_18,&local_1c);" (call_expression "FUN_0011e174(param_1,&local_18,&local_1c)" identifier (argument_list "(param_1,&local_18,&local_1c)" ( identifier , (pointer_expression "&local_18" & identifier) , (pointer_expression "&local_1c" & identifier) ))) ;) (if_statement "if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }" if (parenthesized_expression "(local_18 != (char *)0x0)" ( (binary_expression "local_18 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }" { (if_statement "if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }" if (parenthesized_expression "(*local_18 < '\0')" ( (binary_expression "*local_18 < '\0'" (pointer_expression "*local_18" * identifier) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      local_18 = (char *)0x0;\n    }" { (expression_statement "local_18 = (char *)0x0;" (assignment_expression "local_18 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }" else (compound_statement "{\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }" { (expression_statement "local_18 = (char *)FUN_0013651e(local_18,local_1c);" (assignment_expression "local_18 = (char *)FUN_0013651e(local_18,local_1c)" identifier = (cast_expression "(char *)FUN_0013651e(local_18,local_1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0013651e(local_18,local_1c)" identifier (argument_list "(local_18,local_1c)" ( identifier , identifier ))))) ;) }))) })) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_18;\n  }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "char * FUN_0011f7f2(undefined8 param_1)\n\n{\n  long in_FS_OFFSET;\n  undefined4 local_1c;\n  char *local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  FUN_0011e174(param_1,&local_18,&local_1c);\n  if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "char") (pointer_declarator "* FUN_0011f7f2(undefined8 param_1)" (* "*") (function_declarator "FUN_0011f7f2(undefined8 param_1)" (identifier "FUN_0011f7f2") (parameter_list "(undefined8 param_1)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) () ")")))) (compound_statement "{\n  long in_FS_OFFSET;\n  undefined4 local_1c;\n  char *local_18;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  FUN_0011e174(param_1,&local_18,&local_1c);\n  if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }\n  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "char *local_18;" (primitive_type "char") (pointer_declarator "*local_18" (* "*") (identifier "local_18")) (; ";")) (declaration "long local_10;" (sized_type_specifier "long" (long "long")) (identifier "local_10") (; ";")) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "FUN_0011e174(param_1,&local_18,&local_1c);" (call_expression "FUN_0011e174(param_1,&local_18,&local_1c)" (identifier "FUN_0011e174") (argument_list "(param_1,&local_18,&local_1c)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) (, ",") (pointer_expression "&local_1c" (& "&") (identifier "local_1c")) () ")"))) (; ";")) (if_statement "if (local_18 != (char *)0x0) {\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }" (if "if") (parenthesized_expression "(local_18 != (char *)0x0)" (( "(") (binary_expression "local_18 != (char *)0x0" (identifier "local_18") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }\n  }" ({ "{") (if_statement "if (*local_18 < '\0') {\n      local_18 = (char *)0x0;\n    }\n    else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }" (if "if") (parenthesized_expression "(*local_18 < '\0')" (( "(") (binary_expression "*local_18 < '\0'" (pointer_expression "*local_18" (* "*") (identifier "local_18")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      local_18 = (char *)0x0;\n    }" ({ "{") (expression_statement "local_18 = (char *)0x0;" (assignment_expression "local_18 = (char *)0x0" (identifier "local_18") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }" (else "else") (compound_statement "{\n      local_18 = (char *)FUN_0013651e(local_18,local_1c);\n    }" ({ "{") (expression_statement "local_18 = (char *)FUN_0013651e(local_18,local_1c);" (assignment_expression "local_18 = (char *)FUN_0013651e(local_18,local_1c)" (identifier "local_18") (= "=") (cast_expression "(char *)FUN_0013651e(local_18,local_1c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0013651e(local_18,local_1c)" (identifier "FUN_0013651e") (argument_list "(local_18,local_1c)" (( "(") (identifier "local_18") (, ",") (identifier "local_1c") () ")"))))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return local_18;\n  }" (if "if") (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return local_18;\n  }" ({ "{") (return_statement "return local_18;" (return "return") (identifier "local_18") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 function_1(type_2 *pkt)

{
  long var_1;
  int length;
  char *var_3;
  long var_5;
  
  var_5 = *(long *)(var_1 + 0x28);
  var_2(pkt,&var_3,&length);
  if (var_3 != (char *)0x0) {
    if (*var_3 < '\0') {
      var_3 = (char *)0x0;
    }
    else {
      var_3 = (char *)var_4((type_3 *)var_3,length);
    }
  }
  if (var_5 == *(long *)(var_1 + 0x28)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


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

char * MASKED(undefined8 param_1)

{
  long in_FS_OFFSET;
  undefined4 local_1c;
  char *local_18;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  FUN_0011e174(param_1,&local_18,&local_1c);
  if (local_18 != (char *)0x0) {
    if (*local_18 < '\0') {
      local_18 = (char *)0x0;
    }
    else {
      local_18 = (char *)FUN_0013651e(local_18,local_1c);
    }
  }
  if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
    return local_18;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

