{"type": "func", "start": 4298637600, "end": 4298637745, "name": "GameManager::tryCacheAd", "pseudocode": "// \n// GameManager::tryCacheAd from 0x100380120 to 0x1003801b1 (145 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::tryCacheAd(GameManager *a1)\n{\n  timeb v1; // [rsp+8h] [rbp-18h] BYREF\n\n  ftime(&v1);\n  if ( (double)(v1.millitm + 1000 * (v1.time & 0xFFFFF)) / 1000.0 - a1->m_adCache >= 60.0 )\n  {\n    ftime(&v1);\n    a1->m_adCache = (double)(v1.millitm + 1000 * (v1.time & 0xFFFFF)) / 1000.0;\n    AdToolbox::cacheInterstitial();\n  }\n}", "assembly": "; \n; GameManager::tryCacheAd from 0x100380120 to 0x1003801b1 (145 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, 0x100380120\nmov     rbp, rsp                                                       ; +0x1, 0x100380121\npush    rbx                                                            ; +0x4, 0x100380124\nsub     rsp, 18h                                                       ; +0x5, 0x100380125\nmov     rbx, rdi                                                       ; +0x9, 0x100380129\nlea     rdi, [rbp+var_18]; timeb *                                     ; +0xc, 0x10038012c\ncall    _ftime                                                         ; +0x10, 0x100380130\nmovzx   eax, [rbp+var_18.millitm]                                      ; +0x15, 0x100380135\nmov     rcx, [rbp+var_18.time]                                         ; +0x19, 0x100380139\nand     ecx, 0FFFFFh                                                   ; +0x1d, 0x10038013d\nimul    rcx, 3E8h                                                      ; +0x23, 0x100380143\nadd     rcx, rax                                                       ; +0x2a, 0x10038014a\ncvtsi2sd xmm0, rcx                                                     ; +0x2d, 0x10038014d\ndivsd   xmm0, cs:qword_100815208                                       ; +0x32, 0x100380152\nsubsd   xmm0, qword ptr [rbx+1B0h]                                     ; +0x3a, 0x10038015a\nucomisd xmm0, cs:qword_100816A58                                       ; +0x42, 0x100380162\njb      short loc_1003801AA                                            ; +0x4a, 0x10038016a\nlea     rdi, [rbp+var_18]; timeb *                                     ; +0x4c, 0x10038016c\ncall    _ftime                                                         ; +0x50, 0x100380170\nmovzx   eax, [rbp+var_18.millitm]                                      ; +0x55, 0x100380175\nmov     rcx, [rbp+var_18.time]                                         ; +0x59, 0x100380179\nand     ecx, 0FFFFFh                                                   ; +0x5d, 0x10038017d\nimul    rcx, 3E8h                                                      ; +0x63, 0x100380183\nadd     rcx, rax                                                       ; +0x6a, 0x10038018a\nxorps   xmm0, xmm0                                                     ; +0x6d, 0x10038018d\ncvtsi2sd xmm0, rcx                                                     ; +0x70, 0x100380190\ndivsd   xmm0, cs:qword_100815208                                       ; +0x75, 0x100380195\nmovsd   qword ptr [rbx+1B0h], xmm0                                     ; +0x7d, 0x10038019d\ncall    AdToolbox__cacheInterstitial                                   ; +0x85, 0x1003801a5\nadd     rsp, 18h                                                       ; +0x8a, 0x1003801aa\npop     rbx                                                            ; +0x8e, 0x1003801ae\npop     rbp                                                            ; +0x8f, 0x1003801af\nretn                                                                   ; +0x90, 0x1003801b0", "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"}