{"type": "func", "start": 4298505840, "end": 4298506074, "name": "GameManager::init", "pseudocode": "// \n// GameManager::init from 0x10035fe70 to 0x10035ff5a (234 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b26d80\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:28:55 +0000\n// \n\nchar __fastcall GameManager::init(__int64 a1, double a2, __m128 a3)\n{\n  std::string *v4; // rdi\n  __int64 v5; // rax\n  int v6; // eax\n  int v7; // r14d\n  int v8; // eax\n\n  v4 = (std::string *)(a1 + 320);\n  std::string::assign(v4, \"CCGameManager.dat\");\n  *(_WORD *)(a1 + 422) = 0;\n  *(_BYTE *)(a1 + 505) = 0;\n  *(_QWORD *)(a1 + 464) = 0;\n  *(_QWORD *)(a1 + 488) = 0;\n  v5 = sub_1007FE900(v4);\n  *(_QWORD *)(a1 + 1288) = v5;\n  cocos2d::CCObject::retain(v5);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 896LL))(a1);\n  GameManager::calculateBaseKeyForIcons(a1);\n  GameManager::setupGameAnimations((_QWORD *)a1, (__int64)\"CCGameManager.dat\");\n  v6 = rand();\n  a3.f32[0] = (float)(*(_DWORD *)(a1 + 660) - *(_DWORD *)(a1 + 664)) / 10000.0;\n  v7 = (int)(float)((float)((float)((float)v6 * 4.6566129e-10) * 1000000.0) + _mm_round_ss(a3, a3, 9).f32[0]);\n  v8 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  *(_DWORD *)(a1 + 900) = v8;\n  *(_DWORD *)(a1 + 896) = v8 + v7;\n  return 1;\n}", "assembly": "; \n; GameManager::init from 0x10035fe70 to 0x10035ff5a (234 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b26d80\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:28:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x10035fe70\nmov     rbp, rsp                                                       ; +0x1, 0x10035fe71\npush    r14                                                            ; +0x4, 0x10035fe74\npush    rbx                                                            ; +0x6, 0x10035fe76\nmov     rbx, rdi                                                       ; +0x7, 0x10035fe77\nadd     rdi, 140h; this                                                ; +0xa, 0x10035fe7a\nlea     rsi, aCcgamemanagerD; \"CCGameManager.dat\"                      ; +0x11, 0x10035fe81\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x18, 0x10035fe88\nmov     word ptr [rbx+1A6h], 0                                         ; +0x1d, 0x10035fe8d\nmov     byte ptr [rbx+1F9h], 0                                         ; +0x26, 0x10035fe96\nmov     qword ptr [rbx+1D0h], 0                                        ; +0x2d, 0x10035fe9d\nmov     qword ptr [rbx+1E8h], 0                                        ; +0x38, 0x10035fea8\ncall    sub_1007FE900                                                  ; +0x43, 0x10035feb3\nmov     [rbx+508h], rax                                                ; +0x48, 0x10035feb8\nmov     rdi, rax                                                       ; +0x4f, 0x10035febf\ncall    cocos2d__CCObject__retain                                      ; +0x52, 0x10035fec2\nmov     rax, [rbx]                                                     ; +0x57, 0x10035fec7\nmov     rdi, rbx                                                       ; +0x5a, 0x10035feca\ncall    qword ptr [rax+380h]                                           ; +0x5d, 0x10035fecd\nmov     rdi, rbx                                                       ; +0x63, 0x10035fed3\ncall    GameManager__calculateBaseKeyForIcons                          ; +0x66, 0x10035fed6\nmov     rdi, rbx                                                       ; +0x6b, 0x10035fedb\ncall    GameManager__setupGameAnimations                               ; +0x6e, 0x10035fede\ncall    _rand                                                          ; +0x73, 0x10035fee3\ncvtsi2ss xmm0, eax                                                     ; +0x78, 0x10035fee8\nmov     eax, [rbx+294h]                                                ; +0x7c, 0x10035feec\nsub     eax, [rbx+298h]                                                ; +0x82, 0x10035fef2\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x88, 0x10035fef8\ncvtsi2ss xmm1, eax                                                     ; +0x90, 0x10035ff00\ndivss   xmm1, cs:dword_100A03A54                                       ; +0x94, 0x10035ff04\nmulss   xmm0, cs:dword_100A03B04                                       ; +0x9c, 0x10035ff0c\nroundss xmm1, xmm1, 9                                                  ; +0xa4, 0x10035ff14\naddss   xmm0, xmm1                                                     ; +0xaa, 0x10035ff1a\ncvttss2si r14d, xmm0                                                   ; +0xae, 0x10035ff1e\ncall    _rand                                                          ; +0xb3, 0x10035ff23\nxorps   xmm0, xmm0                                                     ; +0xb8, 0x10035ff28\ncvtsi2ss xmm0, eax                                                     ; +0xbb, 0x10035ff2b\nmulss   xmm0, cs:dword_100A03A50                                       ; +0xbf, 0x10035ff2f\nmulss   xmm0, cs:dword_100A03738                                       ; +0xc7, 0x10035ff37\ncvttss2si eax, xmm0                                                    ; +0xcf, 0x10035ff3f\nmov     [rbx+384h], eax                                                ; +0xd3, 0x10035ff43\nadd     r14d, eax                                                      ; +0xd9, 0x10035ff49\nmov     [rbx+380h], r14d                                               ; +0xdc, 0x10035ff4c\nmov     al, 1                                                          ; +0xe3, 0x10035ff53\npop     rbx                                                            ; +0xe5, 0x10035ff55\npop     r14                                                            ; +0xe6, 0x10035ff56\npop     rbp                                                            ; +0xe8, 0x10035ff58\nretn                                                                   ; +0xe9, 0x10035ff59", "xrefs": ["<???> @ 0x100b26d80"], "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"}