{"type": "func", "start": 4300175712, "end": 4300176020, "name": "GameToolbox::msToTimeString", "pseudocode": "// \n// GameToolbox::msToTimeString from 0x1004f7960 to 0x1004f7a94 (308 bytes)\n// \n// 2 xrefs:\n// > GJLevelScoreCell::loadFromScore @ 0x10024b237\n// > GJLocalLevelScoreCell::loadFromScore @ 0x10024b752\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\nstd::string *__fastcall GameToolbox::msToTimeString(std::string *this, int a2, int a3)\n{\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  char v6; // [rsp+0h] [rbp-10h]\n\n  *(_OWORD *)&this->__r_.__value_.__l.0 = 0;\n  this->__r_.__value_.__r.__words[2] = 0;\n  if ( (unsigned int)(a2 + 3599999) >= 0x6DDCFF || (a3 | (a2 / 60000 % 60)) != 0 )\n  {\n    if ( (unsigned int)(a2 + 3599999) >= 0x6DDCFF || a3 == 2 )\n      v3 = (cocos2d::CCString *)sub_1007AB580(\"%i:%02d:%02d.%03d\", v6);\n    else\n      v3 = (cocos2d::CCString *)sub_1007AB580(\"%i:%02d.%03d\", v6);\n  }\n  else\n  {\n    v3 = (cocos2d::CCString *)sub_1007AB580(\"%i.%03d\", v6);\n  }\n  CString = cocos2d::CCString::getCString(v3);\n  std::string::assign(this, CString);\n  return this;\n}", "assembly": "; \n; GameToolbox::msToTimeString from 0x1004f7960 to 0x1004f7a94 (308 bytes)\n; \n; 2 xrefs:\n; > GJLevelScoreCell::loadFromScore @ 0x10024b237\n; > GJLocalLevelScoreCell::loadFromScore @ 0x10024b752\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, 0x1004f7960\nmov     rbp, rsp                                                       ; +0x1, 0x1004f7961\npush    r14                                                            ; +0x4, 0x1004f7964\npush    rbx; char                                                      ; +0x6, 0x1004f7966\nmov     rbx, rdi                                                       ; +0x7, 0x1004f7967\nmovsxd  rsi, esi                                                       ; +0xa, 0x1004f796a\nimul    rax, rsi, 10624DD3h                                            ; +0xd, 0x1004f796d\nmov     rcx, rax                                                       ; +0x14, 0x1004f7974\nshr     rcx, 3Fh                                                       ; +0x17, 0x1004f7977\nshr     rax, 20h                                                       ; +0x1b, 0x1004f797b\nsar     eax, 6                                                         ; +0x1f, 0x1004f797f\nadd     eax, ecx                                                       ; +0x22, 0x1004f7982\nimul    ecx, eax, 3E8h                                                 ; +0x24, 0x1004f7984\nmov     r8d, esi                                                       ; +0x2a, 0x1004f798a\nsub     r8d, ecx                                                       ; +0x2d, 0x1004f798d\nmovsxd  rcx, eax                                                       ; +0x30, 0x1004f7990\nimul    rax, rcx, 0FFFFFFFF88888889h                                   ; +0x33, 0x1004f7993\nshr     rax, 20h                                                       ; +0x3a, 0x1004f799a\nadd     eax, ecx                                                       ; +0x3e, 0x1004f799e\nmov     edi, eax                                                       ; +0x40, 0x1004f79a0\nshr     edi, 1Fh                                                       ; +0x42, 0x1004f79a2\nsar     eax, 5                                                         ; +0x45, 0x1004f79a5\nadd     eax, edi                                                       ; +0x48, 0x1004f79a8\nimul    eax, 3Ch ; '<'                                                 ; +0x4a, 0x1004f79aa\nsub     ecx, eax                                                       ; +0x4d, 0x1004f79ad\nimul    rax, rsi, 45E7B273h                                            ; +0x4f, 0x1004f79af\nmov     rdi, rax                                                       ; +0x56, 0x1004f79b6\nshr     rdi, 3Fh                                                       ; +0x59, 0x1004f79b9\nshr     rax, 20h                                                       ; +0x5d, 0x1004f79bd\nsar     eax, 0Eh                                                       ; +0x61, 0x1004f79c1\nadd     eax, edi                                                       ; +0x64, 0x1004f79c4\ncdqe                                                                   ; +0x66, 0x1004f79c6\nimul    rdi, rax, 0FFFFFFFF88888889h                                   ; +0x68, 0x1004f79c8\nshr     rdi, 20h                                                       ; +0x6f, 0x1004f79cf\nadd     edi, eax                                                       ; +0x73, 0x1004f79d3\nmov     r9d, edi                                                       ; +0x75, 0x1004f79d5\nshr     r9d, 1Fh                                                       ; +0x78, 0x1004f79d8\nsar     edi, 5                                                         ; +0x7c, 0x1004f79dc\nadd     edi, r9d                                                       ; +0x7f, 0x1004f79df\nimul    edi, 3Ch ; '<'                                                 ; +0x82, 0x1004f79e2\nsub     eax, edi                                                       ; +0x85, 0x1004f79e5\nxorps   xmm0, xmm0                                                     ; +0x87, 0x1004f79e7\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x8a, 0x1004f79ea\nmov     qword ptr [rbx+10h], 0                                         ; +0x8d, 0x1004f79ed\nlea     edi, [rsi+36EE7Fh]                                             ; +0x95, 0x1004f79f5\ncmp     edi, 6DDCFFh                                                   ; +0x9b, 0x1004f79fb\nsetnb   r9b                                                            ; +0xa1, 0x1004f7a01\nmov     r10d, eax                                                      ; +0xa5, 0x1004f7a05\nor      r10d, edx                                                      ; +0xa8, 0x1004f7a08\nsetnz   r10b                                                           ; +0xab, 0x1004f7a0b\nor      r10b, r9b                                                      ; +0xaf, 0x1004f7a0f\njnz     short loc_1004F7A29                                            ; +0xb2, 0x1004f7a12\nlea     rdi, aI03d; \"%i.%03d\"                                          ; +0xb4, 0x1004f7a14\nmov     esi, ecx                                                       ; +0xbb, 0x1004f7a1b\nmov     edx, r8d                                                       ; +0xbd, 0x1004f7a1d\nxor     eax, eax                                                       ; +0xc0, 0x1004f7a20\ncall    sub_1007AB580                                                  ; +0xc2, 0x1004f7a22\njmp     short loc_1004F7A79                                            ; +0xc7, 0x1004f7a27\ncmp     edi, 6DDCFFh                                                   ; +0xc9, 0x1004f7a29\nsetnb   dil                                                            ; +0xcf, 0x1004f7a2f\ncmp     edx, 2                                                         ; +0xd3, 0x1004f7a33\nsetz    dl                                                             ; +0xd6, 0x1004f7a36\nor      dl, dil                                                        ; +0xd9, 0x1004f7a39\njnz     short loc_1004F7A55                                            ; +0xdc, 0x1004f7a3c\nlea     rdi, aI02d03d; \"%i:%02d.%03d\"                                  ; +0xde, 0x1004f7a3e\nmov     esi, eax                                                       ; +0xe5, 0x1004f7a45\nmov     edx, ecx                                                       ; +0xe7, 0x1004f7a47\nmov     ecx, r8d                                                       ; +0xe9, 0x1004f7a49\nxor     eax, eax                                                       ; +0xec, 0x1004f7a4c\ncall    sub_1007AB580                                                  ; +0xee, 0x1004f7a4e\njmp     short loc_1004F7A79                                            ; +0xf3, 0x1004f7a53\nimul    rsi, 4A90BE59h                                                 ; +0xf5, 0x1004f7a55\nmov     rdx, rsi                                                       ; +0xfc, 0x1004f7a5c\nshr     rdx, 3Fh                                                       ; +0xff, 0x1004f7a5f\nsar     rsi, 34h                                                       ; +0x103, 0x1004f7a63\nadd     esi, edx                                                       ; +0x107, 0x1004f7a67\nlea     rdi, aI02d02d03d; \"%i:%02d:%02d.%03d\"                          ; +0x109, 0x1004f7a69\nmov     edx, eax                                                       ; +0x110, 0x1004f7a70\nxor     eax, eax                                                       ; +0x112, 0x1004f7a72\ncall    sub_1007AB580                                                  ; +0x114, 0x1004f7a74\nmov     rdi, rax                                                       ; +0x119, 0x1004f7a79\ncall    cocos2d__CCString__getCString                                  ; +0x11c, 0x1004f7a7c\nmov     rdi, rbx; this                                                 ; +0x121, 0x1004f7a81\nmov     rsi, rax; __s                                                  ; +0x124, 0x1004f7a84\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x127, 0x1004f7a87\nmov     rax, rbx                                                       ; +0x12c, 0x1004f7a8c\npop     rbx                                                            ; +0x12f, 0x1004f7a8f\npop     r14                                                            ; +0x130, 0x1004f7a90\npop     rbp                                                            ; +0x132, 0x1004f7a92\nretn                                                                   ; +0x133, 0x1004f7a93", "xrefs": ["GJLevelScoreCell::loadFromScore @ 0x10024b237", "GJLocalLevelScoreCell::loadFromScore @ 0x10024b752"], "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"}