{"type": "func", "start": 5370206224, "end": 5370207010, "name": "GJGameLevel::copyLevelInfo", "pseudocode": "// \n// GJGameLevel::copyLevelInfo from 0x14016d810 to 0x14016db22 (786 bytes)\n// \n// 4 xrefs:\n// > EditLevelLayer::FLAlert_Clicked @ 0x1400d8db8\n// > LevelInfoLayer::FLAlert_Clicked @ 0x140300475\n// > <???> @ 0x1406cae18\n// > <???> @ 0x1406cae24\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\n// Hidden C++ exception states: #wind=4\nvoid GJGameLevel::copyLevelInfo(GJGameLevel *a1)\n{\n  __int64 v1; // rdx\n  __int64 v2; // rdi\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  __int64 v6; // rsi\n  void *v7; // rdx\n  void **v8; // rdx\n  void **v9; // rdx\n  void **v10; // rdx\n  void *v11; // rdx\n  void *v12; // rdx\n  void *v13; // [rsp+20h] [rbp-99h]\n  _BYTE *v14; // [rsp+28h] [rbp-91h] BYREF\n  void *Src[4]; // [rsp+30h] [rbp-89h] BYREF\n  void *v16[4]; // [rsp+50h] [rbp-69h] BYREF\n  void *v17[4]; // [rsp+70h] [rbp-49h] BYREF\n  _BYTE v18[32]; // [rsp+90h] [rbp-29h] BYREF\n  _BYTE v19[32]; // [rsp+B0h] [rbp-9h] BYREF\n  _BYTE v20[32]; // [rsp+D0h] [rbp+17h] BYREF\n\n  v2 = v1;\n  v14 = v18;\n  sub_14003BDB0((__int64)v18, v1 + 344);\n  if ( !qword_1406C2EC0 )\n  {\n    v13 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v13);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n  }\n  GameLevelManager::getNextLevelName(v4, (__int64)v20, (__int64)v18);\n  v5 = sub_14003BDB0((__int64)v19, (__int64)v20);\n  v6 = v5;\n  if ( &a1->m_levelName != (std::string *)v5 )\n  {\n    v7 = (void *)v5;\n    if ( *(_QWORD *)(v5 + 24) > 0xFu )\n      v7 = *(void **)v5;\n    sub_14003CCE0((void **)&a1->m_levelName, v7, *(_QWORD *)(v5 + 16));\n  }\n  sub_14003A830(v6);\n  sub_14003BDB0((__int64)Src, v2 + 408);\n  if ( &a1->m_levelString != (std::string *)Src )\n  {\n    v8 = Src;\n    if ( Src[3] > (void *)0xF )\n      v8 = (void **)Src[0];\n    sub_14003CCE0((void **)&a1->m_levelString, v8, (size_t)Src[2]);\n  }\n  sub_14003A830((__int64)Src);\n  a1->m_audioTrack = *(_DWORD *)(v2 + 668);\n  a1->m_songID = *(_DWORD *)(v2 + 672);\n  a1->m_twoPlayerMode = *(_BYTE *)(v2 + 956);\n  a1->m_levelLength = *(_DWORD *)(v2 + 856);\n  a1->m_timestamp = *(_DWORD *)(v2 + 1224);\n  a1->m_coins = *(_DWORD *)(v2 + 920);\n  GJGameLevel::unverifyCoins(a1);\n  a1->m_lastBuildTab = *(_DWORD *)(v2 + 1096);\n  a1->m_lastBuildPage = *(_DWORD *)(v2 + 1100);\n  a1->m_lastEditorZoom = *(float *)(v2 + 1092);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14);\n  cocos2d::CCPoint::operator=(&a1->m_lastCameraPos, &v14);\n  a1->m_lastBuildGroupID = *(_DWORD *)(v2 + 1104);\n  a1->m_workingTime2 = *(_DWORD *)(v2 + 716) + *(_DWORD *)(v2 + 720);\n  a1->m_workingTime = 0;\n  sub_14003BDB0((__int64)v16, v2 + 600);\n  if ( &a1->m_savedCameraPositions != (std::string *)v16 )\n  {\n    v9 = v16;\n    if ( v16[3] > (void *)0xF )\n      v9 = (void **)v16[0];\n    sub_14003CCE0((void **)&a1->m_savedCameraPositions, v9, (size_t)v16[2]);\n  }\n  sub_14003A830((__int64)v16);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14);\n  cocos2d::CCPoint::operator=(&a1->m_previewLock, &v14);\n  sub_14003BDB0((__int64)v17, v2 + 568);\n  if ( &a1->m_lockedEditorLayers != (std::string *)v17 )\n  {\n    v10 = v17;\n    if ( v17[3] > (void *)0xF )\n      v10 = (void **)v17[0];\n    sub_14003CCE0((void **)&a1->m_lockedEditorLayers, v10, (size_t)v17[2]);\n  }\n  sub_14003A830((__int64)v17);\n  if ( &a1->m_sfxIDs != (std::string *)(v2 + 1264) )\n  {\n    v11 = (void *)(v2 + 1264);\n    if ( *(_QWORD *)(v2 + 1288) > 0xFu )\n      v11 = *(void **)(v2 + 1264);\n    sub_14003CCE0((void **)&a1->m_sfxIDs, v11, *(_QWORD *)(v2 + 1280));\n  }\n  if ( &a1->m_songIDs != (std::string *)(v2 + 1232) )\n  {\n    v12 = (void *)(v2 + 1232);\n    if ( *(_QWORD *)(v2 + 1256) > 0xFu )\n      v12 = *(void **)(v2 + 1232);\n    sub_14003CCE0((void **)&a1->m_songIDs, v12, *(_QWORD *)(v2 + 1248));\n  }\n  a1->m_songSize = *(_DWORD *)(v2 + 1296);\n  sub_14003A830((__int64)v20);\n}", "assembly": "; \n; GJGameLevel::copyLevelInfo from 0x14016d810 to 0x14016db22 (786 bytes)\n; \n; 4 xrefs:\n; > EditLevelLayer::FLAlert_Clicked @ 0x1400d8db8\n; > LevelInfoLayer::FLAlert_Clicked @ 0x140300475\n; > <???> @ 0x1406cae18\n; > <???> @ 0x1406cae24\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\nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x14016d810\npush    rbp                                                            ; +0x5, 0x14016d815\npush    rsi                                                            ; +0x6, 0x14016d816\npush    rdi                                                            ; +0x7, 0x14016d817\nlea     rbp, [rsp-47h]                                                 ; +0x8, 0x14016d818\nsub     rsp, 100h                                                      ; +0xd, 0x14016d81d\nmov     rax, cs:__security_cookie                                      ; +0x14, 0x14016d824\nxor     rax, rsp                                                       ; +0x1b, 0x14016d82b\nmov     [rbp+57h+var_20], rax                                          ; +0x1e, 0x14016d82e\nmov     rdi, rdx                                                       ; +0x22, 0x14016d832\nmov     rbx, rcx                                                       ; +0x25, 0x14016d835\nlea     rax, [rbp+57h+var_80]                                          ; +0x28, 0x14016d838\nmov     [rsp+110h+var_E8], rax                                         ; +0x2c, 0x14016d83c\nadd     rdx, 158h                                                      ; +0x31, 0x14016d841\nlea     rcx, [rbp+57h+var_80]                                          ; +0x38, 0x14016d848\ncall    sub_14003BDB0                                                  ; +0x3c, 0x14016d84c\nnop                                                                    ; +0x41, 0x14016d851\ncmp     cs:qword_1406C2EC0, 0                                          ; +0x42, 0x14016d852\njnz     short loc_14016D885                                            ; +0x4a, 0x14016d85a\nmov     ecx, 3D0h; Size                                                ; +0x4c, 0x14016d85c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x51, 0x14016d861\nmov     [rsp+110h+var_F0], rax                                         ; +0x56, 0x14016d866\nmov     rcx, rax                                                       ; +0x5b, 0x14016d86b\ncall    sub_140141280                                                  ; +0x5e, 0x14016d86e\nnop                                                                    ; +0x63, 0x14016d873\nmov     cs:qword_1406C2EC0, rax                                        ; +0x64, 0x14016d874\nmov     rdx, [rax]                                                     ; +0x6b, 0x14016d87b\nmov     rcx, rax                                                       ; +0x6e, 0x14016d87e\ncall    qword ptr [rdx+48h]                                            ; +0x71, 0x14016d881\nnop                                                                    ; +0x74, 0x14016d884\nlea     r8, [rbp+57h+var_80]                                           ; +0x75, 0x14016d885\nlea     rdx, [rbp+57h+var_40]                                          ; +0x79, 0x14016d889\ncall    GameLevelManager__getNextLevelName                             ; +0x7d, 0x14016d88d\nnop                                                                    ; +0x82, 0x14016d892\nlea     rdx, [rbp+57h+var_40]                                          ; +0x83, 0x14016d893\nlea     rcx, [rbp+57h+var_60]                                          ; +0x87, 0x14016d897\ncall    sub_14003BDB0                                                  ; +0x8b, 0x14016d89b\nmov     rsi, rax                                                       ; +0x90, 0x14016d8a0\nmov     [rsp+110h+var_F0], rax                                         ; +0x93, 0x14016d8a3\nlea     rcx, [rbx+158h]; void *                                        ; +0x98, 0x14016d8a8\ncmp     rcx, rax                                                       ; +0x9f, 0x14016d8af\njz      short loc_14016D8CB                                            ; +0xa2, 0x14016d8b2\nmov     rdx, rax                                                       ; +0xa4, 0x14016d8b4\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0xa7, 0x14016d8b7\njbe     short loc_14016D8C1                                            ; +0xac, 0x14016d8bc\nmov     rdx, [rax]; Src                                                ; +0xae, 0x14016d8be\nmov     r8, [rax+10h]; Size                                            ; +0xb1, 0x14016d8c1\ncall    sub_14003CCE0                                                  ; +0xb5, 0x14016d8c5\nnop                                                                    ; +0xba, 0x14016d8ca\nmov     rcx, rsi                                                       ; +0xbb, 0x14016d8cb\ncall    sub_14003A830                                                  ; +0xbe, 0x14016d8ce\nlea     rdx, [rdi+198h]                                                ; +0xc3, 0x14016d8d3\nlea     rcx, [rsp+110h+Src]                                            ; +0xca, 0x14016d8da\ncall    sub_14003BDB0                                                  ; +0xcf, 0x14016d8df\nlea     rax, [rsp+110h+Src]                                            ; +0xd4, 0x14016d8e4\nmov     [rsp+110h+var_F0], rax                                         ; +0xd9, 0x14016d8e9\nlea     rcx, [rbx+198h]; void *                                        ; +0xde, 0x14016d8ee\nlea     rax, [rsp+110h+Src]                                            ; +0xe5, 0x14016d8f5\ncmp     rcx, rax                                                       ; +0xea, 0x14016d8fa\njz      short loc_14016D919                                            ; +0xed, 0x14016d8fd\nlea     rdx, [rsp+110h+Src]                                            ; +0xef, 0x14016d8ff\ncmp     [rbp+57h+var_C8], 0Fh                                          ; +0xf4, 0x14016d904\ncmova   rdx, [rsp+110h+Src]; Src                                       ; +0xf9, 0x14016d909\nmov     r8, [rbp+57h+Size]; Size                                       ; +0xff, 0x14016d90f\ncall    sub_14003CCE0                                                  ; +0x103, 0x14016d913\nnop                                                                    ; +0x108, 0x14016d918\nlea     rcx, [rsp+110h+Src]                                            ; +0x109, 0x14016d919\ncall    sub_14003A830                                                  ; +0x10e, 0x14016d91e\nmov     eax, [rdi+29Ch]                                                ; +0x113, 0x14016d923\nmov     [rbx+29Ch], eax                                                ; +0x119, 0x14016d929\nmov     eax, [rdi+2A0h]                                                ; +0x11f, 0x14016d92f\nmov     [rbx+2A0h], eax                                                ; +0x125, 0x14016d935\nmovzx   eax, byte ptr [rdi+3BCh]                                       ; +0x12b, 0x14016d93b\nmov     [rbx+3BCh], al                                                 ; +0x132, 0x14016d942\nmov     eax, [rdi+358h]                                                ; +0x138, 0x14016d948\nmov     [rbx+358h], eax                                                ; +0x13e, 0x14016d94e\nmov     eax, [rdi+4C8h]                                                ; +0x144, 0x14016d954\nmov     [rbx+4C8h], eax                                                ; +0x14a, 0x14016d95a\nmov     eax, [rdi+398h]                                                ; +0x150, 0x14016d960\nmov     [rbx+398h], eax                                                ; +0x156, 0x14016d966\nmov     rcx, rbx                                                       ; +0x15c, 0x14016d96c\ncall    GJGameLevel__unverifyCoins                                     ; +0x15f, 0x14016d96f\nmov     eax, [rdi+448h]                                                ; +0x164, 0x14016d974\nmov     [rbx+448h], eax                                                ; +0x16a, 0x14016d97a\nmov     eax, [rdi+44Ch]                                                ; +0x170, 0x14016d980\nmov     [rbx+44Ch], eax                                                ; +0x176, 0x14016d986\nmov     eax, [rdi+444h]                                                ; +0x17c, 0x14016d98c\nmov     [rbx+444h], eax                                                ; +0x182, 0x14016d992\nlea     rdx, [rdi+43Ch]                                                ; +0x188, 0x14016d998\nlea     rcx, [rsp+110h+var_E8]                                         ; +0x18f, 0x14016d99f\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x194, 0x14016d9a4\nlea     rcx, [rbx+43Ch]                                                ; +0x19a, 0x14016d9aa\nlea     rdx, [rsp+110h+var_E8]                                         ; +0x1a1, 0x14016d9b1\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1a6, 0x14016d9b6\nmov     eax, [rdi+450h]                                                ; +0x1ac, 0x14016d9bc\nmov     [rbx+450h], eax                                                ; +0x1b2, 0x14016d9c2\nmov     eax, [rdi+2D0h]                                                ; +0x1b8, 0x14016d9c8\nadd     eax, [rdi+2CCh]                                                ; +0x1be, 0x14016d9ce\nmov     [rbx+2D0h], eax                                                ; +0x1c4, 0x14016d9d4\nmov     dword ptr [rbx+2CCh], 0                                        ; +0x1ca, 0x14016d9da\nlea     rdx, [rdi+258h]                                                ; +0x1d4, 0x14016d9e4\nlea     rcx, [rbp+57h+var_C0]                                          ; +0x1db, 0x14016d9eb\ncall    sub_14003BDB0                                                  ; +0x1df, 0x14016d9ef\nlea     rax, [rbp+57h+var_C0]                                          ; +0x1e4, 0x14016d9f4\nmov     [rsp+110h+var_F0], rax                                         ; +0x1e8, 0x14016d9f8\nlea     rcx, [rbx+258h]; void *                                        ; +0x1ed, 0x14016d9fd\nlea     rax, [rbp+57h+var_C0]                                          ; +0x1f4, 0x14016da04\ncmp     rcx, rax                                                       ; +0x1f8, 0x14016da08\njz      short loc_14016DA25                                            ; +0x1fb, 0x14016da0b\nlea     rdx, [rbp+57h+var_C0]                                          ; +0x1fd, 0x14016da0d\ncmp     [rbp+57h+var_A8], 0Fh                                          ; +0x201, 0x14016da11\ncmova   rdx, [rbp+57h+var_C0]; Src                                     ; +0x206, 0x14016da16\nmov     r8, [rbp+57h+var_B0]; Size                                     ; +0x20b, 0x14016da1b\ncall    sub_14003CCE0                                                  ; +0x20f, 0x14016da1f\nnop                                                                    ; +0x214, 0x14016da24\nlea     rcx, [rbp+57h+var_C0]                                          ; +0x215, 0x14016da25\ncall    sub_14003A830                                                  ; +0x219, 0x14016da29\nlea     rdx, [rdi+278h]                                                ; +0x21e, 0x14016da2e\nlea     rcx, [rsp+110h+var_E8]                                         ; +0x225, 0x14016da35\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x22a, 0x14016da3a\nlea     rcx, [rbx+278h]                                                ; +0x230, 0x14016da40\nlea     rdx, [rsp+110h+var_E8]                                         ; +0x237, 0x14016da47\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x23c, 0x14016da4c\nlea     rdx, [rdi+238h]                                                ; +0x242, 0x14016da52\nlea     rcx, [rbp+57h+var_A0]                                          ; +0x249, 0x14016da59\ncall    sub_14003BDB0                                                  ; +0x24d, 0x14016da5d\nlea     rax, [rbp+57h+var_A0]                                          ; +0x252, 0x14016da62\nmov     [rsp+110h+var_F0], rax                                         ; +0x256, 0x14016da66\nlea     rcx, [rbx+238h]; void *                                        ; +0x25b, 0x14016da6b\nlea     rax, [rbp+57h+var_A0]                                          ; +0x262, 0x14016da72\ncmp     rcx, rax                                                       ; +0x266, 0x14016da76\njz      short loc_14016DA93                                            ; +0x269, 0x14016da79\nlea     rdx, [rbp+57h+var_A0]                                          ; +0x26b, 0x14016da7b\ncmp     [rbp+57h+var_88], 0Fh                                          ; +0x26f, 0x14016da7f\ncmova   rdx, [rbp+57h+var_A0]; Src                                     ; +0x274, 0x14016da84\nmov     r8, [rbp+57h+var_90]; Size                                     ; +0x279, 0x14016da89\ncall    sub_14003CCE0                                                  ; +0x27d, 0x14016da8d\nnop                                                                    ; +0x282, 0x14016da92\nlea     rcx, [rbp+57h+var_A0]                                          ; +0x283, 0x14016da93\ncall    sub_14003A830                                                  ; +0x287, 0x14016da97\nlea     r8, [rdi+4F0h]                                                 ; +0x28c, 0x14016da9c\nlea     rcx, [rbx+4F0h]; void *                                        ; +0x293, 0x14016daa3\ncmp     rcx, r8                                                        ; +0x29a, 0x14016daaa\njz      short loc_14016DAC5                                            ; +0x29d, 0x14016daad\nmov     rdx, r8                                                        ; +0x29f, 0x14016daaf\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x2a2, 0x14016dab2\njbe     short loc_14016DABC                                            ; +0x2a7, 0x14016dab7\nmov     rdx, [r8]; Src                                                 ; +0x2a9, 0x14016dab9\nmov     r8, [r8+10h]; Size                                             ; +0x2ac, 0x14016dabc\ncall    sub_14003CCE0                                                  ; +0x2b0, 0x14016dac0\nlea     r8, [rdi+4D0h]                                                 ; +0x2b5, 0x14016dac5\nlea     rcx, [rbx+4D0h]; void *                                        ; +0x2bc, 0x14016dacc\ncmp     rcx, r8                                                        ; +0x2c3, 0x14016dad3\njz      short loc_14016DAEE                                            ; +0x2c6, 0x14016dad6\nmov     rdx, r8                                                        ; +0x2c8, 0x14016dad8\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x2cb, 0x14016dadb\njbe     short loc_14016DAE5                                            ; +0x2d0, 0x14016dae0\nmov     rdx, [r8]; Src                                                 ; +0x2d2, 0x14016dae2\nmov     r8, [r8+10h]; Size                                             ; +0x2d5, 0x14016dae5\ncall    sub_14003CCE0                                                  ; +0x2d9, 0x14016dae9\nmov     eax, [rdi+510h]                                                ; +0x2de, 0x14016daee\nmov     [rbx+510h], eax                                                ; +0x2e4, 0x14016daf4\nlea     rcx, [rbp+57h+var_40]                                          ; +0x2ea, 0x14016dafa\ncall    sub_14003A830                                                  ; +0x2ee, 0x14016dafe\nmov     rcx, [rbp+57h+var_20]                                          ; +0x2f3, 0x14016db03\nxor     rcx, rsp; StackCookie                                          ; +0x2f7, 0x14016db07\ncall    __security_check_cookie                                        ; +0x2fa, 0x14016db0a\nmov     rbx, [rsp+110h+arg_10]                                         ; +0x2ff, 0x14016db0f\nadd     rsp, 100h                                                      ; +0x307, 0x14016db17\npop     rdi                                                            ; +0x30e, 0x14016db1e\npop     rsi                                                            ; +0x30f, 0x14016db1f\npop     rbp                                                            ; +0x310, 0x14016db20\nretn                                                                   ; +0x311, 0x14016db21", "xrefs": ["EditLevelLayer::FLAlert_Clicked @ 0x1400d8db8", "LevelInfoLayer::FLAlert_Clicked @ 0x140300475", "<???> @ 0x1406cae18", "<???> @ 0x1406cae24"], "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"}