{"type": "func", "start": 4300584432, "end": 4300584735, "name": "GJGameLevel::levelWasAltered", "pseudocode": "// \n// GJGameLevel::levelWasAltered from 0x10055b5f0 to 0x10055b71f (303 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::saveLevel @ 0x100294926\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\nvoid __fastcall GJGameLevel::levelWasAltered(GJGameLevel *a1)\n{\n  int v1; // eax\n  int v2; // eax\n  int v3; // eax\n  int v4; // eax\n\n  a1->m_hasBeenModified = 1;\n  a1->m_isVerifiedRaw = 0;\n  v1 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_isVerified.seed = v1;\n  a1->m_isVerified.random = v1;\n  a1->m_firstCoinVerified.value = 0;\n  v2 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_firstCoinVerified.seed = v2;\n  a1->m_firstCoinVerified.random = v2;\n  a1->m_secondCoinVerified.value = 0;\n  v3 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_secondCoinVerified.seed = v3;\n  a1->m_secondCoinVerified.random = v3;\n  a1->m_thirdCoinVerified.value = 0;\n  v4 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_thirdCoinVerified.seed = v4;\n  a1->m_thirdCoinVerified.random = v4;\n  std::string::assign((std::string *)&a1->m_capacityString, \"\");\n  a1->m_bestTime = 0;\n  a1->m_bestPoints = 0;\n  *(_WORD *)&a1->m_savedTime = 0;\n  if ( a1->m_isUploaded )\n  {\n    a1->m_isUploaded = 0;\n    ++a1->m_levelVersion;\n  }\n}", "assembly": "; \n; GJGameLevel::levelWasAltered from 0x10055b5f0 to 0x10055b71f (303 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::saveLevel @ 0x100294926\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    rbp                                                            ; +0x0, 0x10055b5f0\nmov     rbp, rsp                                                       ; +0x1, 0x10055b5f1\npush    rbx                                                            ; +0x4, 0x10055b5f4\npush    rax                                                            ; +0x5, 0x10055b5f5\nmov     rbx, rdi                                                       ; +0x6, 0x10055b5f6\nmov     byte ptr [rdi+29Eh], 1                                         ; +0x9, 0x10055b5f9\nmov     byte ptr [rdi+29Ch], 0                                         ; +0x10, 0x10055b600\ncall    _rand                                                          ; +0x17, 0x10055b607\ncvtsi2ss xmm0, eax                                                     ; +0x1c, 0x10055b60c\nmulss   xmm0, cs:dword_100815710                                       ; +0x20, 0x10055b610\nmulss   xmm0, cs:dword_1008152B8                                       ; +0x28, 0x10055b618\ncvttss2si eax, xmm0                                                    ; +0x30, 0x10055b620\nmov     [rbx+298h], eax                                                ; +0x34, 0x10055b624\nmov     [rbx+294h], eax                                                ; +0x3a, 0x10055b62a\nmov     dword ptr [rbx+384h], 0                                        ; +0x40, 0x10055b630\ncall    _rand                                                          ; +0x4a, 0x10055b63a\nxorps   xmm0, xmm0                                                     ; +0x4f, 0x10055b63f\ncvtsi2ss xmm0, eax                                                     ; +0x52, 0x10055b642\nmulss   xmm0, cs:dword_100815710                                       ; +0x56, 0x10055b646\nmulss   xmm0, cs:dword_1008152B8                                       ; +0x5e, 0x10055b64e\ncvttss2si eax, xmm0                                                    ; +0x66, 0x10055b656\nmov     [rbx+380h], eax                                                ; +0x6a, 0x10055b65a\nmov     [rbx+37Ch], eax                                                ; +0x70, 0x10055b660\nmov     dword ptr [rbx+390h], 0                                        ; +0x76, 0x10055b666\ncall    _rand                                                          ; +0x80, 0x10055b670\nxorps   xmm0, xmm0                                                     ; +0x85, 0x10055b675\ncvtsi2ss xmm0, eax                                                     ; +0x88, 0x10055b678\nmulss   xmm0, cs:dword_100815710                                       ; +0x8c, 0x10055b67c\nmulss   xmm0, cs:dword_1008152B8                                       ; +0x94, 0x10055b684\ncvttss2si eax, xmm0                                                    ; +0x9c, 0x10055b68c\nmov     [rbx+38Ch], eax                                                ; +0xa0, 0x10055b690\nmov     [rbx+388h], eax                                                ; +0xa6, 0x10055b696\nmov     dword ptr [rbx+39Ch], 0                                        ; +0xac, 0x10055b69c\ncall    _rand                                                          ; +0xb6, 0x10055b6a6\nxorps   xmm0, xmm0                                                     ; +0xbb, 0x10055b6ab\ncvtsi2ss xmm0, eax                                                     ; +0xbe, 0x10055b6ae\nmulss   xmm0, cs:dword_100815710                                       ; +0xc2, 0x10055b6b2\nmulss   xmm0, cs:dword_1008152B8                                       ; +0xca, 0x10055b6ba\ncvttss2si eax, xmm0                                                    ; +0xd2, 0x10055b6c2\nmov     [rbx+398h], eax                                                ; +0xd6, 0x10055b6c6\nmov     [rbx+394h], eax                                                ; +0xdc, 0x10055b6cc\nlea     rdi, [rbx+428h]; this                                          ; +0xe2, 0x10055b6d2\nlea     rsi, __src; \"\"                                                 ; +0xe9, 0x10055b6d9\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xf0, 0x10055b6e0\nmov     dword ptr [rbx+49Ch], 0                                        ; +0xf5, 0x10055b6e5\nmov     dword ptr [rbx+4C8h], 0                                        ; +0xff, 0x10055b6ef\nmov     word ptr [rbx+528h], 0                                         ; +0x109, 0x10055b6f9\ncmp     byte ptr [rbx+29Dh], 1                                         ; +0x112, 0x10055b702\njnz     short loc_10055B718                                            ; +0x119, 0x10055b709\nmov     byte ptr [rbx+29Dh], 0                                         ; +0x11b, 0x10055b70b\ninc     dword ptr [rbx+2A0h]                                           ; +0x122, 0x10055b712\nadd     rsp, 8                                                         ; +0x128, 0x10055b718\npop     rbx                                                            ; +0x12c, 0x10055b71c\npop     rbp                                                            ; +0x12d, 0x10055b71d\nretn                                                                   ; +0x12e, 0x10055b71e", "xrefs": ["EditorPauseLayer::saveLevel @ 0x100294926"], "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"}