{"type": "func", "start": 5371357664, "end": 5371358032, "name": "GameManager::update", "pseudocode": "// \n// GameManager::update from 0x1402869e0 to 0x140286b50 (368 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14075ddf8\n// > <???> @ 0x14091d108\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 11:29:02 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GameManager::update(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rcx\n  cocos2d::CCApplication *v4; // rax\n  __int64 result; // rax\n  __int64 v6; // rdi\n  _QWORD *v7; // rax\n  _QWORD *v8; // rax\n  char v9; // bl\n  _QWORD *v10; // rax\n  _QWORD *v11; // rax\n  void *v12; // [rsp+50h] [rbp+8h]\n\n  v2 = qword_14090BF60;\n  if ( !qword_14090BF60 )\n  {\n    v12 = operator new(0x8A8u);\n    qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v12);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n    v2 = qword_14090BF60;\n  }\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 32LL))(v2);\n  if ( !*(_BYTE *)(a1 + 1132) )\n  {\n    v4 = (cocos2d::CCApplication *)cocos2d::CCApplication::sharedApplication(v3);\n    cocos2d::CCApplication::updateMouseControl(v4);\n  }\n  result = sub_14008B190();\n  v6 = result;\n  if ( *(_BYTE *)(result + 384) )\n  {\n    GameManager::syncPlatformAchievements(result);\n    if ( *(_BYTE *)(v6 + 388) )\n    {\n      *(_BYTE *)(v6 + 388) = 0;\n      if ( *(_BYTE *)(v6 + 384) )\n      {\n        v7 = (_QWORD *)SteamInternal_ContextInit(&off_1408FE078);\n        if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*v7 + 200LL))(*v7) )\n        {\n          v8 = (_QWORD *)SteamInternal_ContextInit(&off_1408FE078);\n          if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*v8 + 312LL))(*v8) )\n          {\n            if ( *(_BYTE *)(v6 + 387) )\n            {\n              v9 = *(_BYTE *)(v6 + 389);\n              v10 = (_QWORD *)SteamInternal_ContextInit(&off_1408FE078);\n              (*(void (__fastcall **)(_QWORD, bool, _QWORD, _QWORD, _DWORD, _DWORD))(*(_QWORD *)*v10 + 264LL))(\n                *v10,\n                v9 != 0,\n                *(unsigned int *)(v6 + 392),\n                *(unsigned int *)(v6 + 396),\n                *(_DWORD *)(v6 + 400),\n                *(_DWORD *)(v6 + 404));\n            }\n            else\n            {\n              v11 = (_QWORD *)SteamInternal_ContextInit(&off_1408FE078);\n              (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v11 + 280LL))(*v11);\n            }\n          }\n        }\n      }\n    }\n    return SteamAPI_RunCallbacks();\n  }\n  return result;\n}", "assembly": "; \n; GameManager::update from 0x1402869e0 to 0x140286b50 (368 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14075ddf8\n; > <???> @ 0x14091d108\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 11:29:02 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1402869e0\npush    rdi                                                            ; +0x5, 0x1402869e5\nsub     rsp, 40h                                                       ; +0x6, 0x1402869e6\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xa, 0x1402869ea\nmovaps  xmm6, xmm1                                                     ; +0xf, 0x1402869ef\nmov     rbx, rcx                                                       ; +0x12, 0x1402869f2\nmov     rcx, cs:qword_14090BF60                                        ; +0x15, 0x1402869f5\ntest    rcx, rcx                                                       ; +0x1c, 0x1402869fc\njnz     short loc_140286A33                                            ; +0x1f, 0x1402869ff\nmov     ecx, 8A8h; Size                                                ; +0x21, 0x140286a01\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x26, 0x140286a06\nmov     [rsp+48h+arg_0], rax                                           ; +0x2b, 0x140286a0b\nmov     rcx, rax                                                       ; +0x30, 0x140286a10\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x33, 0x140286a13\nnop                                                                    ; +0x38, 0x140286a18\nmov     cs:qword_14090BF60, rax                                        ; +0x39, 0x140286a19\nmov     rcx, [rax]                                                     ; +0x40, 0x140286a20\nmov     rdx, [rcx+48h]                                                 ; +0x43, 0x140286a23\nmov     rcx, rax                                                       ; +0x47, 0x140286a27\ncall    rdx                                                            ; +0x4a, 0x140286a2a\nmov     rcx, cs:qword_14090BF60                                        ; +0x4c, 0x140286a2c\nmov     rax, [rcx]                                                     ; +0x53, 0x140286a33\nmovaps  xmm1, xmm6                                                     ; +0x56, 0x140286a36\ncall    qword ptr [rax+20h]                                            ; +0x59, 0x140286a39\ncmp     byte ptr [rbx+46Ch], 0                                         ; +0x5c, 0x140286a3c\njnz     short loc_140286A54                                            ; +0x63, 0x140286a43\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x65, 0x140286a45\nmov     rcx, rax                                                       ; +0x6b, 0x140286a4b\ncall    cs:?updateMouseControl@CCApplication@cocos2d@@QEAAXXZ; cocos2d::CCApplication::updateMouseControl(void) ; +0x6e, 0x140286a4e\ncall    sub_14008B190                                                  ; +0x74, 0x140286a54\nmov     rdi, rax                                                       ; +0x79, 0x140286a59\ncmp     byte ptr [rax+180h], 0                                         ; +0x7c, 0x140286a5c\njz      loc_140286B40                                                  ; +0x83, 0x140286a63\nmov     rcx, rax                                                       ; +0x89, 0x140286a69\ncall    GameManager__syncPlatformAchievements                          ; +0x8c, 0x140286a6c\ncmp     byte ptr [rdi+184h], 0                                         ; +0x91, 0x140286a71\njz      loc_140286B3A                                                  ; +0x98, 0x140286a78\nmov     byte ptr [rdi+184h], 0                                         ; +0x9e, 0x140286a7e\ncmp     byte ptr [rdi+180h], 0                                         ; +0xa5, 0x140286a85\njz      loc_140286B3A                                                  ; +0xac, 0x140286a8c\nlea     rcx, off_1408FE078                                             ; +0xb2, 0x140286a92\ncall    cs:SteamInternal_ContextInit                                   ; +0xb9, 0x140286a99\nmov     rcx, [rax]                                                     ; +0xbf, 0x140286a9f\nmov     rax, [rcx]                                                     ; +0xc2, 0x140286aa2\ncall    qword ptr [rax+0C8h]                                           ; +0xc5, 0x140286aa5\ntest    al, al                                                         ; +0xcb, 0x140286aab\njz      loc_140286B3A                                                  ; +0xcd, 0x140286aad\nlea     rcx, off_1408FE078                                             ; +0xd3, 0x140286ab3\ncall    cs:SteamInternal_ContextInit                                   ; +0xda, 0x140286aba\nmov     rcx, [rax]                                                     ; +0xe0, 0x140286ac0\nmov     rax, [rcx]                                                     ; +0xe3, 0x140286ac3\ncall    qword ptr [rax+138h]                                           ; +0xe6, 0x140286ac6\ntest    al, al                                                         ; +0xec, 0x140286acc\njz      short loc_140286B3A                                            ; +0xee, 0x140286ace\nlea     rcx, off_1408FE078                                             ; +0xf0, 0x140286ad0\ncmp     byte ptr [rdi+183h], 0                                         ; +0xf7, 0x140286ad7\njz      short loc_140286B28                                            ; +0xfe, 0x140286ade\nmovzx   ebx, byte ptr [rdi+185h]                                       ; +0x100, 0x140286ae0\ncall    cs:SteamInternal_ContextInit                                   ; +0x107, 0x140286ae7\nmov     rcx, [rax]                                                     ; +0x10d, 0x140286aed\nxor     edx, edx                                                       ; +0x110, 0x140286af0\ntest    bl, bl                                                         ; +0x112, 0x140286af2\nsetnz   dl                                                             ; +0x114, 0x140286af4\nmov     rax, [rcx]                                                     ; +0x117, 0x140286af7\nmov     r10, [rax+108h]                                                ; +0x11a, 0x140286afa\nmov     eax, [rdi+194h]                                                ; +0x121, 0x140286b01\nmov     [rsp+48h+var_20], eax                                          ; +0x127, 0x140286b07\nmov     eax, [rdi+190h]                                                ; +0x12b, 0x140286b0b\nmov     [rsp+48h+var_28], eax                                          ; +0x131, 0x140286b11\nmov     r9d, [rdi+18Ch]                                                ; +0x135, 0x140286b15\nmov     r8d, [rdi+188h]                                                ; +0x13c, 0x140286b1c\ncall    r10                                                            ; +0x143, 0x140286b23\njmp     short loc_140286B3A                                            ; +0x146, 0x140286b26\ncall    cs:SteamInternal_ContextInit                                   ; +0x148, 0x140286b28\nmov     rcx, [rax]                                                     ; +0x14e, 0x140286b2e\nmov     rax, [rcx]                                                     ; +0x151, 0x140286b31\ncall    qword ptr [rax+118h]                                           ; +0x154, 0x140286b34\ncall    cs:SteamAPI_RunCallbacks                                       ; +0x15a, 0x140286b3a\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x160, 0x140286b40\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x165, 0x140286b45\nadd     rsp, 40h                                                       ; +0x16a, 0x140286b4a\npop     rdi                                                            ; +0x16e, 0x140286b4e\nretn                                                                   ; +0x16f, 0x140286b4f", "xrefs": ["<???> @ 0x14075ddf8", "<???> @ 0x14091d108"], "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"}