{"type": "func", "start": 4300738032, "end": 4300738379, "name": "GameLevelManager::storeDailyLevelState", "pseudocode": "// \n// GameLevelManager::storeDailyLevelState from 0x100580df0 to 0x100580f4b (347 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x10052df1c\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:32:20 +0000\n// \n\n__int64 __fastcall GameLevelManager::storeDailyLevelState(_DWORD *a1, int a2, int a3, int a4)\n{\n  __int64 result; // rax\n  timeb v6; // [rsp+8h] [rbp-28h] BYREF\n\n  switch ( a4 )\n  {\n    case 2:\n      ftime(&v6);\n      result = (unsigned int)(int)((double)a3 + (double)v6.millitm / 1000.0 + (double)SLODWORD(v6.time));\n      a1[220] = result;\n      a1[221] = a2;\n      if ( a1[225] < a2 )\n        a1[225] = a2;\n      if ( a1[231] < a2 )\n        a1[231] = a2;\n      break;\n    case 1:\n      ftime(&v6);\n      result = (unsigned int)(int)((double)a3 + (double)v6.millitm / 1000.0 + (double)SLODWORD(v6.time));\n      a1[217] = result;\n      a1[218] = a2;\n      if ( a1[224] < a2 )\n        a1[224] = a2;\n      if ( a1[230] < a2 )\n        a1[230] = a2;\n      break;\n    case 0:\n      ftime(&v6);\n      result = (unsigned int)(int)((double)a3 + (double)v6.millitm / 1000.0 + (double)SLODWORD(v6.time));\n      a1[214] = result;\n      a1[215] = a2;\n      if ( a1[223] < a2 )\n        a1[223] = a2;\n      if ( a1[229] < a2 )\n        a1[229] = a2;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::storeDailyLevelState from 0x100580df0 to 0x100580f4b (347 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x10052df1c\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:32:20 +0000\n; \npush    rbp                                                            ; +0x0, 0x100580df0\nmov     rbp, rsp                                                       ; +0x1, 0x100580df1\npush    r15                                                            ; +0x4, 0x100580df4\npush    r14                                                            ; +0x6, 0x100580df6\npush    rbx                                                            ; +0x8, 0x100580df8\nsub     rsp, 18h                                                       ; +0x9, 0x100580df9\nmov     r15d, edx                                                      ; +0xd, 0x100580dfd\nmov     ebx, esi                                                       ; +0x10, 0x100580e00\nmov     r14, rdi                                                       ; +0x12, 0x100580e02\ncmp     ecx, 2                                                         ; +0x15, 0x100580e05\njz      loc_100580EE2                                                  ; +0x18, 0x100580e08\ncmp     ecx, 1                                                         ; +0x1e, 0x100580e0e\njz      short loc_100580E82                                            ; +0x21, 0x100580e11\ntest    ecx, ecx                                                       ; +0x23, 0x100580e13\njnz     loc_100580F40                                                  ; +0x25, 0x100580e15\nlea     rdi, [rbp+var_28]; timeb *                                     ; +0x2b, 0x100580e1b\ncall    _ftime                                                         ; +0x2f, 0x100580e1f\ncvtsi2sd xmm0, [rbp+var_28.time]                                       ; +0x34, 0x100580e24\nmovzx   eax, [rbp+var_28.millitm]                                      ; +0x3a, 0x100580e2a\ncvtsi2sd xmm1, eax                                                     ; +0x3e, 0x100580e2e\ndivsd   xmm1, cs:qword_100A03B70                                       ; +0x42, 0x100580e32\ncvtsi2sd xmm2, r15d                                                    ; +0x4a, 0x100580e3a\naddsd   xmm1, xmm0                                                     ; +0x4f, 0x100580e3f\naddsd   xmm2, xmm1                                                     ; +0x53, 0x100580e43\ncvttsd2si eax, xmm2                                                    ; +0x57, 0x100580e47\nmov     [r14+358h], eax                                                ; +0x5b, 0x100580e4b\nmov     [r14+35Ch], ebx                                                ; +0x62, 0x100580e52\ncmp     [r14+37Ch], ebx                                                ; +0x69, 0x100580e59\njge     short loc_100580E69                                            ; +0x70, 0x100580e60\nmov     [r14+37Ch], ebx                                                ; +0x72, 0x100580e62\ncmp     [r14+394h], ebx                                                ; +0x79, 0x100580e69\njge     loc_100580F40                                                  ; +0x80, 0x100580e70\nmov     [r14+394h], ebx                                                ; +0x86, 0x100580e76\njmp     loc_100580F40                                                  ; +0x8d, 0x100580e7d\nlea     rdi, [rbp+var_28]; timeb *                                     ; +0x92, 0x100580e82\ncall    _ftime                                                         ; +0x96, 0x100580e86\ncvtsi2sd xmm0, [rbp+var_28.time]                                       ; +0x9b, 0x100580e8b\nmovzx   eax, [rbp+var_28.millitm]                                      ; +0xa1, 0x100580e91\ncvtsi2sd xmm1, eax                                                     ; +0xa5, 0x100580e95\ndivsd   xmm1, cs:qword_100A03B70                                       ; +0xa9, 0x100580e99\ncvtsi2sd xmm2, r15d                                                    ; +0xb1, 0x100580ea1\naddsd   xmm1, xmm0                                                     ; +0xb6, 0x100580ea6\naddsd   xmm2, xmm1                                                     ; +0xba, 0x100580eaa\ncvttsd2si eax, xmm2                                                    ; +0xbe, 0x100580eae\nmov     [r14+364h], eax                                                ; +0xc2, 0x100580eb2\nmov     [r14+368h], ebx                                                ; +0xc9, 0x100580eb9\ncmp     [r14+380h], ebx                                                ; +0xd0, 0x100580ec0\njge     short loc_100580ED0                                            ; +0xd7, 0x100580ec7\nmov     [r14+380h], ebx                                                ; +0xd9, 0x100580ec9\ncmp     [r14+398h], ebx                                                ; +0xe0, 0x100580ed0\njge     short loc_100580F40                                            ; +0xe7, 0x100580ed7\nmov     [r14+398h], ebx                                                ; +0xe9, 0x100580ed9\njmp     short loc_100580F40                                            ; +0xf0, 0x100580ee0\nlea     rdi, [rbp+var_28]; timeb *                                     ; +0xf2, 0x100580ee2\ncall    _ftime                                                         ; +0xf6, 0x100580ee6\ncvtsi2sd xmm0, [rbp+var_28.time]                                       ; +0xfb, 0x100580eeb\nmovzx   eax, [rbp+var_28.millitm]                                      ; +0x101, 0x100580ef1\ncvtsi2sd xmm1, eax                                                     ; +0x105, 0x100580ef5\ndivsd   xmm1, cs:qword_100A03B70                                       ; +0x109, 0x100580ef9\ncvtsi2sd xmm2, r15d                                                    ; +0x111, 0x100580f01\naddsd   xmm1, xmm0                                                     ; +0x116, 0x100580f06\naddsd   xmm2, xmm1                                                     ; +0x11a, 0x100580f0a\ncvttsd2si eax, xmm2                                                    ; +0x11e, 0x100580f0e\nmov     [r14+370h], eax                                                ; +0x122, 0x100580f12\nmov     [r14+374h], ebx                                                ; +0x129, 0x100580f19\ncmp     [r14+384h], ebx                                                ; +0x130, 0x100580f20\njge     short loc_100580F30                                            ; +0x137, 0x100580f27\nmov     [r14+384h], ebx                                                ; +0x139, 0x100580f29\ncmp     [r14+39Ch], ebx                                                ; +0x140, 0x100580f30\njge     short loc_100580F40                                            ; +0x147, 0x100580f37\nmov     [r14+39Ch], ebx                                                ; +0x149, 0x100580f39\nadd     rsp, 18h                                                       ; +0x150, 0x100580f40\npop     rbx                                                            ; +0x154, 0x100580f44\npop     r14                                                            ; +0x155, 0x100580f45\npop     r15                                                            ; +0x157, 0x100580f47\npop     rbp                                                            ; +0x159, 0x100580f49\nretn                                                                   ; +0x15a, 0x100580f4a", "xrefs": ["GameLevelManager::onGetGJDailyLevelStateCompleted @ 0x10052df1c"], "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"}