{"type": "func", "start": 6442457536, "end": 6442457838, "name": "sub_1800019C0", "pseudocode": "// \n// sub_1800019C0 from 0x1800019c0 to 0x180001aee (302 bytes)\n// \n// 4 xrefs:\n// > cocos2d::extension::AssetsManager::update @ 0x180001bd0\n// > <???> @ 0x18002f554\n// > <???> @ 0x18002f564\n// > <???> @ 0x18004b084\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:34 +0000\n// \n\n__int64 __fastcall sub_1800019C0(cocos2d::extension::AssetsManager *this)\n{\n  char *v1; // rdx\n  char *v3; // rcx\n  size_t v4; // r8\n  __int64 v5; // rbx\n  _QWORD *v6; // rax\n  void *v7; // rcx\n  __int64 v9; // [rsp+30h] [rbp+8h]\n  __int64 v10; // [rsp+30h] [rbp+8h]\n\n  v1 = (char *)this + 40;\n  if ( *((_QWORD *)this + 8) > 0xFu )\n    v1 = *((char **)this + 5);\n  v3 = (char *)this + 136;\n  if ( *((_QWORD *)this + 20) > 0xFu )\n    v3 = *((char **)this + 17);\n  v4 = *((_QWORD *)this + 19);\n  if ( v4 != *((_QWORD *)this + 7) || v4 && memcmp(v3, v1, v4) )\n  {\n    if ( !cocos2d::extension::AssetsManager::downLoad(this) )\n      goto LABEL_13;\n    v9 = sub_18001F040(0x10u);\n    *(_DWORD *)v9 = 1;\n    *(_QWORD *)(v9 + 8) = this;\n    sub_180002890(*((_QWORD *)this + 22), v9);\n  }\n  if ( cocos2d::extension::AssetsManager::uncompress(this) )\n  {\n    v10 = sub_18001F040(0x10u);\n    *(_DWORD *)v10 = 0;\n    *(_QWORD *)(v10 + 8) = this;\n    sub_180002890(*((_QWORD *)this + 22), v10);\n  }\n  else\n  {\n    v5 = sub_18001F040(0x10u);\n    *(_QWORD *)(v5 + 8) = 0;\n    *(_DWORD *)v5 = 3;\n    v6 = (_QWORD *)sub_18001F040(0x10u);\n    *v6 = 3;\n    v6[1] = this;\n    *(_QWORD *)(v5 + 8) = v6;\n    sub_180002890(*((_QWORD *)this + 22), v5);\n  }\nLABEL_13:\n  v7 = *((void **)this + 23);\n  if ( v7 )\n  {\n    j_j_free(v7);\n    *((_QWORD *)this + 23) = 0;\n  }\n  return 0;\n}", "assembly": "; \n; sub_1800019C0 from 0x1800019c0 to 0x180001aee (302 bytes)\n; \n; 4 xrefs:\n; > cocos2d::extension::AssetsManager::update @ 0x180001bd0\n; > <???> @ 0x18002f554\n; > <???> @ 0x18002f564\n; > <???> @ 0x18004b084\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:34 +0000\n; \nmov     [rsp+arg_10], rsi                                              ; +0x0, 0x1800019c0\npush    rdi                                                            ; +0x5, 0x1800019c5\nsub     rsp, 20h                                                       ; +0x6, 0x1800019c6\ncmp     qword ptr [rcx+40h], 0Fh                                       ; +0xa, 0x1800019ca\nlea     rdx, [rcx+28h]                                                 ; +0xf, 0x1800019cf\nmov     rdi, rcx                                                       ; +0x13, 0x1800019d3\njbe     short loc_1800019DC                                            ; +0x16, 0x1800019d6\nmov     rdx, [rcx+28h]; Buf2                                           ; +0x18, 0x1800019d8\nadd     rcx, 88h                                                       ; +0x1c, 0x1800019dc\ncmp     qword ptr [rdi+0A0h], 0Fh                                      ; +0x23, 0x1800019e3\njbe     short loc_1800019F4                                            ; +0x2b, 0x1800019eb\nmov     rcx, [rdi+88h]; Buf1                                           ; +0x2d, 0x1800019ed\nmov     r8, [rdi+98h]; Size                                            ; +0x34, 0x1800019f4\nxor     esi, esi                                                       ; +0x3b, 0x1800019fb\ncmp     r8, [rdi+38h]                                                  ; +0x3d, 0x1800019fd\njnz     short loc_180001A11                                            ; +0x41, 0x180001a01\ntest    r8, r8                                                         ; +0x43, 0x180001a03\njz      short loc_180001A49                                            ; +0x46, 0x180001a06\ncall    memcmp                                                         ; +0x48, 0x180001a08\ntest    eax, eax                                                       ; +0x4d, 0x180001a0d\njz      short loc_180001A49                                            ; +0x4f, 0x180001a0f\nmov     rcx, rdi; this                                                 ; +0x51, 0x180001a11\ncall    ?downLoad@AssetsManager@extension@cocos2d@@IEAA_NXZ; cocos2d::extension::AssetsManager::downLoad(void) ; +0x54, 0x180001a14\ntest    al, al                                                         ; +0x59, 0x180001a19\njz      loc_180001AC4                                                  ; +0x5b, 0x180001a1b\nmov     ecx, 10h; Size                                                 ; +0x61, 0x180001a21\ncall    sub_18001F040                                                  ; +0x66, 0x180001a26\nmov     rdx, rax                                                       ; +0x6b, 0x180001a2b\nmov     [rsp+28h+arg_0], rax                                           ; +0x6e, 0x180001a2e\nmov     dword ptr [rax], 1                                             ; +0x73, 0x180001a33\nmov     [rax+8], rdi                                                   ; +0x79, 0x180001a39\nmov     rcx, [rdi+0B0h]                                                ; +0x7d, 0x180001a3d\ncall    sub_180002890                                                  ; +0x84, 0x180001a44\nmov     rcx, rdi; this                                                 ; +0x89, 0x180001a49\ncall    ?uncompress@AssetsManager@extension@cocos2d@@IEAA_NXZ; cocos2d::extension::AssetsManager::uncompress(void) ; +0x8c, 0x180001a4c\nmov     ecx, 10h; Size                                                 ; +0x91, 0x180001a51\ntest    al, al                                                         ; +0x96, 0x180001a56\njnz     short loc_180001AA5                                            ; +0x98, 0x180001a58\nmov     [rsp+28h+arg_8], rbx                                           ; +0x9a, 0x180001a5a\ncall    sub_18001F040                                                  ; +0x9f, 0x180001a5f\nmov     ecx, 10h; Size                                                 ; +0xa4, 0x180001a64\nmov     [rsp+28h+arg_0], rax                                           ; +0xa9, 0x180001a69\nmov     rbx, rax                                                       ; +0xae, 0x180001a6e\nmov     [rax+8], rsi                                                   ; +0xb1, 0x180001a71\nmov     dword ptr [rax], 3                                             ; +0xb5, 0x180001a75\ncall    sub_18001F040                                                  ; +0xbb, 0x180001a7b\nmov     rdx, rbx                                                       ; +0xc0, 0x180001a80\nmov     qword ptr [rax], 3                                             ; +0xc3, 0x180001a83\nmov     [rax+8], rdi                                                   ; +0xca, 0x180001a8a\nmov     [rbx+8], rax                                                   ; +0xce, 0x180001a8e\nmov     rcx, [rdi+0B0h]                                                ; +0xd2, 0x180001a92\ncall    sub_180002890                                                  ; +0xd9, 0x180001a99\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xde, 0x180001a9e\njmp     short loc_180001AC4                                            ; +0xe3, 0x180001aa3\ncall    sub_18001F040                                                  ; +0xe5, 0x180001aa5\nmov     rdx, rax                                                       ; +0xea, 0x180001aaa\nmov     [rsp+28h+arg_0], rax                                           ; +0xed, 0x180001aad\nmov     [rax], esi                                                     ; +0xf2, 0x180001ab2\nmov     [rax+8], rdi                                                   ; +0xf4, 0x180001ab4\nmov     rcx, [rdi+0B0h]                                                ; +0xf8, 0x180001ab8\ncall    sub_180002890                                                  ; +0xff, 0x180001abf\nmov     rcx, [rdi+0B8h]; Block                                         ; +0x104, 0x180001ac4\ntest    rcx, rcx                                                       ; +0x10b, 0x180001acb\njz      short loc_180001AE1                                            ; +0x10e, 0x180001ace\nmov     edx, 10h                                                       ; +0x110, 0x180001ad0\ncall    j_j_free                                                       ; +0x115, 0x180001ad5\nmov     [rdi+0B8h], rsi                                                ; +0x11a, 0x180001ada\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x121, 0x180001ae1\nxor     eax, eax                                                       ; +0x126, 0x180001ae6\nadd     rsp, 20h                                                       ; +0x128, 0x180001ae8\npop     rdi                                                            ; +0x12c, 0x180001aec\nretn                                                                   ; +0x12d, 0x180001aed", "xrefs": ["cocos2d::extension::AssetsManager::update @ 0x180001bd0", "<???> @ 0x18002f554", "<???> @ 0x18002f564", "<???> @ 0x18004b084"], "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"}