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

CURLcode Curl_ntlm_core_mk_nt_hash(Curl_easy *data,char *password,uchar *ntbuffer)

{
  int iVar1;
  char cVar2;
  size_t sVar3;
  char *data_00;
  size_t sVar4;
  CURLcode CVar5;
  int in_GS_OFFSET;
  size_t local_84;
  MD4_CTX MD4pw;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  sVar3 = strlen(password);
  if (sVar3 == 0) {
    data_00 = (*Curl_cstrdup)("");
    if (data_00 == (char *)0x0) goto LAB_0005ebcb;
    local_84 = 0;
  }
  else {
    local_84 = sVar3 * 2;
    data_00 = (char *)(*Curl_cmalloc)(local_84);
    if (data_00 == (char *)0x0) {
LAB_0005ebcb:
      CVar5 = CURLE_OUT_OF_MEMORY;
      goto LAB_0005eb93;
    }
    sVar4 = 0;
    do {
      cVar2 = password[sVar4];
      data_00[sVar4 * 2 + 1] = '\0';
      data_00[sVar4 * 2] = cVar2;
      sVar4 = sVar4 + 1;
    } while (sVar3 != sVar4);
  }
  MD4_Init((MD4_CTX *)&MD4pw);
  MD4_Update((MD4_CTX *)&MD4pw,data_00,local_84);
  MD4_Final(ntbuffer,(MD4_CTX *)&MD4pw);
  ntbuffer[0x10] = '\0';
  ntbuffer[0x11] = '\0';
  ntbuffer[0x12] = '\0';
  ntbuffer[0x13] = '\0';
  ntbuffer[0x14] = '\0';
  (*Curl_cfree)(data_00);
  CVar5 = CURLE_OK;
LAB_0005eb93:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return CVar5;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



undefined4 FUN_0005ead0(char *param_1,uchar *param_2)

{
  char cVar1;
  size_t sVar2;
  void *data;
  size_t sVar3;
  undefined4 uVar4;
  int unaff_EBX;
  int in_GS_OFFSET;
  size_t local_88;
  MD4_CTX local_80;
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x5ead9;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  sVar2 = strlen(param_1);
  if (sVar2 == 0) {
    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);
    if (data == (void *)0x0) goto LAB_0005ebcb;
    local_88 = 0;
  }
  else {
    local_88 = sVar2 * 2;
    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);
    if (data == (void *)0x0) {
LAB_0005ebcb:
      uVar4 = 0x1b;
      goto LAB_0005eb93;
    }
    sVar3 = 0;
    do {
      cVar1 = param_1[sVar3];
      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;
      *(char *)((int)data + sVar3 * 2) = cVar1;
      sVar3 = sVar3 + 1;
    } while (sVar2 != sVar3);
  }
  MD4_Init(&local_80);
  MD4_Update(&local_80,data,local_88);
  MD4_Final(param_2,&local_80);
  param_2[0x10] = '\0';
  param_2[0x11] = '\0';
  param_2[0x12] = '\0';
  param_2[0x13] = '\0';
  param_2[0x14] = '\0';
  (**(code **)(unaff_EBX + 0x52593))(data);
  uVar4 = 0;
LAB_0005eb93:
  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007c1a0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x51d07
