{"type": "func", "start": 5372494464, "end": 5372494957, "name": "GJOptionsLayer::onInfo", "pseudocode": "// \n// GJOptionsLayer::onInfo from 0x14039c280 to 0x14039c46d (493 bytes)\n// \n// 2 xrefs:\n// > GJOptionsLayer::addToggleInternal @ 0x14039b55b\n// > <???> @ 0x140923378\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:31:15 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall GJOptionsLayer::onInfo(__int64 a1, __int64 a2)\n{\n  int v3; // eax\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // rbx\n  size_t v7; // r8\n  cocos2d::CCString *v8; // rax\n  const char *v9; // rdi\n  void *v10; // r8\n  __int64 v11; // rax\n  cocos2d::CCObject *v12; // rbx\n  __int128 v14; // [rsp+58h] [rbp-60h] BYREF\n  __int64 v15; // [rsp+68h] [rbp-50h]\n  __int64 v16; // [rsp+70h] [rbp-48h]\n  void *Block[2]; // [rsp+80h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+90h] [rbp-28h]\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = cocos2d::CCString::createWithFormat(\"info_%i\", v3);\n  CString = cocos2d::CCString::getCString(v4);\n  *(_OWORD *)Block = 0;\n  si128 = 0;\n  v6 = -1;\n  v7 = -1;\n  do\n    ++v7;\n  while ( CString[v7] );\n  sub_14003D230(Block, CString, v7);\n  v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(a1 + 1032), Block);\n  v9 = cocos2d::CCString::getCString(v8);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v10 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v10 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v10);\n  }\n  si128 = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(Block[0]) = 0;\n  v14 = 0;\n  v15 = 0;\n  v16 = 0;\n  do\n    ++v6;\n  while ( v9[v6] );\n  sub_14003D230(&v14, v9, v6);\n  v11 = sub_14003F4F0((__int64)Block, (__int64)&v14);\n  v12 = FLAlertLayer::create(0, (int)\"Info\", v11, (__int64)\"OK\", 0, 1133903872, 0, 0, 1065353216);\n  sub_14003D310((__int64)&v14);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v12 + 1064LL))(v12);\n}", "assembly": "; \n; GJOptionsLayer::onInfo from 0x14039c280 to 0x14039c46d (493 bytes)\n; \n; 2 xrefs:\n; > GJOptionsLayer::addToggleInternal @ 0x14039b55b\n; > <???> @ 0x140923378\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:31:15 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14039c280\npush    rdi                                                            ; +0x5, 0x14039c285\nsub     rsp, 0B0h                                                      ; +0x6, 0x14039c286\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x14039c28d\nxor     rax, rsp                                                       ; +0x14, 0x14039c294\nmov     [rsp+0B8h+var_18], rax                                         ; +0x17, 0x14039c297\nmov     rdi, rcx                                                       ; +0x1f, 0x14039c29f\nmov     rax, [rdx]                                                     ; +0x22, 0x14039c2a2\nmov     rcx, rdx                                                       ; +0x25, 0x14039c2a5\ncall    qword ptr [rax+38h]                                            ; +0x28, 0x14039c2a8\nmov     edx, eax                                                       ; +0x2b, 0x14039c2ab\nlea     rcx, aInfoI; \"info_%i\"                                         ; +0x2d, 0x14039c2ad\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x34, 0x14039c2b4\nmov     rcx, rax                                                       ; +0x3a, 0x14039c2ba\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x3d, 0x14039c2bd\nxorps   xmm0, xmm0                                                     ; +0x43, 0x14039c2c3\nmovups  xmmword ptr [rsp+0B8h+Block], xmm0                             ; +0x46, 0x14039c2c6\nxorps   xmm1, xmm1                                                     ; +0x4e, 0x14039c2ce\nmovdqu  [rsp+0B8h+var_28], xmm1                                        ; +0x51, 0x14039c2d1\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x5a, 0x14039c2da\nmov     r8, rbx                                                        ; +0x61, 0x14039c2e1\ninc     r8                                                             ; +0x64, 0x14039c2e4\ncmp     byte ptr [rax+r8], 0                                           ; +0x67, 0x14039c2e7\njnz     short loc_14039C2E4                                            ; +0x6c, 0x14039c2ec\nmov     rdx, rax                                                       ; +0x6e, 0x14039c2ee\nlea     rcx, [rsp+0B8h+Block]                                          ; +0x71, 0x14039c2f1\ncall    sub_14003D230                                                  ; +0x79, 0x14039c2f9\nnop                                                                    ; +0x7e, 0x14039c2fe\nlea     rdx, [rsp+0B8h+Block]                                          ; +0x7f, 0x14039c2ff\nmov     rcx, [rdi+408h]                                                ; +0x87, 0x14039c307\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0x8e, 0x14039c30e\nmov     rcx, rax                                                       ; +0x94, 0x14039c314\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x97, 0x14039c317\nmov     rdi, rax                                                       ; +0x9d, 0x14039c31d\nmov     rdx, qword ptr [rsp+0B8h+var_28+8]                             ; +0xa0, 0x14039c320\ncmp     rdx, 0Fh                                                       ; +0xa8, 0x14039c328\njbe     short loc_14039C37C                                            ; +0xac, 0x14039c32c\ninc     rdx                                                            ; +0xae, 0x14039c32e\nmov     r8, [rsp+0B8h+Block]                                           ; +0xb1, 0x14039c331\nmov     rcx, r8                                                        ; +0xb9, 0x14039c339\ncmp     rdx, 1000h                                                     ; +0xbc, 0x14039c33c\njb      short loc_14039C374                                            ; +0xc3, 0x14039c343\nadd     rdx, 27h ; '''                                                 ; +0xc5, 0x14039c345\nmov     r8, [r8-8]                                                     ; +0xc9, 0x14039c349\nsub     rcx, r8                                                        ; +0xcd, 0x14039c34d\nsub     rcx, 8                                                         ; +0xd0, 0x14039c350\ncmp     rcx, 1Fh                                                       ; +0xd4, 0x14039c354\njbe     short loc_14039C374                                            ; +0xd8, 0x14039c358\nmov     [rsp+0B8h+Reserved], 0; Reserved                               ; +0xda, 0x14039c35a\nxor     r9d, r9d; LineNo                                               ; +0xe3, 0x14039c363\nxor     r8d, r8d; FileName                                             ; +0xe6, 0x14039c366\nxor     edx, edx; FunctionName                                         ; +0xe9, 0x14039c369\nxor     ecx, ecx; Expression                                           ; +0xeb, 0x14039c36b\ncall    cs:_invoke_watson                                              ; +0xed, 0x14039c36d\nalign 4                                                                ; +0xf3, 0x14039c373\nmov     rcx, r8; Block                                                 ; +0xf4, 0x14039c374\ncall    j_j_free                                                       ; +0xf7, 0x14039c377\nmovdqa  xmm0, cs:Size                                                  ; +0xfc, 0x14039c37c\nmovdqu  [rsp+0B8h+var_28], xmm0                                        ; +0x104, 0x14039c384\nmov     byte ptr [rsp+0B8h+Block], 0                                   ; +0x10d, 0x14039c38d\nxorps   xmm0, xmm0                                                     ; +0x115, 0x14039c395\nmovups  [rsp+0B8h+var_60], xmm0                                        ; +0x118, 0x14039c398\nmov     [rsp+0B8h+var_50], 0                                           ; +0x11d, 0x14039c39d\nmov     [rsp+0B8h+var_48], 0                                           ; +0x126, 0x14039c3a6\nnop                                                                    ; +0x12f, 0x14039c3af\ninc     rbx                                                            ; +0x130, 0x14039c3b0\ncmp     byte ptr [rdi+rbx], 0                                          ; +0x133, 0x14039c3b3\njnz     short loc_14039C3B0                                            ; +0x137, 0x14039c3b7\nmov     r8, rbx                                                        ; +0x139, 0x14039c3b9\nmov     rdx, rdi                                                       ; +0x13c, 0x14039c3bc\nlea     rcx, [rsp+0B8h+var_60]                                         ; +0x13f, 0x14039c3bf\ncall    sub_14003D230                                                  ; +0x144, 0x14039c3c4\nlea     rax, [rsp+0B8h+var_60]                                         ; +0x149, 0x14039c3c9\nmov     [rsp+0B8h+var_68], rax                                         ; +0x14e, 0x14039c3ce\nlea     rdx, [rsp+0B8h+var_60]                                         ; +0x153, 0x14039c3d3\nlea     rcx, [rsp+0B8h+Block]                                          ; +0x158, 0x14039c3d8\ncall    sub_14003F4F0                                                  ; +0x160, 0x14039c3e0\nmovss   xmm0, cs:flt_140835080                                         ; +0x165, 0x14039c3e5\nmovss   [rsp+0B8h+var_78], xmm0                                        ; +0x16d, 0x14039c3ed\nxorps   xmm1, xmm1                                                     ; +0x173, 0x14039c3f3\nmovss   [rsp+0B8h+var_80], xmm1                                        ; +0x176, 0x14039c3f6\nmov     [rsp+0B8h+var_88], 0                                           ; +0x17c, 0x14039c3fc\nmovss   xmm0, cs:dword_1408359A4                                       ; +0x181, 0x14039c401\nmovss   [rsp+0B8h+var_90], xmm0                                        ; +0x189, 0x14039c409\nmov     [rsp+0B8h+Reserved], 0                                         ; +0x18f, 0x14039c40f\nlea     r9, aOk; \"OK\"                                                  ; +0x198, 0x14039c418\nmov     r8, rax                                                        ; +0x19f, 0x14039c41f\nlea     rdx, aInfo; \"Info\"                                             ; +0x1a2, 0x14039c422\nxor     ecx, ecx                                                       ; +0x1a9, 0x14039c429\ncall    FLAlertLayer__create                                           ; +0x1ab, 0x14039c42b\nmov     rbx, rax                                                       ; +0x1b0, 0x14039c430\nlea     rcx, [rsp+0B8h+var_60]                                         ; +0x1b3, 0x14039c433\ncall    sub_14003D310                                                  ; +0x1b8, 0x14039c438\nmov     rcx, [rbx]                                                     ; +0x1bd, 0x14039c43d\nmov     rdx, [rcx+428h]                                                ; +0x1c0, 0x14039c440\nmov     rcx, rbx                                                       ; +0x1c7, 0x14039c447\ncall    rdx                                                            ; +0x1ca, 0x14039c44a\nmov     rcx, [rsp+0B8h+var_18]                                         ; +0x1cc, 0x14039c44c\nxor     rcx, rsp; StackCookie                                          ; +0x1d4, 0x14039c454\ncall    __security_check_cookie                                        ; +0x1d7, 0x14039c457\nmov     rbx, [rsp+0B8h+arg_10]                                         ; +0x1dc, 0x14039c45c\nadd     rsp, 0B0h                                                      ; +0x1e4, 0x14039c464\npop     rdi                                                            ; +0x1eb, 0x14039c46b\nretn                                                                   ; +0x1ec, 0x14039c46c", "xrefs": ["GJOptionsLayer::addToggleInternal @ 0x14039b55b", "<???> @ 0x140923378"], "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"}