{"type": "func", "start": 5373329568, "end": 5373329703, "name": "LevelTools::base64DecodeString", "pseudocode": "// \n// LevelTools::base64DecodeString from 0x1404680a0 to 0x140468127 (135 bytes)\n// \n// 17 xrefs:\n// > EditLevelLayer::init @ 0x14017907c\n// > EditorSoundConfigInfoLayer::onDescription @ 0x140195cb8\n// > EditorSoundConfigUploadPopup::init @ 0x14019ac17\n// > GameLevelManager::getGauntletLevels @ 0x140231b5f\n// > GameLevelManager::storeThreadManifest @ 0x14024e15f\n// > GJLevelList::showListInfo @ 0x1402736b3\n// > TextGameObject::customObjectSetup @ 0x1402a4b6f\n// > GJEditorSoundConfig::showSoundInfo @ 0x140361205\n// > InfoLayer::init @ 0x1403ce8e4\n// > InfoLayer::init @ 0x1403ce95b\n// > InfoLayer::onLevelInfo @ 0x1403d0f60\n// > LevelListLayer::onDescription @ 0x14042f71a\n// > ShareListLayer::init @ 0x140432184\n// > MusicDownloadManager::customSFXPathLeaf @ 0x140486a25\n// > ShareLevelLayer::init @ 0x140630a2d\n// > StartPosObject::getDisplayName @ 0x140653644\n// > <???> @ 0x140927f08\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:35 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall LevelTools::base64DecodeString(__int64 a1, __int64 a2)\n{\n  if ( *(_QWORD *)(a2 + 16) )\n  {\n    cocos2d::ZipUtils::base64URLDecode(a1, a2);\n  }\n  else\n  {\n    *(_OWORD *)a1 = 0;\n    *(_QWORD *)(a1 + 16) = 0;\n    *(_QWORD *)(a1 + 24) = 0;\n    *(_OWORD *)a1 = *(_OWORD *)a2;\n    *(_OWORD *)(a1 + 16) = *(_OWORD *)(a2 + 16);\n    *(_QWORD *)(a2 + 16) = 0;\n    *(_QWORD *)(a2 + 24) = 15;\n    *(_BYTE *)a2 = 0;\n  }\n  sub_14003D310(a2);\n  return a1;\n}", "assembly": "; \n; LevelTools::base64DecodeString from 0x1404680a0 to 0x140468127 (135 bytes)\n; \n; 17 xrefs:\n; > EditLevelLayer::init @ 0x14017907c\n; > EditorSoundConfigInfoLayer::onDescription @ 0x140195cb8\n; > EditorSoundConfigUploadPopup::init @ 0x14019ac17\n; > GameLevelManager::getGauntletLevels @ 0x140231b5f\n; > GameLevelManager::storeThreadManifest @ 0x14024e15f\n; > GJLevelList::showListInfo @ 0x1402736b3\n; > TextGameObject::customObjectSetup @ 0x1402a4b6f\n; > GJEditorSoundConfig::showSoundInfo @ 0x140361205\n; > InfoLayer::init @ 0x1403ce8e4\n; > InfoLayer::init @ 0x1403ce95b\n; > InfoLayer::onLevelInfo @ 0x1403d0f60\n; > LevelListLayer::onDescription @ 0x14042f71a\n; > ShareListLayer::init @ 0x140432184\n; > MusicDownloadManager::customSFXPathLeaf @ 0x140486a25\n; > ShareLevelLayer::init @ 0x140630a2d\n; > StartPosObject::getDisplayName @ 0x140653644\n; > <???> @ 0x140927f08\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:35 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1404680a0\npush    rdi                                                            ; +0x5, 0x1404680a5\nsub     rsp, 40h                                                       ; +0x6, 0x1404680a6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1404680aa\nxor     rax, rsp                                                       ; +0x11, 0x1404680b1\nmov     [rsp+48h+var_18], rax                                          ; +0x14, 0x1404680b4\nmov     rbx, rdx                                                       ; +0x19, 0x1404680b9\nmov     rdi, rcx                                                       ; +0x1c, 0x1404680bc\nmov     [rsp+48h+var_20], rcx                                          ; +0x1f, 0x1404680bf\nmov     [rsp+48h+var_20], rdx                                          ; +0x24, 0x1404680c4\nxor     eax, eax                                                       ; +0x29, 0x1404680c9\ncmp     [rdx+10h], rax                                                 ; +0x2b, 0x1404680cb\njnz     short loc_1404680FD                                            ; +0x2f, 0x1404680cf\nxorps   xmm0, xmm0                                                     ; +0x31, 0x1404680d1\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x34, 0x1404680d4\nmov     [rcx+10h], rax                                                 ; +0x37, 0x1404680d7\nmov     [rcx+18h], rax                                                 ; +0x3b, 0x1404680db\nmovups  xmm0, xmmword ptr [rdx]                                        ; +0x3f, 0x1404680df\nmovups  xmmword ptr [rcx], xmm0                                        ; +0x42, 0x1404680e2\nmovups  xmm1, xmmword ptr [rdx+10h]                                    ; +0x45, 0x1404680e5\nmovups  xmmword ptr [rcx+10h], xmm1                                    ; +0x49, 0x1404680e9\nmov     [rdx+10h], rax                                                 ; +0x4d, 0x1404680ed\nmov     qword ptr [rdx+18h], 0Fh                                       ; +0x51, 0x1404680f1\nmov     [rdx], al                                                      ; +0x59, 0x1404680f9\njmp     short loc_140468104                                            ; +0x5b, 0x1404680fb\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 &) ; +0x5d, 0x1404680fd\nnop                                                                    ; +0x63, 0x140468103\nmov     rcx, rbx                                                       ; +0x64, 0x140468104\ncall    sub_14003D310                                                  ; +0x67, 0x140468107\nmov     rax, rdi                                                       ; +0x6c, 0x14046810c\nmov     rcx, [rsp+48h+var_18]                                          ; +0x6f, 0x14046810f\nxor     rcx, rsp; StackCookie                                          ; +0x74, 0x140468114\ncall    __security_check_cookie                                        ; +0x77, 0x140468117\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x7c, 0x14046811c\nadd     rsp, 40h                                                       ; +0x81, 0x140468121\npop     rdi                                                            ; +0x85, 0x140468125\nretn                                                                   ; +0x86, 0x140468126", "xrefs": ["EditLevelLayer::init @ 0x14017907c", "EditorSoundConfigInfoLayer::onDescription @ 0x140195cb8", "EditorSoundConfigUploadPopup::init @ 0x14019ac17", "GameLevelManager::getGauntletLevels @ 0x140231b5f", "GameLevelManager::storeThreadManifest @ 0x14024e15f", "GJLevelList::showListInfo @ 0x1402736b3", "TextGameObject::customObjectSetup @ 0x1402a4b6f", "GJEditorSoundConfig::showSoundInfo @ 0x140361205", "InfoLayer::init @ 0x1403ce8e4", "InfoLayer::init @ 0x1403ce95b", "InfoLayer::onLevelInfo @ 0x1403d0f60", "LevelListLayer::onDescription @ 0x14042f71a", "ShareListLayer::init @ 0x140432184", "MusicDownloadManager::customSFXPathLeaf @ 0x140486a25", "ShareLevelLayer::init @ 0x140630a2d", "StartPosObject::getDisplayName @ 0x140653644", "<???> @ 0x140927f08"], "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"}