{"type": "func", "start": 5372040128, "end": 5372040664, "name": "LevelTools::verifyLevelIntegrity", "pseudocode": "// \n// LevelTools::verifyLevelIntegrity from 0x14032d3c0 to 0x14032d5d8 (536 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::init @ 0x1403a65c8\n// > <???> @ 0x1406d4ea4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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_14003A830(a1);\n      result = v2 == 41941;\n      break;\n    case 2:\n      sub_14003A830(a1);\n      result = v2 == 27194;\n      break;\n    case 3:\n      sub_14003A830(a1);\n      result = v2 == 27485;\n      break;\n    case 4:\n      sub_14003A830(a1);\n      result = v2 == 28387;\n      break;\n    case 5:\n      sub_14003A830(a1);\n      result = v2 == 39306;\n      break;\n    case 6:\n      sub_14003A830(a1);\n      result = v2 == 32534;\n      break;\n    case 7:\n      sub_14003A830(a1);\n      result = v2 == 52577;\n      break;\n    case 8:\n      sub_14003A830(a1);\n      result = v2 == 68387;\n      break;\n    case 9:\n      sub_14003A830(a1);\n      result = v2 == 73863;\n      break;\n    case 10:\n      sub_14003A830(a1);\n      result = v2 == 95360;\n      break;\n    case 11:\n      sub_14003A830(a1);\n      result = v2 == 96482;\n      break;\n    case 12:\n      sub_14003A830(a1);\n      result = v2 == 91628;\n      break;\n    case 13:\n      sub_14003A830(a1);\n      result = v2 == 119893;\n      break;\n    case 14:\n      sub_14003A830(a1);\n      result = v2 == 162731;\n      break;\n    case 15:\n      sub_14003A830(a1);\n      result = v2 == 207047;\n      break;\n    case 16:\n      sub_14003A830(a1);\n      result = v2 == 238937;\n      break;\n    case 17:\n      sub_14003A830(a1);\n      result = v2 == 290335;\n      break;\n    case 18:\n      sub_14003A830(a1);\n      result = v2 == 370132;\n      break;\n    case 19:\n      sub_14003A830(a1);\n      result = v2 == 635171;\n      break;\n    case 20:\n      sub_14003A830(a1);\n      result = v2 == 739125;\n      break;\n    default:\n      sub_14003A830(a1);\n      result = 1;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; LevelTools::verifyLevelIntegrity from 0x14032d3c0 to 0x14032d5d8 (536 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::init @ 0x1403a65c8\n; > <???> @ 0x1406d4ea4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x14032d3c0\nsub     rsp, 20h                                                       ; +0x2, 0x14032d3c2\nmov     ebx, [rcx+10h]                                                 ; +0x6, 0x14032d3c6\ndec     edx; switch 20 cases                                           ; +0x9, 0x14032d3c9\ncmp     edx, 13h                                                       ; +0xb, 0x14032d3cb\nja      def_14032D3E9; jumptable 000000014032D3E9 default case         ; +0xe, 0x14032d3ce\nmovsxd  rax, edx                                                       ; +0x14, 0x14032d3d4\nlea     r8, cs:140000000h                                              ; +0x17, 0x14032d3d7\nmov     edx, ds:(jpt_14032D3E9 - 140000000h)[r8+rax*4]                 ; +0x1e, 0x14032d3de\nadd     rdx, r8                                                        ; +0x26, 0x14032d3e6\njmp     rdx; switch jump                                               ; +0x29, 0x14032d3e9\ncall    sub_14003A830; jumptable 000000014032D3E9 case 1               ; +0x2b, 0x14032d3eb\ncmp     ebx, 0A3D5h                                                    ; +0x30, 0x14032d3f0\nsetz    al                                                             ; +0x36, 0x14032d3f6\nadd     rsp, 20h                                                       ; +0x39, 0x14032d3f9\npop     rbx                                                            ; +0x3d, 0x14032d3fd\nretn                                                                   ; +0x3e, 0x14032d3fe\ncall    sub_14003A830; jumptable 000000014032D3E9 case 2               ; +0x3f, 0x14032d3ff\ncmp     ebx, 6A3Ah                                                     ; +0x44, 0x14032d404\nsetz    al                                                             ; +0x4a, 0x14032d40a\nadd     rsp, 20h                                                       ; +0x4d, 0x14032d40d\npop     rbx                                                            ; +0x51, 0x14032d411\nretn                                                                   ; +0x52, 0x14032d412\ncall    sub_14003A830; jumptable 000000014032D3E9 case 3               ; +0x53, 0x14032d413\ncmp     ebx, 6B5Dh                                                     ; +0x58, 0x14032d418\nsetz    al                                                             ; +0x5e, 0x14032d41e\nadd     rsp, 20h                                                       ; +0x61, 0x14032d421\npop     rbx                                                            ; +0x65, 0x14032d425\nretn                                                                   ; +0x66, 0x14032d426\ncall    sub_14003A830; jumptable 000000014032D3E9 case 4               ; +0x67, 0x14032d427\ncmp     ebx, 6EE3h                                                     ; +0x6c, 0x14032d42c\nsetz    al                                                             ; +0x72, 0x14032d432\nadd     rsp, 20h                                                       ; +0x75, 0x14032d435\npop     rbx                                                            ; +0x79, 0x14032d439\nretn                                                                   ; +0x7a, 0x14032d43a\ncall    sub_14003A830; jumptable 000000014032D3E9 case 5               ; +0x7b, 0x14032d43b\ncmp     ebx, 998Ah                                                     ; +0x80, 0x14032d440\nsetz    al                                                             ; +0x86, 0x14032d446\nadd     rsp, 20h                                                       ; +0x89, 0x14032d449\npop     rbx                                                            ; +0x8d, 0x14032d44d\nretn                                                                   ; +0x8e, 0x14032d44e\ncall    sub_14003A830; jumptable 000000014032D3E9 case 6               ; +0x8f, 0x14032d44f\ncmp     ebx, 7F16h                                                     ; +0x94, 0x14032d454\nsetz    al                                                             ; +0x9a, 0x14032d45a\nadd     rsp, 20h                                                       ; +0x9d, 0x14032d45d\npop     rbx                                                            ; +0xa1, 0x14032d461\nretn                                                                   ; +0xa2, 0x14032d462\ncall    sub_14003A830; jumptable 000000014032D3E9 case 7               ; +0xa3, 0x14032d463\ncmp     ebx, 0CD61h                                                    ; +0xa8, 0x14032d468\nsetz    al                                                             ; +0xae, 0x14032d46e\nadd     rsp, 20h                                                       ; +0xb1, 0x14032d471\npop     rbx                                                            ; +0xb5, 0x14032d475\nretn                                                                   ; +0xb6, 0x14032d476\ncall    sub_14003A830; jumptable 000000014032D3E9 case 8               ; +0xb7, 0x14032d477\ncmp     ebx, 10B23h                                                    ; +0xbc, 0x14032d47c\nsetz    al                                                             ; +0xc2, 0x14032d482\nadd     rsp, 20h                                                       ; +0xc5, 0x14032d485\npop     rbx                                                            ; +0xc9, 0x14032d489\nretn                                                                   ; +0xca, 0x14032d48a\ncall    sub_14003A830; jumptable 000000014032D3E9 case 9               ; +0xcb, 0x14032d48b\ncmp     ebx, 12087h                                                    ; +0xd0, 0x14032d490\nsetz    al                                                             ; +0xd6, 0x14032d496\nadd     rsp, 20h                                                       ; +0xd9, 0x14032d499\npop     rbx                                                            ; +0xdd, 0x14032d49d\nretn                                                                   ; +0xde, 0x14032d49e\ncall    sub_14003A830; jumptable 000000014032D3E9 case 10              ; +0xdf, 0x14032d49f\ncmp     ebx, 17480h                                                    ; +0xe4, 0x14032d4a4\nsetz    al                                                             ; +0xea, 0x14032d4aa\nadd     rsp, 20h                                                       ; +0xed, 0x14032d4ad\npop     rbx                                                            ; +0xf1, 0x14032d4b1\nretn                                                                   ; +0xf2, 0x14032d4b2\ncall    sub_14003A830; jumptable 000000014032D3E9 case 11              ; +0xf3, 0x14032d4b3\ncmp     ebx, 178E2h                                                    ; +0xf8, 0x14032d4b8\nsetz    al                                                             ; +0xfe, 0x14032d4be\nadd     rsp, 20h                                                       ; +0x101, 0x14032d4c1\npop     rbx                                                            ; +0x105, 0x14032d4c5\nretn                                                                   ; +0x106, 0x14032d4c6\ncall    sub_14003A830; jumptable 000000014032D3E9 case 12              ; +0x107, 0x14032d4c7\ncmp     ebx, 165ECh                                                    ; +0x10c, 0x14032d4cc\nsetz    al                                                             ; +0x112, 0x14032d4d2\nadd     rsp, 20h                                                       ; +0x115, 0x14032d4d5\npop     rbx                                                            ; +0x119, 0x14032d4d9\nretn                                                                   ; +0x11a, 0x14032d4da\ncall    sub_14003A830; jumptable 000000014032D3E9 case 13              ; +0x11b, 0x14032d4db\ncmp     ebx, 1D455h                                                    ; +0x120, 0x14032d4e0\nsetz    al                                                             ; +0x126, 0x14032d4e6\nadd     rsp, 20h                                                       ; +0x129, 0x14032d4e9\npop     rbx                                                            ; +0x12d, 0x14032d4ed\nretn                                                                   ; +0x12e, 0x14032d4ee\ncall    sub_14003A830; jumptable 000000014032D3E9 case 14              ; +0x12f, 0x14032d4ef\ncmp     ebx, 27BABh                                                    ; +0x134, 0x14032d4f4\nsetz    al                                                             ; +0x13a, 0x14032d4fa\nadd     rsp, 20h                                                       ; +0x13d, 0x14032d4fd\npop     rbx                                                            ; +0x141, 0x14032d501\nretn                                                                   ; +0x142, 0x14032d502\ncall    sub_14003A830; jumptable 000000014032D3E9 case 15              ; +0x143, 0x14032d503\ncmp     ebx, 328C7h                                                    ; +0x148, 0x14032d508\nsetz    al                                                             ; +0x14e, 0x14032d50e\nadd     rsp, 20h                                                       ; +0x151, 0x14032d511\npop     rbx                                                            ; +0x155, 0x14032d515\nretn                                                                   ; +0x156, 0x14032d516\ncall    sub_14003A830; jumptable 000000014032D3E9 case 16              ; +0x157, 0x14032d517\ncmp     ebx, 3A559h                                                    ; +0x15c, 0x14032d51c\nsetz    al                                                             ; +0x162, 0x14032d522\nadd     rsp, 20h                                                       ; +0x165, 0x14032d525\npop     rbx                                                            ; +0x169, 0x14032d529\nretn                                                                   ; +0x16a, 0x14032d52a\ncall    sub_14003A830; jumptable 000000014032D3E9 case 17              ; +0x16b, 0x14032d52b\ncmp     ebx, 46E1Fh                                                    ; +0x170, 0x14032d530\nsetz    al                                                             ; +0x176, 0x14032d536\nadd     rsp, 20h                                                       ; +0x179, 0x14032d539\npop     rbx                                                            ; +0x17d, 0x14032d53d\nretn                                                                   ; +0x17e, 0x14032d53e\ncall    sub_14003A830; jumptable 000000014032D3E9 case 18              ; +0x17f, 0x14032d53f\ncmp     ebx, 5A5D4h                                                    ; +0x184, 0x14032d544\nsetz    al                                                             ; +0x18a, 0x14032d54a\nadd     rsp, 20h                                                       ; +0x18d, 0x14032d54d\npop     rbx                                                            ; +0x191, 0x14032d551\nretn                                                                   ; +0x192, 0x14032d552\ncall    sub_14003A830; jumptable 000000014032D3E9 case 19              ; +0x193, 0x14032d553\ncmp     ebx, 9B123h                                                    ; +0x198, 0x14032d558\nsetz    al                                                             ; +0x19e, 0x14032d55e\nadd     rsp, 20h                                                       ; +0x1a1, 0x14032d561\npop     rbx                                                            ; +0x1a5, 0x14032d565\nretn                                                                   ; +0x1a6, 0x14032d566\ncall    sub_14003A830; jumptable 000000014032D3E9 case 20              ; +0x1a7, 0x14032d567\ncmp     ebx, 0B4735h                                                   ; +0x1ac, 0x14032d56c\nsetz    al                                                             ; +0x1b2, 0x14032d572\nadd     rsp, 20h                                                       ; +0x1b5, 0x14032d575\npop     rbx                                                            ; +0x1b9, 0x14032d579\nretn                                                                   ; +0x1ba, 0x14032d57a\ncall    sub_14003A830; jumptable 000000014032D3E9 default case         ; +0x1bb, 0x14032d57b\nmov     al, 1                                                          ; +0x1c0, 0x14032d580\nadd     rsp, 20h                                                       ; +0x1c2, 0x14032d582\npop     rbx                                                            ; +0x1c6, 0x14032d586\nretn                                                                   ; +0x1c7, 0x14032d587\ndd offset loc_14032D3EB - 140000000h; jump table for switch statement  ; +0x1c8, 0x14032d588", "xrefs": ["PlayLayer::init @ 0x1403a65c8", "<???> @ 0x1406d4ea4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}