{"type": "func", "start": 6442463568, "end": 6442463725, "name": "sub_180003150", "pseudocode": "// \n// sub_180003150 from 0x180003150 to 0x1800031ed (157 bytes)\n// \n// 9 xrefs:\n// > cocos2d::extension::AssetsManager::setSearchPath @ 0x18000219c\n// > sub_180003120 @ 0x180003120\n// > sub_1800031F0 @ 0x1800031f6\n// > cocos2d::extension::CCHttpRequest::~CCHttpRequest @ 0x18001cdcc\n// > cocos2d::extension::CCHttpRequest::setHeaders @ 0x18001d015\n// > sub_18001D240 @ 0x18001d2c0\n// > <???> @ 0x18002f850\n// > <???> @ 0x18002f860\n// > <???> @ 0x18004b1bc\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\nvoid __fastcall sub_180003150(_QWORD *a1)\n{\n  _QWORD *v1; // rbx\n  _QWORD *i; // rdi\n  _QWORD *v4; // rcx\n\n  v1 = (_QWORD *)*a1;\n  if ( *a1 )\n  {\n    for ( i = (_QWORD *)a1[1]; v1 != i; v1 += 4 )\n      sub_180003700(v1);\n    v4 = (_QWORD *)*a1;\n    if ( ((a1[2] - *a1) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      v4 = (_QWORD *)*(v4 - 1);\n    }\n    j_j_free(v4);\n    *a1 = 0;\n    a1[1] = 0;\n    a1[2] = 0;\n  }\n}", "assembly": "; \n; sub_180003150 from 0x180003150 to 0x1800031ed (157 bytes)\n; \n; 9 xrefs:\n; > cocos2d::extension::AssetsManager::setSearchPath @ 0x18000219c\n; > sub_180003120 @ 0x180003120\n; > sub_1800031F0 @ 0x1800031f6\n; > cocos2d::extension::CCHttpRequest::~CCHttpRequest @ 0x18001cdcc\n; > cocos2d::extension::CCHttpRequest::setHeaders @ 0x18001d015\n; > sub_18001D240 @ 0x18001d2c0\n; > <???> @ 0x18002f850\n; > <???> @ 0x18002f860\n; > <???> @ 0x18004b1bc\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_8], rbx                                               ; +0x0, 0x180003150\npush    rsi                                                            ; +0x5, 0x180003155\nsub     rsp, 30h                                                       ; +0x6, 0x180003156\nmov     rbx, [rcx]                                                     ; +0xa, 0x18000315a\nmov     rsi, rcx                                                       ; +0xd, 0x18000315d\ntest    rbx, rbx                                                       ; +0x10, 0x180003160\njz      short loc_1800031CA                                            ; +0x13, 0x180003163\nmov     [rsp+38h+arg_0], rdi                                           ; +0x15, 0x180003165\nmov     rdi, [rcx+8]                                                   ; +0x1a, 0x18000316a\ncmp     rbx, rdi                                                       ; +0x1e, 0x18000316e\njz      short loc_180003184                                            ; +0x21, 0x180003171\nmov     rcx, rbx                                                       ; +0x23, 0x180003173\ncall    sub_180003700                                                  ; +0x26, 0x180003176\nadd     rbx, 20h ; ' '                                                 ; +0x2b, 0x18000317b\ncmp     rbx, rdi                                                       ; +0x2f, 0x18000317f\njnz     short loc_180003173                                            ; +0x32, 0x180003182\nmov     rcx, [rsi]                                                     ; +0x34, 0x180003184\nmov     rdx, [rsi+10h]                                                 ; +0x37, 0x180003187\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x3b, 0x18000318b\nsub     rdx, rcx                                                       ; +0x40, 0x180003190\nand     rdx, 0FFFFFFFFFFFFFFE0h                                        ; +0x43, 0x180003193\ncmp     rdx, 1000h                                                     ; +0x47, 0x180003197\njb      short loc_1800031B8                                            ; +0x4e, 0x18000319e\nmov     rax, [rcx-8]                                                   ; +0x50, 0x1800031a0\nadd     rdx, 27h ; '''                                                 ; +0x54, 0x1800031a4\nsub     rcx, rax                                                       ; +0x58, 0x1800031a8\nsub     rcx, 8                                                         ; +0x5b, 0x1800031ab\ncmp     rcx, 1Fh                                                       ; +0x5f, 0x1800031af\nja      short loc_1800031D5                                            ; +0x63, 0x1800031b3\nmov     rcx, rax; Block                                                ; +0x65, 0x1800031b5\ncall    j_j_free                                                       ; +0x68, 0x1800031b8\nxor     eax, eax                                                       ; +0x6d, 0x1800031bd\nmov     [rsi], rax                                                     ; +0x6f, 0x1800031bf\nmov     [rsi+8], rax                                                   ; +0x72, 0x1800031c2\nmov     [rsi+10h], rax                                                 ; +0x76, 0x1800031c6\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x7a, 0x1800031ca\nadd     rsp, 30h                                                       ; +0x7f, 0x1800031cf\npop     rsi                                                            ; +0x83, 0x1800031d3\nretn                                                                   ; +0x84, 0x1800031d4\nxor     eax, eax                                                       ; +0x85, 0x1800031d5\nxor     r9d, r9d; LineNo                                               ; +0x87, 0x1800031d7\nxor     r8d, r8d; FileName                                             ; +0x8a, 0x1800031da\nmov     [rsp+38h+Reserved], rax; Reserved                              ; +0x8d, 0x1800031dd\nxor     edx, edx; FunctionName                                         ; +0x92, 0x1800031e2\nxor     ecx, ecx; Expression                                           ; +0x94, 0x1800031e4\ncall    cs:_invoke_watson                                              ; +0x96, 0x1800031e6\ndb 0CCh                                                                ; +0x9c, 0x1800031ec", "xrefs": ["cocos2d::extension::AssetsManager::setSearchPath @ 0x18000219c", "sub_180003120 @ 0x180003120", "sub_1800031F0 @ 0x1800031f6", "cocos2d::extension::CCHttpRequest::~CCHttpRequest @ 0x18001cdcc", "cocos2d::extension::CCHttpRequest::setHeaders @ 0x18001d015", "sub_18001D240 @ 0x18001d2c0", "<???> @ 0x18002f850", "<???> @ 0x18002f860", "<???> @ 0x18004b1bc"], "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"}