{"type": "func", "start": 6443066864, "end": 6443067016, "name": "base64Decode", "pseudocode": "// \n// base64Decode from 0x1800965f0 to 0x180096688 (152 bytes)\n// \n// 10 xrefs:\n// > cocos2d::CCParticleSystem::initWithDictionary @ 0x18006a8f2\n// > cocos2d::ZipUtils::base64DecodeEnc @ 0x1800a67a5\n// > cocos2d::ZipUtils::base64URLDecode @ 0x1800a6b06\n// > cocos2d::ZipUtils::decompressString2 @ 0x1800a7815\n// > cocos2d::ZipUtils::decompressString2 @ 0x1800a7870\n// > cocos2d::ZipUtils::decompressString @ 0x1800a7b1b\n// > cocos2d::ZipUtils::decompressString @ 0x1800a7b4b\n// > cocos2d::CCTMXMapInfo::endElement @ 0x1800b2b1e\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c06d8\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:22:09 +0000\n// \n\n__int64 __fastcall base64Decode(unsigned __int8 *a1, unsigned int a2, void **a3, char a4)\n{\n  void *v8; // rax\n  unsigned int v10; // [rsp+48h] [rbp+10h] BYREF\n\n  v10 = 0;\n  v8 = malloc(((unsigned __int64)a2 >> 2) + 2 * (((unsigned __int64)a2 >> 2) + 2));\n  *a3 = v8;\n  if ( !v8 )\n    return 0;\n  if ( (int)sub_180095FD0(a1, a2, (__int64)v8, &v10, a4) > 0 )\n  {\n    sub_180077BC0(\"Base64Utils: error decoding\");\n    free(*a3);\n    *a3 = nullptr;\n    return 0;\n  }\n  return v10;\n}", "assembly": "; \n; base64Decode from 0x1800965f0 to 0x180096688 (152 bytes)\n; \n; 10 xrefs:\n; > cocos2d::CCParticleSystem::initWithDictionary @ 0x18006a8f2\n; > cocos2d::ZipUtils::base64DecodeEnc @ 0x1800a67a5\n; > cocos2d::ZipUtils::base64URLDecode @ 0x1800a6b06\n; > cocos2d::ZipUtils::decompressString2 @ 0x1800a7815\n; > cocos2d::ZipUtils::decompressString2 @ 0x1800a7870\n; > cocos2d::ZipUtils::decompressString @ 0x1800a7b1b\n; > cocos2d::ZipUtils::decompressString @ 0x1800a7b4b\n; > cocos2d::CCTMXMapInfo::endElement @ 0x1800b2b1e\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c06d8\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:22:09 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800965f0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800965f5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800965fa\npush    rdi                                                            ; +0xf, 0x1800965ff\nsub     rsp, 30h                                                       ; +0x10, 0x180096600\nmov     rbp, rcx                                                       ; +0x14, 0x180096604\nmov     eax, edx                                                       ; +0x17, 0x180096607\nshr     rax, 2                                                         ; +0x19, 0x180096609\nmovzx   esi, r9b                                                       ; +0x1d, 0x18009660d\nmov     rbx, r8                                                        ; +0x21, 0x180096611\nmov     edi, edx                                                       ; +0x24, 0x180096614\nmov     [rsp+38h+arg_8], 0                                             ; +0x26, 0x180096616\nlea     rcx, [rax+2]                                                   ; +0x2e, 0x18009661e\nlea     rcx, [rax+rcx*2]; Size                                         ; +0x32, 0x180096622\ncall    cs:__imp_malloc                                                ; +0x36, 0x180096626\nmov     [rbx], rax                                                     ; +0x3c, 0x18009662c\ntest    rax, rax                                                       ; +0x3f, 0x18009662f\njz      short loc_18009666B                                            ; +0x42, 0x180096632\nlea     r9, [rsp+38h+arg_8]                                            ; +0x44, 0x180096634\nmov     [rsp+38h+var_18], sil                                          ; +0x49, 0x180096639\nmov     r8, rax                                                        ; +0x4e, 0x18009663e\nmov     edx, edi                                                       ; +0x51, 0x180096641\nmov     rcx, rbp                                                       ; +0x53, 0x180096643\ncall    sub_180095FD0                                                  ; +0x56, 0x180096646\ntest    eax, eax                                                       ; +0x5b, 0x18009664b\njle     short loc_180096682                                            ; +0x5d, 0x18009664d\nlea     rcx, aBase64utilsErr; \"Base64Utils: error decoding\"            ; +0x5f, 0x18009664f\ncall    sub_180077BC0                                                  ; +0x66, 0x180096656\nmov     rcx, [rbx]; Block                                              ; +0x6b, 0x18009665b\ncall    cs:__imp_free                                                  ; +0x6e, 0x18009665e\nmov     qword ptr [rbx], 0                                             ; +0x74, 0x180096664\nxor     eax, eax                                                       ; +0x7b, 0x18009666b\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7d, 0x18009666d\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x82, 0x180096672\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x87, 0x180096677\nadd     rsp, 30h                                                       ; +0x8c, 0x18009667c\npop     rdi                                                            ; +0x90, 0x180096680\nretn                                                                   ; +0x91, 0x180096681\nmov     eax, [rsp+38h+arg_8]                                           ; +0x92, 0x180096682\njmp     short loc_18009666D                                            ; +0x96, 0x180096686", "xrefs": ["cocos2d::CCParticleSystem::initWithDictionary @ 0x18006a8f2", "cocos2d::ZipUtils::base64DecodeEnc @ 0x1800a67a5", "cocos2d::ZipUtils::base64URLDecode @ 0x1800a6b06", "cocos2d::ZipUtils::decompressString2 @ 0x1800a7815", "cocos2d::ZipUtils::decompressString2 @ 0x1800a7870", "cocos2d::ZipUtils::decompressString @ 0x1800a7b1b", "cocos2d::ZipUtils::decompressString @ 0x1800a7b4b", "cocos2d::CCTMXMapInfo::endElement @ 0x1800b2b1e", "<???> @ 0x18014cf68", "<???> @ 0x1801c06d8"], "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"}