// // sub_1009A3B10 from 0x1009a3b10 to 0x1009a3c70 (352 bytes) // // 2 xrefs: // > AccountReviewPopup::FLAlert_Clicked @ 0x1009a343f // > AccountReviewPopup::FLAlert_Clicked @ 0x1009a3543 // // 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:39:18 +0000 // char __fastcall sub_1009A3B10(__int64 a1, signed int a2) { __int64 v2; // rax __int64 v3; // rax __int64 v4; // rbx int v5; // eax __int64 v6; // rax int v7; // esi char v8; // r14 int v10; // r14d __int64 v11; // rax int v12; // edx char v13; // [rsp+0h] [rbp-30h] BYREF void *v14[5]; // [rsp+1h] [rbp-2Fh] BYREF if ( *(_DWORD *)(a1 + 1236) ) return 0; v2 = *(_QWORD *)(a1 + 1312); if ( v2 == 0 || a2 < 0 ) return 0; if ( (int)sub_1007FEF90(v2) <= a2 ) return 0; v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 1312), a2); if ( *(_BYTE *)(v3 + 104) != 1 ) return 0; v4 = v3; v5 = *(_DWORD *)(v3 + 56); if ( (unsigned int)(v5 - 3) < 2 || v5 == 7 ) { *(_QWORD *)(GameLevelManager::sharedState() + 1248) = a1 + 784; v10 = *(_DWORD *)(v4 + 56); v11 = GameLevelManager::sharedState(); if ( v10 == 4 ) { GameLevelManager::deleteAccountComment(v11, *(_DWORD *)(v4 + 64), *(_DWORD *)(v4 + 60)); } else { v12 = 6; if ( *(_DWORD *)(v4 + 56) != 7 ) v12 = 0; GameLevelManager::deleteComment(v11, *(_DWORD *)(v4 + 60), v12, *(_DWORD *)(v4 + 64)); } goto LABEL_19; } if ( v5 != 8 || *(__int64 *)(v4 + 168) <= 0 ) return 0; v6 = GameLevelManager::sharedState(); v7 = *(_DWORD *)(v4 + 60); v13 = 26; strcpy((char *)v14, "deleteMessage"); v8 = sub_1005712B0(v6, v7, (__int64)&v13); if ( (v13 & 1) != 0 ) operator delete(*(void **)((char *)&v14[1] + 7)); if ( !v8 ) return 0; *(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 832; ++*(_DWORD *)(a1 + 1260); LABEL_19: *(_BYTE *)(v4 + 104) = 0; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source