{"type": "func", "start": 5370303216, "end": 5370303437, "name": "EditorSFXManager::ensureLoaded", "pseudocode": "// \n// EditorSFXManager::ensureLoaded from 0x1401852f0 to 0x1401853cd (221 bytes)\n// \n// 4 xrefs:\n// > EditorSFXManager::encodeDataTo @ 0x14018abb9\n// > LevelEditorLayer::init @ 0x1403ed9d0\n// > LoadingLayer::loadAssets @ 0x14046a1e5\n// > <???> @ 0x140918ddc\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:27:38 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall EditorSFXManager::ensureLoaded(__int64 a1, __int64 a2, __int64 a3)\n{\n  __m128i si128; // xmm3\n  _OWORD *v4; // rax\n  __int128 v5; // xmm2\n  void *v6; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __m128i v8; // [rsp+40h] [rbp-28h]\n\n  if ( *(_QWORD *)(a1 + 248) )\n  {\n    *(_OWORD *)Block = 0;\n    si128 = _mm_load_si128((const __m128i *)&Size);\n    v8 = si128;\n    LOBYTE(Block[0]) = 0;\n    v4 = (_OWORD *)(a1 + 232);\n    if ( Block != (void **)(a1 + 232) )\n    {\n      v5 = *(_OWORD *)Block;\n      *(_OWORD *)Block = *v4;\n      v8 = *(__m128i *)(a1 + 248);\n      *v4 = v5;\n      *(__m128i *)(a1 + 248) = si128;\n    }\n    LOBYTE(a3) = 1;\n    EditorSFXManager::deserializeAll(a1, Block, a3);\n    if ( v8.m128i_i64[1] > 0xFuLL )\n    {\n      v6 = Block[0];\n      if ( (unsigned __int64)(v8.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v6 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v6);\n    }\n  }\n}", "assembly": "; \n; EditorSFXManager::ensureLoaded from 0x1401852f0 to 0x1401853cd (221 bytes)\n; \n; 4 xrefs:\n; > EditorSFXManager::encodeDataTo @ 0x14018abb9\n; > LevelEditorLayer::init @ 0x1403ed9d0\n; > LoadingLayer::loadAssets @ 0x14046a1e5\n; > <???> @ 0x140918ddc\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:27:38 +0000\n; \nsub     rsp, 68h                                                       ; +0x0, 0x1401852f0\nmov     rax, cs:__security_cookie                                      ; +0x4, 0x1401852f4\nxor     rax, rsp                                                       ; +0xb, 0x1401852fb\nmov     [rsp+68h+var_18], rax                                          ; +0xe, 0x1401852fe\ncmp     qword ptr [rcx+0F8h], 0                                        ; +0x13, 0x140185303\njz      loc_1401853BB                                                  ; +0x1b, 0x14018530b\nxorps   xmm0, xmm0                                                     ; +0x21, 0x140185311\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x24, 0x140185314\nmovdqa  xmm3, cs:Size                                                  ; +0x29, 0x140185319\nmovdqu  [rsp+68h+var_28], xmm3                                         ; +0x31, 0x140185321\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0x37, 0x140185327\nlea     rax, [rcx+0E8h]                                                ; +0x3c, 0x14018532c\nlea     rdx, [rsp+68h+Block]                                           ; +0x43, 0x140185333\ncmp     rdx, rax                                                       ; +0x48, 0x140185338\njz      short loc_14018535A                                            ; +0x4b, 0x14018533b\nmovups  xmm2, xmmword ptr [rsp+68h+Block]                              ; +0x4d, 0x14018533d\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x52, 0x140185342\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x55, 0x140185345\nmovups  xmm1, xmmword ptr [rax+10h]                                    ; +0x5a, 0x14018534a\nmovups  [rsp+68h+var_28], xmm1                                         ; +0x5e, 0x14018534e\nmovups  xmmword ptr [rax], xmm2                                        ; +0x63, 0x140185353\nmovups  xmmword ptr [rax+10h], xmm3                                    ; +0x66, 0x140185356\nmov     r8b, 1                                                         ; +0x6a, 0x14018535a\nlea     rdx, [rsp+68h+Block]                                           ; +0x6d, 0x14018535d\ncall    EditorSFXManager__deserializeAll                               ; +0x72, 0x140185362\nnop                                                                    ; +0x77, 0x140185367\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x78, 0x140185368\ncmp     rdx, 0Fh                                                       ; +0x7d, 0x14018536d\njbe     short loc_1401853BB                                            ; +0x81, 0x140185371\ninc     rdx                                                            ; +0x83, 0x140185373\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x86, 0x140185376\nmov     rax, rcx                                                       ; +0x8b, 0x14018537b\ncmp     rdx, 1000h                                                     ; +0x8e, 0x14018537e\njb      short loc_1401853B6                                            ; +0x95, 0x140185385\nadd     rdx, 27h ; '''                                                 ; +0x97, 0x140185387\nmov     rcx, [rcx-8]                                                   ; +0x9b, 0x14018538b\nsub     rax, rcx                                                       ; +0x9f, 0x14018538f\nsub     rax, 8                                                         ; +0xa2, 0x140185392\ncmp     rax, 1Fh                                                       ; +0xa6, 0x140185396\njbe     short loc_1401853B6                                            ; +0xaa, 0x14018539a\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xac, 0x14018539c\nxor     r9d, r9d; LineNo                                               ; +0xb5, 0x1401853a5\nxor     r8d, r8d; FileName                                             ; +0xb8, 0x1401853a8\nxor     edx, edx; FunctionName                                         ; +0xbb, 0x1401853ab\nxor     ecx, ecx; Expression                                           ; +0xbd, 0x1401853ad\ncall    cs:_invoke_watson                                              ; +0xbf, 0x1401853af\nalign 2                                                                ; +0xc5, 0x1401853b5\ncall    j_j_free                                                       ; +0xc6, 0x1401853b6\nmov     rcx, [rsp+68h+var_18]                                          ; +0xcb, 0x1401853bb\nxor     rcx, rsp; StackCookie                                          ; +0xd0, 0x1401853c0\ncall    __security_check_cookie                                        ; +0xd3, 0x1401853c3\nadd     rsp, 68h                                                       ; +0xd8, 0x1401853c8\nretn                                                                   ; +0xdc, 0x1401853cc", "xrefs": ["EditorSFXManager::encodeDataTo @ 0x14018abb9", "LevelEditorLayer::init @ 0x1403ed9d0", "LoadingLayer::loadAssets @ 0x14046a1e5", "<???> @ 0x140918ddc"], "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"}