{"type": "func", "start": 5372817888, "end": 5372817997, "name": "LevelBrowserLayer::updateBackgroundColor", "pseudocode": "// \n// LevelBrowserLayer::updateBackgroundColor from 0x1403eb1e0 to 0x1403eb24d (109 bytes)\n// \n// 3 xrefs:\n// > LevelBrowserLayer::init @ 0x1403e23d9\n// > LevelBrowserLayer::onSafeMode @ 0x1403eb1c6\n// > <???> @ 0x1409251a8\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:31:45 +0000\n// \n\n__int64 __fastcall LevelBrowserLayer::updateBackgroundColor(__int64 a1)\n{\n  __int64 v1; // rdx\n  __int64 v2; // rcx\n  int v3; // ecx\n  int v4; // ecx\n  __int64 result; // rax\n  _BYTE v6[3]; // [rsp+30h] [rbp+8h] BYREF\n\n  v1 = *(_QWORD *)(a1 + 800);\n  if ( v1 )\n  {\n    v2 = *(_QWORD *)(a1 + 664);\n    *(_WORD *)v6 = 26112;\n    v6[2] = -1;\n    if ( v2 )\n    {\n      v3 = *(_DWORD *)(v2 + 320) - 32;\n      if ( v3 )\n      {\n        v4 = v3 - 1;\n        if ( v4 )\n        {\n          if ( v4 == 1 )\n          {\n            *(_WORD *)v6 = 6243;\n            v6[2] = 126;\n          }\n        }\n        else\n        {\n          memset(v6, 51, sizeof(v6));\n        }\n      }\n    }\n    return (**(__int64 (__fastcall ***)(__int64, _BYTE *))(v1 + 320))(v1 + 320, v6);\n  }\n  return result;\n}", "assembly": "; \n; LevelBrowserLayer::updateBackgroundColor from 0x1403eb1e0 to 0x1403eb24d (109 bytes)\n; \n; 3 xrefs:\n; > LevelBrowserLayer::init @ 0x1403e23d9\n; > LevelBrowserLayer::onSafeMode @ 0x1403eb1c6\n; > <???> @ 0x1409251a8\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:31:45 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x1403eb1e0\nmov     rdx, [rcx+320h]                                                ; +0x4, 0x1403eb1e4\ntest    rdx, rdx                                                       ; +0xb, 0x1403eb1eb\njz      short loc_1403EB248                                            ; +0xe, 0x1403eb1ee\nmov     rcx, [rcx+298h]                                                ; +0x10, 0x1403eb1f0\nmov     [rsp+28h+arg_0], 6600h                                         ; +0x17, 0x1403eb1f7\nmov     [rsp+28h+arg_2], 0FFh                                          ; +0x1e, 0x1403eb1fe\ntest    rcx, rcx                                                       ; +0x23, 0x1403eb203\njz      short loc_1403EB237                                            ; +0x26, 0x1403eb206\nmov     ecx, [rcx+140h]                                                ; +0x28, 0x1403eb208\nsub     ecx, 20h ; ' '                                                 ; +0x2e, 0x1403eb20e\njz      short loc_1403EB237                                            ; +0x31, 0x1403eb211\nsub     ecx, 1                                                         ; +0x33, 0x1403eb213\njz      short loc_1403EB22B                                            ; +0x36, 0x1403eb216\ncmp     ecx, 1                                                         ; +0x38, 0x1403eb218\njnz     short loc_1403EB237                                            ; +0x3b, 0x1403eb21b\nmov     [rsp+28h+arg_0], 1863h                                         ; +0x3d, 0x1403eb21d\nmov     [rsp+28h+arg_2], 7Eh ; '~'                                     ; +0x44, 0x1403eb224\njmp     short loc_1403EB237                                            ; +0x49, 0x1403eb229\nmov     [rsp+28h+arg_0], 3333h                                         ; +0x4b, 0x1403eb22b\nmov     [rsp+28h+arg_2], 33h ; '3'                                     ; +0x52, 0x1403eb232\nlea     rcx, [rdx+140h]                                                ; +0x57, 0x1403eb237\nmov     rax, [rcx]                                                     ; +0x5e, 0x1403eb23e\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x61, 0x1403eb241\ncall    qword ptr [rax]                                                ; +0x66, 0x1403eb246\nadd     rsp, 28h                                                       ; +0x68, 0x1403eb248\nretn                                                                   ; +0x6c, 0x1403eb24c", "xrefs": ["LevelBrowserLayer::init @ 0x1403e23d9", "LevelBrowserLayer::onSafeMode @ 0x1403eb1c6", "<???> @ 0x1409251a8"], "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"}