{"type": "func", "start": 5372959648, "end": 5372960040, "name": "LevelSettingsObject::getIDNames", "pseudocode": "// \n// LevelSettingsObject::getIDNames from 0x14040dba0 to 0x14040dd28 (392 bytes)\n// \n// 13 xrefs:\n// > IDNameBrowserPopup::rebuildList @ 0x1403c2bce\n// > IDNameInput::collectMatches @ 0x1403ca1dc\n// > LevelEditorLayer::getNextFreeGroupID @ 0x1403f7dca\n// > LevelEditorLayer::getNextFreeItemID @ 0x1403f804c\n// > LevelEditorLayer::getNextFreeBlockID @ 0x1403f828c\n// > LevelEditorLayer::getNextFreeTimerID @ 0x1403f84bc\n// > LevelEditorLayer::getNextFreeControlID @ 0x1403f86ec\n// > LevelEditorLayer::getNextFreeEnterChannel @ 0x1403f8ddb\n// > LevelEditorLayer::getNextFreeAreaEffectID @ 0x1403f900a\n// > LevelEditorLayer::getNextFreeGradientID @ 0x1403f977c\n// > LevelSettingsObject::findIDByName @ 0x14040ddc2\n// > LevelSettingsObject::objectFromDict @ 0x140411f56\n// > <???> @ 0x140925d6c\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:32:01 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nint *__fastcall LevelSettingsObject::getIDNames(_QWORD *a1, int a2)\n{\n  __int64 v4; // rbx\n  _QWORD *v5; // rax\n  __int64 v6; // r8\n  __int64 v7; // rax\n  __int64 v8; // rdx\n  int *result; // rax\n\n  v4 = 0;\n  if ( dword_14090D554 > *(_DWORD *)(*(_QWORD *)NtCurrentTeb()->ThreadLocalStoragePointer + 4LL) )\n  {\n    sub_140677B5C(&dword_14090D554);\n    if ( dword_14090D554 == -1 )\n    {\n      dword_14090D510 = 0;\n      qword_14090D518 = 0;\n      qword_14090D520 = 0;\n      v5 = operator new(0x38u);\n      *v5 = v5;\n      v5[1] = v5;\n      qword_14090D518 = (__int64)v5;\n      qword_14090D528 = 0;\n      xmmword_14090D530 = 0;\n      qword_14090D540 = 7;\n      qword_14090D548 = 8;\n      dword_14090D510 = 1065353216;\n      sub_14003F200((__int64)&qword_14090D528, 0x10u, (unsigned __int64)v5);\n      atexit(sub_1406CD1D0);\n      Init_thread_footer(&dword_14090D554);\n    }\n  }\n  v6 = a1[68];\n  v7 = *(_QWORD *)(v6\n                 + 16\n                 * (a1[71]\n                  & (0x100000001B3LL\n                   * (HIBYTE(a2)\n                    ^ (0x100000001B3LL\n                     * (BYTE2(a2)\n                      ^ (0x100000001B3LL\n                       * (BYTE1(a2) ^ (0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)))))))))\n                 + 8);\n  v8 = a1[66];\n  if ( v7 != v8 )\n  {\n    if ( a2 == *(_DWORD *)(v7 + 16) )\n    {\nLABEL_8:\n      v4 = v7;\n    }\n    else\n    {\n      while ( v7 != *(_QWORD *)(v6\n                              + 16\n                              * (a1[71]\n                               & (0x100000001B3LL\n                                * (HIBYTE(a2)\n                                 ^ (0x100000001B3LL\n                                  * (BYTE2(a2)\n                                   ^ (0x100000001B3LL\n                                    * (BYTE1(a2) ^ (0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL)))))))))) )\n      {\n        v7 = *(_QWORD *)(v7 + 8);\n        if ( a2 == *(_DWORD *)(v7 + 16) )\n          goto LABEL_8;\n      }\n    }\n  }\n  if ( !v4 )\n    v4 = a1[66];\n  result = (int *)(v4 + 24);\n  if ( v4 == v8 )\n    return &dword_14090D510;\n  return result;\n}", "assembly": "; \n; LevelSettingsObject::getIDNames from 0x14040dba0 to 0x14040dd28 (392 bytes)\n; \n; 13 xrefs:\n; > IDNameBrowserPopup::rebuildList @ 0x1403c2bce\n; > IDNameInput::collectMatches @ 0x1403ca1dc\n; > LevelEditorLayer::getNextFreeGroupID @ 0x1403f7dca\n; > LevelEditorLayer::getNextFreeItemID @ 0x1403f804c\n; > LevelEditorLayer::getNextFreeBlockID @ 0x1403f828c\n; > LevelEditorLayer::getNextFreeTimerID @ 0x1403f84bc\n; > LevelEditorLayer::getNextFreeControlID @ 0x1403f86ec\n; > LevelEditorLayer::getNextFreeEnterChannel @ 0x1403f8ddb\n; > LevelEditorLayer::getNextFreeAreaEffectID @ 0x1403f900a\n; > LevelEditorLayer::getNextFreeGradientID @ 0x1403f977c\n; > LevelSettingsObject::findIDByName @ 0x14040ddc2\n; > LevelSettingsObject::objectFromDict @ 0x140411f56\n; > <???> @ 0x140925d6c\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:32:01 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14040dba0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14040dba5\nmov     [rsp+arg_8], edx                                               ; +0xa, 0x14040dbaa\npush    rdi                                                            ; +0xe, 0x14040dbae\nsub     rsp, 20h                                                       ; +0xf, 0x14040dbaf\nmov     edi, edx                                                       ; +0x13, 0x14040dbb3\nmov     rsi, rcx                                                       ; +0x15, 0x14040dbb5\nmov     ecx, 4                                                         ; +0x18, 0x14040dbb8\nmov     rax, gs:58h                                                    ; +0x1d, 0x14040dbbd\nmov     rax, [rax]                                                     ; +0x26, 0x14040dbc6\nxor     ebx, ebx                                                       ; +0x29, 0x14040dbc9\nmov     eax, [rcx+rax]                                                 ; +0x2b, 0x14040dbcb\ncmp     cs:dword_14090D554, eax                                        ; +0x2e, 0x14040dbce\njle     loc_14040DC7F                                                  ; +0x34, 0x14040dbd4\nlea     rcx, dword_14090D554                                           ; +0x3a, 0x14040dbda\ncall    sub_140677B5C                                                  ; +0x41, 0x14040dbe1\ncmp     cs:dword_14090D554, 0FFFFFFFFh                                 ; +0x46, 0x14040dbe6\njnz     loc_14040DC7F                                                  ; +0x4d, 0x14040dbed\nmov     cs:dword_14090D510, ebx                                        ; +0x53, 0x14040dbf3\nmov     cs:qword_14090D518, rbx                                        ; +0x59, 0x14040dbf9\nmov     cs:qword_14090D520, rbx                                        ; +0x60, 0x14040dc00\nmov     ecx, 38h ; '8'; Size                                           ; +0x67, 0x14040dc07\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6c, 0x14040dc0c\nmov     [rax], rax                                                     ; +0x71, 0x14040dc11\nmov     [rax+8], rax                                                   ; +0x74, 0x14040dc14\nmov     cs:qword_14090D518, rax                                        ; +0x78, 0x14040dc18\nmov     cs:qword_14090D528, rbx                                        ; +0x7f, 0x14040dc1f\nxorps   xmm0, xmm0                                                     ; +0x86, 0x14040dc26\nmovdqa  cs:xmmword_14090D530, xmm0                                     ; +0x89, 0x14040dc29\nmov     cs:qword_14090D540, 7                                          ; +0x91, 0x14040dc31\nmov     cs:qword_14090D548, 8                                          ; +0x9c, 0x14040dc3c\nmov     cs:dword_14090D510, 3F800000h                                  ; +0xa7, 0x14040dc47\nmov     r8, rax                                                        ; +0xb1, 0x14040dc51\nmov     edx, 10h                                                       ; +0xb4, 0x14040dc54\nlea     rcx, qword_14090D528                                           ; +0xb9, 0x14040dc59\ncall    sub_14003F200                                                  ; +0xc0, 0x14040dc60\nnop                                                                    ; +0xc5, 0x14040dc65\nlea     rcx, sub_1406CD1D0; void (__cdecl *)()                         ; +0xc6, 0x14040dc66\ncall    atexit                                                         ; +0xcd, 0x14040dc6d\nnop                                                                    ; +0xd2, 0x14040dc72\nlea     rcx, dword_14090D554                                           ; +0xd3, 0x14040dc73\ncall    _Init_thread_footer                                            ; +0xda, 0x14040dc7a\nmovzx   ecx, dil                                                       ; +0xdf, 0x14040dc7f\nmov     rax, 0CBF29CE484222325h                                        ; +0xe3, 0x14040dc83\nxor     rcx, rax                                                       ; +0xed, 0x14040dc8d\nmov     rdx, 100000001B3h                                              ; +0xf0, 0x14040dc90\nimul    rcx, rdx                                                       ; +0xfa, 0x14040dc9a\nmovzx   eax, byte ptr [rsp+28h+arg_8+1]                                ; +0xfe, 0x14040dc9e\nxor     rcx, rax                                                       ; +0x103, 0x14040dca3\nimul    rcx, rdx                                                       ; +0x106, 0x14040dca6\nmovzx   eax, byte ptr [rsp+28h+arg_8+2]                                ; +0x10a, 0x14040dcaa\nxor     rcx, rax                                                       ; +0x10f, 0x14040dcaf\nimul    rcx, rdx                                                       ; +0x112, 0x14040dcb2\nmovzx   eax, byte ptr [rsp+28h+arg_8+3]                                ; +0x116, 0x14040dcb6\nxor     rcx, rax                                                       ; +0x11b, 0x14040dcbb\nimul    rcx, rdx                                                       ; +0x11e, 0x14040dcbe\nand     rcx, [rsi+238h]                                                ; +0x122, 0x14040dcc2\nadd     rcx, rcx                                                       ; +0x129, 0x14040dcc9\nmov     r8, [rsi+220h]                                                 ; +0x12c, 0x14040dccc\nmov     rax, [r8+rcx*8+8]                                              ; +0x133, 0x14040dcd3\nmov     rdx, [rsi+210h]                                                ; +0x138, 0x14040dcd8\ncmp     rax, rdx                                                       ; +0x13f, 0x14040dcdf\njz      short loc_14040DD01                                            ; +0x142, 0x14040dce2\nmov     rcx, [r8+rcx*8]                                                ; +0x144, 0x14040dce4\ncmp     edi, [rax+10h]                                                 ; +0x148, 0x14040dce8\njz      short loc_14040DCFE                                            ; +0x14b, 0x14040dceb\nnop     dword ptr [rax]                                                ; +0x14d, 0x14040dced\ncmp     rax, rcx                                                       ; +0x150, 0x14040dcf0\njz      short loc_14040DD01                                            ; +0x153, 0x14040dcf3\nmov     rax, [rax+8]                                                   ; +0x155, 0x14040dcf5\ncmp     edi, [rax+10h]                                                 ; +0x159, 0x14040dcf9\njnz     short loc_14040DCF0                                            ; +0x15c, 0x14040dcfc\nmov     rbx, rax                                                       ; +0x15e, 0x14040dcfe\ntest    rbx, rbx                                                       ; +0x161, 0x14040dd01\ncmovz   rbx, rdx                                                       ; +0x164, 0x14040dd04\ncmp     rbx, rdx                                                       ; +0x168, 0x14040dd08\nlea     rax, [rbx+18h]                                                 ; +0x16b, 0x14040dd0b\njnz     short loc_14040DD18                                            ; +0x16f, 0x14040dd0f\nlea     rax, dword_14090D510                                           ; +0x171, 0x14040dd11\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x178, 0x14040dd18\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x17d, 0x14040dd1d\nadd     rsp, 20h                                                       ; +0x182, 0x14040dd22\npop     rdi                                                            ; +0x186, 0x14040dd26\nretn                                                                   ; +0x187, 0x14040dd27", "xrefs": ["IDNameBrowserPopup::rebuildList @ 0x1403c2bce", "IDNameInput::collectMatches @ 0x1403ca1dc", "LevelEditorLayer::getNextFreeGroupID @ 0x1403f7dca", "LevelEditorLayer::getNextFreeItemID @ 0x1403f804c", "LevelEditorLayer::getNextFreeBlockID @ 0x1403f828c", "LevelEditorLayer::getNextFreeTimerID @ 0x1403f84bc", "LevelEditorLayer::getNextFreeControlID @ 0x1403f86ec", "LevelEditorLayer::getNextFreeEnterChannel @ 0x1403f8ddb", "LevelEditorLayer::getNextFreeAreaEffectID @ 0x1403f900a", "LevelEditorLayer::getNextFreeGradientID @ 0x1403f977c", "LevelSettingsObject::findIDByName @ 0x14040ddc2", "LevelSettingsObject::objectFromDict @ 0x140411f56", "<???> @ 0x140925d6c"], "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"}