{"type": "func", "start": 4300652848, "end": 4300653067, "name": "GameLevelManager::getStoredLevelComments", "pseudocode": "// \n// GameLevelManager::getStoredLevelComments from 0x10056c130 to 0x10056c20b (219 bytes)\n// \n// 2 xrefs:\n// > InfoLayer::init @ 0x100893114\n// > InfoLayer::loadPage @ 0x100894804\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:32:13 +0000\n// \n\n__int64 __fastcall GameLevelManager::getStoredLevelComments(__int64 a1, const char *a2)\n{\n  __int64 v2; // r14\n  size_t v3; // rax\n  size_t v4; // r15\n  char *v5; // r12\n  __int64 result; // rax\n  size_t v7; // r13\n  __int64 v8; // rbx\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  if ( !GameLevelManager::isTimeValid(a1, a2, COERCE_DOUBLE(1142292480)) )\n    return 0;\n  v2 = *(_QWORD *)(a1 + 1040);\n  v3 = strlen(a2);\n  if ( v3 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v4 = v3;\n  if ( v3 >= 0x17 )\n  {\n    v7 = 26;\n    if ( (v3 | 7) != 0x17 )\n      v7 = (v3 | 7) + 1;\n    v5 = (char *)operator new(v7);\n    __p = v5;\n    __dst[0] = v7 + 1;\n    __dst[1] = v4;\n    goto LABEL_10;\n  }\n  LOBYTE(__dst[0]) = 2 * v3;\n  v5 = (char *)__dst + 1;\n  if ( v3 )\nLABEL_10:\n    memcpy(v5, a2, v4);\n  v5[v4] = 0;\n  result = cocos2d::CCDictionary::objectForKey(v2, (char *)__dst);\n  if ( (__dst[0] & 1) != 0 )\n  {\n    v8 = result;\n    operator delete(__p);\n    return v8;\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::getStoredLevelComments from 0x10056c130 to 0x10056c20b (219 bytes)\n; \n; 2 xrefs:\n; > InfoLayer::init @ 0x100893114\n; > InfoLayer::loadPage @ 0x100894804\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:32:13 +0000\n; \npush    rbp                                                            ; +0x0, 0x10056c130\nmov     rbp, rsp                                                       ; +0x1, 0x10056c131\npush    r15                                                            ; +0x4, 0x10056c134\npush    r14                                                            ; +0x6, 0x10056c136\npush    r13                                                            ; +0x8, 0x10056c138\npush    r12                                                            ; +0xa, 0x10056c13a\npush    rbx                                                            ; +0xc, 0x10056c13c\nsub     rsp, 18h                                                       ; +0xd, 0x10056c13d\nmov     rbx, rsi                                                       ; +0x11, 0x10056c141\nmov     r14, rdi                                                       ; +0x14, 0x10056c144\nmovss   xmm0, cs:dword_100A03A98                                       ; +0x17, 0x10056c147\ncall    GameLevelManager__isTimeValid                                  ; +0x1f, 0x10056c14f\ntest    al, al                                                         ; +0x24, 0x10056c154\njz      short loc_10056C18C                                            ; +0x26, 0x10056c156\nmov     r14, [r14+410h]                                                ; +0x28, 0x10056c158\nmov     rdi, rbx; __s                                                  ; +0x2f, 0x10056c15f\ncall    _strlen                                                        ; +0x32, 0x10056c162\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x37, 0x10056c167\njnb     loc_10056C206                                                  ; +0x3b, 0x10056c16b\nmov     r15, rax                                                       ; +0x41, 0x10056c171\ncmp     rax, 17h                                                       ; +0x44, 0x10056c174\njnb     short loc_10056C190                                            ; +0x48, 0x10056c178\nlea     eax, [r15+r15]                                                 ; +0x4a, 0x10056c17a\nmov     byte ptr [rbp+__dst], al                                       ; +0x4e, 0x10056c17e\nlea     r12, [rbp+__dst+1]                                             ; +0x51, 0x10056c181\ntest    r15, r15                                                       ; +0x55, 0x10056c185\njnz     short loc_10056C1C3                                            ; +0x58, 0x10056c188\njmp     short loc_10056C1D1                                            ; +0x5a, 0x10056c18a\nxor     eax, eax                                                       ; +0x5c, 0x10056c18c\njmp     short loc_10056C1F7                                            ; +0x5e, 0x10056c18e\nmov     rax, r15                                                       ; +0x60, 0x10056c190\nor      rax, 7                                                         ; +0x63, 0x10056c193\nlea     rcx, [rax+1]                                                   ; +0x67, 0x10056c197\ncmp     rax, 17h                                                       ; +0x6b, 0x10056c19b\nmov     r13d, 1Ah                                                      ; +0x6f, 0x10056c19f\ncmovnz  r13, rcx                                                       ; +0x75, 0x10056c1a5\nmov     rdi, r13; __sz                                                 ; +0x79, 0x10056c1a9\ncall    __Znwm; operator new(ulong)                                    ; +0x7c, 0x10056c1ac\nmov     r12, rax                                                       ; +0x81, 0x10056c1b1\nmov     [rbp+__p], rax                                                 ; +0x84, 0x10056c1b4\ninc     r13                                                            ; +0x88, 0x10056c1b8\nmov     [rbp+__dst], r13                                               ; +0x8b, 0x10056c1bb\nmov     [rbp+var_38], r15                                              ; +0x8f, 0x10056c1bf\nmov     rdi, r12; __dst                                                ; +0x93, 0x10056c1c3\nmov     rsi, rbx; __src                                                ; +0x96, 0x10056c1c6\nmov     rdx, r15; __n                                                  ; +0x99, 0x10056c1c9\ncall    _memcpy                                                        ; +0x9c, 0x10056c1cc\nmov     byte ptr [r12+r15], 0                                          ; +0xa1, 0x10056c1d1\nlea     rsi, [rbp+__dst]                                               ; +0xa6, 0x10056c1d6\nmov     rdi, r14                                                       ; +0xaa, 0x10056c1da\ncall    cocos2d__CCDictionary__objectForKey                            ; +0xad, 0x10056c1dd\ntest    byte ptr [rbp+__dst], 1                                        ; +0xb2, 0x10056c1e2\njz      short loc_10056C1F7                                            ; +0xb6, 0x10056c1e6\nmov     rdi, [rbp+__p]; __p                                            ; +0xb8, 0x10056c1e8\nmov     rbx, rax                                                       ; +0xbc, 0x10056c1ec\ncall    __ZdlPv; operator delete(void *)                               ; +0xbf, 0x10056c1ef\nmov     rax, rbx                                                       ; +0xc4, 0x10056c1f4\nadd     rsp, 18h                                                       ; +0xc7, 0x10056c1f7\npop     rbx                                                            ; +0xcb, 0x10056c1fb\npop     r12                                                            ; +0xcc, 0x10056c1fc\npop     r13                                                            ; +0xce, 0x10056c1fe\npop     r14                                                            ; +0xd0, 0x10056c200\npop     r15                                                            ; +0xd2, 0x10056c202\npop     rbp                                                            ; +0xd4, 0x10056c204\nretn                                                                   ; +0xd5, 0x10056c205\ncall    sub_100003630                                                  ; +0xd6, 0x10056c206", "xrefs": ["InfoLayer::init @ 0x100893114", "InfoLayer::loadPage @ 0x100894804"], "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"}