{"type": "func", "start": 4300135952, "end": 4300136101, "name": "GameToolbox::createHashString", "pseudocode": "// \n// GameToolbox::createHashString from 0x1004ede10 to 0x1004edea5 (149 bytes)\n// \n// 0 xrefs:\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:31:23 +0000\n// \n\nstd::string *__fastcall GameToolbox::createHashString(std::string *a1, const std::string *a2, int a3)\n{\n  int v3; // r15d\n  const char *data; // rdi\n  int v5; // eax\n  __int64 v6; // r13\n  __int64 v7; // rbx\n  std::string::pointer v8; // rax\n\n  *(_WORD *)&a1->__r_.__value_.__l.0 = 0;\n  if ( a3 > 0 )\n  {\n    v3 = a3;\n    data = a2->__r_.__value_.__s.__data_;\n    if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n      data = a2->__r_.__value_.__l.__data_;\n    v5 = strlen(data);\n    if ( v5 >= v3 )\n    {\n      v6 = (int)(float)((float)v5 / (float)v3);\n      v7 = 0;\n      do\n      {\n        v8 = a2->__r_.__value_.__s.__data_;\n        if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n          v8 = a2->__r_.__value_.__l.__data_;\n        std::string::push_back(a1, v8[v7]);\n        v7 += v6;\n        --v3;\n      }\n      while ( v3 );\n    }\n    else\n    {\n      std::string::operator=(a1, a2);\n    }\n  }\n  return a1;\n}", "assembly": "; \n; GameToolbox::createHashString from 0x1004ede10 to 0x1004edea5 (149 bytes)\n; \n; 0 xrefs:\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:31:23 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004ede10\nmov     rbp, rsp                                                       ; +0x1, 0x1004ede11\npush    r15                                                            ; +0x4, 0x1004ede14\npush    r14                                                            ; +0x6, 0x1004ede16\npush    r13                                                            ; +0x8, 0x1004ede18\npush    r12                                                            ; +0xa, 0x1004ede1a\npush    rbx                                                            ; +0xc, 0x1004ede1c\npush    rax                                                            ; +0xd, 0x1004ede1d\nmov     [rbp+var_30], rdi                                              ; +0xe, 0x1004ede1e\nmov     word ptr [rdi], 0                                              ; +0x12, 0x1004ede22\ntest    edx, edx                                                       ; +0x17, 0x1004ede27\njle     short loc_1004EDE92                                            ; +0x19, 0x1004ede29\nmov     r15d, edx                                                      ; +0x1b, 0x1004ede2b\nmov     r14, rsi                                                       ; +0x1e, 0x1004ede2e\nlea     r12, [rsi+1]                                                   ; +0x21, 0x1004ede31\ntest    byte ptr [rsi], 1                                              ; +0x25, 0x1004ede35\nmov     rdi, r12                                                       ; +0x28, 0x1004ede38\njz      short loc_1004EDE41                                            ; +0x2b, 0x1004ede3b\nmov     rdi, [r14+10h]; __s                                            ; +0x2d, 0x1004ede3d\ncall    _strlen                                                        ; +0x31, 0x1004ede41\ncmp     eax, r15d                                                      ; +0x36, 0x1004ede46\njge     short loc_1004EDE59                                            ; +0x39, 0x1004ede49\nmov     rdi, [rbp+var_30]; this                                        ; +0x3b, 0x1004ede4b\nmov     rsi, r14; __str                                                ; +0x3f, 0x1004ede4f\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x42, 0x1004ede52\njmp     short loc_1004EDE92                                            ; +0x47, 0x1004ede57\ncvtsi2ss xmm0, eax                                                     ; +0x49, 0x1004ede59\ncvtsi2ss xmm1, r15d                                                    ; +0x4d, 0x1004ede5d\ndivss   xmm0, xmm1                                                     ; +0x52, 0x1004ede62\ncvttss2si eax, xmm0                                                    ; +0x56, 0x1004ede66\nmovsxd  r13, eax                                                       ; +0x5a, 0x1004ede6a\nxor     ebx, ebx                                                       ; +0x5d, 0x1004ede6d\nnop                                                                    ; +0x5f, 0x1004ede6f\ntest    byte ptr [r14], 1                                              ; +0x60, 0x1004ede70\nmov     rax, r12                                                       ; +0x64, 0x1004ede74\njz      short loc_1004EDE7D                                            ; +0x67, 0x1004ede77\nmov     rax, [r14+10h]                                                 ; +0x69, 0x1004ede79\nmovsx   esi, byte ptr [rax+rbx]; __c                                   ; +0x6d, 0x1004ede7d\nmov     rdi, [rbp+var_30]; this                                        ; +0x71, 0x1004ede81\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc; std::string::push_back(char) ; +0x75, 0x1004ede85\nadd     rbx, r13                                                       ; +0x7a, 0x1004ede8a\ndec     r15d                                                           ; +0x7d, 0x1004ede8d\njnz     short loc_1004EDE70                                            ; +0x80, 0x1004ede90\nmov     rax, [rbp+var_30]                                              ; +0x82, 0x1004ede92\nadd     rsp, 8                                                         ; +0x86, 0x1004ede96\npop     rbx                                                            ; +0x8a, 0x1004ede9a\npop     r12                                                            ; +0x8b, 0x1004ede9b\npop     r13                                                            ; +0x8d, 0x1004ede9d\npop     r14                                                            ; +0x8f, 0x1004ede9f\npop     r15                                                            ; +0x91, 0x1004edea1\npop     rbp                                                            ; +0x93, 0x1004edea3\nretn                                                                   ; +0x94, 0x1004edea4", "xrefs": [], "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"}