{"type": "func", "start": 5373210864, "end": 5373211140, "name": "LevelControlConfig::createFromB64", "pseudocode": "// \n// LevelControlConfig::createFromB64 from 0x14044b0f0 to 0x14044b204 (276 bytes)\n// \n// 8 xrefs:\n// > GJGameLevel::shippedControls @ 0x140266589\n// > LevelBindingsLayer::onPaste @ 0x14044cc41\n// > PlatformerControlsPopup::init @ 0x14044f25d\n// > PlatformerControlsPopup::ensureCustomDraft @ 0x140450613\n// > PlatformerControlsPopup::onApplyCreator @ 0x140451279\n// > TouchControlEditLayer::onPaste @ 0x140455cf0\n// > UILayer::resolveLevelControls @ 0x140670b96\n// > <???> @ 0x140927404\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:32:25 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n_QWORD *__fastcall LevelControlConfig::createFromB64(__int64 a1)\n{\n  _QWORD *v2; // rdi\n  __int64 v3; // rax\n  __int64 v4; // rbx\n  void *v5; // rcx\n  _BYTE v7[32]; // [rsp+38h] [rbp-50h] BYREF\n  void *Block[2]; // [rsp+58h] [rbp-30h] BYREF\n  __int128 v9; // [rsp+68h] [rbp-20h]\n\n  v2 = LevelControlConfig::create();\n  v3 = sub_14003F4F0((__int64)v7, a1);\n  v4 = v3;\n  if ( *(_QWORD *)(v3 + 16) )\n  {\n    cocos2d::ZipUtils::base64URLDecode(Block, v3);\n  }\n  else\n  {\n    *(_OWORD *)Block = 0;\n    v9 = 0;\n    *(_OWORD *)Block = *(_OWORD *)v3;\n    v9 = *(_OWORD *)(v3 + 16);\n    *(_QWORD *)(v3 + 16) = 0;\n    *(_QWORD *)(v3 + 24) = 15;\n    *(_BYTE *)v3 = 0;\n  }\n  sub_14003D310(v4);\n  LevelControlConfig::decode((__int64)v2, (__int64 *)Block);\n  if ( *((_QWORD *)&v9 + 1) > 0xFu )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v5);\n  }\n  return v2;\n}", "assembly": "; \n; LevelControlConfig::createFromB64 from 0x14044b0f0 to 0x14044b204 (276 bytes)\n; \n; 8 xrefs:\n; > GJGameLevel::shippedControls @ 0x140266589\n; > LevelBindingsLayer::onPaste @ 0x14044cc41\n; > PlatformerControlsPopup::init @ 0x14044f25d\n; > PlatformerControlsPopup::ensureCustomDraft @ 0x140450613\n; > PlatformerControlsPopup::onApplyCreator @ 0x140451279\n; > TouchControlEditLayer::onPaste @ 0x140455cf0\n; > UILayer::resolveLevelControls @ 0x140670b96\n; > <???> @ 0x140927404\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:32:25 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14044b0f0\npush    rdi                                                            ; +0x5, 0x14044b0f5\nsub     rsp, 80h                                                       ; +0x6, 0x14044b0f6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x14044b0fd\nxor     rax, rsp                                                       ; +0x14, 0x14044b104\nmov     [rsp+88h+var_10], rax                                          ; +0x17, 0x14044b107\nmov     rbx, rcx                                                       ; +0x1c, 0x14044b10c\ncall    LevelControlConfig__create                                     ; +0x1f, 0x14044b10f\nmov     rdi, rax                                                       ; +0x24, 0x14044b114\nmov     rdx, rbx                                                       ; +0x27, 0x14044b117\nlea     rcx, [rsp+88h+var_50]                                          ; +0x2a, 0x14044b11a\ncall    sub_14003F4F0                                                  ; +0x2f, 0x14044b11f\nmov     rbx, rax                                                       ; +0x34, 0x14044b124\nmov     [rsp+88h+var_58], rax                                          ; +0x37, 0x14044b127\ncmp     qword ptr [rax+10h], 0                                         ; +0x3c, 0x14044b12c\njnz     short loc_14044B16A                                            ; +0x41, 0x14044b131\nxorps   xmm0, xmm0                                                     ; +0x43, 0x14044b133\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x46, 0x14044b136\nxorps   xmm1, xmm1                                                     ; +0x4b, 0x14044b13b\nmovdqu  [rsp+88h+var_20], xmm1                                         ; +0x4e, 0x14044b13e\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x54, 0x14044b144\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x57, 0x14044b147\nmovups  xmm1, xmmword ptr [rax+10h]                                    ; +0x5c, 0x14044b14c\nmovups  [rsp+88h+var_20], xmm1                                         ; +0x60, 0x14044b150\nmov     qword ptr [rax+10h], 0                                         ; +0x65, 0x14044b155\nmov     qword ptr [rax+18h], 0Fh                                       ; +0x6d, 0x14044b15d\nmov     byte ptr [rax], 0                                              ; +0x75, 0x14044b165\njmp     short loc_14044B179                                            ; +0x78, 0x14044b168\nmov     rdx, rbx                                                       ; +0x7a, 0x14044b16a\nlea     rcx, [rsp+88h+Block]                                           ; +0x7d, 0x14044b16d\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 &) ; +0x82, 0x14044b172\nnop                                                                    ; +0x88, 0x14044b178\nmov     rcx, rbx                                                       ; +0x89, 0x14044b179\ncall    sub_14003D310                                                  ; +0x8c, 0x14044b17c\nnop                                                                    ; +0x91, 0x14044b181\nlea     rdx, [rsp+88h+Block]                                           ; +0x92, 0x14044b182\nmov     rcx, rdi                                                       ; +0x97, 0x14044b187\ncall    LevelControlConfig__decode                                     ; +0x9a, 0x14044b18a\nnop                                                                    ; +0x9f, 0x14044b18f\nmov     rdx, qword ptr [rsp+88h+var_20+8]                              ; +0xa0, 0x14044b190\ncmp     rdx, 0Fh                                                       ; +0xa5, 0x14044b195\njbe     short loc_14044B1E3                                            ; +0xa9, 0x14044b199\ninc     rdx                                                            ; +0xab, 0x14044b19b\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0xae, 0x14044b19e\nmov     rax, rcx                                                       ; +0xb3, 0x14044b1a3\ncmp     rdx, 1000h                                                     ; +0xb6, 0x14044b1a6\njb      short loc_14044B1DE                                            ; +0xbd, 0x14044b1ad\nadd     rdx, 27h ; '''                                                 ; +0xbf, 0x14044b1af\nmov     rcx, [rcx-8]                                                   ; +0xc3, 0x14044b1b3\nsub     rax, rcx                                                       ; +0xc7, 0x14044b1b7\nsub     rax, 8                                                         ; +0xca, 0x14044b1ba\ncmp     rax, 1Fh                                                       ; +0xce, 0x14044b1be\njbe     short loc_14044B1DE                                            ; +0xd2, 0x14044b1c2\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0xd4, 0x14044b1c4\nxor     r9d, r9d; LineNo                                               ; +0xdd, 0x14044b1cd\nxor     r8d, r8d; FileName                                             ; +0xe0, 0x14044b1d0\nxor     edx, edx; FunctionName                                         ; +0xe3, 0x14044b1d3\nxor     ecx, ecx; Expression                                           ; +0xe5, 0x14044b1d5\ncall    cs:_invoke_watson                                              ; +0xe7, 0x14044b1d7\nalign 2                                                                ; +0xed, 0x14044b1dd\ncall    j_j_free                                                       ; +0xee, 0x14044b1de\nmov     rax, rdi                                                       ; +0xf3, 0x14044b1e3\nmov     rcx, [rsp+88h+var_10]                                          ; +0xf6, 0x14044b1e6\nxor     rcx, rsp; StackCookie                                          ; +0xfb, 0x14044b1eb\ncall    __security_check_cookie                                        ; +0xfe, 0x14044b1ee\nmov     rbx, [rsp+88h+arg_8]                                           ; +0x103, 0x14044b1f3\nadd     rsp, 80h                                                       ; +0x10b, 0x14044b1fb\npop     rdi                                                            ; +0x112, 0x14044b202\nretn                                                                   ; +0x113, 0x14044b203", "xrefs": ["GJGameLevel::shippedControls @ 0x140266589", "LevelBindingsLayer::onPaste @ 0x14044cc41", "PlatformerControlsPopup::init @ 0x14044f25d", "PlatformerControlsPopup::ensureCustomDraft @ 0x140450613", "PlatformerControlsPopup::onApplyCreator @ 0x140451279", "TouchControlEditLayer::onPaste @ 0x140455cf0", "UILayer::resolveLevelControls @ 0x140670b96", "<???> @ 0x140927404"], "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"}