{"type": "func", "start": 6442464000, "end": 6442464157, "name": "sub_180003300", "pseudocode": "// \n// sub_180003300 from 0x180003300 to 0x18000339d (157 bytes)\n// \n// 4 xrefs:\n// > cocos2d::extension::AssetsManager::update @ 0x180001bb4\n// > cocos2d::extension::AssetsManager::setSearchPath @ 0x18000214e\n// > cocos2d::extension::AssetsManager::setSearchPath @ 0x180002160\n// > <???> @ 0x18004b1f8\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 12:15:35 +0000\n// \n\n__int64 __fastcall sub_180003300(__int64 a1, __int64 a2)\n{\n  unsigned __int64 v4; // rdx\n  _QWORD *v5; // rcx\n\n  if ( a1 != a2 )\n  {\n    v4 = *(_QWORD *)(a1 + 24);\n    if ( v4 > 0xF )\n    {\n      v5 = *(_QWORD **)a1;\n      if ( v4 + 1 >= 0x1000 )\n      {\n        if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        v5 = (_QWORD *)*(v5 - 1);\n      }\n      j_j_free(v5);\n    }\n    *(_QWORD *)(a1 + 24) = 15;\n    *(_QWORD *)(a1 + 16) = 0;\n    *(_BYTE *)a1 = 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  return a1;\n}", "assembly": "; \n; sub_180003300 from 0x180003300 to 0x18000339d (157 bytes)\n; \n; 4 xrefs:\n; > cocos2d::extension::AssetsManager::update @ 0x180001bb4\n; > cocos2d::extension::AssetsManager::setSearchPath @ 0x18000214e\n; > cocos2d::extension::AssetsManager::setSearchPath @ 0x180002160\n; > <???> @ 0x18004b1f8\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 12:15:35 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180003300\npush    rdi                                                            ; +0x5, 0x180003305\nsub     rsp, 30h                                                       ; +0x6, 0x180003306\nmov     rdi, rdx                                                       ; +0xa, 0x18000330a\nmov     rbx, rcx                                                       ; +0xd, 0x18000330d\ncmp     rcx, rdx                                                       ; +0x10, 0x180003310\njz      short loc_180003377                                            ; +0x13, 0x180003313\nmov     rdx, [rcx+18h]                                                 ; +0x15, 0x180003315\ncmp     rdx, 0Fh                                                       ; +0x19, 0x180003319\njbe     short loc_18000334B                                            ; +0x1d, 0x18000331d\nmov     rcx, [rcx]                                                     ; +0x1f, 0x18000331f\ninc     rdx                                                            ; +0x22, 0x180003322\ncmp     rdx, 1000h                                                     ; +0x25, 0x180003325\njb      short loc_180003346                                            ; +0x2c, 0x18000332c\nmov     rax, [rcx-8]                                                   ; +0x2e, 0x18000332e\nadd     rdx, 27h ; '''                                                 ; +0x32, 0x180003332\nsub     rcx, rax                                                       ; +0x36, 0x180003336\nsub     rcx, 8                                                         ; +0x39, 0x180003339\ncmp     rcx, 1Fh                                                       ; +0x3d, 0x18000333d\nja      short loc_180003385                                            ; +0x41, 0x180003341\nmov     rcx, rax; Block                                                ; +0x43, 0x180003343\ncall    j_j_free                                                       ; +0x46, 0x180003346\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0x4b, 0x18000334b\nxor     eax, eax                                                       ; +0x53, 0x180003353\nmov     [rbx+10h], rax                                                 ; +0x55, 0x180003355\nmov     [rbx], al                                                      ; +0x59, 0x180003359\nmovups  xmm0, xmmword ptr [rdi]                                        ; +0x5b, 0x18000335b\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x5e, 0x18000335e\nmovups  xmm1, xmmword ptr [rdi+10h]                                    ; +0x61, 0x180003361\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x65, 0x180003365\nmov     [rdi+10h], rax                                                 ; +0x69, 0x180003369\nmov     qword ptr [rdi+18h], 0Fh                                       ; +0x6d, 0x18000336d\nmov     [rdi], al                                                      ; +0x75, 0x180003375\nmov     rax, rbx                                                       ; +0x77, 0x180003377\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7a, 0x18000337a\nadd     rsp, 30h                                                       ; +0x7f, 0x18000337f\npop     rdi                                                            ; +0x83, 0x180003383\nretn                                                                   ; +0x84, 0x180003384\nxor     eax, eax                                                       ; +0x85, 0x180003385\nxor     r9d, r9d; LineNo                                               ; +0x87, 0x180003387\nxor     r8d, r8d; FileName                                             ; +0x8a, 0x18000338a\nmov     [rsp+38h+Reserved], rax; Reserved                              ; +0x8d, 0x18000338d\nxor     edx, edx; FunctionName                                         ; +0x92, 0x180003392\nxor     ecx, ecx; Expression                                           ; +0x94, 0x180003394\ncall    cs:_invoke_watson                                              ; +0x96, 0x180003396\ndb 0CCh                                                                ; +0x9c, 0x18000339c", "xrefs": ["cocos2d::extension::AssetsManager::update @ 0x180001bb4", "cocos2d::extension::AssetsManager::setSearchPath @ 0x18000214e", "cocos2d::extension::AssetsManager::setSearchPath @ 0x180002160", "<???> @ 0x18004b1f8"], "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"}