{"type": "func", "start": 4297269424, "end": 4297269536, "name": "DailyLevelPage::getDailyTime", "pseudocode": "// \n// DailyLevelPage::getDailyTime from 0x1002320b0 to 0x100232120 (112 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\nint __fastcall DailyLevelPage::getDailyTime(DailyLevelPage *a1)\n{\n  GameLevelManager *v1; // rax\n  int DailyTimer; // eax\n  int v3; // ecx\n  int result; // eax\n  timeb v5; // [rsp+0h] [rbp-20h] BYREF\n  double v6; // [rsp+10h] [rbp-10h]\n\n  ftime(&v5);\n  v6 = (double)(v5.millitm + 1000 * (v5.time & 0xFFFFF)) / -1000.0;\n  v1 = GameLevelManager::sharedState();\n  DailyTimer = GameLevelManager::getDailyTimer(v1, a1->m_type);\n  v3 = (int)((double)DailyTimer + v6);\n  result = 0;\n  if ( v3 > 0 )\n    return v3;\n  return result;\n}", "assembly": "; \n; DailyLevelPage::getDailyTime from 0x1002320b0 to 0x100232120 (112 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, 0x1002320b0\nmov     rbp, rsp                                                       ; +0x1, 0x1002320b1\npush    rbx                                                            ; +0x4, 0x1002320b4\nsub     rsp, 18h                                                       ; +0x5, 0x1002320b5\nmov     rbx, rdi                                                       ; +0x9, 0x1002320b9\nlea     rdi, [rbp+var_20]; timeb *                                     ; +0xc, 0x1002320bc\ncall    _ftime                                                         ; +0x10, 0x1002320c0\nmovzx   eax, [rbp+var_20.millitm]                                      ; +0x15, 0x1002320c5\nmov     rcx, [rbp+var_20.time]                                         ; +0x19, 0x1002320c9\nand     ecx, 0FFFFFh                                                   ; +0x1d, 0x1002320cd\nimul    rcx, 3E8h                                                      ; +0x23, 0x1002320d3\nadd     rcx, rax                                                       ; +0x2a, 0x1002320da\ncvtsi2sd xmm0, rcx                                                     ; +0x2d, 0x1002320dd\ndivsd   xmm0, cs:qword_100817E80                                       ; +0x32, 0x1002320e2\nmovsd   [rbp+var_10], xmm0                                             ; +0x3a, 0x1002320ea\ncall    GameLevelManager__sharedState                                  ; +0x3f, 0x1002320ef\nmov     esi, [rbx+2BCh]                                                ; +0x44, 0x1002320f4\nmov     rdi, rax                                                       ; +0x4a, 0x1002320fa\ncall    GameLevelManager__getDailyTimer                                ; +0x4d, 0x1002320fd\nxorps   xmm0, xmm0                                                     ; +0x52, 0x100232102\ncvtsi2sd xmm0, eax                                                     ; +0x55, 0x100232105\naddsd   xmm0, [rbp+var_10]                                             ; +0x59, 0x100232109\ncvttsd2si ecx, xmm0                                                    ; +0x5e, 0x10023210e\nxor     eax, eax                                                       ; +0x62, 0x100232112\ntest    ecx, ecx                                                       ; +0x64, 0x100232114\ncmovg   eax, ecx                                                       ; +0x66, 0x100232116\nadd     rsp, 18h                                                       ; +0x69, 0x100232119\npop     rbx                                                            ; +0x6d, 0x10023211d\npop     rbp                                                            ; +0x6e, 0x10023211e\nretn                                                                   ; +0x6f, 0x10023211f", "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"}