// // sub_10054FFFC from 0x10054fffc to 0x10055018c (400 bytes) // // 2 xrefs: // > sub_10054FCD4 @ 0x10054ff64 // > sub_100551254 @ 0x10055209c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_10054FFFC(__int64 *a1) { __int64 v2; // x19 __int64 v3; // x8 int v4; // w9 signed __int64 v5; // x21 int v6; // w22 signed __int64 v7; // x0 const char *v8; // x0 _BYTE *v9; // x8 __int64 v10; // x9 __int64 v11; // x9 v2 = *a1; v3 = *(_QWORD *)(*a1 + 536); if ( !v3 ) return 0; v4 = *(_DWORD *)(v2 + 1064); if ( (v4 | 4) == 5 ) return 0; v5 = *(_QWORD *)(v3 + 48); v6 = *((unsigned __int8 *)a1 + 751); if ( *((_BYTE *)a1 + 751) ) { v7 = 0; } else if ( *((_BYTE *)a1 + 748) ) { if ( v4 == 4 ) { v7 = *(_QWORD *)(v2 + 35640); } else { if ( v4 != 3 ) { if ( v4 == 2 ) { v7 = *(_QWORD *)(v2 + 35640); if ( v7 != -1 ) goto LABEL_15; v8 = *(const char **)(v2 + 656); if ( v8 ) { v7 = strlen(v8); goto LABEL_15; } } v9 = a1 + 94; *((_BYTE *)a1 + 752) = 0; v7 = -1; goto LABEL_19; } v7 = *(_QWORD *)(v3 + 8); } } else { v7 = 0; } LABEL_15: v9 = a1 + 94; *((_BYTE *)a1 + 752) = 0; if ( v7 != -1 && v7 <= v5 ) { LABEL_31: if ( v5 ) return sub_100565CDC(a1); return 0; } LABEL_19: v10 = *(_QWORD *)(v2 + 35424); if ( v10 != 8 && v10 != 32 ) { v11 = *(_QWORD *)(v2 + 35392); if ( v11 != 8 && v11 != 32 ) goto LABEL_30; } if ( v7 - v5 < 2000 || *((_DWORD *)a1 + 244) || *((_DWORD *)a1 + 252) ) { if ( !v6 ) { *v9 = 1; sub_1005524A4(v2, "Rewind stream after send\n"); } return 0; } if ( !*((_BYTE *)a1 + 737) ) { sub_1005524A4(v2, "NTLM send, close instead of sending %ld bytes\n", v7 - v5); LABEL_30: *((_BYTE *)a1 + 737) = 1; *(_QWORD *)(v2 + 120) = 0; goto LABEL_31; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source