{"type": "func", "start": 4304105584, "end": 4304106128, "name": "CreatorSettingsPopup::setTextPopupClosed", "pseudocode": "// \n// CreatorSettingsPopup::setTextPopupClosed from 0x1008b7070 to 0x1008b7290 (544 bytes)\n// \n// 2 xrefs:\n// > sub_1008B72E0 @ 0x1008b72ec\n// > <???> @ 0x100baf1d8\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 12:37:24 +0000\n// \n\nvoid __fastcall CreatorSettingsPopup::setTextPopupClosed(_QWORD *a1, __int64 a2, std::string *a3)\n{\n  __int64 v5; // r15\n  __int64 v6; // rdi\n  __int64 v7; // r14\n  __int64 v8; // rax\n  int v9; // r15d\n  bool updated; // r14\n  __int64 v11; // rax\n  char *v12; // rax\n  std::string __str; // [rsp+0h] [rbp-80h] BYREF\n  __int128 v14; // [rsp+18h] [rbp-68h] BYREF\n  void *v15; // [rsp+28h] [rbp-58h]\n  std::string v16; // [rsp+30h] [rbp-50h] BYREF\n  std::string v17[2]; // [rsp+50h] [rbp-30h] BYREF\n\n  if ( a2 && *(_BYTE *)(a2 + 681) )\n    return;\n  v5 = a1[130];\n  if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 )\n    sub_10001AD30(&v16, a3->__r_.__value_.__l.__data_, a3->__r_.__value_.__l.__size_);\n  else\n    v16 = *a3;\n  LevelTools::base64EncodeString(&__str, &v16);\n  std::string::operator=((std::string *)(v5 + 368), &__str);\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    operator delete(__str.__r_.__value_.__l.__data_);\n    if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) == 0 )\n    {\nLABEL_8:\n      v6 = a1[131];\n      if ( !v6 )\n        goto LABEL_10;\n      goto LABEL_9;\n    }\n  }\n  else if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) == 0 )\n  {\n    goto LABEL_8;\n  }\n  operator delete(v16.__r_.__value_.__l.__data_);\n  v6 = a1[131];\n  if ( v6 )\nLABEL_9:\n    (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v6 + 16LL))(v6, a3);\nLABEL_10:\n  if ( *(_DWORD *)(a1[130] + 328LL) > *(_DWORD *)(a1[130] + 332LL) )\n  {\n    *(_QWORD *)(GameLevelManager::sharedState() + 1360) = a1 + 127;\n    v7 = GameLevelManager::sharedState();\n    v8 = a1[130];\n    v9 = *(_DWORD *)(v8 + 328) - *(_DWORD *)(v8 + 332);\n    if ( (*(_BYTE *)(v8 + 368) & 1) != 0 )\n      sub_10001AD30(v17, *(const void **)(v8 + 384), *(_QWORD *)(v8 + 376));\n    else\n      v17[0] = *(std::string *)(v8 + 368);\n    updated = GameLevelManager::updateDescription(v7, v9, v17);\n    if ( (*(_BYTE *)&v17[0].__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v17[0].__r_.__value_.__l.__data_);\n    if ( updated )\n    {\n      v11 = a1[132];\n      if ( v11 )\n      {\n        *(_QWORD *)(v11 + 664) = 0;\n        a1[132] = 0;\n      }\n      v15 = operator new(0x1Au);\n      *(_QWORD *)&v14 = 27;\n      *((_QWORD *)&v14 + 1) = 23;\n      strcpy((char *)v15, \"Updating description...\");\n      v12 = UploadActionPopup::create((__int64)(a1 + 128), &v14);\n      a1[132] = v12;\n      if ( (v14 & 1) != 0 )\n      {\n        operator delete(v15);\n        v12 = (char *)a1[132];\n      }\n      (*(void (__fastcall **)(char *))(*(_QWORD *)v12 + 1312LL))(v12);\n    }\n  }\n}", "assembly": "; \n; CreatorSettingsPopup::setTextPopupClosed from 0x1008b7070 to 0x1008b7290 (544 bytes)\n; \n; 2 xrefs:\n; > sub_1008B72E0 @ 0x1008b72ec\n; > <???> @ 0x100baf1d8\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 12:37:24 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008b7070\nmov     rbp, rsp                                                       ; +0x1, 0x1008b7071\npush    r15                                                            ; +0x4, 0x1008b7074\npush    r14                                                            ; +0x6, 0x1008b7076\npush    rbx                                                            ; +0x8, 0x1008b7078\nsub     rsp, 68h                                                       ; +0x9, 0x1008b7079\nmov     r14, rdx                                                       ; +0xd, 0x1008b707d\nmov     rbx, rdi                                                       ; +0x10, 0x1008b7080\ntest    rsi, rsi                                                       ; +0x13, 0x1008b7083\njz      short loc_1008B7095                                            ; +0x16, 0x1008b7086\ncmp     byte ptr [rsi+2A9h], 0                                         ; +0x18, 0x1008b7088\njnz     loc_1008B7285                                                  ; +0x1f, 0x1008b708f\nmov     r15, [rbx+410h]                                                ; +0x25, 0x1008b7095\ntest    byte ptr [r14], 1                                              ; +0x2c, 0x1008b709c\njnz     short loc_1008B70B4                                            ; +0x30, 0x1008b70a0\nmov     rax, [r14+10h]                                                 ; +0x32, 0x1008b70a2\nmov     [rbp+__p], rax                                                 ; +0x36, 0x1008b70a6\nmovups  xmm0, xmmword ptr [r14]                                        ; +0x3a, 0x1008b70aa\nmovaps  [rbp+var_50], xmm0                                             ; +0x3e, 0x1008b70ae\njmp     short loc_1008B70C5                                            ; +0x42, 0x1008b70b2\nmov     rdx, [r14+8]                                                   ; +0x44, 0x1008b70b4\nmov     rsi, [r14+10h]                                                 ; +0x48, 0x1008b70b8\nlea     rdi, [rbp+var_50]                                              ; +0x4c, 0x1008b70bc\ncall    sub_10001AD30                                                  ; +0x50, 0x1008b70c0\nlea     rdi, [rbp+__str]                                               ; +0x55, 0x1008b70c5\nlea     rsi, [rbp+var_50]                                              ; +0x59, 0x1008b70c9\ncall    LevelTools__base64EncodeString                                 ; +0x5d, 0x1008b70cd\nadd     r15, 170h                                                      ; +0x62, 0x1008b70d2\nlea     rsi, [rbp+__str]; __str                                        ; +0x69, 0x1008b70d9\nmov     rdi, r15; this                                                 ; +0x6d, 0x1008b70dd\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x70, 0x1008b70e0\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x75, 0x1008b70e5\njnz     loc_1008B7177                                                  ; +0x79, 0x1008b70e9\ntest    byte ptr [rbp+var_50], 1                                       ; +0x7f, 0x1008b70ef\njnz     loc_1008B718A                                                  ; +0x83, 0x1008b70f3\nmov     rdi, [rbx+418h]                                                ; +0x89, 0x1008b70f9\ntest    rdi, rdi                                                       ; +0x90, 0x1008b7100\njz      short loc_1008B710E                                            ; +0x93, 0x1008b7103\nmov     rax, [rdi]                                                     ; +0x95, 0x1008b7105\nmov     rsi, r14                                                       ; +0x98, 0x1008b7108\ncall    qword ptr [rax+10h]                                            ; +0x9b, 0x1008b710b\nmov     rax, [rbx+410h]                                                ; +0x9e, 0x1008b710e\nmov     ecx, [rax+148h]                                                ; +0xa5, 0x1008b7115\ncmp     ecx, [rax+14Ch]                                                ; +0xab, 0x1008b711b\njle     loc_1008B7285                                                  ; +0xb1, 0x1008b7121\ncall    GameLevelManager__sharedState                                  ; +0xb7, 0x1008b7127\nlea     rcx, [rbx+3F8h]                                                ; +0xbc, 0x1008b712c\nmov     [rax+550h], rcx                                                ; +0xc3, 0x1008b7133\ncall    GameLevelManager__sharedState                                  ; +0xca, 0x1008b713a\nmov     r14, rax                                                       ; +0xcf, 0x1008b713f\nmov     rax, [rbx+410h]                                                ; +0xd2, 0x1008b7142\nmov     r15d, [rax+148h]                                               ; +0xd9, 0x1008b7149\nsub     r15d, [rax+14Ch]                                               ; +0xe0, 0x1008b7150\ntest    byte ptr [rax+170h], 1                                         ; +0xe7, 0x1008b7157\njnz     short loc_1008B71A8                                            ; +0xee, 0x1008b715e\nadd     rax, 170h                                                      ; +0xf0, 0x1008b7160\nmov     rcx, [rax+10h]                                                 ; +0xf6, 0x1008b7166\nmov     [rbp+var_20], rcx                                              ; +0xfa, 0x1008b716a\nmovups  xmm0, xmmword ptr [rax]                                        ; +0xfe, 0x1008b716e\nmovaps  [rbp+var_30], xmm0                                             ; +0x101, 0x1008b7171\njmp     short loc_1008B71BF                                            ; +0x105, 0x1008b7175\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x107, 0x1008b7177\ncall    __ZdlPv; operator delete(void *)                               ; +0x10b, 0x1008b717b\ntest    byte ptr [rbp+var_50], 1                                       ; +0x110, 0x1008b7180\njz      loc_1008B70F9                                                  ; +0x114, 0x1008b7184\nmov     rdi, [rbp+__p]; __p                                            ; +0x11a, 0x1008b718a\ncall    __ZdlPv; operator delete(void *)                               ; +0x11e, 0x1008b718e\nmov     rdi, [rbx+418h]                                                ; +0x123, 0x1008b7193\ntest    rdi, rdi                                                       ; +0x12a, 0x1008b719a\njnz     loc_1008B7105                                                  ; +0x12d, 0x1008b719d\njmp     loc_1008B710E                                                  ; +0x133, 0x1008b71a3\nmov     rdx, [rax+178h]                                                ; +0x138, 0x1008b71a8\nmov     rsi, [rax+180h]                                                ; +0x13f, 0x1008b71af\nlea     rdi, [rbp+var_30]                                              ; +0x146, 0x1008b71b6\ncall    sub_10001AD30                                                  ; +0x14a, 0x1008b71ba\nlea     rdx, [rbp+var_30]                                              ; +0x14f, 0x1008b71bf\nmov     rdi, r14                                                       ; +0x153, 0x1008b71c3\nmov     esi, r15d                                                      ; +0x156, 0x1008b71c6\ncall    GameLevelManager__updateDescription                            ; +0x159, 0x1008b71c9\nmov     r14d, eax                                                      ; +0x15e, 0x1008b71ce\ntest    byte ptr [rbp+var_30], 1                                       ; +0x161, 0x1008b71d1\njz      short loc_1008B71E0                                            ; +0x165, 0x1008b71d5\nmov     rdi, [rbp+var_20]; __p                                         ; +0x167, 0x1008b71d7\ncall    __ZdlPv; operator delete(void *)                               ; +0x16b, 0x1008b71db\ntest    r14b, r14b                                                     ; +0x170, 0x1008b71e0\njz      loc_1008B7285                                                  ; +0x173, 0x1008b71e3\nmov     rax, [rbx+420h]                                                ; +0x179, 0x1008b71e9\ntest    rax, rax                                                       ; +0x180, 0x1008b71f0\njz      short loc_1008B720B                                            ; +0x183, 0x1008b71f3\nmov     qword ptr [rax+298h], 0                                        ; +0x185, 0x1008b71f5\nmov     qword ptr [rbx+420h], 0                                        ; +0x190, 0x1008b7200\nlea     r14, [rbx+400h]                                                ; +0x19b, 0x1008b720b\nmov     edi, 1Ah; __sz                                                 ; +0x1a2, 0x1008b7212\ncall    __Znwm; operator new(ulong)                                    ; +0x1a7, 0x1008b7217\nlea     r15, [rbp+var_58]                                              ; +0x1ac, 0x1008b721c\nmov     [rbp+var_58], rax                                              ; +0x1b0, 0x1008b7220\nmov     [rbp+var_68], 1Bh                                              ; +0x1b4, 0x1008b7224\nmov     [rbp+var_60], 17h                                              ; +0x1bc, 0x1008b722c\nmov     rcx, 2E2E2E6E6F697470h                                         ; +0x1c4, 0x1008b7234\nmov     [rax+0Fh], rcx                                                 ; +0x1ce, 0x1008b723e\nmovups  xmm0, xmmword ptr cs:aUpdatingDescri; \"Updating description...\" ; +0x1d2, 0x1008b7242\nmovups  xmmword ptr [rax], xmm0                                        ; +0x1d9, 0x1008b7249\nmov     byte ptr [rax+17h], 0                                          ; +0x1dc, 0x1008b724c\nlea     rsi, [rbp+var_68]                                              ; +0x1e0, 0x1008b7250\nmov     rdi, r14                                                       ; +0x1e4, 0x1008b7254\ncall    UploadActionPopup__create                                      ; +0x1e7, 0x1008b7257\nmov     [rbx+420h], rax                                                ; +0x1ec, 0x1008b725c\ntest    byte ptr [rbp+var_68], 1                                       ; +0x1f3, 0x1008b7263\njz      short loc_1008B7279                                            ; +0x1f7, 0x1008b7267\nmov     rdi, [rbp+var_58]; __p                                         ; +0x1f9, 0x1008b7269\ncall    __ZdlPv; operator delete(void *)                               ; +0x1fd, 0x1008b726d\nmov     rax, [rbx+420h]                                                ; +0x202, 0x1008b7272\nmov     rcx, [rax]                                                     ; +0x209, 0x1008b7279\nmov     rdi, rax                                                       ; +0x20c, 0x1008b727c\ncall    qword ptr [rcx+520h]                                           ; +0x20f, 0x1008b727f\nadd     rsp, 68h                                                       ; +0x215, 0x1008b7285\npop     rbx                                                            ; +0x219, 0x1008b7289\npop     r14                                                            ; +0x21a, 0x1008b728a\npop     r15                                                            ; +0x21c, 0x1008b728c\npop     rbp                                                            ; +0x21e, 0x1008b728e\nretn                                                                   ; +0x21f, 0x1008b728f", "xrefs": ["sub_1008B72E0 @ 0x1008b72ec", "<???> @ 0x100baf1d8"], "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"}