// // sub_1004FB004 from 0x1004fb004 to 0x1004fb18c (392 bytes) // // 4 xrefs: // > sub_1004FA900 @ 0x1004fa9bc // > sub_1004FAFFC @ 0x1004fb000 // > sub_1004FB274 @ 0x1004fb2ec // > ThreadViewPopup::keyBackClicked @ 0x1005012f4 // // This function is hookable on this platform (idp: arm, 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:06:50 +0000 // unsigned int *__fastcall sub_1004FB004(unsigned int *result, int a2) { __int64 v3; // x19 __int64 v4; // x0 __int64 v5; // x0 _DWORD *v6; // x8 char v7; // w8 __int64 v8; // x8 unsigned int v9; // w8 float v10; // s0 if ( *((_BYTE *)result + 1104) == 1 ) { v3 = (__int64)result; *((_BYTE *)result + 1104) = 0; if ( *((char *)result + 1135) < 0 ) { **((_BYTE **)result + 139) = 0; *((_QWORD *)result + 140) = 0; } else { *((_BYTE *)result + 1112) = 0; *((_BYTE *)result + 1135) = 0; } v4 = *((_QWORD *)result + 150); if ( v4 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0); v5 = *(_QWORD *)(v3 + 1208); if ( v5 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v3 + 1208) + 1056LL))(*(_QWORD *)(v3 + 1208), 0); } sub_1004FA25C(v3); sub_1004FB380(v3); result = *(unsigned int **)(v3 + 1136); if ( a2 ) { if ( result ) { v6 = *(_DWORD **)(v3 + 760); *(_QWORD *)(v3 + 760) = result; *(_QWORD *)(v3 + 1136) = 0; cocos2d::CCObject::release(v6); *(_OWORD *)(v3 + 768) = *(_OWORD *)(v3 + 1144); *(_BYTE *)(v3 + 788) = *(_BYTE *)(v3 + 1160); if ( (*(_BYTE *)(v3 + 1168) & 1) != 0 || (v8 = *(_QWORD *)(v3 + 752), *(_BYTE *)(v8 + 264) == 1) && (v9 = *(_DWORD *)(v8 + 268) - 2, v9 < 6) && ((0x2Du >> v9) & 1) != 0 ) { v7 = 1; } else { v7 = *(_BYTE *)(v3 + 790); } sub_1004FB318(v3, v7 & 1); sub_1004FB470(v3, 0); result = (unsigned int *)ScrollableContentLayer::scrollTo(*(_QWORD *)(v3 + 824), *(float *)(v3 + 1164)); v10 = *(float *)(v3 + 944); if ( v10 > 0.0 && (*(_BYTE *)(v3 + 790) & 1) == 0 && (*(_BYTE *)(v3 + 1168) & 1) == 0 ) result = sub_1004FACFC((unsigned int *)v3, v10); if ( (*(_BYTE *)(v3 + 1168) & 1) == 0 ) return (unsigned int *)sub_1004FB598(v3); } } else if ( result ) { result = cocos2d::CCObject::release(result); *(_QWORD *)(v3 + 1136) = 0; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source