{"type": "func", "start": 5370268416, "end": 5370268556, "name": "EditLevelLayer::onSetFolder", "pseudocode": "// \n// EditLevelLayer::onSetFolder from 0x14017cb00 to 0x14017cb8c (140 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::init @ 0x140179583\n// > <???> @ 0x1409187c4\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:35 +0000\n// \n\nvoid __fastcall EditLevelLayer::onSetFolder(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rcx\n  _QWORD *v4; // rax\n  __int64 v5; // rcx\n  _QWORD v6[5]; // [rsp+20h] [rbp-28h] BYREF\n\n  v3 = *(_QWORD *)(a1 + 472);\n  if ( v3 )\n  {\n    v6[2] = 10;\n    v6[1] = 29285;\n    LOBYTE(a2) = 1;\n    v6[3] = 15;\n    v6[0] = 0x646C6F4620746553LL;\n    v4 = (_QWORD *)SetFolderPopup::create(*(unsigned int *)(v3 + 988), a2, v6);\n    v5 = a1 + 440;\n    if ( !a1 )\n      v5 = 0;\n    v4[87] = v5;\n    (*(void (__fastcall **)(_QWORD *))(*v4 + 1064LL))(v4);\n  }\n}", "assembly": "; \n; EditLevelLayer::onSetFolder from 0x14017cb00 to 0x14017cb8c (140 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::init @ 0x140179583\n; > <???> @ 0x1409187c4\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:35 +0000\n; \npush    rbx                                                            ; +0x0, 0x14017cb00\nsub     rsp, 40h                                                       ; +0x2, 0x14017cb02\nmov     rbx, rcx                                                       ; +0x6, 0x14017cb06\nmov     rcx, [rcx+1D8h]                                                ; +0x9, 0x14017cb09\ntest    rcx, rcx                                                       ; +0x10, 0x14017cb10\njz      short loc_14017CB86                                            ; +0x13, 0x14017cb13\nmovzx   eax, cs:word_140748140                                         ; +0x15, 0x14017cb15\nlea     r8, [rsp+48h+var_28]                                           ; +0x1c, 0x14017cb1c\nxorps   xmm0, xmm0                                                     ; +0x21, 0x14017cb21\nmov     [rsp+48h+var_18], 0Ah                                          ; +0x24, 0x14017cb24\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x2d, 0x14017cb2d\nmov     dl, 1                                                          ; +0x32, 0x14017cb32\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x34, 0x14017cb34\nmovsd   xmm0, cs:qword_140748138                                       ; +0x3d, 0x14017cb3d\nmovsd   qword ptr [rsp+48h+var_28], xmm0                               ; +0x45, 0x14017cb45\nmov     word ptr [rsp+48h+var_28+8], ax                                ; +0x4b, 0x14017cb4b\nmov     byte ptr [rsp+48h+var_28+0Ah], 0                               ; +0x50, 0x14017cb50\nmov     ecx, [rcx+3DCh]                                                ; +0x55, 0x14017cb55\ncall    SetFolderPopup__create                                         ; +0x5b, 0x14017cb5b\nxor     edx, edx                                                       ; +0x60, 0x14017cb60\nlea     rcx, [rbx+1B8h]                                                ; +0x62, 0x14017cb62\ntest    rbx, rbx                                                       ; +0x69, 0x14017cb69\ncmovz   rcx, rdx                                                       ; +0x6c, 0x14017cb6c\nmov     [rax+2B8h], rcx                                                ; +0x70, 0x14017cb70\nmov     rcx, [rax]                                                     ; +0x77, 0x14017cb77\nmov     rdx, [rcx+428h]                                                ; +0x7a, 0x14017cb7a\nmov     rcx, rax                                                       ; +0x81, 0x14017cb81\ncall    rdx                                                            ; +0x84, 0x14017cb84\nadd     rsp, 40h                                                       ; +0x86, 0x14017cb86\npop     rbx                                                            ; +0x8a, 0x14017cb8a\nretn                                                                   ; +0x8b, 0x14017cb8b", "xrefs": ["EditLevelLayer::init @ 0x140179583", "<???> @ 0x1409187c4"], "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"}