// // sub_140101280 from 0x140101280 to 0x140101384 (260 bytes) // // 6 xrefs: // > sub_140100690 @ 0x140100801 // > sub_140100690 @ 0x140100839 // > sub_140100690 @ 0x140100857 // > @ 0x140895604 // > @ 0x140895614 // > @ 0x140915800 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 11:26:42 +0000 // void *__fastcall sub_140101280( char *Src, __int64 a2, _QWORD *a3, __int64 a4, __int64 a5, unsigned __int8 (__fastcall *a6)(_QWORD, _QWORD)) { __int64 v6; // r12 __int64 v9; // rax __int64 v11; // r12 char *v12; // r14 __int64 v13; // rax char *v14; // rsi char *v15; // r15 _QWORD *v16; // rbp __int64 v17; // rax size_t v18; // r14 __int64 v19; // rax v6 = a5; v9 = a2; if ( a4 < a5 ) { while ( 1 ) { v11 = v6 - a4; v12 = &Src[8 * a4]; v13 = a4; v14 = v12; if ( v11 < a4 ) v13 = v11; v6 = v11 - v13; v15 = &v12[8 * v13]; while ( 1 ) { v16 = a3 + 1; if ( !a6(*(_QWORD *)v14, *(_QWORD *)Src) ) break; v17 = *(_QWORD *)v14; v14 += 8; *a3 = v17; if ( v14 == v15 ) { v18 = v12 - Src; memmove(a3 + 1, Src, v18); a3 = (_QWORD *)((char *)v16 + v18); goto LABEL_11; } LABEL_9: ++a3; } v19 = *(_QWORD *)Src; Src += 8; *a3 = v19; if ( Src != v12 ) goto LABEL_9; memmove(a3 + 1, v14, v15 - v14); a3 = (_QWORD *)((char *)v16 + v15 - v14); LABEL_11: Src = v15; if ( a4 >= v6 ) { v9 = a2; return memmove(a3, Src, v9 - (_QWORD)Src); } } } return memmove(a3, Src, v9 - (_QWORD)Src); }
GD Web Decomp Icon

GD Web Decomp

Raw Source