SUB ESP,0x88
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x78],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0xa0]
MOV EDI,dword ptr [ESP + 0xa4]
PUSH EBP
CALL 0x00018850
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005ebb0
MOV ECX,EAX
LEA EAX,[EAX + EAX*0x1]
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],EAX
MOV dword ptr [ESP + 0x18],ECX
PUSH EAX
LEA EAX,[EBX + 0x890]
CALL dword ptr [EAX]
MOV ECX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
TEST EAX,EAX
MOV ESI,EAX
JZ 0x0005ebcb
XOR EAX,EAX
LEA ESI,[ESI]
MOVZX EDX,byte ptr [EBP + EAX*0x1]
MOV byte ptr [ESI + EAX*0x2 + 0x1],0x0
MOV byte ptr [ESI + EAX*0x2],DL
ADD EAX,0x1
CMP ECX,EAX
JNZ 0x0005eb40
SUB ESP,0xc
LEA EBP,[ESP + 0x1c]
PUSH EBP
CALL 0x000182d0
ADD ESP,0xc
PUSH dword ptr [ESP + 0xc]
PUSH ESI
PUSH EBP
CALL 0x00018720
POP EAX
POP EDX
PUSH EBP
PUSH EDI
CALL 0x00018b50
LEA EAX,[EBX + 0x88c]
MOV dword ptr [EDI + 0x10],0x0
MOV byte ptr [EDI + 0x14],0x0
MOV dword ptr [ESP],ESI
CALL dword ptr [EAX]
ADD ESP,0x10
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x6c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x0005ebe5
ADD ESP,0x7c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xfffd7590]
PUSH EAX
LEA EAX,[EBX + 0x884]
CALL dword ptr [EAX]
MOV ESI,EAX
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005ebd8
MOV EAX,0x1b
JMP 0x0005eb93
MOV dword ptr [ESP + 0x8],0x0
JMP 0x0005eb54
CALL 0x0007c1a0
(translation_unit "undefined4 FUN_0005ead0(char *param_1,uchar *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  void *data;\n  size_t sVar3;\n  undefined4 uVar4;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  size_t local_88;\n  MD4_CTX local_80;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5ead9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = strlen(param_1);\n  if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }\n  MD4_Init(&local_80);\n  MD4_Update(&local_80,data,local_88);\n  MD4_Final(param_2,&local_80);\n  param_2[0x10] = '\0';\n  param_2[0x11] = '\0';\n  param_2[0x12] = '\0';\n  param_2[0x13] = '\0';\n  param_2[0x14] = '\0';\n  (**(code **)(unaff_EBX + 0x52593))(data);\n  uVar4 = 0;\nLAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}\n\n" (function_definition "undefined4 FUN_0005ead0(char *param_1,uchar *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  void *data;\n  size_t sVar3;\n  undefined4 uVar4;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  size_t local_88;\n  MD4_CTX local_80;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5ead9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = strlen(param_1);\n  if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }\n  MD4_Init(&local_80);\n  MD4_Update(&local_80,data,local_88);\n  MD4_Final(param_2,&local_80);\n  param_2[0x10] = '\0';\n  param_2[0x11] = '\0';\n  param_2[0x12] = '\0';\n  param_2[0x13] = '\0';\n  param_2[0x14] = '\0';\n  (**(code **)(unaff_EBX + 0x52593))(data);\n  uVar4 = 0;\nLAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}" type_identifier (function_declarator "FUN_0005ead0(char *param_1,uchar *param_2)" identifier (parameter_list "(char *param_1,uchar *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uchar *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  void *data;\n  size_t sVar3;\n  undefined4 uVar4;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  size_t local_88;\n  MD4_CTX local_80;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5ead9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = strlen(param_1);\n  if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }\n  MD4_Init(&local_80);\n  MD4_Update(&local_80,data,local_88);\n  MD4_Final(param_2,&local_80);\n  param_2[0x10] = '\0';\n  param_2[0x11] = '\0';\n  param_2[0x12] = '\0';\n  param_2[0x13] = '\0';\n  param_2[0x14] = '\0';\n  (**(code **)(unaff_EBX + 0x52593))(data);\n  uVar4 = 0;\nLAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "void *data;" primitive_type (pointer_declarator "*data" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t local_88;" primitive_type identifier ;) (declaration "MD4_CTX local_80;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5ead9;" (assignment_expression "uStack_14 = 0x5ead9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(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 "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }" if (parenthesized_expression "(sVar2 == 0)" ( (binary_expression "sVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }" { (expression_statement "data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);" (assignment_expression "data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297)" identifier = (cast_expression "(void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x5258b))" ( (pointer_expression "**(code **)(unaff_EBX + 0x5258b)" * (pointer_expression "*(code **)(unaff_EBX + 0x5258b)" * (cast_expression "(code **)(unaff_EBX + 0x5258b)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x5258b)" ( (binary_expression "unaff_EBX + 0x5258b" identifier + number_literal) ))))) )) (argument_list "(unaff_EBX + 0x29297)" ( (binary_expression "unaff_EBX + 0x29297" identifier + number_literal) ))))) ;) (if_statement "if (data == (void *)0x0) goto LAB_0005ebcb;" if (parenthesized_expression "(data == (void *)0x0)" ( (binary_expression "data == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ebcb;" goto statement_identifier ;)) (expression_statement "local_88 = 0;" (assignment_expression "local_88 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }" else (compound_statement "{\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }" { (expression_statement "local_88 = sVar2 * 2;" (assignment_expression "local_88 = sVar2 * 2" identifier = (binary_expression "sVar2 * 2" identifier * number_literal)) ;) (expression_statement "data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);" (assignment_expression "data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88)" identifier = (cast_expression "(void *)(**(code **)(unaff_EBX + 0x52597))(local_88)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(unaff_EBX + 0x52597))(local_88)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x52597))" ( (pointer_expression "**(code **)(unaff_EBX + 0x52597)" * (pointer_expression "*(code **)(unaff_EBX + 0x52597)" * (cast_expression "(code **)(unaff_EBX + 0x52597)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x52597)" ( (binary_expression "unaff_EBX + 0x52597" identifier + number_literal) ))))) )) (argument_list "(local_88)" ( identifier ))))) ;) (if_statement "if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }" if (parenthesized_expression "(data == (void *)0x0)" ( (binary_expression "data == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }" { (labeled_statement "LAB_0005ebcb:\n      uVar4 = 0x1b;" statement_identifier : (expression_statement "uVar4 = 0x1b;" (assignment_expression "uVar4 = 0x1b" identifier = number_literal) ;)) (goto_statement "goto LAB_0005eb93;" goto statement_identifier ;) })) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);" do (compound_statement "{\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    }" { (expression_statement "cVar1 = param_1[sVar3];" (assignment_expression "cVar1 = param_1[sVar3]" identifier = (subscript_expression "param_1[sVar3]" identifier [ identifier ])) ;) (expression_statement "*(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;" (assignment_expression "*(undefined1 *)((int)data + sVar3 * 2 + 1) = 0" (pointer_expression "*(undefined1 *)((int)data + sVar3 * 2 + 1)" * (cast_expression "(undefined1 *)((int)data + sVar3 * 2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + sVar3 * 2 + 1)" ( (binary_expression "(int)data + sVar3 * 2 + 1" (binary_expression "(int)data + sVar3 * 2" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "sVar3 * 2" identifier * number_literal)) + number_literal) )))) = number_literal) ;) (expression_statement "*(char *)((int)data + sVar3 * 2) = cVar1;" (assignment_expression "*(char *)((int)data + sVar3 * 2) = cVar1" (pointer_expression "*(char *)((int)data + sVar3 * 2)" * (cast_expression "(char *)((int)data + sVar3 * 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + sVar3 * 2)" ( (binary_expression "(int)data + sVar3 * 2" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "sVar3 * 2" identifier * number_literal)) )))) = identifier) ;) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(sVar2 != sVar3)" ( (binary_expression "sVar2 != sVar3" identifier != identifier) )) ;) }))) (expression_statement "MD4_Init(&local_80);" (call_expression "MD4_Init(&local_80)" identifier (argument_list "(&local_80)" ( (pointer_expression "&local_80" & identifier) ))) ;) (expression_statement "MD4_Update(&local_80,data,local_88);" (call_expression "MD4_Update(&local_80,data,local_88)" identifier (argument_list "(&local_80,data,local_88)" ( (pointer_expression "&local_80" & identifier) , identifier , identifier ))) ;) (expression_statement "MD4_Final(param_2,&local_80);" (call_expression "MD4_Final(param_2,&local_80)" identifier (argument_list "(param_2,&local_80)" ( identifier , (pointer_expression "&local_80" & identifier) ))) ;) (expression_statement "param_2[0x10] = '\0';" (assignment_expression "param_2[0x10] = '\0'" (subscript_expression "param_2[0x10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0x11] = '\0';" (assignment_expression "param_2[0x11] = '\0'" (subscript_expression "param_2[0x11]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0x12] = '\0';" (assignment_expression "param_2[0x12] = '\0'" (subscript_expression "param_2[0x12]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0x13] = '\0';" (assignment_expression "param_2[0x13] = '\0'" (subscript_expression "param_2[0x13]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0x14] = '\0';" (assignment_expression "param_2[0x14] = '\0'" (subscript_expression "param_2[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(**(code **)(unaff_EBX + 0x52593))(data);" (call_expression "(**(code **)(unaff_EBX + 0x52593))(data)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x52593))" ( (pointer_expression "**(code **)(unaff_EBX + 0x52593)" * (pointer_expression "*(code **)(unaff_EBX + 0x52593)" * (cast_expression "(code **)(unaff_EBX + 0x52593)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x52593)" ( (binary_expression "unaff_EBX + 0x52593" identifier + number_literal) ))))) )) (argument_list "(data)" ( identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 == *(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 uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) comment (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode Curl_ntlm_core_mk_nt_hash(Curl_easy *data,char *password,uchar *ntbuffer)\n\n{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  char *data_00;\n  size_t sVar4;\n  CURLcode CVar5;\n  int in_GS_OFFSET;\n  size_t local_84;\n  MD4_CTX MD4pw;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar3 = strlen(password);\n  if (sVar3 == 0) {\n    data_00 = (*Curl_cstrdup)("");\n    if (data_00 == (char *)0x0) goto LAB_0005ebcb;\n    local_84 = 0;\n  }\n  else {\n    local_84 = sVar3 * 2;\n    data_00 = (char *)(*Curl_cmalloc)(local_84);\n    if (data_00 == (char *)0x0) {\nLAB_0005ebcb:\n      CVar5 = CURLE_OUT_OF_MEMORY;\n      goto LAB_0005eb93;\n    }\n    sVar4 = 0;\n    do {\n      cVar2 = password[sVar4];\n      data_00[sVar4 * 2 + 1] = '\0';\n      data_00[sVar4 * 2] = cVar2;\n      sVar4 = sVar4 + 1;\n    } while (sVar3 != sVar4);\n  }\n  MD4_Init((MD4_CTX *)&MD4pw);\n  MD4_Update((MD4_CTX *)&MD4pw,data_00,local_84);\n  MD4_Final(ntbuffer,(MD4_CTX *)&MD4pw);\n  ntbuffer[0x10] = '\0';\n  ntbuffer[0x11] = '\0';\n  ntbuffer[0x12] = '\0';\n  ntbuffer[0x13] = '\0';\n  ntbuffer[0x14] = '\0';\n  (*Curl_cfree)(data_00);\n  CVar5 = CURLE_OK;\nLAB_0005eb93:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "CURLcode Curl_ntlm_core_mk_nt_hash(Curl_easy *data,char *password,uchar *ntbuffer)\n\n{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  char *data_00;\n  size_t sVar4;\n  CURLcode CVar5;\n  int in_GS_OFFSET;\n  size_t local_84;\n  MD4_CTX MD4pw;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar3 = strlen(password);\n  if (sVar3 == 0) {\n    data_00 = (*Curl_cstrdup)("");\n    if (data_00 == (char *)0x0) goto LAB_0005ebcb;\n    local_84 = 0;\n  }\n  else {\n    local_84 = sVar3 * 2;\n    data_00 = (char *)(*Curl_cmalloc)(local_84);\n    if (data_00 == (char *)0x0) {\nLAB_0005ebcb:\n      CVar5 = CURLE_OUT_OF_MEMORY;\n      goto LAB_0005eb93;\n    }\n    sVar4 = 0;\n    do {\n      cVar2 = password[sVar4];\n      data_00[sVar4 * 2 + 1] = '\0';\n      data_00[sVar4 * 2] = cVar2;\n      sVar4 = sVar4 + 1;\n    } while (sVar3 != sVar4);\n  }\n  MD4_Init((MD4_CTX *)&MD4pw);\n  MD4_Update((MD4_CTX *)&MD4pw,data_00,local_84);\n  MD4_Final(ntbuffer,(MD4_CTX *)&MD4pw);\n  ntbuffer[0x10] = '\0';\n  ntbuffer[0x11] = '\0';\n  ntbuffer[0x12] = '\0';\n  ntbuffer[0x13] = '\0';\n  ntbuffer[0x14] = '\0';\n  (*Curl_cfree)(data_00);\n  CVar5 = CURLE_OK;\nLAB_0005eb93:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "Curl_ntlm_core_mk_nt_hash(Curl_easy *data,char *password,uchar *ntbuffer)" identifier (parameter_list "(Curl_easy *data,char *password,uchar *ntbuffer)" ( (parameter_declaration "Curl_easy *data" type_identifier (pointer_declarator "*data" * identifier)) , (parameter_declaration "char *password" primitive_type (pointer_declarator "*password" * identifier)) , (parameter_declaration "uchar *ntbuffer" type_identifier (pointer_declarator "*ntbuffer" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  size_t sVar3;\n  char *data_00;\n  size_t sVar4;\n  CURLcode CVar5;\n  int in_GS_OFFSET;\n  size_t local_84;\n  MD4_CTX MD4pw;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar3 = strlen(password);\n  if (sVar3 == 0) {\n    data_00 = (*Curl_cstrdup)("");\n    if (data_00 == (char *)0x0) goto LAB_0005ebcb;\n    local_84 = 0;\n  }\n  else {\n    local_84 = sVar3 * 2;\n    data_00 = (char *)(*Curl_cmalloc)(local_84);\n    if (data_00 == (char *)0x0) {\nLAB_0005ebcb:\n      CVar5 = CURLE_OUT_OF_MEMORY;\n      goto LAB_0005eb93;\n    }\n    sVar4 = 0;\n    do {\n      cVar2 = password[sVar4];\n      data_00[sVar4 * 2 + 1] = '\0';\n      data_00[sVar4 * 2] = cVar2;\n      sVar4 = sVar4 + 1;\n    } while (sVar3 != sVar4);\n  }\n  MD4_Init((MD4_CTX *)&MD4pw);\n  MD4_Update((MD4_CTX *)&MD4pw,data_00,local_84);\n  MD4_Final(ntbuffer,(MD4_CTX *)&MD4pw);\n  ntbuffer[0x10] = '\0';\n  ntbuffer[0x11] = '\0';\n  ntbuffer[0x12] = '\0';\n  ntbuffer[0x13] = '\0';\n  ntbuffer[0x14] = '\0';\n  (*Curl_cfree)(data_00);\n  CVar5 = CURLE_OK;\nLAB_0005eb93:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *data_00;" primitive_type (pointer_declarator "*data_00" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "CURLcode CVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t local_84;" primitive_type identifier ;) (declaration "MD4_CTX MD4pw;" type_identifier 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 "sVar3 = strlen(password);" (assignment_expression "sVar3 = strlen(password)" identifier = (call_expression "strlen(password)" identifier (argument_list "(password)" ( identifier )))) ;) (if_statement "if (sVar3 == 0) {\n    data_00 = (*Curl_cstrdup)("");\n    if (data_00 == (char *)0x0) goto LAB_0005ebcb;\n    local_84 = 0;\n  }\n  else {\n    local_84 = sVar3 * 2;\n    data_00 = (char *)(*Curl_cmalloc)(local_84);\n    if (data_00 == (char *)0x0) {\nLAB_0005ebcb:\n      CVar5 = CURLE_OUT_OF_MEMORY;\n      goto LAB_0005eb93;\n    }\n    sVar4 = 0;\n    do {\n      cVar2 = password[sVar4];\n      data_00[sVar4 * 2 + 1] = '\0';\n      data_00[sVar4 * 2] = cVar2;\n      sVar4 = sVar4 + 1;\n    } while (sVar3 != sVar4);\n  }" if (parenthesized_expression "(sVar3 == 0)" ( (binary_expression "sVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    data_00 = (*Curl_cstrdup)("");\n    if (data_00 == (char *)0x0) goto LAB_0005ebcb;\n    local_84 = 0;\n  }" { (expression_statement "data_00 = (*Curl_cstrdup)("");" (assignment_expression "data_00 = (*Curl_cstrdup)("")" identifier = (call_expression "(*Curl_cstrdup)("")" (parenthesized_expression "(*Curl_cstrdup)" ( (pointer_expression "*Curl_cstrdup" * identifier) )) (argument_list "("")" ( (string_literal """" " ") )))) ;) (if_statement "if (data_00 == (char *)0x0) goto LAB_0005ebcb;" if (parenthesized_expression "(data_00 == (char *)0x0)" ( (binary_expression "data_00 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ebcb;" goto statement_identifier ;)) (expression_statement "local_84 = 0;" (assignment_expression "local_84 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_84 = sVar3 * 2;\n    data_00 = (char *)(*Curl_cmalloc)(local_84);\n    if (data_00 == (char *)0x0) {\nLAB_0005ebcb:\n      CVar5 = CURLE_OUT_OF_MEMORY;\n      goto LAB_0005eb93;\n    }\n    sVar4 = 0;\n    do {\n      cVar2 = password[sVar4];\n      data_00[sVar4 * 2 + 1] = '\0';\n      data_00[sVar4 * 2] = cVar2;\n      sVar4 = sVar4 + 1;\n    } while (sVar3 != sVar4);\n  }" else (compound_statement "{\n    local_84 = sVar3 * 2;\n    data_00 = (char *)(*Curl_cmalloc)(local_84);\n    if (data_00 == (char *)0x0) {\nLAB_0005ebcb:\n      CVar5 = CURLE_OUT_OF_MEMORY;\n      goto LAB_0005eb93;\n    }\n    sVar4 = 0;\n    do {\n      cVar2 = password[sVar4];\n      data_00[sVar4 * 2 + 1] = '\0';\n      data_00[sVar4 * 2] = cVar2;\n      sVar4 = sVar4 + 1;\n    } while (sVar3 != sVar4);\n  }" { (expression_statement "local_84 = sVar3 * 2;" (assignment_expression "local_84 = sVar3 * 2" identifier = (binary_expression "sVar3 * 2" identifier * number_literal)) ;) (expression_statement "data_00 = (char *)(*Curl_cmalloc)(local_84);" (assignment_expression "data_00 = (char *)(*Curl_cmalloc)(local_84)" identifier = (cast_expression "(char *)(*Curl_cmalloc)(local_84)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*Curl_cmalloc)(local_84)" (parenthesized_expression "(*Curl_cmalloc)" ( (pointer_expression "*Curl_cmalloc" * identifier) )) (argument_list "(local_84)" ( identifier ))))) ;) (if_statement "if (data_00 == (char *)0x0) {\nLAB_0005ebcb:\n      CVar5 = CURLE_OUT_OF_MEMORY;\n      goto LAB_0005eb93;\n    }" if (parenthesized_expression "(data_00 == (char *)0x0)" ( (binary_expression "data_00 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0005ebcb:\n      CVar5 = CURLE_OUT_OF_MEMORY;\n      goto LAB_0005eb93;\n    }" { (labeled_statement "LAB_0005ebcb:\n      CVar5 = CURLE_OUT_OF_MEMORY;" statement_identifier : (expression_statement "CVar5 = CURLE_OUT_OF_MEMORY;" (assignment_expression "CVar5 = CURLE_OUT_OF_MEMORY" identifier = identifier) ;)) (goto_statement "goto LAB_0005eb93;" goto statement_identifier ;) })) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      cVar2 = password[sVar4];\n      data_00[sVar4 * 2 + 1] = '\0';\n      data_00[sVar4 * 2] = cVar2;\n      sVar4 = sVar4 + 1;\n    } while (sVar3 != sVar4);" do (compound_statement "{\n      cVar2 = password[sVar4];\n      data_00[sVar4 * 2 + 1] = '\0';\n      data_00[sVar4 * 2] = cVar2;\n      sVar4 = sVar4 + 1;\n    }" { (expression_statement "cVar2 = password[sVar4];" (assignment_expression "cVar2 = password[sVar4]" identifier = (subscript_expression "password[sVar4]" identifier [ identifier ])) ;) (expression_statement "data_00[sVar4 * 2 + 1] = '\0';" (assignment_expression "data_00[sVar4 * 2 + 1] = '\0'" (subscript_expression "data_00[sVar4 * 2 + 1]" identifier [ (binary_expression "sVar4 * 2 + 1" (binary_expression "sVar4 * 2" identifier * number_literal) + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "data_00[sVar4 * 2] = cVar2;" (assignment_expression "data_00[sVar4 * 2] = cVar2" (subscript_expression "data_00[sVar4 * 2]" identifier [ (binary_expression "sVar4 * 2" identifier * number_literal) ]) = identifier) ;) (expression_statement "sVar4 = sVar4 + 1;" (assignment_expression "sVar4 = sVar4 + 1" identifier = (binary_expression "sVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(sVar3 != sVar4)" ( (binary_expression "sVar3 != sVar4" identifier != identifier) )) ;) }))) (expression_statement "MD4_Init((MD4_CTX *)&MD4pw);" (call_expression "MD4_Init((MD4_CTX *)&MD4pw)" identifier (argument_list "((MD4_CTX *)&MD4pw)" ( (cast_expression "(MD4_CTX *)&MD4pw" ( (type_descriptor "MD4_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&MD4pw" & identifier)) ))) ;) (expression_statement "MD4_Update((MD4_CTX *)&MD4pw,data_00,local_84);" (call_expression "MD4_Update((MD4_CTX *)&MD4pw,data_00,local_84)" identifier (argument_list "((MD4_CTX *)&MD4pw,data_00,local_84)" ( (cast_expression "(MD4_CTX *)&MD4pw" ( (type_descriptor "MD4_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&MD4pw" & identifier)) , identifier , identifier ))) ;) (expression_statement "MD4_Final(ntbuffer,(MD4_CTX *)&MD4pw);" (call_expression "MD4_Final(ntbuffer,(MD4_CTX *)&MD4pw)" identifier (argument_list "(ntbuffer,(MD4_CTX *)&MD4pw)" ( identifier , (cast_expression "(MD4_CTX *)&MD4pw" ( (type_descriptor "MD4_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&MD4pw" & identifier)) ))) ;) (expression_statement "ntbuffer[0x10] = '\0';" (assignment_expression "ntbuffer[0x10] = '\0'" (subscript_expression "ntbuffer[0x10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ntbuffer[0x11] = '\0';" (assignment_expression "ntbuffer[0x11] = '\0'" (subscript_expression "ntbuffer[0x11]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ntbuffer[0x12] = '\0';" (assignment_expression "ntbuffer[0x12] = '\0'" (subscript_expression "ntbuffer[0x12]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ntbuffer[0x13] = '\0';" (assignment_expression "ntbuffer[0x13] = '\0'" (subscript_expression "ntbuffer[0x13]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ntbuffer[0x14] = '\0';" (assignment_expression "ntbuffer[0x14] = '\0'" (subscript_expression "ntbuffer[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(*Curl_cfree)(data_00);" (call_expression "(*Curl_cfree)(data_00)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(data_00)" ( identifier ))) ;) (expression_statement "CVar5 = CURLE_OK;" (assignment_expression "CVar5 = CURLE_OK" identifier = identifier) ;) (labeled_statement "LAB_0005eb93:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar5;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar5;\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 CVar5;\n  }" { (return_statement "return CVar5;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_0005ead0(char *param_1,uchar *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  void *data;\n  size_t sVar3;\n  undefined4 uVar4;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  size_t local_88;\n  MD4_CTX local_80;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5ead9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = strlen(param_1);\n  if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }\n  MD4_Init(&local_80);\n  MD4_Update(&local_80,data,local_88);\n  MD4_Final(param_2,&local_80);\n  param_2[0x10] = '\0';\n  param_2[0x11] = '\0';\n  param_2[0x12] = '\0';\n  param_2[0x13] = '\0';\n  param_2[0x14] = '\0';\n  (**(code **)(unaff_EBX + 0x52593))(data);\n  uVar4 = 0;\nLAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0007c1a0();\n}\n\n" (function_definition "undefined4 FUN_0005ead0(char *param_1,uchar *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  void *data;\n  size_t sVar3;\n  undefined4 uVar4;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  size_t local_88;\n  MD4_CTX local_80;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5ead9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = strlen(param_1);\n  if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }\n  MD4_Init(&local_80);\n  MD4_Update(&local_80,data,local_88);\n  MD4_Final(param_2,&local_80);\n  param_2[0x10] = '\0';\n  param_2[0x11] = '\0';\n  param_2[0x12] = '\0';\n  param_2[0x13] = '\0';\n  param_2[0x14] = '\0';\n  (**(code **)(unaff_EBX + 0x52593))(data);\n  uVar4 = 0;\nLAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0007c1a0();\n}" type_identifier (function_declarator "FUN_0005ead0(char *param_1,uchar *param_2)" identifier (parameter_list "(char *param_1,uchar *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uchar *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  void *data;\n  size_t sVar3;\n  undefined4 uVar4;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  size_t local_88;\n  MD4_CTX local_80;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5ead9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = strlen(param_1);\n  if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }\n  MD4_Init(&local_80);\n  MD4_Update(&local_80,data,local_88);\n  MD4_Final(param_2,&local_80);\n  param_2[0x10] = '\0';\n  param_2[0x11] = '\0';\n  param_2[0x12] = '\0';\n  param_2[0x13] = '\0';\n  param_2[0x14] = '\0';\n  (**(code **)(unaff_EBX + 0x52593))(data);\n  uVar4 = 0;\nLAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0007c1a0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "void *data;" primitive_type (pointer_declarator "*data" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "size_t local_88;" primitive_type identifier ;) (declaration "MD4_CTX local_80;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5ead9;" (assignment_expression "uStack_14 = 0x5ead9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(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 "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }" if (parenthesized_expression "(sVar2 == 0)" ( (binary_expression "sVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }" { (expression_statement "data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);" (assignment_expression "data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297)" identifier = (cast_expression "(void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x5258b))" ( (pointer_expression "**(code **)(unaff_EBX + 0x5258b)" * (pointer_expression "*(code **)(unaff_EBX + 0x5258b)" * (cast_expression "(code **)(unaff_EBX + 0x5258b)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x5258b)" ( (binary_expression "unaff_EBX + 0x5258b" identifier + number_literal) ))))) )) (argument_list "(unaff_EBX + 0x29297)" ( (binary_expression "unaff_EBX + 0x29297" identifier + number_literal) ))))) ;) (if_statement "if (data == (void *)0x0) goto LAB_0005ebcb;" if (parenthesized_expression "(data == (void *)0x0)" ( (binary_expression "data == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005ebcb;" goto statement_identifier ;)) (expression_statement "local_88 = 0;" (assignment_expression "local_88 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }" else (compound_statement "{\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }" { (expression_statement "local_88 = sVar2 * 2;" (assignment_expression "local_88 = sVar2 * 2" identifier = (binary_expression "sVar2 * 2" identifier * number_literal)) ;) (expression_statement "data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);" (assignment_expression "data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88)" identifier = (cast_expression "(void *)(**(code **)(unaff_EBX + 0x52597))(local_88)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(unaff_EBX + 0x52597))(local_88)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x52597))" ( (pointer_expression "**(code **)(unaff_EBX + 0x52597)" * (pointer_expression "*(code **)(unaff_EBX + 0x52597)" * (cast_expression "(code **)(unaff_EBX + 0x52597)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x52597)" ( (binary_expression "unaff_EBX + 0x52597" identifier + number_literal) ))))) )) (argument_list "(local_88)" ( identifier ))))) ;) (if_statement "if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }" if (parenthesized_expression "(data == (void *)0x0)" ( (binary_expression "data == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }" { (labeled_statement "LAB_0005ebcb:\n      uVar4 = 0x1b;" statement_identifier : (expression_statement "uVar4 = 0x1b;" (assignment_expression "uVar4 = 0x1b" identifier = number_literal) ;)) (goto_statement "goto LAB_0005eb93;" goto statement_identifier ;) })) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);" do (compound_statement "{\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    }" { (expression_statement "cVar1 = param_1[sVar3];" (assignment_expression "cVar1 = param_1[sVar3]" identifier = (subscript_expression "param_1[sVar3]" identifier [ identifier ])) ;) (expression_statement "*(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;" (assignment_expression "*(undefined1 *)((int)data + sVar3 * 2 + 1) = 0" (pointer_expression "*(undefined1 *)((int)data + sVar3 * 2 + 1)" * (cast_expression "(undefined1 *)((int)data + sVar3 * 2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + sVar3 * 2 + 1)" ( (binary_expression "(int)data + sVar3 * 2 + 1" (binary_expression "(int)data + sVar3 * 2" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "sVar3 * 2" identifier * number_literal)) + number_literal) )))) = number_literal) ;) (expression_statement "*(char *)((int)data + sVar3 * 2) = cVar1;" (assignment_expression "*(char *)((int)data + sVar3 * 2) = cVar1" (pointer_expression "*(char *)((int)data + sVar3 * 2)" * (cast_expression "(char *)((int)data + sVar3 * 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + sVar3 * 2)" ( (binary_expression "(int)data + sVar3 * 2" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "sVar3 * 2" identifier * number_literal)) )))) = identifier) ;) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" identifier = (binary_expression "sVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(sVar2 != sVar3)" ( (binary_expression "sVar2 != sVar3" identifier != identifier) )) ;) }))) (expression_statement "MD4_Init(&local_80);" (call_expression "MD4_Init(&local_80)" identifier (argument_list "(&local_80)" ( (pointer_expression "&local_80" & identifier) ))) ;) (expression_statement "MD4_Update(&local_80,data,local_88);" (call_expression "MD4_Update(&local_80,data,local_88)" identifier (argument_list "(&local_80,data,local_88)" ( (pointer_expression "&local_80" & identifier) , identifier , identifier ))) ;) (expression_statement "MD4_Final(param_2,&local_80);" (call_expression "MD4_Final(param_2,&local_80)" identifier (argument_list "(param_2,&local_80)" ( identifier , (pointer_expression "&local_80" & identifier) ))) ;) (expression_statement "param_2[0x10] = '\0';" (assignment_expression "param_2[0x10] = '\0'" (subscript_expression "param_2[0x10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0x11] = '\0';" (assignment_expression "param_2[0x11] = '\0'" (subscript_expression "param_2[0x11]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0x12] = '\0';" (assignment_expression "param_2[0x12] = '\0'" (subscript_expression "param_2[0x12]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0x13] = '\0';" (assignment_expression "param_2[0x13] = '\0'" (subscript_expression "param_2[0x13]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_2[0x14] = '\0';" (assignment_expression "param_2[0x14] = '\0'" (subscript_expression "param_2[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(**(code **)(unaff_EBX + 0x52593))(data);" (call_expression "(**(code **)(unaff_EBX + 0x52593))(data)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x52593))" ( (pointer_expression "**(code **)(unaff_EBX + 0x52593)" * (pointer_expression "*(code **)(unaff_EBX + 0x52593)" * (cast_expression "(code **)(unaff_EBX + 0x52593)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EBX + 0x52593)" ( (binary_expression "unaff_EBX + 0x52593" identifier + number_literal) ))))) )) (argument_list "(data)" ( identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 == *(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 uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (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 ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (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 "undefined4 FUN_0005ead0(char *param_1,uchar *param_2)\n\n{\n  char cVar1;\n  size_t sVar2;\n  void *data;\n  size_t sVar3;\n  undefined4 uVar4;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  size_t local_88;\n  MD4_CTX local_80;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5ead9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = strlen(param_1);\n  if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }\n  MD4_Init(&local_80);\n  MD4_Update(&local_80,data,local_88);\n  MD4_Final(param_2,&local_80);\n  param_2[0x10] = '\0';\n  param_2[0x11] = '\0';\n  param_2[0x12] = '\0';\n  param_2[0x13] = '\0';\n  param_2[0x14] = '\0';\n  (**(code **)(unaff_EBX + 0x52593))(data);\n  uVar4 = 0;\nLAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0007c1a0();\n}" (type_identifier "undefined4") (function_declarator "FUN_0005ead0(char *param_1,uchar *param_2)" (identifier "FUN_0005ead0") (parameter_list "(char *param_1,uchar *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uchar *param_2" (type_identifier "uchar") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  size_t sVar2;\n  void *data;\n  size_t sVar3;\n  undefined4 uVar4;\n  int unaff_EBX;\n  int in_GS_OFFSET;\n  size_t local_88;\n  MD4_CTX local_80;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5ead9;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  sVar2 = strlen(param_1);\n  if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }\n  MD4_Init(&local_80);\n  MD4_Update(&local_80,data,local_88);\n  MD4_Final(param_2,&local_80);\n  param_2[0x10] = '\0';\n  param_2[0x11] = '\0';\n  param_2[0x12] = '\0';\n  param_2[0x13] = '\0';\n  param_2[0x14] = '\0';\n  (**(code **)(unaff_EBX + 0x52593))(data);\n  uVar4 = 0;\nLAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_0007c1a0();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "void *data;" (primitive_type "void") (pointer_declarator "*data" (* "*") (identifier "data")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "size_t local_88;" (primitive_type "size_t") (identifier "local_88") (; ";")) (declaration "MD4_CTX local_80;" (type_identifier "MD4_CTX") (identifier "local_80") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5ead9;" (assignment_expression "uStack_14 = 0x5ead9" (identifier "uStack_14") (= "=") (number_literal "0x5ead9")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (= "=") (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 "sVar2 = strlen(param_1);" (assignment_expression "sVar2 = strlen(param_1)" (identifier "sVar2") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (sVar2 == 0) {\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }\n  else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }" (if "if") (parenthesized_expression "(sVar2 == 0)" (( "(") (binary_expression "sVar2 == 0" (identifier "sVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);\n    if (data == (void *)0x0) goto LAB_0005ebcb;\n    local_88 = 0;\n  }" ({ "{") (expression_statement "data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);" (assignment_expression "data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297)" (identifier "data") (= "=") (cast_expression "(void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x5258b))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x5258b)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x5258b)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x5258b)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x5258b)" (( "(") (binary_expression "unaff_EBX + 0x5258b" (identifier "unaff_EBX") (+ "+") (number_literal "0x5258b")) () ")"))))) () ")")) (argument_list "(unaff_EBX + 0x29297)" (( "(") (binary_expression "unaff_EBX + 0x29297" (identifier "unaff_EBX") (+ "+") (number_literal "0x29297")) () ")"))))) (; ";")) (if_statement "if (data == (void *)0x0) goto LAB_0005ebcb;" (if "if") (parenthesized_expression "(data == (void *)0x0)" (( "(") (binary_expression "data == (void *)0x0" (identifier "data") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005ebcb;" (goto "goto") (statement_identifier "LAB_0005ebcb") (; ";"))) (expression_statement "local_88 = 0;" (assignment_expression "local_88 = 0" (identifier "local_88") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }" (else "else") (compound_statement "{\n    local_88 = sVar2 * 2;\n    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);\n    if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }\n    sVar3 = 0;\n    do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);\n  }" ({ "{") (expression_statement "local_88 = sVar2 * 2;" (assignment_expression "local_88 = sVar2 * 2" (identifier "local_88") (= "=") (binary_expression "sVar2 * 2" (identifier "sVar2") (* "*") (number_literal "2"))) (; ";")) (expression_statement "data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);" (assignment_expression "data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88)" (identifier "data") (= "=") (cast_expression "(void *)(**(code **)(unaff_EBX + 0x52597))(local_88)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(unaff_EBX + 0x52597))(local_88)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x52597))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x52597)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x52597)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x52597)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x52597)" (( "(") (binary_expression "unaff_EBX + 0x52597" (identifier "unaff_EBX") (+ "+") (number_literal "0x52597")) () ")"))))) () ")")) (argument_list "(local_88)" (( "(") (identifier "local_88") () ")"))))) (; ";")) (if_statement "if (data == (void *)0x0) {\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }" (if "if") (parenthesized_expression "(data == (void *)0x0)" (( "(") (binary_expression "data == (void *)0x0" (identifier "data") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_0005ebcb:\n      uVar4 = 0x1b;\n      goto LAB_0005eb93;\n    }" ({ "{") (labeled_statement "LAB_0005ebcb:\n      uVar4 = 0x1b;" (statement_identifier "LAB_0005ebcb") (: ":") (expression_statement "uVar4 = 0x1b;" (assignment_expression "uVar4 = 0x1b" (identifier "uVar4") (= "=") (number_literal "0x1b")) (; ";"))) (goto_statement "goto LAB_0005eb93;" (goto "goto") (statement_identifier "LAB_0005eb93") (; ";")) (} "}"))) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" (identifier "sVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    } while (sVar2 != sVar3);" (do "do") (compound_statement "{\n      cVar1 = param_1[sVar3];\n      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;\n      *(char *)((int)data + sVar3 * 2) = cVar1;\n      sVar3 = sVar3 + 1;\n    }" ({ "{") (expression_statement "cVar1 = param_1[sVar3];" (assignment_expression "cVar1 = param_1[sVar3]" (identifier "cVar1") (= "=") (subscript_expression "param_1[sVar3]" (identifier "param_1") ([ "[") (identifier "sVar3") (] "]"))) (; ";")) (expression_statement "*(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;" (assignment_expression "*(undefined1 *)((int)data + sVar3 * 2 + 1) = 0" (pointer_expression "*(undefined1 *)((int)data + sVar3 * 2 + 1)" (* "*") (cast_expression "(undefined1 *)((int)data + sVar3 * 2 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)data + sVar3 * 2 + 1)" (( "(") (binary_expression "(int)data + sVar3 * 2 + 1" (binary_expression "(int)data + sVar3 * 2" (cast_expression "(int)data" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "data")) (+ "+") (binary_expression "sVar3 * 2" (identifier "sVar3") (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(char *)((int)data + sVar3 * 2) = cVar1;" (assignment_expression "*(char *)((int)data + sVar3 * 2) = cVar1" (pointer_expression "*(char *)((int)data + sVar3 * 2)" (* "*") (cast_expression "(char *)((int)data + sVar3 * 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)data + sVar3 * 2)" (( "(") (binary_expression "(int)data + sVar3 * 2" (cast_expression "(int)data" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "data")) (+ "+") (binary_expression "sVar3 * 2" (identifier "sVar3") (* "*") (number_literal "2"))) () ")")))) (= "=") (identifier "cVar1")) (; ";")) (expression_statement "sVar3 = sVar3 + 1;" (assignment_expression "sVar3 = sVar3 + 1" (identifier "sVar3") (= "=") (binary_expression "sVar3 + 1" (identifier "sVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(sVar2 != sVar3)" (( "(") (binary_expression "sVar2 != sVar3" (identifier "sVar2") (!= "!=") (identifier "sVar3")) () ")")) (; ";")) (} "}")))) (expression_statement "MD4_Init(&local_80);" (call_expression "MD4_Init(&local_80)" (identifier "MD4_Init") (argument_list "(&local_80)" (( "(") (pointer_expression "&local_80" (& "&") (identifier "local_80")) () ")"))) (; ";")) (expression_statement "MD4_Update(&local_80,data,local_88);" (call_expression "MD4_Update(&local_80,data,local_88)" (identifier "MD4_Update") (argument_list "(&local_80,data,local_88)" (( "(") (pointer_expression "&local_80" (& "&") (identifier "local_80")) (, ",") (identifier "data") (, ",") (identifier "local_88") () ")"))) (; ";")) (expression_statement "MD4_Final(param_2,&local_80);" (call_expression "MD4_Final(param_2,&local_80)" (identifier "MD4_Final") (argument_list "(param_2,&local_80)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&local_80" (& "&") (identifier "local_80")) () ")"))) (; ";")) (expression_statement "param_2[0x10] = '\0';" (assignment_expression "param_2[0x10] = '\0'" (subscript_expression "param_2[0x10]" (identifier "param_2") ([ "[") (number_literal "0x10") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_2[0x11] = '\0';" (assignment_expression "param_2[0x11] = '\0'" (subscript_expression "param_2[0x11]" (identifier "param_2") ([ "[") (number_literal "0x11") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_2[0x12] = '\0';" (assignment_expression "param_2[0x12] = '\0'" (subscript_expression "param_2[0x12]" (identifier "param_2") ([ "[") (number_literal "0x12") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_2[0x13] = '\0';" (assignment_expression "param_2[0x13] = '\0'" (subscript_expression "param_2[0x13]" (identifier "param_2") ([ "[") (number_literal "0x13") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_2[0x14] = '\0';" (assignment_expression "param_2[0x14] = '\0'" (subscript_expression "param_2[0x14]" (identifier "param_2") ([ "[") (number_literal "0x14") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "(**(code **)(unaff_EBX + 0x52593))(data);" (call_expression "(**(code **)(unaff_EBX + 0x52593))(data)" (parenthesized_expression "(**(code **)(unaff_EBX + 0x52593))" (( "(") (pointer_expression "**(code **)(unaff_EBX + 0x52593)" (* "*") (pointer_expression "*(code **)(unaff_EBX + 0x52593)" (* "*") (cast_expression "(code **)(unaff_EBX + 0x52593)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EBX + 0x52593)" (( "(") (binary_expression "unaff_EBX + 0x52593" (identifier "unaff_EBX") (+ "+") (number_literal "0x52593")) () ")"))))) () ")")) (argument_list "(data)" (( "(") (identifier "data") () ")"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0005eb93:\n  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (statement_identifier "LAB_0005eb93") (: ":") (if_statement "if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(local_24 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_24 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (== "==") (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 uVar4;\n  }" ({ "{") (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" (identifier "FUN_0007c1a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *data,char *password,type_3 *ntbuffer)

{
  int var_9;
  char cVar2;
  size_t var_3;
  char *var_4;
  size_t var_5;
  type_1 CVar5;
  int var_1;
  size_t local_84;
  type_4 MD4pw;
  
  var_9 = *(int *)(var_1 + 0x14);
  var_3 = var_2(password);
  if (var_3 == 0) {
    var_4 = (*Curl_cstrdup)("");
    if (var_4 == (char *)0x0) goto LAB_0005ebcb;
    local_84 = 0;
  }
  else {
    local_84 = var_3 * 2;
    var_4 = (char *)(*Curl_cmalloc)(local_84);
    if (var_4 == (char *)0x0) {
LAB_0005ebcb:
      CVar5 = CURLE_OUT_OF_MEMORY;
      goto LAB_0005eb93;
    }
    var_5 = 0;
    do {
      cVar2 = password[var_5];
      var_4[var_5 * 2 + 1] = '\0';
      var_4[var_5 * 2] = cVar2;
      var_5 = var_5 + 1;
    } while (var_3 != var_5);
  }
  var_6((type_4 *)&MD4pw);
  var_7((type_4 *)&MD4pw,var_4,local_84);
  var_8(ntbuffer,(type_4 *)&MD4pw);
  ntbuffer[0x10] = '\0';
  ntbuffer[0x11] = '\0';
  ntbuffer[0x12] = '\0';
  ntbuffer[0x13] = '\0';
  ntbuffer[0x14] = '\0';
  (*Curl_cfree)(var_4);
  CVar5 = CURLE_OK;
LAB_0005eb93:
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return CVar5;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


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

undefined4 MASKED(char *param_1,uchar *param_2)

{
  char cVar1;
  size_t sVar2;
  void *data;
  size_t sVar3;
  undefined4 uVar4;
  int unaff_EBX;
  int in_GS_OFFSET;
  size_t local_88;
  MD4_CTX local_80;
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x5ead9;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  sVar2 = strlen(param_1);
  if (sVar2 == 0) {
    data = (void *)(**(code **)(unaff_EBX + 0x5258b))(unaff_EBX + 0x29297);
    if (data == (void *)0x0) goto LAB_0005ebcb;
    local_88 = 0;
  }
  else {
    local_88 = sVar2 * 2;
    data = (void *)(**(code **)(unaff_EBX + 0x52597))(local_88);
    if (data == (void *)0x0) {
LAB_0005ebcb:
      uVar4 = 0x1b;
      goto LAB_0005eb93;
    }
    sVar3 = 0;
    do {
      cVar1 = param_1[sVar3];
      *(undefined1 *)((int)data + sVar3 * 2 + 1) = 0;
      *(char *)((int)data + sVar3 * 2) = cVar1;
      sVar3 = sVar3 + 1;
    } while (sVar2 != sVar3);
  }
  MD4_Init(&local_80);
  MD4_Update(&local_80,data,local_88);
  MD4_Final(param_2,&local_80);
  param_2[0x10] = '\0';
  param_2[0x11] = '\0';
  param_2[0x12] = '\0';
  param_2[0x13] = '\0';
  param_2[0x14] = '\0';
  (**(code **)(unaff_EBX + 0x52593))(data);
  uVar4 = 0;
LAB_0005eb93:
  if (local_24 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007c1a0();
}

