{"type": "func", "start": 4302240688, "end": 4302241238, "name": "EditorUI::getRandomStartKey", "pseudocode": "// \n// EditorUI::getRandomStartKey from 0x1006efbb0 to 0x1006efdd6 (550 bytes)\n// \n// 2 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x10001554f\n// > SetupSmartBlockLayer::onCreate @ 0x1004e1660\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:35:51 +0000\n// \n\nvoid __fastcall EditorUI::getRandomStartKey(int a1)\n{\n  if ( a1 > 1860 )\n  {\n    switch ( a1 )\n    {\n      case 2838:\n        qword_100BE6530 = 214013 * qword_100BE6530 + 2531011;\n        break;\n      case 2703:\n        qword_100BE6530 = 214013 * qword_100BE6530 + 2531011;\n        break;\n      case 1861:\n        qword_100BE6530 = 214013 * qword_100BE6530 + 2531011;\n        break;\n    }\n  }\n  else\n  {\n    switch ( a1 )\n    {\n      case 869:\n        qword_100BE6530 = 214013 * qword_100BE6530 + 2531011;\n        break;\n      case 1431:\n        qword_100BE6530 = 214013 * qword_100BE6530 + 2531011;\n        break;\n      case 1461:\n        qword_100BE6530 = 214013 * qword_100BE6530 + 2531011;\n        break;\n    }\n  }\n}", "assembly": "; \n; EditorUI::getRandomStartKey from 0x1006efbb0 to 0x1006efdd6 (550 bytes)\n; \n; 2 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x10001554f\n; > SetupSmartBlockLayer::onCreate @ 0x1004e1660\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:35:51 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006efbb0\nmov     rbp, rsp                                                       ; +0x1, 0x1006efbb1\ncmp     edi, 744h                                                      ; +0x4, 0x1006efbb4\njg      short loc_1006EFC31                                            ; +0xa, 0x1006efbba\ncmp     edi, 365h                                                      ; +0xc, 0x1006efbbc\njz      loc_1006EFCA6                                                  ; +0x12, 0x1006efbc2\ncmp     edi, 597h                                                      ; +0x18, 0x1006efbc8\njz      loc_1006EFD37                                                  ; +0x1e, 0x1006efbce\ncmp     edi, 5B5h                                                      ; +0x24, 0x1006efbd4\njnz     loc_1006EFDD4                                                  ; +0x2a, 0x1006efbda\nimul    rax, cs:qword_100BE6530, 343FDh                                ; +0x30, 0x1006efbe0\nadd     rax, 269EC3h                                                   ; +0x3b, 0x1006efbeb\nmov     cs:qword_100BE6530, rax                                        ; +0x41, 0x1006efbf1\nshr     eax, 10h                                                       ; +0x48, 0x1006efbf8\nand     eax, 7FFFh                                                     ; +0x4b, 0x1006efbfb\ncvtsi2ss xmm0, eax                                                     ; +0x50, 0x1006efc00\ndivss   xmm0, cs:dword_100A04C30                                       ; +0x54, 0x1006efc04\nmulss   xmm0, cs:dword_100A03D68                                       ; +0x5c, 0x1006efc0c\nroundss xmm0, xmm0, 9                                                  ; +0x64, 0x1006efc14\ncvttss2si eax, xmm0                                                    ; +0x6a, 0x1006efc1a\nlea     ecx, [rax+5B5h]                                                ; +0x6e, 0x1006efc1e\ncmp     eax, 3                                                         ; +0x74, 0x1006efc24\nmov     eax, 5B8h                                                      ; +0x77, 0x1006efc27\ncmovb   eax, ecx                                                       ; +0x7c, 0x1006efc2c\npop     rbp                                                            ; +0x7f, 0x1006efc2f\nretn                                                                   ; +0x80, 0x1006efc30\ncmp     edi, 0B16h                                                     ; +0x81, 0x1006efc31\njz      loc_1006EFCED                                                  ; +0x87, 0x1006efc37\ncmp     edi, 0A8Fh                                                     ; +0x8d, 0x1006efc3d\njz      loc_1006EFD8F                                                  ; +0x93, 0x1006efc43\ncmp     edi, 745h                                                      ; +0x99, 0x1006efc49\njnz     loc_1006EFDD4                                                  ; +0x9f, 0x1006efc4f\nimul    rax, cs:qword_100BE6530, 343FDh                                ; +0xa5, 0x1006efc55\nadd     rax, 269EC3h                                                   ; +0xb0, 0x1006efc60\nmov     cs:qword_100BE6530, rax                                        ; +0xb6, 0x1006efc66\nshr     eax, 10h                                                       ; +0xbd, 0x1006efc6d\nand     eax, 7FFFh                                                     ; +0xc0, 0x1006efc70\ncvtsi2ss xmm0, eax                                                     ; +0xc5, 0x1006efc75\ndivss   xmm0, cs:dword_100A04C30                                       ; +0xc9, 0x1006efc79\nmulss   xmm0, cs:dword_100A03D68                                       ; +0xd1, 0x1006efc81\nroundss xmm0, xmm0, 9                                                  ; +0xd9, 0x1006efc89\ncvttss2si eax, xmm0                                                    ; +0xdf, 0x1006efc8f\nlea     ecx, [rax+745h]                                                ; +0xe3, 0x1006efc93\ncmp     eax, 3                                                         ; +0xe9, 0x1006efc99\nmov     eax, 748h                                                      ; +0xec, 0x1006efc9c\ncmovb   eax, ecx                                                       ; +0xf1, 0x1006efca1\npop     rbp                                                            ; +0xf4, 0x1006efca4\nretn                                                                   ; +0xf5, 0x1006efca5\nimul    rax, cs:qword_100BE6530, 343FDh                                ; +0xf6, 0x1006efca6\nadd     rax, 269EC3h                                                   ; +0x101, 0x1006efcb1\nmov     cs:qword_100BE6530, rax                                        ; +0x107, 0x1006efcb7\nshr     eax, 10h                                                       ; +0x10e, 0x1006efcbe\nand     eax, 7FFFh                                                     ; +0x111, 0x1006efcc1\ncvtsi2ss xmm0, eax                                                     ; +0x116, 0x1006efcc6\ndivss   xmm0, cs:dword_100A04C30                                       ; +0x11a, 0x1006efcca\naddss   xmm0, xmm0                                                     ; +0x122, 0x1006efcd2\nroundss xmm0, xmm0, 9                                                  ; +0x126, 0x1006efcd6\ncvttss2si eax, xmm0                                                    ; +0x12c, 0x1006efcdc\ncmp     eax, 1                                                         ; +0x130, 0x1006efce0\nmov     eax, 366h                                                      ; +0x133, 0x1006efce3\njmp     loc_1006EFDD1                                                  ; +0x138, 0x1006efce8\nimul    rax, cs:qword_100BE6530, 343FDh                                ; +0x13d, 0x1006efced\nadd     rax, 269EC3h                                                   ; +0x148, 0x1006efcf8\nmov     cs:qword_100BE6530, rax                                        ; +0x14e, 0x1006efcfe\nshr     eax, 10h                                                       ; +0x155, 0x1006efd05\nand     eax, 7FFFh                                                     ; +0x158, 0x1006efd08\ncvtsi2ss xmm0, eax                                                     ; +0x15d, 0x1006efd0d\ndivss   xmm0, cs:dword_100A04C30                                       ; +0x161, 0x1006efd11\naddss   xmm0, xmm0                                                     ; +0x169, 0x1006efd19\nroundss xmm0, xmm0, 9                                                  ; +0x16d, 0x1006efd1d\ncvttss2si eax, xmm0                                                    ; +0x173, 0x1006efd23\nxor     ecx, ecx                                                       ; +0x177, 0x1006efd27\ntest    eax, eax                                                       ; +0x179, 0x1006efd29\nsetnz   cl                                                             ; +0x17b, 0x1006efd2b\nlea     eax, ds:0B16h[rcx*2]                                           ; +0x17e, 0x1006efd2e\npop     rbp                                                            ; +0x185, 0x1006efd35\nretn                                                                   ; +0x186, 0x1006efd36\nimul    rax, cs:qword_100BE6530, 343FDh                                ; +0x187, 0x1006efd37\nadd     rax, 269EC3h                                                   ; +0x192, 0x1006efd42\nmov     cs:qword_100BE6530, rax                                        ; +0x198, 0x1006efd48\nshr     eax, 10h                                                       ; +0x19f, 0x1006efd4f\nand     eax, 7FFFh                                                     ; +0x1a2, 0x1006efd52\ncvtsi2ss xmm0, eax                                                     ; +0x1a7, 0x1006efd57\ndivss   xmm0, cs:dword_100A04C30                                       ; +0x1ab, 0x1006efd5b\nmulss   xmm0, cs:flt_100A03B60                                         ; +0x1b3, 0x1006efd63\nroundss xmm0, xmm0, 9                                                  ; +0x1bb, 0x1006efd6b\ncvttss2si eax, xmm0                                                    ; +0x1c1, 0x1006efd71\nxor     ecx, ecx                                                       ; +0x1c5, 0x1006efd75\ncmp     eax, 1                                                         ; +0x1c7, 0x1006efd77\nsetz    cl                                                             ; +0x1ca, 0x1006efd7a\nxor     ecx, 599h                                                      ; +0x1cd, 0x1006efd7d\ntest    eax, eax                                                       ; +0x1d3, 0x1006efd83\nmov     eax, 597h                                                      ; +0x1d5, 0x1006efd85\ncmovnz  eax, ecx                                                       ; +0x1da, 0x1006efd8a\npop     rbp                                                            ; +0x1dd, 0x1006efd8d\nretn                                                                   ; +0x1de, 0x1006efd8e\nimul    rax, cs:qword_100BE6530, 343FDh                                ; +0x1df, 0x1006efd8f\nadd     rax, 269EC3h                                                   ; +0x1ea, 0x1006efd9a\nmov     cs:qword_100BE6530, rax                                        ; +0x1f0, 0x1006efda0\nshr     eax, 10h                                                       ; +0x1f7, 0x1006efda7\nand     eax, 7FFFh                                                     ; +0x1fa, 0x1006efdaa\ncvtsi2ss xmm0, eax                                                     ; +0x1ff, 0x1006efdaf\ndivss   xmm0, cs:dword_100A04C30                                       ; +0x203, 0x1006efdb3\naddss   xmm0, xmm0                                                     ; +0x20b, 0x1006efdbb\nroundss xmm0, xmm0, 9                                                  ; +0x20f, 0x1006efdbf\ncvttss2si eax, xmm0                                                    ; +0x215, 0x1006efdc5\ncmp     eax, 1                                                         ; +0x219, 0x1006efdc9\nmov     eax, 0A90h                                                     ; +0x21c, 0x1006efdcc\nsbb     eax, 0                                                         ; +0x221, 0x1006efdd1\npop     rbp                                                            ; +0x224, 0x1006efdd4\nretn                                                                   ; +0x225, 0x1006efdd5", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x10001554f", "SetupSmartBlockLayer::onCreate @ 0x1004e1660"], "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"}