// // sub_10028EC80 from 0x10028ec80 to 0x10028ee4e (462 bytes) // // 1 xrefs: // > sub_10028E090 @ 0x10028eaba // // 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 12:27:48 +0000 // __int64 __fastcall sub_10028EC80(_QWORD *a1) { __int64 v1; // rax unsigned int *v2; // rax _QWORD **v3; // r13 char *v4; // rbx _QWORD *v5; // r15 __int64 v6; // rbx int v7; // r15d char *v8; // rax _QWORD *v9; // r14 char *v10; // r12 int v11; // eax char *v12; // rax __int64 v13; // rcx char *v14; // rbx __int64 v15; // rax __int64 v16; // r14 _QWORD *v17; // rbx __int128 v19; // [rsp+8h] [rbp-58h] BYREF __int64 v20; // [rsp+18h] [rbp-48h] __int64 v21; // [rsp+20h] [rbp-40h] _QWORD **v22; // [rsp+28h] [rbp-38h] _QWORD *v23; // [rsp+30h] [rbp-30h] v23 = a1; v1 = a1[84]; if ( v1 ) { v2 = *(unsigned int **)(v1 + 56); if ( *v2 ) { v3 = *((_QWORD ***)v2 + 2); v22 = &v3[*v2 - 1]; while ( 1 ) { v5 = *v3; if ( !*v3 ) goto LABEL_21; v5[73] = 0; (*(void (__fastcall **)(_QWORD *, _QWORD))(*v5 + 1160LL))(v5, 0); if ( v23[83] ) break; LABEL_5: if ( ++v3 > v22 ) goto LABEL_21; } CCTextInputNode::getString(&v19, (__int64)v5); v6 = v23[83]; v7 = (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 64LL))(v5); v8 = *(char **)(v6 + 704); v21 = v6; if ( v8 ) { while ( 1 ) { while ( 1 ) { v10 = v8; v11 = *((_DWORD *)v8 + 8); if ( v7 >= v11 ) break; v8 = *(char **)v10; v9 = v10; if ( !*(_QWORD *)v10 ) goto LABEL_15; } if ( v7 <= v11 ) break; v8 = *((char **)v10 + 1); if ( !v8 ) { v9 = v10 + 8; goto LABEL_15; } } v14 = v10; if ( (v10[40] & 1) == 0 ) goto LABEL_4; } else { v9 = (_QWORD *)(v6 + 704); v10 = (char *)(v6 + 704); LABEL_15: v12 = (char *)operator new(0x40u); v13 = v21; v14 = v12; *((_DWORD *)v12 + 8) = v7; *(_OWORD *)(v12 + 40) = 0; *((_QWORD *)v12 + 7) = 0; *(_OWORD *)v12 = 0; *((_QWORD *)v12 + 2) = v10; *v9 = v12; v15 = **(_QWORD **)(v13 + 696); v16 = v13; if ( v15 ) *(_QWORD *)(v13 + 696) = v15; sub_10001B680(*(__int64 **)(v13 + 704), (__int64 *)v14); ++*(_QWORD *)(v16 + 712); if ( (v14[40] & 1) == 0 ) goto LABEL_4; } operator delete(*((void **)v14 + 7)); LABEL_4: v4 = v14 + 40; *((_QWORD *)v4 + 2) = v20; *(_OWORD *)v4 = v19; goto LABEL_5; } } LABEL_21: v17 = v23; (*(void (__fastcall **)(_QWORD *, _QWORD))(*v23 + 1072LL))(v23, 0); return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*v17 + 528LL))(v17, 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source