// // sub_8241A0 from 0x8241a0 to 0x8242fe (350 bytes) // // 2 xrefs: // > sub_8245B4 @ 0x824796 // > sub_826F08 @ 0x828078 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:53 +0000 // int __fastcall sub_8241A0(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_8280FC(v1, "Rewind stream after send\n"); } return 0; } if ( *((_BYTE *)a1 + 613) ) return 0; sub_8280FC(v1, "NTLM send, close instead of sending %lld bytes\n", v14); } sub_83E124(a1, 2); *(_QWORD *)(v1 + 80) = 0; LABEL_9: if ( !v6 ) return 0; return sub_839288(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source