// // GameToolbox::stringSetupToMap from 0x14006fac0 to 0x14006fd0a (586 bytes) // // 3 xrefs: // > sub_140342F20 @ 0x1403433f7 // > ColorAction::setupFromString @ 0x140363d3c // > @ 0x1409117b0 // // 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:25:49 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall GameToolbox::stringSetupToMap(__int64 *a1, unsigned __int8 *a2, __int64 a3) { __int64 *v5; // rbx unsigned __int64 v6; // rdi __int64 v7; // rax __int64 v8; // rdx __int64 v9; // rcx __int64 v10; // r8 __int64 v11; // r9 __int64 v12; // r14 bool v13; // r15 __int64 v14; // r12 unsigned __int64 v15; // rax size_t v16; // r8 size_t v17; // rax __int64 *v18; // rax void **v19; // rcx void **v20; // rax void **v21; // rdx void *v22; // rcx __int64 v23; // rax __int64 v24; // rcx void *v25; // rcx void *Src[2]; // [rsp+38h] [rbp-48h] BYREF size_t Size; // [rsp+48h] [rbp-38h] unsigned __int64 v28; // [rsp+50h] [rbp-30h] void *Block[2]; // [rsp+58h] [rbp-28h] BYREF __int64 v30; // [rsp+68h] [rbp-18h] unsigned __int64 v31; // [rsp+70h] [rbp-10h] v5 = a1; v6 = 0; v7 = -1; do ++v7; while ( a2[v7] ); if ( (unsigned __int64)a1[3] > 0xF ) a1 = (__int64 *)*a1; v12 = sub_140045BF0((__int64)a1, v5[2], 0, a2, v7); *(_OWORD *)Block = 0; v30 = 0; v31 = 15; LOBYTE(Block[0]) = 0; v13 = 1; v14 = *((int *)v5 + 4); while ( 1 ) { if ( v6 == v14 ) goto LABEL_24; *(_OWORD *)Src = 0; Size = 0; v28 = 0; v15 = v5[2]; if ( v15 < v6 ) sub_14003F4D0(v9, v8, v10, v11); v16 = v12 - v6; v17 = v15 - v6; if ( v17 < v12 - v6 ) v16 = v17; v18 = v5; if ( (unsigned __int64)v5[3] > 0xF ) v18 = (__int64 *)*v5; sub_14003D230(Src, (char *)v18 + v6, v16); if ( v13 ) { v19 = Block; LABEL_17: v21 = Src; if ( v28 > 0xF ) v21 = (void **)Src[0]; sub_1400405A0(v19, v21, Size); goto LABEL_20; } if ( v30 ) { v20 = (void **)sub_140075B80(a3, Block); if ( v20 != Src ) { v19 = v20; goto LABEL_17; } } LABEL_20: v13 = !v13; if ( v28 > 0xF ) { v22 = Src[0]; if ( v28 + 1 >= 0x1000 ) { v22 = *((void **)Src[0] - 1); if ( (unsigned __int64)((char *)Src[0] - (char *)v22 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v22); } LABEL_24: if ( v12 == -1 ) break; v6 = v12 + 1; v23 = -1; do ++v23; while ( a2[v23] ); v24 = (__int64)v5; if ( (unsigned __int64)v5[3] > 0xF ) v24 = *v5; v12 = sub_140045BF0(v24, v5[2], v12 + 1, a2, v23); } if ( v31 > 0xF ) { v25 = Block[0]; if ( v31 + 1 >= 0x1000 ) { v25 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v25 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v25); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source