// // DialogLayer::displayDialogObject from 0x1003b0d80 to 0x1003b1118 (920 bytes) // // 2 xrefs: // > DialogLayer::init @ 0x1003b0c26 // > DialogLayer::displayNextObject @ 0x1003b0cfe // // 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:29:25 +0000 // float __fastcall DialogLayer::displayDialogObject(__int64 a1, __int64 a2) { __int64 v4; // rdi _QWORD *v5; // rdi __int64 v6; // r15 char *v7; // rsi __int64 v8; // rdi __int16 v9; // ax __int64 v10; // rax __int64 CString; // rax char *v12; // rax __int64 v13; // r15 __int64 v14; // r14 const char *v15; // r14 size_t v16; // rax size_t v17; // r15 char *v18; // r12 size_t v19; // r13 __int64 v20; // r14 __int64 v21; // rsi __int64 v22; // r14 float result; // xmm0_4 char v24; // [rsp+0h] [rbp-70h] __int64 v25; // [rsp+8h] [rbp-68h] BYREF __int128 __dst; // [rsp+10h] [rbp-60h] BYREF void *v27; // [rsp+20h] [rbp-50h] float v28; // [rsp+2Ch] [rbp-44h] char __s[16]; // [rsp+30h] [rbp-40h] BYREF void *__p; // [rsp+40h] [rbp-30h] if ( !a2 ) return result; *(_BYTE *)(a1 + 616) = 1; *(_BYTE *)(a1 + 617) = *(_BYTE *)(a2 + 116); cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 608)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 608) + 912LL))(*(_QWORD *)(a1 + 608), 0); v4 = *(_QWORD *)(a1 + 584); if ( v4 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 536LL))(v4); *(_QWORD *)(a1 + 584) = 0; } v5 = *(_QWORD **)(a1 + 576); if ( v5 ) { v5[87] = 0; (*(void (__fastcall **)(_QWORD *))(*v5 + 536LL))(v5); *(_QWORD *)(a1 + 576) = 0; } v6 = *(_QWORD *)(a1 + 568); if ( (*(_BYTE *)(a2 + 80) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(a2 + 96), *(_QWORD *)(a2 + 88)); if ( (__s[0] & 1) == 0 ) goto LABEL_8; } else { __p = *(void **)(a2 + 96); *(_OWORD *)__s = *(_OWORD *)(a2 + 80); if ( (__s[0] & 1) == 0 ) { LABEL_8: v7 = &__s[1]; goto LABEL_11; } } v7 = (char *)__p; LABEL_11: (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v6 + 928LL))(v6, v7); if ( (__s[0] & 1) != 0 ) operator delete(__p); v8 = *(_QWORD *)(a1 + 568); v9 = *(_WORD *)(a2 + 108); __s[2] = *(_BYTE *)(a2 + 110); *(_WORD *)__s = v9; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v8 + 1072LL))(v8, __s); if ( *(int *)(a2 + 104) > 0 ) { v10 = sub_10088E820("dialogIcon_%03d.png", v24); CString = cocos2d::CCString::getCString(v10); v12 = cocos2d::CCSprite::create_1(CString); *(_QWORD *)(a1 + 584) = v12; (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 560) + 464LL))(*(_QWORD *)(a1 + 560), v12, 2); v13 = *(_QWORD *)(a1 + 584); sub_100278250((float *)__s, -143.0, 0.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v13 + 184LL))(v13, __s); } v28 = *(float *)(a2 + 112); if ( (*(_BYTE *)(a2 + 56) & 1) != 0 ) { sub_10001AD30(__s, *(const void **)(a2 + 72), *(_QWORD *)(a2 + 64)); if ( (__s[0] & 1) == 0 ) goto LABEL_17; } else { v14 = a2 + 56; __p = *(void **)(v14 + 16); *(_OWORD *)__s = *(_OWORD *)v14; if ( (__s[0] & 1) == 0 ) { LABEL_17: v15 = &__s[1]; goto LABEL_20; } } v15 = (const char *)__p; LABEL_20: v16 = strlen(v15); if ( v16 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v17 = v16; if ( v16 >= 0x17 ) { v19 = 26; if ( (v16 | 7) != 0x17 ) v19 = (v16 | 7) + 1; v18 = (char *)operator new(v19); v27 = v18; *(_QWORD *)&__dst = v19 | 1; *((_QWORD *)&__dst + 1) = v17; } else { LOBYTE(__dst) = 2 * v16; v18 = (char *)&__dst + 1; if ( !v16 ) goto LABEL_28; } memmove(v18, v15, v17); LABEL_28: v18[v17] = 0; sub_100278250((float *)&v25, 0.0, 1.0); *(_QWORD *)(a1 + 576) = TextArea::create(&__dst, (__int64)"chatFont.fnt", &v25, 0, 0, 1.0, 242.0 / v28, 20.0); if ( (__dst & 1) != 0 ) operator delete(v27); if ( (__s[0] & 1) != 0 ) operator delete(__p); v20 = *(_QWORD *)(a1 + 576); sub_100278250((float *)__s, 0.0, 0.5); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v20 + 296LL))(v20, __s); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 576) + 160LL))(*(_QWORD *)(a1 + 576), v28); v21 = *(_QWORD *)(a1 + 576); *(_QWORD *)(v21 + 696) = a1 + 544; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 560) + 464LL))(*(_QWORD *)(a1 + 560), v21, 3); v22 = *(_QWORD *)(a1 + 576); sub_100278250((float *)__s, -92.0, 0.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v22 + 184LL))(v22, __s); return TextArea::fadeInCharacters(*(_QWORD *)(a1 + 576), 0, 0, 0.2, 0.02); }