{"type": "func", "start": 5370216544, "end": 5370216730, "name": "GJGameLevel::getUnpackedLevelDescription", "pseudocode": "// \n// GJGameLevel::getUnpackedLevelDescription from 0x140170060 to 0x14017011a (186 bytes)\n// \n// 5 xrefs:\n// > EditLevelLayer::init @ 0x1400d5e2a\n// > InfoLayer::init @ 0x1402bb525\n// > InfoLayer::onLevelInfo @ 0x1402bddbd\n// > ShareLevelLayer::init @ 0x14048f38e\n// > <???> @ 0x1406cae6c\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\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GJGameLevel::getUnpackedLevelDescription(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rdi\n  _BYTE v6[48]; // [rsp+28h] [rbp-30h] BYREF\n\n  if ( *(_QWORD *)(a1 + 392) )\n  {\n    v4 = sub_14003BDB0((__int64)v6, a1 + 376);\n    v5 = v4;\n    if ( *(_QWORD *)(v4 + 16) )\n    {\n      cocos2d::ZipUtils::base64URLDecode(a2, v4);\n    }\n    else\n    {\n      *(_OWORD *)a2 = 0;\n      *(_QWORD *)(a2 + 16) = 0;\n      *(_QWORD *)(a2 + 24) = 0;\n      *(_OWORD *)a2 = *(_OWORD *)v4;\n      *(_OWORD *)(a2 + 16) = *(_OWORD *)(v4 + 16);\n      *(_QWORD *)(v4 + 16) = 0;\n      *(_QWORD *)(v4 + 24) = 15;\n      *(_BYTE *)v4 = 0;\n    }\n    sub_14003A830(v5);\n    return a2;\n  }\n  else\n  {\n    *(_OWORD *)a2 = 0;\n    *(_QWORD *)(a2 + 16) = 0;\n    *(_QWORD *)(a2 + 24) = 15;\n    *(_BYTE *)a2 = 0;\n    return a2;\n  }\n}", "assembly": "; \n; GJGameLevel::getUnpackedLevelDescription from 0x140170060 to 0x14017011a (186 bytes)\n; \n; 5 xrefs:\n; > EditLevelLayer::init @ 0x1400d5e2a\n; > InfoLayer::init @ 0x1402bb525\n; > InfoLayer::onLevelInfo @ 0x1402bddbd\n; > ShareLevelLayer::init @ 0x14048f38e\n; > <???> @ 0x1406cae6c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140170060\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140170065\npush    rdi                                                            ; +0xa, 0x14017006a\nsub     rsp, 50h                                                       ; +0xb, 0x14017006b\nmov     rbx, rdx                                                       ; +0xf, 0x14017006f\nxor     esi, esi                                                       ; +0x12, 0x140170072\ncmp     [rcx+188h], rsi                                                ; +0x14, 0x140170074\njnz     short loc_1401700A5                                            ; +0x1b, 0x14017007b\nxorps   xmm0, xmm0                                                     ; +0x1d, 0x14017007d\nmovups  xmmword ptr [rdx], xmm0                                        ; +0x20, 0x140170080\nmov     [rdx+10h], rsi                                                 ; +0x23, 0x140170083\nmov     qword ptr [rdx+18h], 0Fh                                       ; +0x27, 0x140170087\nmov     [rdx], sil                                                     ; +0x2f, 0x14017008f\nmov     rax, rdx                                                       ; +0x32, 0x140170092\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x35, 0x140170095\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x3a, 0x14017009a\nadd     rsp, 50h                                                       ; +0x3f, 0x14017009f\npop     rdi                                                            ; +0x43, 0x1401700a3\nretn                                                                   ; +0x44, 0x1401700a4\nlea     rdx, [rcx+178h]                                                ; +0x45, 0x1401700a5\nlea     rcx, [rsp+58h+var_30]                                          ; +0x4c, 0x1401700ac\ncall    sub_14003BDB0                                                  ; +0x51, 0x1401700b1\nmov     rdi, rax                                                       ; +0x56, 0x1401700b6\nmov     [rsp+58h+arg_0], rax                                           ; +0x59, 0x1401700b9\ncmp     qword ptr [rax+10h], 0                                         ; +0x5e, 0x1401700be\njnz     short loc_1401700F2                                            ; +0x63, 0x1401700c3\nxorps   xmm0, xmm0                                                     ; +0x65, 0x1401700c5\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x68, 0x1401700c8\nmov     [rbx+10h], rsi                                                 ; +0x6b, 0x1401700cb\nmov     [rbx+18h], rsi                                                 ; +0x6f, 0x1401700cf\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x73, 0x1401700d3\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x76, 0x1401700d6\nmovups  xmm1, xmmword ptr [rax+10h]                                    ; +0x79, 0x1401700d9\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x7d, 0x1401700dd\nmov     [rax+10h], rsi                                                 ; +0x81, 0x1401700e1\nmov     qword ptr [rax+18h], 0Fh                                       ; +0x85, 0x1401700e5\nmov     byte ptr [rax], 0                                              ; +0x8d, 0x1401700ed\njmp     short loc_1401700FF                                            ; +0x90, 0x1401700f0\nmov     rdx, rdi                                                       ; +0x92, 0x1401700f2\nmov     rcx, rbx                                                       ; +0x95, 0x1401700f5\ncall    cs:?base64URLDecode@ZipUtils@cocos2d@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV34@@Z; cocos2d::ZipUtils::base64URLDecode(std::string const &) ; +0x98, 0x1401700f8\nnop                                                                    ; +0x9e, 0x1401700fe\nmov     rcx, rdi                                                       ; +0x9f, 0x1401700ff\ncall    sub_14003A830                                                  ; +0xa2, 0x140170102\nmov     rax, rbx                                                       ; +0xa7, 0x140170107\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xaa, 0x14017010a\nmov     rsi, [rsp+58h+arg_10]                                          ; +0xaf, 0x14017010f\nadd     rsp, 50h                                                       ; +0xb4, 0x140170114\npop     rdi                                                            ; +0xb8, 0x140170118\nretn                                                                   ; +0xb9, 0x140170119", "xrefs": ["EditLevelLayer::init @ 0x1400d5e2a", "InfoLayer::init @ 0x1402bb525", "InfoLayer::onLevelInfo @ 0x1402bddbd", "ShareLevelLayer::init @ 0x14048f38e", "<???> @ 0x1406cae6c"], "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"}