{"type": "func", "start": 5369697568, "end": 5369697808, "name": "NewThreadPopup::shareIDPicked", "pseudocode": "// \n// NewThreadPopup::shareIDPicked from 0x1400f1520 to 0x1400f1610 (240 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1407285f0\n// > <???> @ 0x140915110\n// > <???> @ 0x14091511c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:26:36 +0000\n// \n\nvoid __fastcall NewThreadPopup::shareIDPicked(__int64 a1, int a2, char a3)\n{\n  const char *v4; // rcx\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  size_t v7; // r8\n  void *v8; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v10; // [rsp+40h] [rbp-28h]\n\n  if ( a2 > 0 )\n  {\n    v4 = \"l_%i\";\n    if ( a3 )\n      v4 = \"li_%i\";\n    v5 = cocos2d::CCString::createWithFormat(v4);\n    CString = cocos2d::CCString::getCString(v5);\n    *(_OWORD *)Block = 0;\n    v10 = 0;\n    v7 = -1;\n    do\n      ++v7;\n    while ( CString[v7] );\n    sub_14003D230(Block, CString, v7);\n    NewThreadPopup::insertShareToken(a1 - 680, Block);\n    if ( *((_QWORD *)&v10 + 1) > 0xFu )\n    {\n      v8 = Block[0];\n      if ( (unsigned __int64)(*((_QWORD *)&v10 + 1) + 1LL) >= 0x1000 )\n      {\n        v8 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v8);\n    }\n  }\n}", "assembly": "; \n; NewThreadPopup::shareIDPicked from 0x1400f1520 to 0x1400f1610 (240 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1407285f0\n; > <???> @ 0x140915110\n; > <???> @ 0x14091511c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:26:36 +0000\n; \ntest    edx, edx                                                       ; +0x0, 0x1400f1520\njle     locret_1400F160F                                               ; +0x2, 0x1400f1522\npush    rbx                                                            ; +0x8, 0x1400f1528\nsub     rsp, 60h                                                       ; +0x9, 0x1400f1529\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1400f152d\nxor     rax, rsp                                                       ; +0x14, 0x1400f1534\nmov     [rsp+68h+var_18], rax                                          ; +0x17, 0x1400f1537\nmov     rbx, rcx                                                       ; +0x1c, 0x1400f153c\nlea     rax, aLiI; \"li_%i\"                                             ; +0x1f, 0x1400f153f\nlea     rcx, aLI; \"l_%i\"                                               ; +0x26, 0x1400f1546\ntest    r8b, r8b                                                       ; +0x2d, 0x1400f154d\ncmovnz  rcx, rax                                                       ; +0x30, 0x1400f1550\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x34, 0x1400f1554\nmov     rcx, rax                                                       ; +0x3a, 0x1400f155a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x3d, 0x1400f155d\nxorps   xmm0, xmm0                                                     ; +0x43, 0x1400f1563\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x46, 0x1400f1566\nxorps   xmm1, xmm1                                                     ; +0x4b, 0x1400f156b\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x4e, 0x1400f156e\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x54, 0x1400f1574\nnop     dword ptr [rax+rax+00h]                                        ; +0x5b, 0x1400f157b\ninc     r8                                                             ; +0x60, 0x1400f1580\ncmp     byte ptr [rax+r8], 0                                           ; +0x63, 0x1400f1583\njnz     short loc_1400F1580                                            ; +0x68, 0x1400f1588\nmov     rdx, rax                                                       ; +0x6a, 0x1400f158a\nlea     rcx, [rsp+68h+Block]                                           ; +0x6d, 0x1400f158d\ncall    sub_14003D230                                                  ; +0x72, 0x1400f1592\nnop                                                                    ; +0x77, 0x1400f1597\nlea     rcx, [rbx-2A8h]                                                ; +0x78, 0x1400f1598\nlea     rdx, [rsp+68h+Block]                                           ; +0x7f, 0x1400f159f\ncall    NewThreadPopup__insertShareToken                               ; +0x84, 0x1400f15a4\nnop                                                                    ; +0x89, 0x1400f15a9\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x8a, 0x1400f15aa\ncmp     rdx, 0Fh                                                       ; +0x8f, 0x1400f15af\njbe     short loc_1400F15FD                                            ; +0x93, 0x1400f15b3\ninc     rdx                                                            ; +0x95, 0x1400f15b5\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x98, 0x1400f15b8\nmov     rax, rcx                                                       ; +0x9d, 0x1400f15bd\ncmp     rdx, 1000h                                                     ; +0xa0, 0x1400f15c0\njb      short loc_1400F15F8                                            ; +0xa7, 0x1400f15c7\nadd     rdx, 27h ; '''                                                 ; +0xa9, 0x1400f15c9\nmov     rcx, [rcx-8]                                                   ; +0xad, 0x1400f15cd\nsub     rax, rcx                                                       ; +0xb1, 0x1400f15d1\nsub     rax, 8                                                         ; +0xb4, 0x1400f15d4\ncmp     rax, 1Fh                                                       ; +0xb8, 0x1400f15d8\njbe     short loc_1400F15F8                                            ; +0xbc, 0x1400f15dc\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xbe, 0x1400f15de\nxor     r9d, r9d; LineNo                                               ; +0xc7, 0x1400f15e7\nxor     r8d, r8d; FileName                                             ; +0xca, 0x1400f15ea\nxor     edx, edx; FunctionName                                         ; +0xcd, 0x1400f15ed\nxor     ecx, ecx; Expression                                           ; +0xcf, 0x1400f15ef\ncall    cs:_invoke_watson                                              ; +0xd1, 0x1400f15f1\nalign 8                                                                ; +0xd7, 0x1400f15f7\ncall    j_j_free                                                       ; +0xd8, 0x1400f15f8\nmov     rcx, [rsp+68h+var_18]                                          ; +0xdd, 0x1400f15fd\nxor     rcx, rsp; StackCookie                                          ; +0xe2, 0x1400f1602\ncall    __security_check_cookie                                        ; +0xe5, 0x1400f1605\nadd     rsp, 60h                                                       ; +0xea, 0x1400f160a\npop     rbx                                                            ; +0xee, 0x1400f160e\nretn                                                                   ; +0xef, 0x1400f160f", "xrefs": ["<???> @ 0x1407285f0", "<???> @ 0x140915110", "<???> @ 0x14091511c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}