{"type": "func", "start": 6442908560, "end": 6442908758, "name": "cocos2d::CCFileUtils::addSearchResolutionsOrder", "pseudocode": "// \n// cocos2d::CCFileUtils::addSearchResolutionsOrder from 0x18006fb90 to 0x18006fc56 (198 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1801069e0\n// > <???> @ 0x180107790\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be4e8\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:21:56 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCFileUtils::addSearchResolutionsOrder(cocos2d::CCFileUtils *this, const char *a2)\n{\n  size_t v4; // rax\n  void *v5; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v7; // [rsp+40h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v7 = 0;\n  v4 = strlen(a2);\n  sub_18000CEF0(Block, a2, v4);\n  sub_18006E8C0((__int64 *)this + 2, (__int128 *)Block);\n  if ( *((_QWORD *)&v7 + 1) > 0xFu )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v7 + 1) + 1LL) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v5);\n  }\n}", "assembly": "; \n; cocos2d::CCFileUtils::addSearchResolutionsOrder from 0x18006fb90 to 0x18006fc56 (198 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1801069e0\n; > <???> @ 0x180107790\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be4e8\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:21:56 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18006fb90\npush    rdi                                                            ; +0x5, 0x18006fb95\nsub     rsp, 60h                                                       ; +0x6, 0x18006fb96\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x18006fb9a\nxor     rax, rsp                                                       ; +0x11, 0x18006fba1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x18006fba4\nmov     rbx, rdx                                                       ; +0x19, 0x18006fba9\nmov     rdi, rcx                                                       ; +0x1c, 0x18006fbac\nxorps   xmm0, xmm0                                                     ; +0x1f, 0x18006fbaf\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x22, 0x18006fbb2\nxorps   xmm1, xmm1                                                     ; +0x27, 0x18006fbb7\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x2a, 0x18006fbba\nmov     rcx, rdx; Str                                                  ; +0x30, 0x18006fbc0\ncall    strlen                                                         ; +0x33, 0x18006fbc3\nmov     r8, rax                                                        ; +0x38, 0x18006fbc8\nmov     rdx, rbx                                                       ; +0x3b, 0x18006fbcb\nlea     rcx, [rsp+68h+Block]                                           ; +0x3e, 0x18006fbce\ncall    sub_18000CEF0                                                  ; +0x43, 0x18006fbd3\nnop                                                                    ; +0x48, 0x18006fbd8\nlea     rcx, [rdi+10h]                                                 ; +0x49, 0x18006fbd9\nlea     rdx, [rsp+68h+Block]                                           ; +0x4d, 0x18006fbdd\ncall    sub_18006E8C0                                                  ; +0x52, 0x18006fbe2\nnop                                                                    ; +0x57, 0x18006fbe7\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x58, 0x18006fbe8\ncmp     rdx, 0Fh                                                       ; +0x5d, 0x18006fbed\njbe     short loc_18006FC3B                                            ; +0x61, 0x18006fbf1\ninc     rdx                                                            ; +0x63, 0x18006fbf3\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x66, 0x18006fbf6\nmov     rax, rcx                                                       ; +0x6b, 0x18006fbfb\ncmp     rdx, 1000h                                                     ; +0x6e, 0x18006fbfe\njb      short loc_18006FC36                                            ; +0x75, 0x18006fc05\nadd     rdx, 27h ; '''                                                 ; +0x77, 0x18006fc07\nmov     rcx, [rcx-8]                                                   ; +0x7b, 0x18006fc0b\nsub     rax, rcx                                                       ; +0x7f, 0x18006fc0f\nsub     rax, 8                                                         ; +0x82, 0x18006fc12\ncmp     rax, 1Fh                                                       ; +0x86, 0x18006fc16\njbe     short loc_18006FC36                                            ; +0x8a, 0x18006fc1a\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x8c, 0x18006fc1c\nxor     r9d, r9d; LineNo                                               ; +0x95, 0x18006fc25\nxor     r8d, r8d; FileName                                             ; +0x98, 0x18006fc28\nxor     edx, edx; FunctionName                                         ; +0x9b, 0x18006fc2b\nxor     ecx, ecx; Expression                                           ; +0x9d, 0x18006fc2d\ncall    cs:_invoke_watson                                              ; +0x9f, 0x18006fc2f\nalign 2                                                                ; +0xa5, 0x18006fc35\ncall    j_j_free_0                                                     ; +0xa6, 0x18006fc36\nmov     rcx, [rsp+68h+var_18]                                          ; +0xab, 0x18006fc3b\nxor     rcx, rsp; StackCookie                                          ; +0xb0, 0x18006fc40\ncall    __security_check_cookie                                        ; +0xb3, 0x18006fc43\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xb8, 0x18006fc48\nadd     rsp, 60h                                                       ; +0xc0, 0x18006fc50\npop     rdi                                                            ; +0xc4, 0x18006fc54\nretn                                                                   ; +0xc5, 0x18006fc55", "xrefs": ["<???> @ 0x1801069e0", "<???> @ 0x180107790", "<???> @ 0x18014cf68", "<???> @ 0x1801be4e8"], "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"}