// // sub_614120 from 0x614120 to 0x61427e (350 bytes) // // 2 xrefs: // > sub_614534 @ 0x614716 // > sub_616E88 @ 0x617ff8 // // 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 // int __fastcall sub_614120(int *a1) { int v1; // r5 int v2; // r2 int v3; // r3 int v4; // r8 __int64 v6; // r6 int v7; // r1 __int64 v8; // r2 int v10; // r1 int v11; // r0 bool v12; // zf int v13; // r1 __int64 v14; // r2 bool v15; // zf const char *v16; // r0 size_t v17; // r0 bool v18; // zf v1 = *a1; v2 = *(_DWORD *)(*a1 + 332); if ( !v2 ) return 0; v3 = *(_DWORD *)(v1 + 636); if ( v3 == 1 || v3 == 5 ) return 0; v4 = *((unsigned __int8 *)a1 + 630); v6 = *(_QWORD *)(v2 + 40); if ( *((_BYTE *)a1 + 630) ) { v7 = 0; v8 = 0; goto LABEL_6; } v7 = *((unsigned __int8 *)a1 + 627); if ( !*((_BYTE *)a1 + 627) ) { v8 = 0; goto LABEL_6; } switch ( v3 ) { case 3: v8 = *(_QWORD *)(v2 + 8); v7 = ((unsigned int)v8 & HIDWORD(v8)) == -1; goto LABEL_6; case 4: v8 = *(_QWORD *)(v1 + 34712); v18 = HIDWORD(v8) == -1; if ( HIDWORD(v8) == -1 ) v18 = (_DWORD)v8 == -1; if ( v18 ) break; v7 = *((unsigned __int8 *)a1 + 630); goto LABEL_6; case 2: v8 = *(_QWORD *)(v1 + 34712); v15 = HIDWORD(v8) == -1; if ( HIDWORD(v8) == -1 ) v15 = (_DWORD)v8 == -1; if ( v15 ) { v16 = *(const char **)(v1 + 396); if ( !v16 ) break; v17 = strlen(v16); v7 = 0; v8 = v17; } else { v7 = *((unsigned __int8 *)a1 + 630); } LABEL_6: if ( v6 < v8 ) v7 |= 1u; *((_BYTE *)a1 + 631) = 0; if ( !v7 ) goto LABEL_9; goto LABEL_16; } v8 = -1; *((_BYTE *)a1 + 631) = 0; LABEL_16: v10 = *(_DWORD *)(v1 + 34588); if ( v10 == 8 ) goto LABEL_26; v11 = *(_DWORD *)(v1 + 34572); v12 = v10 == 32; if ( v10 != 32 ) v12 = v11 == 8; v13 = v12; if ( v11 == 32 ) v13 |= 1u; if ( v13 ) { LABEL_26: v14 = v8 - v6; if ( v14 < 2000 || a1[189] || a1[195] ) { if ( !v4 ) { *((_BYTE *)a1 + 631) = 1; sub_61807C(v1, "Rewind stream after send\n"); } return 0; } if ( *((_BYTE *)a1 + 613) ) return 0; sub_61807C(v1, "NTLM send, close instead of sending %lld bytes\n", v14); } sub_62E0A4(a1, 2); *(_QWORD *)(v1 + 80) = 0; LABEL_9: if ( !v6 ) return 0; return sub_629208(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source