{"type": "func", "start": 6442504832, "end": 6442504939, "name": "sub_18000D280", "pseudocode": "// \n// sub_18000D280 from 0x18000d280 to 0x18000d2eb (107 bytes)\n// \n// 26 xrefs:\n// > cocos2d::CCFileUtils::~CCFileUtils @ 0x18006d13f\n// > cocos2d::CCFileUtils::~CCFileUtils @ 0x18006d152\n// > sub_180072BD0 @ 0x180072bd6\n// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e0a27\n// > sub_1800E0A60 @ 0x1800e0a67\n// > unknown_libname_1 @ 0x1800e0a77\n// > sub_1800E0ED0 @ 0x1800e0eeb\n// > sub_1800E0F30 @ 0x1800e0f37\n// > sub_1800E0FA0 @ 0x1800e0fa7\n// > int `_wcstombs_l_helper @ 0x1800e1037\n// > sub_1800E1040 @ 0x1800e1047\n// > sub_1800E2800 @ 0x1800e280b\n// > sub_1800E2810 @ 0x1800e281b\n// > sub_1800E2C50 @ 0x1800e2c5b\n// > int `Concurrency::details::ScheduleGroupSegmentBase::~ScheduleGroupSegmentBase @ 0x1800e2c6b\n// > <???> @ 0x180131f2f\n// > <???> @ 0x180131f35\n// > <???> @ 0x180131f83\n// > <???> @ 0x180132e1b\n// > <???> @ 0x180132e21\n// > <???> @ 0x180132e6b\n// > <???> @ 0x1801331ef\n// > <???> @ 0x180133234\n// > <???> @ 0x180133270\n// > <???> @ 0x18013b05c\n// > <???> @ 0x1801adef4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_18000D280(__int64 *a1)\n{\n  __int64 v2; // rcx\n  _QWORD *v3; // rcx\n  __int64 result; // rax\n\n  v2 = *a1;\n  if ( v2 )\n  {\n    sub_18000CF70(v2, a1[1]);\n    v3 = (_QWORD *)*a1;\n    if ( ((a1[2] - *a1) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      v3 = (_QWORD *)*(v3 - 1);\n    }\n    j_j_free_0(v3);\n    result = 0;\n    *a1 = 0;\n    a1[1] = 0;\n    a1[2] = 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_18000D280 from 0x18000d280 to 0x18000d2eb (107 bytes)\n; \n; 26 xrefs:\n; > cocos2d::CCFileUtils::~CCFileUtils @ 0x18006d13f\n; > cocos2d::CCFileUtils::~CCFileUtils @ 0x18006d152\n; > sub_180072BD0 @ 0x180072bd6\n; > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e0a27\n; > sub_1800E0A60 @ 0x1800e0a67\n; > unknown_libname_1 @ 0x1800e0a77\n; > sub_1800E0ED0 @ 0x1800e0eeb\n; > sub_1800E0F30 @ 0x1800e0f37\n; > sub_1800E0FA0 @ 0x1800e0fa7\n; > int `_wcstombs_l_helper @ 0x1800e1037\n; > sub_1800E1040 @ 0x1800e1047\n; > sub_1800E2800 @ 0x1800e280b\n; > sub_1800E2810 @ 0x1800e281b\n; > sub_1800E2C50 @ 0x1800e2c5b\n; > int `Concurrency::details::ScheduleGroupSegmentBase::~ScheduleGroupSegmentBase @ 0x1800e2c6b\n; > <???> @ 0x180131f2f\n; > <???> @ 0x180131f35\n; > <???> @ 0x180131f83\n; > <???> @ 0x180132e1b\n; > <???> @ 0x180132e21\n; > <???> @ 0x180132e6b\n; > <???> @ 0x1801331ef\n; > <???> @ 0x180133234\n; > <???> @ 0x180133270\n; > <???> @ 0x18013b05c\n; > <???> @ 0x1801adef4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x18000d280\nsub     rsp, 20h                                                       ; +0x2, 0x18000d282\nmov     rbx, rcx                                                       ; +0x6, 0x18000d286\nmov     rcx, [rcx]                                                     ; +0x9, 0x18000d289\ntest    rcx, rcx                                                       ; +0xc, 0x18000d28c\njz      short loc_18000D2DE                                            ; +0xf, 0x18000d28f\nmov     rdx, [rbx+8]                                                   ; +0x11, 0x18000d291\nmov     r8, rbx                                                        ; +0x15, 0x18000d295\ncall    sub_18000CF70                                                  ; +0x18, 0x18000d298\nmov     rcx, [rbx]                                                     ; +0x1d, 0x18000d29d\nmov     rdx, [rbx+10h]                                                 ; +0x20, 0x18000d2a0\nsub     rdx, rcx                                                       ; +0x24, 0x18000d2a4\nand     rdx, 0FFFFFFFFFFFFFFE0h                                        ; +0x27, 0x18000d2a7\ncmp     rdx, 1000h                                                     ; +0x2b, 0x18000d2ab\njb      short loc_18000D2CC                                            ; +0x32, 0x18000d2b2\nmov     r8, [rcx-8]                                                    ; +0x34, 0x18000d2b4\nadd     rdx, 27h ; '''                                                 ; +0x38, 0x18000d2b8\nsub     rcx, r8                                                        ; +0x3c, 0x18000d2bc\nlea     rax, [rcx-8]                                                   ; +0x3f, 0x18000d2bf\ncmp     rax, 1Fh                                                       ; +0x43, 0x18000d2c3\nja      short loc_18000D2E4                                            ; +0x47, 0x18000d2c7\nmov     rcx, r8; Block                                                 ; +0x49, 0x18000d2c9\ncall    j_j_free_0                                                     ; +0x4c, 0x18000d2cc\nxor     eax, eax                                                       ; +0x51, 0x18000d2d1\nmov     [rbx], rax                                                     ; +0x53, 0x18000d2d3\nmov     [rbx+8], rax                                                   ; +0x56, 0x18000d2d6\nmov     [rbx+10h], rax                                                 ; +0x5a, 0x18000d2da\nadd     rsp, 20h                                                       ; +0x5e, 0x18000d2de\npop     rbx                                                            ; +0x62, 0x18000d2e2\nretn                                                                   ; +0x63, 0x18000d2e3\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x64, 0x18000d2e4\ndb 0CCh                                                                ; +0x6a, 0x18000d2ea", "xrefs": ["cocos2d::CCFileUtils::~CCFileUtils @ 0x18006d13f", "cocos2d::CCFileUtils::~CCFileUtils @ 0x18006d152", "sub_180072BD0 @ 0x180072bd6", "int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e0a27", "sub_1800E0A60 @ 0x1800e0a67", "unknown_libname_1 @ 0x1800e0a77", "sub_1800E0ED0 @ 0x1800e0eeb", "sub_1800E0F30 @ 0x1800e0f37", "sub_1800E0FA0 @ 0x1800e0fa7", "int `_wcstombs_l_helper @ 0x1800e1037", "sub_1800E1040 @ 0x1800e1047", "sub_1800E2800 @ 0x1800e280b", "sub_1800E2810 @ 0x1800e281b", "sub_1800E2C50 @ 0x1800e2c5b", "int `Concurrency::details::ScheduleGroupSegmentBase::~ScheduleGroupSegmentBase @ 0x1800e2c6b", "<???> @ 0x180131f2f", "<???> @ 0x180131f35", "<???> @ 0x180131f83", "<???> @ 0x180132e1b", "<???> @ 0x180132e21", "<???> @ 0x180132e6b", "<???> @ 0x1801331ef", "<???> @ 0x180133234", "<???> @ 0x180133270", "<???> @ 0x18013b05c", "<???> @ 0x1801adef4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}