{"type": "func", "start": 4298544752, "end": 4298544832, "name": "GameManager::canShowRewardedVideo", "pseudocode": "// \n// GameManager::canShowRewardedVideo from 0x100369670 to 0x1003696c0 (80 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::onRewardedVideo @ 0x1003557b3\n// > sub_10040E060 @ 0x10040e093\n// > RetryLevelLayer::onRewardedVideo @ 0x1004f81c3\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:59 +0000\n// \n\n__int64 __fastcall GameManager::canShowRewardedVideo()\n{\n  unsigned int v0; // ebx\n  __int64 v1; // rax\n  _BYTE v3[8]; // [rsp+0h] [rbp-20h] BYREF\n  __int64 v4; // [rsp+8h] [rbp-18h]\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( (unsigned __int8)AdToolbox::hasCachedRewardedVideo() )\n  {\n    v1 = GameStatsManager::sharedState();\n    GameStatsManager::getNextVideoAdReward((__int64)v3, v1);\n    if ( (v3[0] & 1) != 0 )\n    {\n      LOBYTE(v0) = v4 != 0;\n      operator delete(__p);\n    }\n    else\n    {\n      LOBYTE(v0) = v3[0] != 0;\n    }\n  }\n  else\n  {\n    return 0;\n  }\n  return v0;\n}", "assembly": "; \n; GameManager::canShowRewardedVideo from 0x100369670 to 0x1003696c0 (80 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::onRewardedVideo @ 0x1003557b3\n; > sub_10040E060 @ 0x10040e093\n; > RetryLevelLayer::onRewardedVideo @ 0x1004f81c3\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:59 +0000\n; \npush    rbp                                                            ; +0x0, 0x100369670\nmov     rbp, rsp                                                       ; +0x1, 0x100369671\npush    rbx                                                            ; +0x4, 0x100369674\nsub     rsp, 18h                                                       ; +0x5, 0x100369675\ncall    AdToolbox__hasCachedRewardedVideo                              ; +0x9, 0x100369679\ntest    al, al                                                         ; +0xe, 0x10036967e\njz      short loc_1003696A2                                            ; +0x10, 0x100369680\ncall    GameStatsManager__sharedState                                  ; +0x12, 0x100369682\nlea     rdi, [rbp+var_20]                                              ; +0x17, 0x100369687\nmov     rsi, rax                                                       ; +0x1b, 0x10036968b\ncall    GameStatsManager__getNextVideoAdReward                         ; +0x1e, 0x10036968e\nmovzx   eax, [rbp+var_20]                                              ; +0x23, 0x100369693\ntest    al, 1                                                          ; +0x27, 0x100369697\njnz     short loc_1003696A6                                            ; +0x29, 0x100369699\ntest    al, al                                                         ; +0x2b, 0x10036969b\nsetnz   bl                                                             ; +0x2d, 0x10036969d\njmp     short loc_1003696B7                                            ; +0x30, 0x1003696a0\nxor     ebx, ebx                                                       ; +0x32, 0x1003696a2\njmp     short loc_1003696B7                                            ; +0x34, 0x1003696a4\ncmp     [rbp+var_18], 0                                                ; +0x36, 0x1003696a6\nsetnz   bl                                                             ; +0x3b, 0x1003696ab\nmov     rdi, [rbp+__p]; __p                                            ; +0x3e, 0x1003696ae\ncall    __ZdlPv; operator delete(void *)                               ; +0x42, 0x1003696b2\nmov     eax, ebx                                                       ; +0x47, 0x1003696b7\nadd     rsp, 18h                                                       ; +0x49, 0x1003696b9\npop     rbx                                                            ; +0x4d, 0x1003696bd\npop     rbp                                                            ; +0x4e, 0x1003696be\nretn                                                                   ; +0x4f, 0x1003696bf", "xrefs": ["GJGarageLayer::onRewardedVideo @ 0x1003557b3", "sub_10040E060 @ 0x10040e093", "RetryLevelLayer::onRewardedVideo @ 0x1004f81c3"], "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"}