{"type": "func", "start": 5370207024, "end": 5370207930, "name": "GJGameLevel::getListSnapshot", "pseudocode": "// \n// GJGameLevel::getListSnapshot from 0x14016db30 to 0x14016deba (906 bytes)\n// \n// 3 xrefs:\n// > GJLevelList::addLevelToList @ 0x140176ff7\n// > GJLevelList::getListLevelsArray @ 0x140177429\n// > <???> @ 0x1406cae30\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=2\nGJGameLevel *GJGameLevel::getListSnapshot(GJGameLevel *a1)\n{\n  int v2; // ebp\n  GJGameLevel *v3; // rax\n  GJGameLevel *v4; // rdi\n  int v5; // ebx\n  float v6; // xmm0_4\n  void **v7; // rdx\n  int v8; // ebx\n  float v9; // xmm0_4\n  void **v10; // rdx\n  int v11; // ebx\n  float v12; // xmm0_4\n  int v13; // ebx\n  float v14; // xmm0_4\n  int v15; // ebx\n  float v16; // xmm0_4\n  float v17; // xmm0_4\n  int v18; // ebx\n  float v19; // xmm0_4\n  void *Src[4]; // [rsp+20h] [rbp-68h] BYREF\n  void *v22[4]; // [rsp+40h] [rbp-48h] BYREF\n  GJGameLevel *v23; // [rsp+90h] [rbp+8h]\n\n  v2 = 0;\n  v23 = (GJGameLevel *)operator new(0x5C8u);\n  v3 = GJGameLevel::GJGameLevel(v23);\n  v4 = v3;\n  if ( v3 )\n  {\n    if ( v3->init(v3) )\n    {\n      cocos2d::CCObject::autorelease(v4);\n    }\n    else\n    {\n      ((void (__fastcall *)(GJGameLevel *, __int64))v4->~GJGameLevel)(v4, 1);\n      v4 = nullptr;\n    }\n  }\n  v5 = a1->m_levelID.random - a1->m_levelID.seed;\n  v4->m_levelID.value = v5;\n  v6 = (float)((float)rand() / 32767.0) * 1000.0;\n  v4->m_levelID.seed = (int)v6;\n  v4->m_levelID.random = v5 + (int)v6;\n  sub_14003BDB0((__int64)Src, (__int64)&a1->m_levelName);\n  if ( &v4->m_levelName != (std::string *)Src )\n  {\n    v7 = Src;\n    if ( Src[3] > (void *)0xF )\n      v7 = (void **)Src[0];\n    sub_14003CCE0((void **)&v4->m_levelName, v7, (size_t)Src[2]);\n  }\n  sub_14003A830((__int64)Src);\n  v4->m_levelLength = a1->m_levelLength;\n  v4->m_timestamp = a1->m_timestamp;\n  v8 = a1->m_accountID.random - a1->m_accountID.seed;\n  v4->m_accountID.value = v8;\n  v9 = (float)((float)rand() / 32767.0) * 1000.0;\n  v4->m_accountID.seed = (int)v9;\n  v4->m_accountID.random = v8 + (int)v9;\n  sub_14003BDB0((__int64)v22, (__int64)&a1->m_creatorName);\n  if ( &v4->m_creatorName != (std::string *)v22 )\n  {\n    v10 = v22;\n    if ( v22[3] > (void *)0xF )\n      v10 = (void **)v22[0];\n    sub_14003CCE0((void **)&v4->m_creatorName, v10, (size_t)v22[2]);\n  }\n  sub_14003A830((__int64)v22);\n  v4->m_likes = a1->m_likes;\n  v4->m_downloads = a1->m_downloads;\n  v4->m_audioTrack = a1->m_audioTrack;\n  v4->m_songID = a1->m_songID;\n  v4->m_levelType = a1->m_levelType;\n  v4->m_ratings = a1->m_ratings;\n  v4->m_ratingsSum = a1->m_ratingsSum;\n  v11 = a1->m_demon.random - a1->m_demon.seed;\n  v4->m_demon.value = v11;\n  v12 = (float)((float)rand() / 32767.0) * 1000.0;\n  v4->m_demon.seed = (int)v12;\n  v4->m_demon.random = v11 + (int)v12;\n  v4->m_demonDifficulty = a1->m_demonDifficulty;\n  v4->m_autoLevel = a1->m_autoLevel;\n  v4->m_featured = a1->m_featured;\n  v4->m_isEpic = a1->m_isEpic;\n  v13 = a1->m_stars.random - a1->m_stars.seed;\n  v4->m_stars.value = v13;\n  v14 = (float)((float)rand() / 32767.0) * 1000.0;\n  v4->m_stars.seed = (int)v14;\n  v4->m_stars.random = v13 + (int)v14;\n  v4->m_coins = a1->m_coins;\n  v15 = a1->m_coinsVerified.random - a1->m_coinsVerified.seed;\n  v4->m_coinsVerified.value = v15;\n  v16 = (float)((float)rand() / 32767.0) * 1000.0;\n  v4->m_coinsVerified.seed = (int)v16;\n  v4->m_coinsVerified.random = v15 + (int)v16;\n  LOBYTE(v2) = a1->m_originalLevel.random != a1->m_originalLevel.seed;\n  v4->m_originalLevel.value = v2;\n  v17 = (float)((float)rand() / 32767.0) * 1000.0;\n  v4->m_originalLevel.seed = (int)v17;\n  v4->m_originalLevel.random = v2 + (int)v17;\n  v18 = a1->m_objectCount.random - a1->m_objectCount.seed;\n  v4->m_objectCount.value = v18;\n  v19 = (float)((float)rand() / 32767.0) * 1000.0;\n  v4->m_objectCount.seed = (int)v19;\n  v4->m_objectCount.random = v18 + (int)v19;\n  return v4;\n}", "assembly": "; \n; GJGameLevel::getListSnapshot from 0x14016db30 to 0x14016deba (906 bytes)\n; \n; 3 xrefs:\n; > GJLevelList::addLevelToList @ 0x140176ff7\n; > GJLevelList::getListLevelsArray @ 0x140177429\n; > <???> @ 0x1406cae30\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+arg_8], rbx                                               ; +0x0, 0x14016db30\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14016db35\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14016db3a\npush    rdi                                                            ; +0xf, 0x14016db3f\nsub     rsp, 80h                                                       ; +0x10, 0x14016db40\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x17, 0x14016db47\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x1c, 0x14016db4c\nmov     rsi, rcx                                                       ; +0x21, 0x14016db51\nxor     ebp, ebp                                                       ; +0x24, 0x14016db54\nmov     ecx, 5C8h; Size                                                ; +0x26, 0x14016db56\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x14016db5b\nmov     [rsp+88h+arg_0], rax                                           ; +0x30, 0x14016db60\nmov     rcx, rax                                                       ; +0x38, 0x14016db68\ncall    GJGameLevel__GJGameLevel                                       ; +0x3b, 0x14016db6b\nmov     rdi, rax                                                       ; +0x40, 0x14016db70\ntest    rax, rax                                                       ; +0x43, 0x14016db73\njz      short loc_14016DB9E                                            ; +0x46, 0x14016db76\nmov     rax, [rax]                                                     ; +0x48, 0x14016db78\nmov     rcx, rdi                                                       ; +0x4b, 0x14016db7b\ncall    qword ptr [rax+48h]                                            ; +0x4e, 0x14016db7e\nmov     rcx, rdi                                                       ; +0x51, 0x14016db81\ntest    al, al                                                         ; +0x54, 0x14016db84\njz      short loc_14016DB90                                            ; +0x56, 0x14016db86\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x58, 0x14016db88\njmp     short loc_14016DB9E                                            ; +0x5e, 0x14016db8e\nmov     rax, [rdi]                                                     ; +0x60, 0x14016db90\nmov     edx, 1                                                         ; +0x63, 0x14016db93\ncall    qword ptr [rax+8]                                              ; +0x68, 0x14016db98\nmov     rdi, rbp                                                       ; +0x6b, 0x14016db9b\nmov     ebx, [rsi+148h]                                                ; +0x6e, 0x14016db9e\nsub     ebx, [rsi+14Ch]                                                ; +0x74, 0x14016dba4\nmov     [rdi+150h], ebx                                                ; +0x7a, 0x14016dbaa\ncall    cs:rand                                                        ; +0x80, 0x14016dbb0\nmovd    xmm0, eax                                                      ; +0x86, 0x14016dbb6\ncvtdq2ps xmm0, xmm0                                                    ; +0x8a, 0x14016dbba\nmovss   xmm6, cs:dword_140623644                                       ; +0x8d, 0x14016dbbd\ndivss   xmm0, xmm6                                                     ; +0x95, 0x14016dbc5\nmovss   xmm7, cs:dword_14062350C                                       ; +0x99, 0x14016dbc9\nmulss   xmm0, xmm7                                                     ; +0xa1, 0x14016dbd1\ncvttss2si eax, xmm0                                                    ; +0xa5, 0x14016dbd5\nmov     [rdi+14Ch], eax                                                ; +0xa9, 0x14016dbd9\nadd     eax, ebx                                                       ; +0xaf, 0x14016dbdf\nmov     [rdi+148h], eax                                                ; +0xb1, 0x14016dbe1\nlea     rdx, [rsi+158h]                                                ; +0xb7, 0x14016dbe7\nlea     rcx, [rsp+88h+Src]                                             ; +0xbe, 0x14016dbee\ncall    sub_14003BDB0                                                  ; +0xc3, 0x14016dbf3\nlea     rax, [rsp+88h+Src]                                             ; +0xc8, 0x14016dbf8\nmov     [rsp+88h+arg_0], rax                                           ; +0xcd, 0x14016dbfd\nlea     rcx, [rdi+158h]; void *                                        ; +0xd5, 0x14016dc05\nlea     rax, [rsp+88h+Src]                                             ; +0xdc, 0x14016dc0c\ncmp     rcx, rax                                                       ; +0xe1, 0x14016dc11\njz      short loc_14016DC32                                            ; +0xe4, 0x14016dc14\nlea     rdx, [rsp+88h+Src]                                             ; +0xe6, 0x14016dc16\ncmp     [rsp+88h+var_50], 0Fh                                          ; +0xeb, 0x14016dc1b\ncmova   rdx, [rsp+88h+Src]; Src                                        ; +0xf1, 0x14016dc21\nmov     r8, [rsp+88h+Size]; Size                                       ; +0xf7, 0x14016dc27\ncall    sub_14003CCE0                                                  ; +0xfc, 0x14016dc2c\nnop                                                                    ; +0x101, 0x14016dc31\nlea     rcx, [rsp+88h+Src]                                             ; +0x102, 0x14016dc32\ncall    sub_14003A830                                                  ; +0x107, 0x14016dc37\nmov     eax, [rsi+358h]                                                ; +0x10c, 0x14016dc3c\nmov     [rdi+358h], eax                                                ; +0x112, 0x14016dc42\nmov     eax, [rsi+4C8h]                                                ; +0x118, 0x14016dc48\nmov     [rdi+4C8h], eax                                                ; +0x11e, 0x14016dc4e\nmov     ebx, [rsi+28Ch]                                                ; +0x124, 0x14016dc54\nsub     ebx, [rsi+290h]                                                ; +0x12a, 0x14016dc5a\nmov     [rdi+294h], ebx                                                ; +0x130, 0x14016dc60\ncall    cs:rand                                                        ; +0x136, 0x14016dc66\nmovd    xmm0, eax                                                      ; +0x13c, 0x14016dc6c\ncvtdq2ps xmm0, xmm0                                                    ; +0x140, 0x14016dc70\ndivss   xmm0, xmm6                                                     ; +0x143, 0x14016dc73\nmulss   xmm0, xmm7                                                     ; +0x147, 0x14016dc77\ncvttss2si eax, xmm0                                                    ; +0x14b, 0x14016dc7b\nmov     [rdi+290h], eax                                                ; +0x14f, 0x14016dc7f\nadd     eax, ebx                                                       ; +0x155, 0x14016dc85\nmov     [rdi+28Ch], eax                                                ; +0x157, 0x14016dc87\nlea     rdx, [rsi+1B8h]                                                ; +0x15d, 0x14016dc8d\nlea     rcx, [rsp+88h+var_48]                                          ; +0x164, 0x14016dc94\ncall    sub_14003BDB0                                                  ; +0x169, 0x14016dc99\nlea     rax, [rsp+88h+var_48]                                          ; +0x16e, 0x14016dc9e\nmov     [rsp+88h+arg_0], rax                                           ; +0x173, 0x14016dca3\nlea     rcx, [rdi+1B8h]; void *                                        ; +0x17b, 0x14016dcab\nlea     rax, [rsp+88h+var_48]                                          ; +0x182, 0x14016dcb2\ncmp     rcx, rax                                                       ; +0x187, 0x14016dcb7\njz      short loc_14016DCD8                                            ; +0x18a, 0x14016dcba\nlea     rdx, [rsp+88h+var_48]                                          ; +0x18c, 0x14016dcbc\ncmp     [rsp+88h+var_30], 0Fh                                          ; +0x191, 0x14016dcc1\ncmova   rdx, [rsp+88h+var_48]; Src                                     ; +0x197, 0x14016dcc7\nmov     r8, [rsp+88h+var_38]; Size                                     ; +0x19d, 0x14016dccd\ncall    sub_14003CCE0                                                  ; +0x1a2, 0x14016dcd2\nnop                                                                    ; +0x1a7, 0x14016dcd7\nlea     rcx, [rsp+88h+var_48]                                          ; +0x1a8, 0x14016dcd8\ncall    sub_14003A830                                                  ; +0x1ad, 0x14016dcdd\nmov     eax, [rsi+350h]                                                ; +0x1b2, 0x14016dce2\nmov     [rdi+350h], eax                                                ; +0x1b8, 0x14016dce8\nmov     eax, [rsi+2C4h]                                                ; +0x1be, 0x14016dcee\nmov     [rdi+2C4h], eax                                                ; +0x1c4, 0x14016dcf4\nmov     eax, [rsi+29Ch]                                                ; +0x1ca, 0x14016dcfa\nmov     [rdi+29Ch], eax                                                ; +0x1d0, 0x14016dd00\nmov     eax, [rsi+2A0h]                                                ; +0x1d6, 0x14016dd06\nmov     [rdi+2A0h], eax                                                ; +0x1dc, 0x14016dd0c\nmov     eax, [rsi+454h]                                                ; +0x1e2, 0x14016dd12\nmov     [rdi+454h], eax                                                ; +0x1e8, 0x14016dd18\nmov     eax, [rsi+2BCh]                                                ; +0x1ee, 0x14016dd1e\nmov     [rdi+2BCh], eax                                                ; +0x1f4, 0x14016dd24\nmov     eax, [rsi+2C0h]                                                ; +0x1fa, 0x14016dd2a\nmov     [rdi+2C0h], eax                                                ; +0x200, 0x14016dd30\nmov     ebx, [rsi+378h]                                                ; +0x206, 0x14016dd36\nsub     ebx, [rsi+37Ch]                                                ; +0x20c, 0x14016dd3c\nmov     [rdi+380h], ebx                                                ; +0x212, 0x14016dd42\ncall    cs:rand                                                        ; +0x218, 0x14016dd48\nmovd    xmm0, eax                                                      ; +0x21e, 0x14016dd4e\ncvtdq2ps xmm0, xmm0                                                    ; +0x222, 0x14016dd52\ndivss   xmm0, xmm6                                                     ; +0x225, 0x14016dd55\nmulss   xmm0, xmm7                                                     ; +0x229, 0x14016dd59\ncvttss2si eax, xmm0                                                    ; +0x22d, 0x14016dd5d\nmov     [rdi+37Ch], eax                                                ; +0x231, 0x14016dd61\nadd     eax, ebx                                                       ; +0x237, 0x14016dd67\nmov     [rdi+378h], eax                                                ; +0x239, 0x14016dd69\nmov     eax, [rsi+384h]                                                ; +0x23f, 0x14016dd6f\nmov     [rdi+384h], eax                                                ; +0x245, 0x14016dd75\nmovzx   eax, byte ptr [rsi+394h]                                       ; +0x24b, 0x14016dd7b\nmov     [rdi+394h], al                                                 ; +0x252, 0x14016dd82\nmov     eax, [rsi+35Ch]                                                ; +0x258, 0x14016dd88\nmov     [rdi+35Ch], eax                                                ; +0x25e, 0x14016dd8e\nmov     eax, [rsi+360h]                                                ; +0x264, 0x14016dd94\nmov     [rdi+360h], eax                                                ; +0x26a, 0x14016dd9a\nmov     ebx, [rsi+388h]                                                ; +0x270, 0x14016dda0\nsub     ebx, [rsi+38Ch]                                                ; +0x276, 0x14016dda6\nmov     [rdi+390h], ebx                                                ; +0x27c, 0x14016ddac\ncall    cs:rand                                                        ; +0x282, 0x14016ddb2\nmovd    xmm0, eax                                                      ; +0x288, 0x14016ddb8\ncvtdq2ps xmm0, xmm0                                                    ; +0x28c, 0x14016ddbc\ndivss   xmm0, xmm6                                                     ; +0x28f, 0x14016ddbf\nmulss   xmm0, xmm7                                                     ; +0x293, 0x14016ddc3\ncvttss2si eax, xmm0                                                    ; +0x297, 0x14016ddc7\nmov     [rdi+38Ch], eax                                                ; +0x29b, 0x14016ddcb\nadd     eax, ebx                                                       ; +0x2a1, 0x14016ddd1\nmov     [rdi+388h], eax                                                ; +0x2a3, 0x14016ddd3\nmov     eax, [rsi+398h]                                                ; +0x2a9, 0x14016ddd9\nmov     [rdi+398h], eax                                                ; +0x2af, 0x14016dddf\nmov     ebx, [rsi+39Ch]                                                ; +0x2b5, 0x14016dde5\nsub     ebx, [rsi+3A0h]                                                ; +0x2bb, 0x14016ddeb\nmov     [rdi+3A4h], ebx                                                ; +0x2c1, 0x14016ddf1\ncall    cs:rand                                                        ; +0x2c7, 0x14016ddf7\nmovd    xmm0, eax                                                      ; +0x2cd, 0x14016ddfd\ncvtdq2ps xmm0, xmm0                                                    ; +0x2d1, 0x14016de01\ndivss   xmm0, xmm6                                                     ; +0x2d4, 0x14016de04\nmulss   xmm0, xmm7                                                     ; +0x2d8, 0x14016de08\ncvttss2si eax, xmm0                                                    ; +0x2dc, 0x14016de0c\nmov     [rdi+3A0h], eax                                                ; +0x2e0, 0x14016de10\nadd     eax, ebx                                                       ; +0x2e6, 0x14016de16\nmov     [rdi+39Ch], eax                                                ; +0x2e8, 0x14016de18\nmov     eax, [rsi+3B4h]                                                ; +0x2ee, 0x14016de1e\ncmp     [rsi+3B0h], eax                                                ; +0x2f4, 0x14016de24\nsetnz   bpl                                                            ; +0x2fa, 0x14016de2a\nmov     [rdi+3B8h], ebp                                                ; +0x2fe, 0x14016de2e\ncall    cs:rand                                                        ; +0x304, 0x14016de34\nmovd    xmm0, eax                                                      ; +0x30a, 0x14016de3a\ncvtdq2ps xmm0, xmm0                                                    ; +0x30e, 0x14016de3e\ndivss   xmm0, xmm6                                                     ; +0x311, 0x14016de41\nmulss   xmm0, xmm7                                                     ; +0x315, 0x14016de45\ncvttss2si eax, xmm0                                                    ; +0x319, 0x14016de49\nmov     [rdi+3B4h], eax                                                ; +0x31d, 0x14016de4d\nadd     eax, ebp                                                       ; +0x323, 0x14016de53\nmov     [rdi+3B0h], eax                                                ; +0x325, 0x14016de55\nmov     ebx, [rsi+2ACh]                                                ; +0x32b, 0x14016de5b\nsub     ebx, [rsi+2B0h]                                                ; +0x331, 0x14016de61\nmov     [rdi+2B4h], ebx                                                ; +0x337, 0x14016de67\ncall    cs:rand                                                        ; +0x33d, 0x14016de6d\nmovd    xmm0, eax                                                      ; +0x343, 0x14016de73\ncvtdq2ps xmm0, xmm0                                                    ; +0x347, 0x14016de77\ndivss   xmm0, xmm6                                                     ; +0x34a, 0x14016de7a\nmulss   xmm0, xmm7                                                     ; +0x34e, 0x14016de7e\ncvttss2si ecx, xmm0                                                    ; +0x352, 0x14016de82\nmov     [rdi+2B0h], ecx                                                ; +0x356, 0x14016de86\nadd     ecx, ebx                                                       ; +0x35c, 0x14016de8c\nmov     [rdi+2ACh], ecx                                                ; +0x35e, 0x14016de8e\nmov     rax, rdi                                                       ; +0x364, 0x14016de94\nlea     r11, [rsp+88h+var_8]                                           ; +0x367, 0x14016de97\nmov     rbx, [r11+18h]                                                 ; +0x36f, 0x14016de9f\nmov     rbp, [r11+20h]                                                 ; +0x373, 0x14016dea3\nmov     rsi, [r11+28h]                                                 ; +0x377, 0x14016dea7\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x37b, 0x14016deab\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x380, 0x14016deb0\nmov     rsp, r11                                                       ; +0x385, 0x14016deb5\npop     rdi                                                            ; +0x388, 0x14016deb8\nretn                                                                   ; +0x389, 0x14016deb9", "xrefs": ["GJLevelList::addLevelToList @ 0x140176ff7", "GJLevelList::getListLevelsArray @ 0x140177429", "<???> @ 0x1406cae30"], "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"}