{"type": "func", "start": 4298638160, "end": 4298638335, "name": "GameManager::rewardedVideoAdFinished", "pseudocode": "// \n// GameManager::rewardedVideoAdFinished from 0x100380350 to 0x1003803ff (175 bytes)\n// \n// 0 xrefs:\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 GameManager::rewardedVideoAdFinished(GameManager *a1, int a2)\n{\n  unsigned int v2; // r14d\n  unsigned int v3; // eax\n  int v4; // ecx\n  int v5; // r8d\n  int v6; // r9d\n  cocos2d::CCAction *v7; // r14\n  timeb v8; // [rsp+0h] [rbp-20h] BYREF\n\n  ftime(&v8);\n  a1->m_adTimer = (double)(v8.millitm + 1000 * (v8.time & 0xFFFFF)) / 1000.0;\n  cocos2d::CCNode::stopActionByTag(a1, 10);\n  v2 = (unsigned int)cocos2d::CCDelayTime::create(0.050000001);\n  v3 = (unsigned int)cocos2d::CCCallFunc::create(\n                       a1,\n                       (cocos2d::SEL_CallFunc)(unsigned __int64)GameManager::rewardedVideoHidden);\n  v7 = (cocos2d::CCAction *)sub_1003B5760(v2, v3, 0, v4, v5, v6);\n  ((void (__fastcall *)(cocos2d::CCAction *, __int64))v7->setTag)(v7, 10);\n  cocos2d::CCActionManager::addAction(a1->m_pActionManager, v7, a1, 0);\n}", "assembly": "; \n; GameManager::rewardedVideoAdFinished from 0x100380350 to 0x1003803ff (175 bytes)\n; \n; 0 xrefs:\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, 0x100380350\nmov     rbp, rsp                                                       ; +0x1, 0x100380351\npush    r14                                                            ; +0x4, 0x100380354\npush    rbx                                                            ; +0x6, 0x100380356\nsub     rsp, 10h                                                       ; +0x7, 0x100380357\nmov     rbx, rdi                                                       ; +0xb, 0x10038035b\nlea     rdi, [rbp+var_20]; timeb *                                     ; +0xe, 0x10038035e\ncall    _ftime                                                         ; +0x12, 0x100380362\nmovzx   eax, [rbp+var_20.millitm]                                      ; +0x17, 0x100380367\nmov     rcx, [rbp+var_20.time]                                         ; +0x1b, 0x10038036b\nand     ecx, 0FFFFFh                                                   ; +0x1f, 0x10038036f\nimul    rcx, 3E8h                                                      ; +0x25, 0x100380375\nadd     rcx, rax                                                       ; +0x2c, 0x10038037c\ncvtsi2sd xmm0, rcx                                                     ; +0x2f, 0x10038037f\ndivsd   xmm0, cs:qword_100815208                                       ; +0x34, 0x100380384\nmovsd   qword ptr [rbx+1A8h], xmm0                                     ; +0x3c, 0x10038038c\nmov     rdi, rbx                                                       ; +0x44, 0x100380394\nmov     esi, 0Ah                                                       ; +0x47, 0x100380397\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x4c, 0x10038039c\nmovss   xmm0, cs:dword_100815D20                                       ; +0x51, 0x1003803a1\ncall    cocos2d__CCDelayTime__create                                   ; +0x59, 0x1003803a9\nmov     r14, rax                                                       ; +0x5e, 0x1003803ae\nlea     rsi, GameManager__rewardedVideoHidden                          ; +0x61, 0x1003803b1\nmov     rdi, rbx                                                       ; +0x68, 0x1003803b8\nxor     edx, edx                                                       ; +0x6b, 0x1003803bb\ncall    cocos2d__CCCallFunc__create                                    ; +0x6d, 0x1003803bd\nmov     rdi, r14                                                       ; +0x72, 0x1003803c2\nmov     rsi, rax                                                       ; +0x75, 0x1003803c5\nxor     edx, edx                                                       ; +0x78, 0x1003803c8\nxor     eax, eax                                                       ; +0x7a, 0x1003803ca\ncall    sub_1003B5760                                                  ; +0x7c, 0x1003803cc\nmov     r14, rax                                                       ; +0x81, 0x1003803d1\nmov     rax, [rax]                                                     ; +0x84, 0x1003803d4\nmov     rdi, r14                                                       ; +0x87, 0x1003803d7\nmov     esi, 0Ah                                                       ; +0x8a, 0x1003803da\ncall    qword ptr [rax+48h]                                            ; +0x8f, 0x1003803df\nmov     rdi, [rbx+108h]                                                ; +0x92, 0x1003803e2\nmov     rsi, r14                                                       ; +0x99, 0x1003803e9\nmov     rdx, rbx                                                       ; +0x9c, 0x1003803ec\nxor     ecx, ecx                                                       ; +0x9f, 0x1003803ef\ncall    cocos2d__CCActionManager__addAction                            ; +0xa1, 0x1003803f1\nadd     rsp, 10h                                                       ; +0xa6, 0x1003803f6\npop     rbx                                                            ; +0xaa, 0x1003803fa\npop     r14                                                            ; +0xab, 0x1003803fb\npop     rbp                                                            ; +0xad, 0x1003803fd\nretn                                                                   ; +0xae, 0x1003803fe", "xrefs": [], "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"}