{"type": "func", "start": 6442552112, "end": 6442552247, "name": "sub_180018B30", "pseudocode": "// \n// sub_180018B30 from 0x180018b30 to 0x180018bb7 (135 bytes)\n// \n// 3 xrefs:\n// > int `Concurrency::task_completion_event<std::pair<uchar,Concurrency::details::_CancellationTokenState *>>::set @ 0x180020da7\n// > <???> @ 0x180031883\n// > <???> @ 0x18004caa0\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:42 +0000\n// \n\nvoid __fastcall sub_180018B30(_QWORD *a1)\n{\n  _QWORD *v2; // rcx\n  __int64 v3; // rdx\n  __int64 i; // rax\n\n  v2 = (_QWORD *)a1[1];\n  if ( v2 )\n  {\n    v3 = a1[4];\n    for ( i = a1[3]; i != v3; i += 16 )\n    {\n      if ( *(_DWORD *)(i + 8) )\n        terminate();\n    }\n    if ( (unsigned __int64)(16LL * a1[2]) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      v2 = (_QWORD *)*(v2 - 1);\n    }\n    j_j_free(v2);\n  }\n}", "assembly": "; \n; sub_180018B30 from 0x180018b30 to 0x180018bb7 (135 bytes)\n; \n; 3 xrefs:\n; > int `Concurrency::task_completion_event<std::pair<uchar,Concurrency::details::_CancellationTokenState *>>::set @ 0x180020da7\n; > <???> @ 0x180031883\n; > <???> @ 0x18004caa0\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:42 +0000\n; \nsub     rsp, 38h                                                       ; +0x0, 0x180018b30\nmov     r8, rcx                                                        ; +0x4, 0x180018b34\nmov     rcx, [rcx+8]                                                   ; +0x7, 0x180018b37\ntest    rcx, rcx                                                       ; +0xb, 0x180018b3b\njz      short loc_180018B91                                            ; +0xe, 0x180018b3e\nmov     rdx, [r8+20h]                                                  ; +0x10, 0x180018b40\nmov     rax, [r8+18h]                                                  ; +0x14, 0x180018b44\ncmp     rax, rdx                                                       ; +0x18, 0x180018b48\njz      short loc_180018B5F                                            ; +0x1b, 0x180018b4b\nnop     dword ptr [rax]                                                ; +0x1d, 0x180018b4d\ncmp     dword ptr [rax+8], 0                                           ; +0x20, 0x180018b50\njnz     short loc_180018B96                                            ; +0x24, 0x180018b54\nadd     rax, 10h                                                       ; +0x26, 0x180018b56\ncmp     rax, rdx                                                       ; +0x2a, 0x180018b5a\njnz     short loc_180018B50                                            ; +0x2d, 0x180018b5d\nmov     rdx, [r8+10h]                                                  ; +0x2f, 0x180018b5f\nshl     rdx, 4                                                         ; +0x33, 0x180018b63\ncmp     rdx, 1000h                                                     ; +0x37, 0x180018b67\njb      short loc_180018B88                                            ; +0x3e, 0x180018b6e\nmov     rax, [rcx-8]                                                   ; +0x40, 0x180018b70\nadd     rdx, 27h ; '''                                                 ; +0x44, 0x180018b74\nsub     rcx, rax                                                       ; +0x48, 0x180018b78\nsub     rcx, 8                                                         ; +0x4b, 0x180018b7b\ncmp     rcx, 1Fh                                                       ; +0x4f, 0x180018b7f\nja      short loc_180018B9D                                            ; +0x53, 0x180018b83\nmov     rcx, rax; Block                                                ; +0x55, 0x180018b85\nadd     rsp, 38h                                                       ; +0x58, 0x180018b88\njmp     j_j_free                                                       ; +0x5c, 0x180018b8c\nadd     rsp, 38h                                                       ; +0x61, 0x180018b91\nretn                                                                   ; +0x65, 0x180018b95\ncall    cs:__imp_terminate                                             ; +0x66, 0x180018b96\ndb 0CCh                                                                ; +0x6c, 0x180018b9c\nxor     r9d, r9d; LineNo                                               ; +0x6d, 0x180018b9d\nmov     [rsp+38h+Reserved], 0; Reserved                                ; +0x70, 0x180018ba0\nxor     r8d, r8d; FileName                                             ; +0x79, 0x180018ba9\nxor     edx, edx; FunctionName                                         ; +0x7c, 0x180018bac\nxor     ecx, ecx; Expression                                           ; +0x7e, 0x180018bae\ncall    cs:_invoke_watson                                              ; +0x80, 0x180018bb0\ndb 0CCh                                                                ; +0x86, 0x180018bb6", "xrefs": ["int `Concurrency::task_completion_event<std::pair<uchar,Concurrency::details::_CancellationTokenState *>>::set @ 0x180020da7", "<???> @ 0x180031883", "<???> @ 0x18004caa0"], "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"}