{"type": "func", "start": 5372656928, "end": 5372657368, "name": "ProfilePage::onComment", "pseudocode": "// \n// ProfilePage::onComment from 0x1403c3d20 to 0x1403c3ed8 (440 bytes)\n// \n// 2 xrefs:\n// > ProfilePage::loadPageFromUserInfo @ 0x1403c2e43\n// > <???> @ 0x1406d77a8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nvoid ProfilePage::onComment(ProfilePage *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v2; // rcx\n  int TimeLeft; // eax\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // r8\n  __int64 v7; // rax\n  FLAlertLayer *v8; // rbx\n  FLAlertLayer_vtbl *v9; // rdx\n  FLAlertLayer *v10; // rcx\n  FLAlertLayer_vtbl **v11; // rax\n  __int128 v12; // [rsp+50h] [rbp+17h] BYREF\n  __int64 v13; // [rsp+60h] [rbp+27h]\n  __int64 v14; // [rsp+68h] [rbp+2Fh]\n  __int128 v15; // [rsp+70h] [rbp+37h] BYREF\n  __int64 v16; // [rsp+80h] [rbp+47h]\n  __int64 v17; // [rsp+88h] [rbp+4Fh]\n  void *v18; // [rsp+B0h] [rbp+77h]\n\n  v2 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v18 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v18);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v2 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  TimeLeft = GameLevelManager::getTimeLeft(v2, \"acc_comment\", 15.0);\n  if ( (unsigned int)(TimeLeft - 1) > 0xE )\n  {\n    v15 = 0;\n    v16 = 0;\n    v17 = 15;\n    LOBYTE(v15) = 0;\n    v13 = 11;\n    v14 = 15;\n    *(_QWORD *)&v12 = 0x6470552074736F50LL;\n    *((_QWORD *)&v12 + 1) = 6648929;\n    v11 = (FLAlertLayer_vtbl **)ShareCommentLayer::create((unsigned int)&v12, 140, 1, 0, (__int64)&v15);\n    v9 = *v11;\n    v10 = (FLAlertLayer *)v11;\n  }\n  else\n  {\n    v4 = cocos2d::CCString::createWithFormat(\"Please wait %i seconds before posting a new update!\", TimeLeft);\n    CString = cocos2d::CCString::getCString(v4);\n    v12 = 0;\n    v13 = 0;\n    v14 = 0;\n    v6 = -1;\n    do\n      ++v6;\n    while ( CString[v6] );\n    sub_14003A930(&v12, CString, v6);\n    v7 = sub_14003BDB0((__int64)&v15, (__int64)&v12);\n    v8 = FLAlertLayer::create(0, (int)\"Too fast\", v7, (__int64)\"OK\", 0, 1133903872, 0, 0, 1065353216);\n    sub_14003A830((__int64)&v12);\n    v9 = v8->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v10 = v8;\n  }\n  v9->show(v10);\n}", "assembly": "; \n; ProfilePage::onComment from 0x1403c3d20 to 0x1403c3ed8 (440 bytes)\n; \n; 2 xrefs:\n; > ProfilePage::loadPageFromUserInfo @ 0x1403c2e43\n; > <???> @ 0x1406d77a8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x1403c3d20\npush    rbp                                                            ; +0x5, 0x1403c3d25\nlea     rbp, [rsp-57h]                                                 ; +0x6, 0x1403c3d26\nsub     rsp, 90h                                                       ; +0xb, 0x1403c3d2b\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x12, 0x1403c3d32\ntest    rcx, rcx                                                       ; +0x19, 0x1403c3d39\njnz     short loc_1403C3D6C                                            ; +0x1c, 0x1403c3d3c\nmov     ecx, 3D0h; Size                                                ; +0x1e, 0x1403c3d3e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x1403c3d43\nmov     [rbp+57h+arg_10], rax                                          ; +0x28, 0x1403c3d48\nmov     rcx, rax                                                       ; +0x2c, 0x1403c3d4c\ncall    sub_140141280                                                  ; +0x2f, 0x1403c3d4f\nnop                                                                    ; +0x34, 0x1403c3d54\nmov     cs:qword_1406C2EC0, rax                                        ; +0x35, 0x1403c3d55\nmov     rdx, [rax]                                                     ; +0x3c, 0x1403c3d5c\nmov     rcx, rax                                                       ; +0x3f, 0x1403c3d5f\ncall    qword ptr [rdx+48h]                                            ; +0x42, 0x1403c3d62\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x45, 0x1403c3d65\nmovss   xmm2, cs:dword_1406230E0                                       ; +0x4c, 0x1403c3d6c\nlea     rdx, aAccComment; \"acc_comment\"                                ; +0x54, 0x1403c3d74\ncall    GameLevelManager__getTimeLeft                                  ; +0x5b, 0x1403c3d7b\nlea     ecx, [rax-1]                                                   ; +0x60, 0x1403c3d80\ncmp     ecx, 0Eh                                                       ; +0x63, 0x1403c3d83\nja      loc_1403C3E45                                                  ; +0x66, 0x1403c3d86\nmov     edx, eax                                                       ; +0x6c, 0x1403c3d8c\nlea     rcx, aPleaseWaitISec_2; \"Please wait %i seconds before posting a\"... ; +0x6e, 0x1403c3d8e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x75, 0x1403c3d95\nmov     rcx, rax                                                       ; +0x7b, 0x1403c3d9b\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x7e, 0x1403c3d9e\nxorps   xmm0, xmm0                                                     ; +0x84, 0x1403c3da4\nmovups  [rbp+57h+var_40], xmm0                                         ; +0x87, 0x1403c3da7\nxor     ebx, ebx                                                       ; +0x8b, 0x1403c3dab\nmov     [rbp+57h+var_30], rbx                                          ; +0x8d, 0x1403c3dad\nmov     [rbp+57h+var_28], rbx                                          ; +0x91, 0x1403c3db1\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x95, 0x1403c3db5\nnop     dword ptr [rax+00h]                                            ; +0x9c, 0x1403c3dbc\ninc     r8                                                             ; +0xa0, 0x1403c3dc0\ncmp     [rax+r8], bl                                                   ; +0xa3, 0x1403c3dc3\njnz     short loc_1403C3DC0                                            ; +0xa7, 0x1403c3dc7\nmov     rdx, rax                                                       ; +0xa9, 0x1403c3dc9\nlea     rcx, [rbp+57h+var_40]                                          ; +0xac, 0x1403c3dcc\ncall    sub_14003A930                                                  ; +0xb0, 0x1403c3dd0\nlea     rax, [rbp+57h+var_40]                                          ; +0xb5, 0x1403c3dd5\nmov     [rbp+57h+arg_10], rax                                          ; +0xb9, 0x1403c3dd9\nlea     rdx, [rbp+57h+var_40]                                          ; +0xbd, 0x1403c3ddd\nlea     rcx, [rbp+57h+var_20]                                          ; +0xc1, 0x1403c3de1\ncall    sub_14003BDB0                                                  ; +0xc5, 0x1403c3de5\nmovss   xmm0, cs:flt_140622C24                                         ; +0xca, 0x1403c3dea\nmovss   [rsp+90h+var_50], xmm0                                         ; +0xd2, 0x1403c3df2\nxorps   xmm1, xmm1                                                     ; +0xd8, 0x1403c3df8\nmovss   [rsp+90h+var_58], xmm1                                         ; +0xdb, 0x1403c3dfb\nmov     [rsp+90h+var_60], 0                                            ; +0xe1, 0x1403c3e01\nmovss   xmm0, cs:dword_14062343C                                       ; +0xe6, 0x1403c3e06\nmovss   [rsp+90h+var_68], xmm0                                         ; +0xee, 0x1403c3e0e\nmov     [rsp+90h+var_70], rbx                                          ; +0xf4, 0x1403c3e14\nlea     r9, aOk; \"OK\"                                                  ; +0xf9, 0x1403c3e19\nmov     r8, rax                                                        ; +0x100, 0x1403c3e20\nlea     rdx, aTooFast_0; \"Too fast\"                                    ; +0x103, 0x1403c3e23\nxor     ecx, ecx                                                       ; +0x10a, 0x1403c3e2a\ncall    FLAlertLayer__create                                           ; +0x10c, 0x1403c3e2c\nmov     rbx, rax                                                       ; +0x111, 0x1403c3e31\nlea     rcx, [rbp+57h+var_40]                                          ; +0x114, 0x1403c3e34\ncall    sub_14003A830                                                  ; +0x118, 0x1403c3e38\nmov     rdx, [rbx]                                                     ; +0x11d, 0x1403c3e3d\nmov     rcx, rbx                                                       ; +0x120, 0x1403c3e40\njmp     short loc_1403C3EC1                                            ; +0x123, 0x1403c3e43\nlea     rax, [rbp+57h+var_20]                                          ; +0x125, 0x1403c3e45\nmov     [rbp+57h+arg_10], rax                                          ; +0x129, 0x1403c3e49\nxorps   xmm0, xmm0                                                     ; +0x12d, 0x1403c3e4d\nmovups  [rbp+57h+var_20], xmm0                                         ; +0x130, 0x1403c3e50\nxor     ebx, ebx                                                       ; +0x134, 0x1403c3e54\nmov     [rbp+57h+var_10], rbx                                          ; +0x136, 0x1403c3e56\nmov     [rbp+57h+var_8], 0Fh                                           ; +0x13a, 0x1403c3e5a\nmov     byte ptr [rbp+57h+var_20], bl                                  ; +0x142, 0x1403c3e62\nmov     dword ptr [rbp+57h+var_40+0Ch], ebx                            ; +0x145, 0x1403c3e65\nmov     [rbp+57h+var_30], 0Bh                                          ; +0x148, 0x1403c3e68\nmov     [rbp+57h+var_28], 0Fh                                          ; +0x150, 0x1403c3e70\nmovsd   xmm0, cs:qword_1405CA758                                       ; +0x158, 0x1403c3e78\nmovsd   qword ptr [rbp+57h+var_40], xmm0                               ; +0x160, 0x1403c3e80\nmovzx   eax, cs:word_1405CA760                                         ; +0x165, 0x1403c3e85\nmov     word ptr [rbp+57h+var_40+8], ax                                ; +0x16c, 0x1403c3e8c\nmovzx   eax, cs:byte_1405CA762                                         ; +0x170, 0x1403c3e90\nmov     byte ptr [rbp+57h+var_40+0Ah], al                              ; +0x177, 0x1403c3e97\nmov     byte ptr [rbp+57h+var_40+0Bh], bl                              ; +0x17a, 0x1403c3e9a\nlea     rax, [rbp+57h+var_20]                                          ; +0x17d, 0x1403c3e9d\nmov     [rsp+90h+var_70], rax                                          ; +0x181, 0x1403c3ea1\nxor     r9d, r9d                                                       ; +0x186, 0x1403c3ea6\nmov     edx, 8Ch                                                       ; +0x189, 0x1403c3ea9\nlea     r8d, [rbx+1]                                                   ; +0x18e, 0x1403c3eae\nlea     rcx, [rbp+57h+var_40]                                          ; +0x192, 0x1403c3eb2\ncall    ShareCommentLayer__create                                      ; +0x196, 0x1403c3eb6\nmov     rdx, [rax]                                                     ; +0x19b, 0x1403c3ebb\nmov     rcx, rax                                                       ; +0x19e, 0x1403c3ebe\ncall    qword ptr [rdx+410h]                                           ; +0x1a1, 0x1403c3ec1\nmov     rbx, [rsp+90h+arg_0]                                           ; +0x1a7, 0x1403c3ec7\nadd     rsp, 90h                                                       ; +0x1af, 0x1403c3ecf\npop     rbp                                                            ; +0x1b6, 0x1403c3ed6\nretn                                                                   ; +0x1b7, 0x1403c3ed7", "xrefs": ["ProfilePage::loadPageFromUserInfo @ 0x1403c2e43", "<???> @ 0x1406d77a8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}