{"type": "func", "start": 4300747808, "end": 4300748339, "name": "GJGameLevel::init", "pseudocode": "// \n// GJGameLevel::init from 0x100583420 to 0x100583633 (531 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b6d800\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 12:32:21 +0000\n// \n\nchar __fastcall GJGameLevel::init(__int64 a1)\n{\n  int v2; // eax\n  int v3; // eax\n  int v4; // eax\n  int v5; // eax\n  int v6; // eax\n  int v7; // eax\n  float v8; // xmm0_4\n  _QWORD *v9; // rax\n  _DWORD *v10; // rdi\n  _QWORD *v11; // r14\n\n  std::string::assign((std::string *)(a1 + 344), \"\");\n  std::string::assign((std::string *)(a1 + 368), \"\");\n  std::string::assign((std::string *)(a1 + 392), \"\");\n  std::string::assign((std::string *)(a1 + 1208), \"\");\n  *(_DWORD *)(a1 + 788) = 1;\n  *(_DWORD *)(a1 + 1140) = 0;\n  v2 = dword_100BE55A0;\n  *(_DWORD *)(a1 + 1144) = dword_100BE55A0;\n  dword_100BE55A0 = v2 + 1;\n  *(_DWORD *)(a1 + 804) = 0;\n  v3 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  *(_DWORD *)(a1 + 800) = v3;\n  *(_DWORD *)(a1 + 796) = v3;\n  *(_DWORD *)(a1 + 816) = 0;\n  v4 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  *(_DWORD *)(a1 + 812) = v4;\n  *(_DWORD *)(a1 + 808) = v4;\n  *(_DWORD *)(a1 + 828) = 0;\n  v5 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  *(_DWORD *)(a1 + 824) = v5;\n  *(_DWORD *)(a1 + 820) = v5;\n  *(_DWORD *)(a1 + 840) = 0;\n  v6 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  *(_DWORD *)(a1 + 836) = v6;\n  *(_DWORD *)(a1 + 832) = v6;\n  *(_DWORD *)(a1 + 844) = 0;\n  *(_DWORD *)(a1 + 964) = 0;\n  *(_DWORD *)(a1 + 956) = 0;\n  v7 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  *(_DWORD *)(a1 + 952) = v7;\n  *(_DWORD *)(a1 + 948) = v7;\n  *(_DWORD *)(a1 + 940) = 0;\n  v8 = (float)((float)rand() * 4.6566129e-10) * 1000.0;\n  *(_DWORD *)(a1 + 936) = (int)v8;\n  *(_DWORD *)(a1 + 932) = (int)v8;\n  *(_WORD *)(a1 + 1104) = 0;\n  v9 = cocos2d::CCDictionary::create();\n  v10 = *(_DWORD **)(a1 + 320);\n  if ( v10 != (_DWORD *)v9 )\n  {\n    v11 = v9;\n    if ( v9 )\n    {\n      cocos2d::CCObject::retain((__int64)v9);\n      v10 = *(_DWORD **)(a1 + 320);\n    }\n    if ( v10 )\n      cocos2d::CCObject::release(v10);\n    *(_QWORD *)(a1 + 320) = v11;\n  }\n  return 1;\n}", "assembly": "; \n; GJGameLevel::init from 0x100583420 to 0x100583633 (531 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b6d800\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 12:32:21 +0000\n; \npush    rbp                                                            ; +0x0, 0x100583420\nmov     rbp, rsp                                                       ; +0x1, 0x100583421\npush    r14                                                            ; +0x4, 0x100583424\npush    rbx                                                            ; +0x6, 0x100583426\nmov     rbx, rdi                                                       ; +0x7, 0x100583427\nadd     rdi, 158h; this                                                ; +0xa, 0x10058342a\nlea     r14, asc_100A41668; \"\"                                         ; +0x11, 0x100583431\nmov     rsi, r14; __s                                                  ; +0x18, 0x100583438\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x1b, 0x10058343b\nlea     rdi, [rbx+170h]; this                                          ; +0x20, 0x100583440\nmov     rsi, r14; __s                                                  ; +0x27, 0x100583447\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x2a, 0x10058344a\nlea     rdi, [rbx+188h]; this                                          ; +0x2f, 0x10058344f\nmov     rsi, r14; __s                                                  ; +0x36, 0x100583456\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x39, 0x100583459\nlea     rdi, [rbx+4B8h]; this                                          ; +0x3e, 0x10058345e\nmov     rsi, r14; __s                                                  ; +0x45, 0x100583465\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x48, 0x100583468\nmov     dword ptr [rbx+314h], 1                                        ; +0x4d, 0x10058346d\nmov     dword ptr [rbx+474h], 0                                        ; +0x57, 0x100583477\nmov     eax, cs:dword_100BE55A0                                        ; +0x61, 0x100583481\nmov     [rbx+478h], eax                                                ; +0x67, 0x100583487\ninc     eax                                                            ; +0x6d, 0x10058348d\nmov     cs:dword_100BE55A0, eax                                        ; +0x6f, 0x10058348f\nmov     dword ptr [rbx+324h], 0                                        ; +0x75, 0x100583495\ncall    _rand                                                          ; +0x7f, 0x10058349f\ncvtsi2ss xmm0, eax                                                     ; +0x84, 0x1005834a4\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x88, 0x1005834a8\nmulss   xmm0, cs:dword_100A03738                                       ; +0x90, 0x1005834b0\ncvttss2si eax, xmm0                                                    ; +0x98, 0x1005834b8\nmov     [rbx+320h], eax                                                ; +0x9c, 0x1005834bc\nmov     [rbx+31Ch], eax                                                ; +0xa2, 0x1005834c2\nmov     dword ptr [rbx+330h], 0                                        ; +0xa8, 0x1005834c8\ncall    _rand                                                          ; +0xb2, 0x1005834d2\nxorps   xmm0, xmm0                                                     ; +0xb7, 0x1005834d7\ncvtsi2ss xmm0, eax                                                     ; +0xba, 0x1005834da\nmulss   xmm0, cs:dword_100A03A50                                       ; +0xbe, 0x1005834de\nmulss   xmm0, cs:dword_100A03738                                       ; +0xc6, 0x1005834e6\ncvttss2si eax, xmm0                                                    ; +0xce, 0x1005834ee\nmov     [rbx+32Ch], eax                                                ; +0xd2, 0x1005834f2\nmov     [rbx+328h], eax                                                ; +0xd8, 0x1005834f8\nmov     dword ptr [rbx+33Ch], 0                                        ; +0xde, 0x1005834fe\ncall    _rand                                                          ; +0xe8, 0x100583508\nxorps   xmm0, xmm0                                                     ; +0xed, 0x10058350d\ncvtsi2ss xmm0, eax                                                     ; +0xf0, 0x100583510\nmulss   xmm0, cs:dword_100A03A50                                       ; +0xf4, 0x100583514\nmulss   xmm0, cs:dword_100A03738                                       ; +0xfc, 0x10058351c\ncvttss2si eax, xmm0                                                    ; +0x104, 0x100583524\nmov     [rbx+338h], eax                                                ; +0x108, 0x100583528\nmov     [rbx+334h], eax                                                ; +0x10e, 0x10058352e\nmov     dword ptr [rbx+348h], 0                                        ; +0x114, 0x100583534\ncall    _rand                                                          ; +0x11e, 0x10058353e\nxorps   xmm0, xmm0                                                     ; +0x123, 0x100583543\ncvtsi2ss xmm0, eax                                                     ; +0x126, 0x100583546\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x12a, 0x10058354a\nmulss   xmm0, cs:dword_100A03738                                       ; +0x132, 0x100583552\ncvttss2si eax, xmm0                                                    ; +0x13a, 0x10058355a\nmov     [rbx+344h], eax                                                ; +0x13e, 0x10058355e\nmov     [rbx+340h], eax                                                ; +0x144, 0x100583564\nmov     dword ptr [rbx+34Ch], 0                                        ; +0x14a, 0x10058356a\nmov     dword ptr [rbx+3C4h], 0                                        ; +0x154, 0x100583574\nmov     dword ptr [rbx+3BCh], 0                                        ; +0x15e, 0x10058357e\ncall    _rand                                                          ; +0x168, 0x100583588\nxorps   xmm0, xmm0                                                     ; +0x16d, 0x10058358d\ncvtsi2ss xmm0, eax                                                     ; +0x170, 0x100583590\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x174, 0x100583594\nmulss   xmm0, cs:dword_100A03738                                       ; +0x17c, 0x10058359c\ncvttss2si eax, xmm0                                                    ; +0x184, 0x1005835a4\nmov     [rbx+3B8h], eax                                                ; +0x188, 0x1005835a8\nmov     [rbx+3B4h], eax                                                ; +0x18e, 0x1005835ae\nmov     dword ptr [rbx+3ACh], 0                                        ; +0x194, 0x1005835b4\ncall    _rand                                                          ; +0x19e, 0x1005835be\nxorps   xmm0, xmm0                                                     ; +0x1a3, 0x1005835c3\ncvtsi2ss xmm0, eax                                                     ; +0x1a6, 0x1005835c6\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x1aa, 0x1005835ca\nmulss   xmm0, cs:dword_100A03738                                       ; +0x1b2, 0x1005835d2\ncvttss2si eax, xmm0                                                    ; +0x1ba, 0x1005835da\nmov     [rbx+3A8h], eax                                                ; +0x1be, 0x1005835de\nmov     [rbx+3A4h], eax                                                ; +0x1c4, 0x1005835e4\nmov     word ptr [rbx+450h], 0                                         ; +0x1ca, 0x1005835ea\ncall    cocos2d__CCDictionary__create                                  ; +0x1d3, 0x1005835f3\nmov     rdi, [rbx+140h]                                                ; +0x1d8, 0x1005835f8\ncmp     rdi, rax                                                       ; +0x1df, 0x1005835ff\njz      short loc_10058362C                                            ; +0x1e2, 0x100583602\nmov     r14, rax                                                       ; +0x1e4, 0x100583604\ntest    rax, rax                                                       ; +0x1e7, 0x100583607\njz      short loc_10058361B                                            ; +0x1ea, 0x10058360a\nmov     rdi, r14                                                       ; +0x1ec, 0x10058360c\ncall    cocos2d__CCObject__retain                                      ; +0x1ef, 0x10058360f\nmov     rdi, [rbx+140h]                                                ; +0x1f4, 0x100583614\ntest    rdi, rdi                                                       ; +0x1fb, 0x10058361b\njz      short loc_100583625                                            ; +0x1fe, 0x10058361e\ncall    cocos2d__CCObject__release                                     ; +0x200, 0x100583620\nmov     [rbx+140h], r14                                                ; +0x205, 0x100583625\nmov     al, 1                                                          ; +0x20c, 0x10058362c\npop     rbx                                                            ; +0x20e, 0x10058362e\npop     r14                                                            ; +0x20f, 0x10058362f\npop     rbp                                                            ; +0x211, 0x100583631\nretn                                                                   ; +0x212, 0x100583632", "xrefs": ["<???> @ 0x100b6d800"], "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"}