{"type": "func", "start": 4300692944, "end": 4300693261, "name": "InfoAlertButton::activate", "pseudocode": "// \n// InfoAlertButton::activate from 0x100575dd0 to 0x100575f0d (317 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009657e0\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\nvoid __fastcall InfoAlertButton::activate(InfoAlertButton *a1)\n{\n  double v1; // xmm0_8\n  __int64 longStorage; // rbx\n  std::array<char, 23> *p_shortStorage; // r15\n  size_t v4; // rax\n  size_t v5; // r12\n  char *v6; // r13\n  char *v7; // rbx\n  int v8; // [rsp+8h] [rbp-48h]\n  __int128 __dst; // [rsp+10h] [rbp-40h] BYREF\n  void *__p; // [rsp+20h] [rbp-30h]\n\n  if ( !a1->m_bEnabled )\n    return;\n  if ( (a1->m_title.m_data.m_short.sizex2 & 1) != 0 )\n  {\n    longStorage = (__int64)a1->m_title.m_data.m_long.longStorage;\n    if ( (a1->m_description.m_data.m_short.sizex2 & 1) != 0 )\n      goto LABEL_4;\n  }\n  else\n  {\n    LODWORD(longStorage) = (_DWORD)a1 + 505;\n    if ( (a1->m_description.m_data.m_short.sizex2 & 1) != 0 )\n    {\nLABEL_4:\n      p_shortStorage = (std::array<char, 23> *)a1->m_description.m_data.m_long.longStorage;\n      goto LABEL_7;\n    }\n  }\n  p_shortStorage = &a1->m_description.m_data.m_short.shortStorage;\nLABEL_7:\n  v4 = strlen(p_shortStorage->__elems_);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v1);\n  v5 = v4;\n  if ( v4 >= 0x17 )\n  {\n    v8 = longStorage;\n    longStorage = 26;\n    if ( (v4 | 7) != 0x17 )\n      longStorage = (v4 | 7) + 1;\n    v6 = (char *)operator new(longStorage);\n    __p = v6;\n    *(_QWORD *)&__dst = longStorage + 1;\n    LODWORD(longStorage) = v8;\n    *((_QWORD *)&__dst + 1) = v5;\n  }\n  else\n  {\n    LOBYTE(__dst) = 2 * v4;\n    v6 = (char *)&__dst + 1;\n    if ( !v4 )\n      goto LABEL_15;\n  }\n  memmove(v6, p_shortStorage, v5);\nLABEL_15:\n  v6[v5] = 0;\n  v7 = FLAlertLayer::create(0, longStorage, &__dst, (int)\"OK\", 0, a1->m_scroll, 430.0, 0.0, a1->m_textScale);\n  if ( (__dst & 1) != 0 )\n    operator delete(__p);\n  (*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 1288LL))(v7);\n}", "assembly": "; \n; InfoAlertButton::activate from 0x100575dd0 to 0x100575f0d (317 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009657e0\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\npush    rbp                                                            ; +0x0, 0x100575dd0\nmov     rbp, rsp                                                       ; +0x1, 0x100575dd1\npush    r15                                                            ; +0x4, 0x100575dd4\npush    r14                                                            ; +0x6, 0x100575dd6\npush    r13                                                            ; +0x8, 0x100575dd8\npush    r12                                                            ; +0xa, 0x100575dda\npush    rbx                                                            ; +0xc, 0x100575ddc\nsub     rsp, 28h                                                       ; +0xd, 0x100575ddd\ncmp     byte ptr [rdi+153h], 1                                         ; +0x11, 0x100575de1\njnz     loc_100575EF9                                                  ; +0x18, 0x100575de8\nmov     r14, rdi                                                       ; +0x1e, 0x100575dee\ntest    byte ptr [rdi+1F8h], 1                                         ; +0x21, 0x100575df1\njnz     short loc_100575E14                                            ; +0x28, 0x100575df8\nlea     rbx, [r14+1F9h]                                                ; +0x2a, 0x100575dfa\ntest    byte ptr [r14+210h], 1                                         ; +0x31, 0x100575e01\njz      short loc_100575E25                                            ; +0x39, 0x100575e09\nmov     r15, [r14+220h]                                                ; +0x3b, 0x100575e0b\njmp     short loc_100575E2C                                            ; +0x42, 0x100575e12\nmov     rbx, [r14+208h]                                                ; +0x44, 0x100575e14\ntest    byte ptr [r14+210h], 1                                         ; +0x4b, 0x100575e1b\njnz     short loc_100575E0B                                            ; +0x53, 0x100575e23\nlea     r15, [r14+211h]                                                ; +0x55, 0x100575e25\nmov     rdi, r15; __s                                                  ; +0x5c, 0x100575e2c\ncall    _strlen                                                        ; +0x5f, 0x100575e2f\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x64, 0x100575e34\njnb     loc_100575F08                                                  ; +0x68, 0x100575e38\nmov     r12, rax                                                       ; +0x6e, 0x100575e3e\ncmp     rax, 17h                                                       ; +0x71, 0x100575e41\njnb     short loc_100575E59                                            ; +0x75, 0x100575e45\nlea     eax, [r12+r12]                                                 ; +0x77, 0x100575e47\nmov     byte ptr [rbp+__dst], al                                       ; +0x7b, 0x100575e4b\nlea     r13, [rbp+__dst+1]                                             ; +0x7e, 0x100575e4e\ntest    r12, r12                                                       ; +0x82, 0x100575e52\njnz     short loc_100575E93                                            ; +0x85, 0x100575e55\njmp     short loc_100575EA1                                            ; +0x87, 0x100575e57\nmov     rax, r12                                                       ; +0x89, 0x100575e59\nor      rax, 7                                                         ; +0x8c, 0x100575e5c\nlea     rcx, [rax+1]                                                   ; +0x90, 0x100575e60\ncmp     rax, 17h                                                       ; +0x94, 0x100575e64\nmov     [rbp+var_48], rbx                                              ; +0x98, 0x100575e68\nmov     ebx, 1Ah                                                       ; +0x9c, 0x100575e6c\ncmovnz  rbx, rcx                                                       ; +0xa1, 0x100575e71\nmov     rdi, rbx; __sz                                                 ; +0xa5, 0x100575e75\ncall    __Znwm; operator new(ulong)                                    ; +0xa8, 0x100575e78\nmov     r13, rax                                                       ; +0xad, 0x100575e7d\nmov     [rbp+__p], rax                                                 ; +0xb0, 0x100575e80\ninc     rbx                                                            ; +0xb4, 0x100575e84\nmov     [rbp+__dst], rbx                                               ; +0xb7, 0x100575e87\nmov     rbx, [rbp+var_48]                                              ; +0xbb, 0x100575e8b\nmov     [rbp+var_38], r12                                              ; +0xbf, 0x100575e8f\nmov     rdi, r13; __dst                                                ; +0xc3, 0x100575e93\nmov     rsi, r15; __src                                                ; +0xc6, 0x100575e96\nmov     rdx, r12; __len                                                ; +0xc9, 0x100575e99\ncall    _memmove                                                       ; +0xcc, 0x100575e9c\nmov     byte ptr [r13+r12+0], 0                                        ; +0xd1, 0x100575ea1\nmovzx   r9d, byte ptr [r14+22Ch]                                       ; +0xd7, 0x100575ea7\nmovss   xmm2, dword ptr [r14+228h]                                     ; +0xdf, 0x100575eaf\nlea     rcx, aOk; \"OK\"                                                 ; +0xe8, 0x100575eb8\nlea     rdx, [rbp+__dst]                                               ; +0xef, 0x100575ebf\nmovss   xmm0, cs:dword_100814FA0                                       ; +0xf3, 0x100575ec3\nxorps   xmm1, xmm1                                                     ; +0xfb, 0x100575ecb\nxor     edi, edi                                                       ; +0xfe, 0x100575ece\nmov     rsi, rbx                                                       ; +0x100, 0x100575ed0\nxor     r8d, r8d                                                       ; +0x103, 0x100575ed3\ncall    FLAlertLayer__create                                           ; +0x106, 0x100575ed6\nmov     rbx, rax                                                       ; +0x10b, 0x100575edb\ntest    byte ptr [rbp+__dst], 1                                        ; +0x10e, 0x100575ede\njz      short loc_100575EED                                            ; +0x112, 0x100575ee2\nmov     rdi, [rbp+__p]; __p                                            ; +0x114, 0x100575ee4\ncall    __ZdlPv; operator delete(void *)                               ; +0x118, 0x100575ee8\nmov     rax, [rbx]                                                     ; +0x11d, 0x100575eed\nmov     rdi, rbx                                                       ; +0x120, 0x100575ef0\ncall    qword ptr [rax+508h]                                           ; +0x123, 0x100575ef3\nadd     rsp, 28h                                                       ; +0x129, 0x100575ef9\npop     rbx                                                            ; +0x12d, 0x100575efd\npop     r12                                                            ; +0x12e, 0x100575efe\npop     r13                                                            ; +0x130, 0x100575f00\npop     r14                                                            ; +0x132, 0x100575f02\npop     r15                                                            ; +0x134, 0x100575f04\npop     rbp                                                            ; +0x136, 0x100575f06\nretn                                                                   ; +0x137, 0x100575f07\ncall    sub_100006BF0                                                  ; +0x138, 0x100575f08", "xrefs": ["<???> @ 0x1009657e0"], "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"}