{"type": "func", "start": 6443133616, "end": 6443133856, "name": "cocos2d::ZipUtils::base64URLDecode", "pseudocode": "// \n// cocos2d::ZipUtils::base64URLDecode from 0x1800a6ab0 to 0x1800a6ba0 (240 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1d04\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:16 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__m128i *__fastcall cocos2d::ZipUtils::base64URLDecode(__m128i *a1, __int64 a2)\n{\n  __int64 v2; // rax\n  __int64 v4; // rdx\n  int v5; // eax\n  void *Block; // [rsp+20h] [rbp-48h] BYREF\n  __m128i Src; // [rsp+30h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-28h]\n\n  v2 = a2;\n  Block = a1;\n  v4 = *(_QWORD *)(a2 + 16);\n  if ( v4 )\n  {\n    Block = nullptr;\n    if ( *(_QWORD *)(v2 + 24) > 0xFu )\n      v2 = *(_QWORD *)v2;\n    v5 = base64Decode((unsigned __int8 *)v2, v4, &Block, 1);\n    if ( v5 <= 0 )\n    {\n      if ( Block )\n        j_j_free_0(Block);\n      *a1 = 0;\n      a1[1].m128i_i64[0] = 0;\n      a1[1].m128i_i64[1] = 15;\n      a1->m128i_i8[0] = 0;\n    }\n    else\n    {\n      Src = 0;\n      si128 = _mm_load_si128((const __m128i *)&xmmword_1800EC500);\n      Src.m128i_i8[0] = 0;\n      sub_180007DF0(&Src, Block, v5);\n      if ( Block )\n        j_j_free_0(Block);\n      *a1 = Src;\n      a1[1] = si128;\n    }\n  }\n  else\n  {\n    sub_180016870((__int64)a1, v2);\n  }\n  return a1;\n}", "assembly": "; \n; cocos2d::ZipUtils::base64URLDecode from 0x1800a6ab0 to 0x1800a6ba0 (240 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1d04\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:16 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1800a6ab0\npush    rdi                                                            ; +0x5, 0x1800a6ab5\nsub     rsp, 60h                                                       ; +0x6, 0x1800a6ab6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800a6aba\nxor     rax, rsp                                                       ; +0x11, 0x1800a6ac1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1800a6ac4\nmov     rax, rdx                                                       ; +0x19, 0x1800a6ac9\nmov     rbx, rcx                                                       ; +0x1c, 0x1800a6acc\nmov     [rsp+68h+Block], rcx                                           ; +0x1f, 0x1800a6acf\nxor     edi, edi                                                       ; +0x24, 0x1800a6ad4\nmov     rdx, [rdx+10h]                                                 ; +0x26, 0x1800a6ad6\ntest    rdx, rdx                                                       ; +0x2a, 0x1800a6ada\njnz     short loc_1800A6AEC                                            ; +0x2d, 0x1800a6add\nmov     rdx, rax                                                       ; +0x2f, 0x1800a6adf\ncall    sub_180016870                                                  ; +0x32, 0x1800a6ae2\njmp     loc_1800A6B82                                                  ; +0x37, 0x1800a6ae7\nmov     [rsp+68h+Block], rdi                                           ; +0x3c, 0x1800a6aec\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x41, 0x1800a6af1\njbe     short loc_1800A6AFB                                            ; +0x46, 0x1800a6af6\nmov     rax, [rax]                                                     ; +0x48, 0x1800a6af8\nmov     r9b, 1                                                         ; +0x4b, 0x1800a6afb\nlea     r8, [rsp+68h+Block]                                            ; +0x4e, 0x1800a6afe\nmov     rcx, rax                                                       ; +0x53, 0x1800a6b03\ncall    base64Decode                                                   ; +0x56, 0x1800a6b06\ntest    eax, eax                                                       ; +0x5b, 0x1800a6b0b\njle     short loc_1800A6B5E                                            ; +0x5d, 0x1800a6b0d\nxorps   xmm0, xmm0                                                     ; +0x5f, 0x1800a6b0f\nmovups  [rsp+68h+Src], xmm0                                            ; +0x62, 0x1800a6b12\nmovdqa  xmm1, cs:xmmword_1800EC500                                     ; +0x67, 0x1800a6b17\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x6f, 0x1800a6b1f\nmov     byte ptr [rsp+68h+Src], dil                                    ; +0x75, 0x1800a6b25\nmovsxd  r8, eax                                                        ; +0x7a, 0x1800a6b2a\nmov     rdx, [rsp+68h+Block]                                           ; +0x7d, 0x1800a6b2d\nlea     rcx, [rsp+68h+Src]; Src                                        ; +0x82, 0x1800a6b32\ncall    sub_180007DF0                                                  ; +0x87, 0x1800a6b37\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x8c, 0x1800a6b3c\ntest    rcx, rcx                                                       ; +0x91, 0x1800a6b41\njz      short loc_1800A6B4B                                            ; +0x94, 0x1800a6b44\ncall    j_j_free_0                                                     ; +0x96, 0x1800a6b46\nmovups  xmm0, [rsp+68h+Src]                                            ; +0x9b, 0x1800a6b4b\nmovups  xmmword ptr [rbx], xmm0                                        ; +0xa0, 0x1800a6b50\nmovups  xmm1, [rsp+68h+var_28]                                         ; +0xa3, 0x1800a6b53\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0xa8, 0x1800a6b58\njmp     short loc_1800A6B82                                            ; +0xac, 0x1800a6b5c\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0xae, 0x1800a6b5e\ntest    rcx, rcx                                                       ; +0xb3, 0x1800a6b63\njz      short loc_1800A6B6D                                            ; +0xb6, 0x1800a6b66\ncall    j_j_free_0                                                     ; +0xb8, 0x1800a6b68\nxorps   xmm0, xmm0                                                     ; +0xbd, 0x1800a6b6d\nmovups  xmmword ptr [rbx], xmm0                                        ; +0xc0, 0x1800a6b70\nmov     [rbx+10h], rdi                                                 ; +0xc3, 0x1800a6b73\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0xc7, 0x1800a6b77\nmov     [rbx], dil                                                     ; +0xcf, 0x1800a6b7f\nmov     rax, rbx                                                       ; +0xd2, 0x1800a6b82\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd5, 0x1800a6b85\nxor     rcx, rsp; StackCookie                                          ; +0xda, 0x1800a6b8a\ncall    __security_check_cookie                                        ; +0xdd, 0x1800a6b8d\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xe2, 0x1800a6b92\nadd     rsp, 60h                                                       ; +0xea, 0x1800a6b9a\npop     rdi                                                            ; +0xee, 0x1800a6b9e\nretn                                                                   ; +0xef, 0x1800a6b9f", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c1d04"], "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"}