// // sub_8D60A8 from 0x8d60a8 to 0x8d635c (692 bytes) // // 2 xrefs: // > GameStatsManager::createReward @ 0x8d63ac // > GameStatsManager::isSecretCoinValid @ 0x8d65c4 // // 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 12:56:42 +0000 // __int64 __fastcall sub_8D60A8(unsigned __int8 *a1, char *a2, __int64 *a3) { int v6; // w26 unsigned __int8 *v7; // x23 __int64 v8; // x24 size_t v9; // x0 __int64 v10; // x23 unsigned __int64 v11; // x27 int v12; // w28 __int64 v13; // x1 unsigned __int64 v14; // x0 unsigned __int8 *v15; // x23 unsigned __int64 v16; // x26 size_t v17; // x0 unsigned __int8 *v18; // x4 unsigned __int8 *v19; // x26 char *v20; // x0 int v21; // w3 char *v22; // x1 int v24; // w20 size_t v25; // x0 char *v26; // x0 __int64 v27; // x4 unsigned __int8 *v28; // x3 int v29; // w2 char *v30; // x20 __int64 v31[2]; // [xsp+60h] [xbp+60h] BYREF void *v32; // [xsp+70h] [xbp+70h] v6 = *a1; if ( (v6 & 1) != 0 ) { v7 = *((unsigned __int8 **)a1 + 2); v8 = *((_QWORD *)a1 + 1); v9 = strlen(a2); if ( !v9 || !v8 || (v27 = (__int64)&v7[v8], v26 = &a2[v9], v7 == &v7[v8]) ) { LABEL_4: v10 = -1; goto LABEL_5; } } else { v24 = v6 >> 1; v25 = strlen(a2); v8 = v6 >> 1; if ( !v25 || !v24 ) goto LABEL_4; v7 = a1 + 1; v26 = &a2[v25]; v27 = (__int64)&a1[v24 + 1]; if ( a1 + 1 == (unsigned __int8 *)v27 ) { v10 = -1; goto LABEL_54; } } v28 = v7; while ( a2 == v26 ) { LABEL_46: if ( (unsigned __int8 *)v27 == ++v28 ) { v10 = -1; goto LABEL_51; } } v29 = *v28; if ( (unsigned __int8)*a2 != v29 ) { v30 = a2; while ( v26 != ++v30 ) { if ( (unsigned __int8)*v30 == v29 ) goto LABEL_50; } goto LABEL_46; } LABEL_50: v10 = v28 - v7; LABEL_51: v24 = v6 >> 1; if ( (v6 & 1) != 0 ) { v8 = *((_QWORD *)a1 + 1); goto LABEL_5; } LABEL_54: v8 = v24; LABEL_5: v11 = 0; LABEL_6: while ( 2 ) { std::string::basic_string(v31, (__int64)a1, v11, v10 - v11); v12 = v31[0] & 1; v13 = LOBYTE(v31[0]) >> 1; if ( (v31[0] & 1) != 0 ) v13 = v31[1]; if ( !v13 && v11 == v8 ) { LABEL_14: if ( v10 == -1 ) break; goto LABEL_15; } v14 = a3[1]; if ( v14 != a3[2] ) { if ( v14 ) { std::string::basic_string(v14, v31); v14 = a3[1]; v12 = v31[0] & 1; } a3[1] = v14 + 24; goto LABEL_14; } std::vector::__push_back_slow_path(a3, v31); v12 = v31[0] & 1; if ( v10 != -1 ) { LABEL_15: v11 = v10 + 1; if ( (*a1 & 1) != 0 ) { v15 = *((unsigned __int8 **)a1 + 2); v16 = *((_QWORD *)a1 + 1); } else { v15 = a1 + 1; v16 = *a1 >> 1; } v17 = strlen(a2); if ( v17 ) { if ( v11 < v16 ) { v18 = &v15[v11]; v19 = &v15[v16]; v20 = &a2[v17]; if ( &v15[v11] != v19 ) { while ( 1 ) { if ( a2 != v20 ) { v21 = *v18; if ( (unsigned __int8)*a2 == v21 ) { LABEL_31: v10 = v18 - v15; if ( v12 ) goto LABEL_21; goto LABEL_6; } v22 = a2; while ( v20 != ++v22 ) { if ( (unsigned __int8)*v22 == v21 ) goto LABEL_31; } } if ( v19 == ++v18 ) { v10 = -1; goto LABEL_20; } } } } } v10 = -1; LABEL_20: if ( v12 ) LABEL_21: operator delete(v32); continue; } break; } if ( v12 ) operator delete(v32); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source