{"type": "func", "start": 4300784144, "end": 4300784267, "name": "GJGameLevel::getUnpackedLevelDescription", "pseudocode": "// \n// GJGameLevel::getUnpackedLevelDescription from 0x10058c210 to 0x10058c28b (123 bytes)\n// \n// 4 xrefs:\n// > EditLevelLayer::init @ 0x1001dd875\n// > ShareLevelLayer::init @ 0x10026cdc1\n// > InfoLayer::init @ 0x100891f50\n// > InfoLayer::onLevelInfo @ 0x1008950c1\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:24 +0000\n// \n\nstd::string *__fastcall GJGameLevel::getUnpackedLevelDescription(std::string *a1, __int64 a2)\n{\n  char v2; // al\n  unsigned __int64 v3; // rdx\n  std::string v5; // [rsp+0h] [rbp-20h] BYREF\n\n  v2 = *(_BYTE *)(a2 + 368);\n  if ( (v2 & 1) == 0 )\n  {\n    if ( v2 )\n    {\n      v5 = *(std::string *)(a2 + 368);\n      goto LABEL_6;\n    }\nLABEL_8:\n    *(_WORD *)&a1->__r_.__value_.__l.0 = 0;\n    return a1;\n  }\n  v3 = *(_QWORD *)(a2 + 376);\n  if ( !v3 )\n    goto LABEL_8;\n  sub_10001AD30(&v5, *(const void **)(a2 + 384), v3);\nLABEL_6:\n  LevelTools::base64DecodeString(a1, &v5);\n  if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v5.__r_.__value_.__l.__data_);\n  return a1;\n}", "assembly": "; \n; GJGameLevel::getUnpackedLevelDescription from 0x10058c210 to 0x10058c28b (123 bytes)\n; \n; 4 xrefs:\n; > EditLevelLayer::init @ 0x1001dd875\n; > ShareLevelLayer::init @ 0x10026cdc1\n; > InfoLayer::init @ 0x100891f50\n; > InfoLayer::onLevelInfo @ 0x1008950c1\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:24 +0000\n; \npush    rbp                                                            ; +0x0, 0x10058c210\nmov     rbp, rsp                                                       ; +0x1, 0x10058c211\npush    rbx                                                            ; +0x4, 0x10058c214\nsub     rsp, 18h                                                       ; +0x5, 0x10058c215\nmov     rbx, rdi                                                       ; +0x9, 0x10058c219\nmovzx   eax, byte ptr [rsi+170h]                                       ; +0xc, 0x10058c21c\ntest    al, 1                                                          ; +0x13, 0x10058c223\njnz     short loc_10058C243                                            ; +0x15, 0x10058c225\ntest    al, al                                                         ; +0x17, 0x10058c227\njz      short loc_10058C27C                                            ; +0x19, 0x10058c229\nadd     rsi, 170h                                                      ; +0x1b, 0x10058c22b\nmov     rax, [rsi+10h]                                                 ; +0x22, 0x10058c232\nmov     [rbp+__p], rax                                                 ; +0x26, 0x10058c236\nmovups  xmm0, xmmword ptr [rsi]                                        ; +0x2a, 0x10058c23a\nmovaps  [rbp+var_20], xmm0                                             ; +0x2d, 0x10058c23d\njmp     short loc_10058C25F                                            ; +0x31, 0x10058c241\nmov     rdx, [rsi+178h]                                                ; +0x33, 0x10058c243\ntest    rdx, rdx                                                       ; +0x3a, 0x10058c24a\njz      short loc_10058C27C                                            ; +0x3d, 0x10058c24d\nmov     rsi, [rsi+180h]                                                ; +0x3f, 0x10058c24f\nlea     rdi, [rbp+var_20]                                              ; +0x46, 0x10058c256\ncall    sub_10001AD30                                                  ; +0x4a, 0x10058c25a\nlea     rsi, [rbp+var_20]                                              ; +0x4f, 0x10058c25f\nmov     rdi, rbx                                                       ; +0x53, 0x10058c263\ncall    LevelTools__base64DecodeString                                 ; +0x56, 0x10058c266\ntest    byte ptr [rbp+var_20], 1                                       ; +0x5b, 0x10058c26b\njz      short loc_10058C281                                            ; +0x5f, 0x10058c26f\nmov     rdi, [rbp+__p]; __p                                            ; +0x61, 0x10058c271\ncall    __ZdlPv; operator delete(void *)                               ; +0x65, 0x10058c275\njmp     short loc_10058C281                                            ; +0x6a, 0x10058c27a\nmov     word ptr [rbx], 0                                              ; +0x6c, 0x10058c27c\nmov     rax, rbx                                                       ; +0x71, 0x10058c281\nadd     rsp, 18h                                                       ; +0x74, 0x10058c284\npop     rbx                                                            ; +0x78, 0x10058c288\npop     rbp                                                            ; +0x79, 0x10058c289\nretn                                                                   ; +0x7a, 0x10058c28a", "xrefs": ["EditLevelLayer::init @ 0x1001dd875", "ShareLevelLayer::init @ 0x10026cdc1", "InfoLayer::init @ 0x100891f50", "InfoLayer::onLevelInfo @ 0x1008950c1"], "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"}