{"type": "func", "start": 5373329024, "end": 5373329560, "name": "LevelTools::verifyLevelIntegrity", "pseudocode": "// \n// LevelTools::verifyLevelIntegrity from 0x140467e80 to 0x140468098 (536 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::init @ 0x140504384\n// > <???> @ 0x140927efc\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:35 +0000\n// \n\nbool __fastcall LevelTools::verifyLevelIntegrity(__int64 a1, int a2)\n{\n  int v2; // ebx\n  bool result; // al\n\n  v2 = *(_DWORD *)(a1 + 16);\n  switch ( a2 )\n  {\n    case 1:\n      sub_14003D310(a1);\n      result = v2 == 41941;\n      break;\n    case 2:\n      sub_14003D310(a1);\n      result = v2 == 27194;\n      break;\n    case 3:\n      sub_14003D310(a1);\n      result = v2 == 27485;\n      break;\n    case 4:\n      sub_14003D310(a1);\n      result = v2 == 28387;\n      break;\n    case 5:\n      sub_14003D310(a1);\n      result = v2 == 39306;\n      break;\n    case 6:\n      sub_14003D310(a1);\n      result = v2 == 32534;\n      break;\n    case 7:\n      sub_14003D310(a1);\n      result = v2 == 52577;\n      break;\n    case 8:\n      sub_14003D310(a1);\n      result = v2 == 68387;\n      break;\n    case 9:\n      sub_14003D310(a1);\n      result = v2 == 73863;\n      break;\n    case 10:\n      sub_14003D310(a1);\n      result = v2 == 95360;\n      break;\n    case 11:\n      sub_14003D310(a1);\n      result = v2 == 96482;\n      break;\n    case 12:\n      sub_14003D310(a1);\n      result = v2 == 91628;\n      break;\n    case 13:\n      sub_14003D310(a1);\n      result = v2 == 119893;\n      break;\n    case 14:\n      sub_14003D310(a1);\n      result = v2 == 162731;\n      break;\n    case 15:\n      sub_14003D310(a1);\n      result = v2 == 207047;\n      break;\n    case 16:\n      sub_14003D310(a1);\n      result = v2 == 238937;\n      break;\n    case 17:\n      sub_14003D310(a1);\n      result = v2 == 290335;\n      break;\n    case 18:\n      sub_14003D310(a1);\n      result = v2 == 370132;\n      break;\n    case 19:\n      sub_14003D310(a1);\n      result = v2 == 635171;\n      break;\n    case 20:\n      sub_14003D310(a1);\n      result = v2 == 739125;\n      break;\n    default:\n      sub_14003D310(a1);\n      result = 1;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; LevelTools::verifyLevelIntegrity from 0x140467e80 to 0x140468098 (536 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::init @ 0x140504384\n; > <???> @ 0x140927efc\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:35 +0000\n; \npush    rbx                                                            ; +0x0, 0x140467e80\nsub     rsp, 20h                                                       ; +0x2, 0x140467e82\nmov     ebx, [rcx+10h]                                                 ; +0x6, 0x140467e86\ndec     edx; switch 20 cases                                           ; +0x9, 0x140467e89\ncmp     edx, 13h                                                       ; +0xb, 0x140467e8b\nja      def_140467EA9; jumptable 0000000140467EA9 default case         ; +0xe, 0x140467e8e\nmovsxd  rax, edx                                                       ; +0x14, 0x140467e94\nlea     r8, cs:140000000h                                              ; +0x17, 0x140467e97\nmov     edx, ds:(jpt_140467EA9 - 140000000h)[r8+rax*4]                 ; +0x1e, 0x140467e9e\nadd     rdx, r8                                                        ; +0x26, 0x140467ea6\njmp     rdx; switch jump                                               ; +0x29, 0x140467ea9\ncall    sub_14003D310; jumptable 0000000140467EA9 case 1               ; +0x2b, 0x140467eab\ncmp     ebx, 0A3D5h                                                    ; +0x30, 0x140467eb0\nsetz    al                                                             ; +0x36, 0x140467eb6\nadd     rsp, 20h                                                       ; +0x39, 0x140467eb9\npop     rbx                                                            ; +0x3d, 0x140467ebd\nretn                                                                   ; +0x3e, 0x140467ebe\ncall    sub_14003D310; jumptable 0000000140467EA9 case 2               ; +0x3f, 0x140467ebf\ncmp     ebx, 6A3Ah                                                     ; +0x44, 0x140467ec4\nsetz    al                                                             ; +0x4a, 0x140467eca\nadd     rsp, 20h                                                       ; +0x4d, 0x140467ecd\npop     rbx                                                            ; +0x51, 0x140467ed1\nretn                                                                   ; +0x52, 0x140467ed2\ncall    sub_14003D310; jumptable 0000000140467EA9 case 3               ; +0x53, 0x140467ed3\ncmp     ebx, 6B5Dh                                                     ; +0x58, 0x140467ed8\nsetz    al                                                             ; +0x5e, 0x140467ede\nadd     rsp, 20h                                                       ; +0x61, 0x140467ee1\npop     rbx                                                            ; +0x65, 0x140467ee5\nretn                                                                   ; +0x66, 0x140467ee6\ncall    sub_14003D310; jumptable 0000000140467EA9 case 4               ; +0x67, 0x140467ee7\ncmp     ebx, 6EE3h                                                     ; +0x6c, 0x140467eec\nsetz    al                                                             ; +0x72, 0x140467ef2\nadd     rsp, 20h                                                       ; +0x75, 0x140467ef5\npop     rbx                                                            ; +0x79, 0x140467ef9\nretn                                                                   ; +0x7a, 0x140467efa\ncall    sub_14003D310; jumptable 0000000140467EA9 case 5               ; +0x7b, 0x140467efb\ncmp     ebx, 998Ah                                                     ; +0x80, 0x140467f00\nsetz    al                                                             ; +0x86, 0x140467f06\nadd     rsp, 20h                                                       ; +0x89, 0x140467f09\npop     rbx                                                            ; +0x8d, 0x140467f0d\nretn                                                                   ; +0x8e, 0x140467f0e\ncall    sub_14003D310; jumptable 0000000140467EA9 case 6               ; +0x8f, 0x140467f0f\ncmp     ebx, 7F16h                                                     ; +0x94, 0x140467f14\nsetz    al                                                             ; +0x9a, 0x140467f1a\nadd     rsp, 20h                                                       ; +0x9d, 0x140467f1d\npop     rbx                                                            ; +0xa1, 0x140467f21\nretn                                                                   ; +0xa2, 0x140467f22\ncall    sub_14003D310; jumptable 0000000140467EA9 case 7               ; +0xa3, 0x140467f23\ncmp     ebx, 0CD61h                                                    ; +0xa8, 0x140467f28\nsetz    al                                                             ; +0xae, 0x140467f2e\nadd     rsp, 20h                                                       ; +0xb1, 0x140467f31\npop     rbx                                                            ; +0xb5, 0x140467f35\nretn                                                                   ; +0xb6, 0x140467f36\ncall    sub_14003D310; jumptable 0000000140467EA9 case 8               ; +0xb7, 0x140467f37\ncmp     ebx, 10B23h                                                    ; +0xbc, 0x140467f3c\nsetz    al                                                             ; +0xc2, 0x140467f42\nadd     rsp, 20h                                                       ; +0xc5, 0x140467f45\npop     rbx                                                            ; +0xc9, 0x140467f49\nretn                                                                   ; +0xca, 0x140467f4a\ncall    sub_14003D310; jumptable 0000000140467EA9 case 9               ; +0xcb, 0x140467f4b\ncmp     ebx, 12087h                                                    ; +0xd0, 0x140467f50\nsetz    al                                                             ; +0xd6, 0x140467f56\nadd     rsp, 20h                                                       ; +0xd9, 0x140467f59\npop     rbx                                                            ; +0xdd, 0x140467f5d\nretn                                                                   ; +0xde, 0x140467f5e\ncall    sub_14003D310; jumptable 0000000140467EA9 case 10              ; +0xdf, 0x140467f5f\ncmp     ebx, 17480h                                                    ; +0xe4, 0x140467f64\nsetz    al                                                             ; +0xea, 0x140467f6a\nadd     rsp, 20h                                                       ; +0xed, 0x140467f6d\npop     rbx                                                            ; +0xf1, 0x140467f71\nretn                                                                   ; +0xf2, 0x140467f72\ncall    sub_14003D310; jumptable 0000000140467EA9 case 11              ; +0xf3, 0x140467f73\ncmp     ebx, 178E2h                                                    ; +0xf8, 0x140467f78\nsetz    al                                                             ; +0xfe, 0x140467f7e\nadd     rsp, 20h                                                       ; +0x101, 0x140467f81\npop     rbx                                                            ; +0x105, 0x140467f85\nretn                                                                   ; +0x106, 0x140467f86\ncall    sub_14003D310; jumptable 0000000140467EA9 case 12              ; +0x107, 0x140467f87\ncmp     ebx, 165ECh                                                    ; +0x10c, 0x140467f8c\nsetz    al                                                             ; +0x112, 0x140467f92\nadd     rsp, 20h                                                       ; +0x115, 0x140467f95\npop     rbx                                                            ; +0x119, 0x140467f99\nretn                                                                   ; +0x11a, 0x140467f9a\ncall    sub_14003D310; jumptable 0000000140467EA9 case 13              ; +0x11b, 0x140467f9b\ncmp     ebx, 1D455h                                                    ; +0x120, 0x140467fa0\nsetz    al                                                             ; +0x126, 0x140467fa6\nadd     rsp, 20h                                                       ; +0x129, 0x140467fa9\npop     rbx                                                            ; +0x12d, 0x140467fad\nretn                                                                   ; +0x12e, 0x140467fae\ncall    sub_14003D310; jumptable 0000000140467EA9 case 14              ; +0x12f, 0x140467faf\ncmp     ebx, 27BABh                                                    ; +0x134, 0x140467fb4\nsetz    al                                                             ; +0x13a, 0x140467fba\nadd     rsp, 20h                                                       ; +0x13d, 0x140467fbd\npop     rbx                                                            ; +0x141, 0x140467fc1\nretn                                                                   ; +0x142, 0x140467fc2\ncall    sub_14003D310; jumptable 0000000140467EA9 case 15              ; +0x143, 0x140467fc3\ncmp     ebx, 328C7h                                                    ; +0x148, 0x140467fc8\nsetz    al                                                             ; +0x14e, 0x140467fce\nadd     rsp, 20h                                                       ; +0x151, 0x140467fd1\npop     rbx                                                            ; +0x155, 0x140467fd5\nretn                                                                   ; +0x156, 0x140467fd6\ncall    sub_14003D310; jumptable 0000000140467EA9 case 16              ; +0x157, 0x140467fd7\ncmp     ebx, 3A559h                                                    ; +0x15c, 0x140467fdc\nsetz    al                                                             ; +0x162, 0x140467fe2\nadd     rsp, 20h                                                       ; +0x165, 0x140467fe5\npop     rbx                                                            ; +0x169, 0x140467fe9\nretn                                                                   ; +0x16a, 0x140467fea\ncall    sub_14003D310; jumptable 0000000140467EA9 case 17              ; +0x16b, 0x140467feb\ncmp     ebx, 46E1Fh                                                    ; +0x170, 0x140467ff0\nsetz    al                                                             ; +0x176, 0x140467ff6\nadd     rsp, 20h                                                       ; +0x179, 0x140467ff9\npop     rbx                                                            ; +0x17d, 0x140467ffd\nretn                                                                   ; +0x17e, 0x140467ffe\ncall    sub_14003D310; jumptable 0000000140467EA9 case 18              ; +0x17f, 0x140467fff\ncmp     ebx, 5A5D4h                                                    ; +0x184, 0x140468004\nsetz    al                                                             ; +0x18a, 0x14046800a\nadd     rsp, 20h                                                       ; +0x18d, 0x14046800d\npop     rbx                                                            ; +0x191, 0x140468011\nretn                                                                   ; +0x192, 0x140468012\ncall    sub_14003D310; jumptable 0000000140467EA9 case 19              ; +0x193, 0x140468013\ncmp     ebx, 9B123h                                                    ; +0x198, 0x140468018\nsetz    al                                                             ; +0x19e, 0x14046801e\nadd     rsp, 20h                                                       ; +0x1a1, 0x140468021\npop     rbx                                                            ; +0x1a5, 0x140468025\nretn                                                                   ; +0x1a6, 0x140468026\ncall    sub_14003D310; jumptable 0000000140467EA9 case 20              ; +0x1a7, 0x140468027\ncmp     ebx, 0B4735h                                                   ; +0x1ac, 0x14046802c\nsetz    al                                                             ; +0x1b2, 0x140468032\nadd     rsp, 20h                                                       ; +0x1b5, 0x140468035\npop     rbx                                                            ; +0x1b9, 0x140468039\nretn                                                                   ; +0x1ba, 0x14046803a\ncall    sub_14003D310; jumptable 0000000140467EA9 default case         ; +0x1bb, 0x14046803b\nmov     al, 1                                                          ; +0x1c0, 0x140468040\nadd     rsp, 20h                                                       ; +0x1c2, 0x140468042\npop     rbx                                                            ; +0x1c6, 0x140468046\nretn                                                                   ; +0x1c7, 0x140468047\ndd offset loc_140467EAB - 140000000h; jump table for switch statement  ; +0x1c8, 0x140468048", "xrefs": ["PlayLayer::init @ 0x140504384", "<???> @ 0x140927efc"], "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"}