{"type": "func", "start": 4301353824, "end": 4301354027, "name": "GJKeybindManager::chordToString", "pseudocode": "// \n// GJKeybindManager::chordToString from 0x100617360 to 0x10061742b (203 bytes)\n// \n// 3 xrefs:\n// > KeybindCapturePopup::updateChordDisplay @ 0x1005b4911\n// > KeybindingsLayer::buildContentForTab @ 0x1006e3162\n// > KeybindingsLayer::actionsToShow @ 0x1006e41f9\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:34:37 +0000\n// \n\nstd::string *__fastcall GJKeybindManager::chordToString(std::string *this, int a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  const char *v4; // rax\n  const std::string::value_type *v5; // rsi\n\n  *(_OWORD *)&this->__r_.__value_.__l.0 = 0;\n  this->__r_.__value_.__r.__words[2] = 0;\n  if ( (a2 & 0x10000) != 0 )\n    std::string::append(this, \"Ctrl+\");\n  if ( (a2 & 0x20000) != 0 )\n    std::string::append(this, \"Alt+\");\n  if ( (a2 & 0x40000) != 0 )\n    std::string::append(this, \"Shift+\");\n  if ( (unsigned int)(unsigned __int16)a2 - 1001 > 0x2B )\n  {\n    v2 = cocos2d::CCDirector::sharedDirector();\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);\n    v4 = cocos2d::CCKeyboardDispatcher::keyToString(v3, (unsigned __int16)a2);\n    v5 = \"?\";\n    if ( v4 )\n      v5 = v4;\n    std::string::append(this, v5);\n  }\n  else\n  {\n    std::string::append(\n      this,\n      (const std::string::value_type *)&unk_100A0D8D8 + *((int *)&unk_100A0D8D8 + (unsigned __int16)a2 - 1001));\n  }\n  return this;\n}", "assembly": "; \n; GJKeybindManager::chordToString from 0x100617360 to 0x10061742b (203 bytes)\n; \n; 3 xrefs:\n; > KeybindCapturePopup::updateChordDisplay @ 0x1005b4911\n; > KeybindingsLayer::buildContentForTab @ 0x1006e3162\n; > KeybindingsLayer::actionsToShow @ 0x1006e41f9\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:34:37 +0000\n; \npush    rbp                                                            ; +0x0, 0x100617360\nmov     rbp, rsp                                                       ; +0x1, 0x100617361\npush    r14                                                            ; +0x4, 0x100617364\npush    rbx                                                            ; +0x6, 0x100617366\nmov     r14d, esi                                                      ; +0x7, 0x100617367\nmov     rbx, rdi                                                       ; +0xa, 0x10061736a\nxorps   xmm0, xmm0                                                     ; +0xd, 0x10061736d\nmovups  xmmword ptr [rdi], xmm0                                        ; +0x10, 0x100617370\nmov     qword ptr [rdi+10h], 0                                         ; +0x13, 0x100617373\ntest    esi, 10000h                                                    ; +0x1b, 0x10061737b\njz      short loc_100617392                                            ; +0x21, 0x100617381\nlea     rsi, aCtrl; \"Ctrl+\"                                            ; +0x23, 0x100617383\nmov     rdi, rbx; this                                                 ; +0x2a, 0x10061738a\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x2d, 0x10061738d\ntest    r14d, 20000h                                                   ; +0x32, 0x100617392\njz      short loc_1006173AA                                            ; +0x39, 0x100617399\nlea     rsi, aAlt_0; \"Alt+\"                                            ; +0x3b, 0x10061739b\nmov     rdi, rbx; this                                                 ; +0x42, 0x1006173a2\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x45, 0x1006173a5\ntest    r14d, 40000h                                                   ; +0x4a, 0x1006173aa\njz      short loc_1006173C2                                            ; +0x51, 0x1006173b1\nlea     rsi, aShift_0; \"Shift+\"                                        ; +0x53, 0x1006173b3\nmov     rdi, rbx; this                                                 ; +0x5a, 0x1006173ba\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x5d, 0x1006173bd\nmovzx   r14d, r14w                                                     ; +0x62, 0x1006173c2\nlea     eax, [r14-3E9h]                                                ; +0x66, 0x1006173c6\ncmp     eax, 2Bh ; '+'                                                 ; +0x6d, 0x1006173cd\nja      short loc_1006173F1                                            ; +0x70, 0x1006173d0\nmov     eax, r14d                                                      ; +0x72, 0x1006173d2\nlea     rcx, unk_100A0D8D8                                             ; +0x75, 0x1006173d5\nmovsxd  rsi, dword ptr [rcx+rax*4-0FA4h]                               ; +0x7c, 0x1006173dc\nadd     rsi, rcx; __s                                                  ; +0x84, 0x1006173e4\nmov     rdi, rbx; this                                                 ; +0x87, 0x1006173e7\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x8a, 0x1006173ea\njmp     short loc_100617423                                            ; +0x8f, 0x1006173ef\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x91, 0x1006173f1\nmov     rcx, [rax]                                                     ; +0x96, 0x1006173f6\nmov     rdi, rax                                                       ; +0x99, 0x1006173f9\ncall    qword ptr [rcx+0C0h]                                           ; +0x9c, 0x1006173fc\nmov     rdi, rax                                                       ; +0xa2, 0x100617402\nmov     esi, r14d                                                      ; +0xa5, 0x100617405\ncall    cocos2d__CCKeyboardDispatcher__keyToString                     ; +0xa8, 0x100617408\ntest    rax, rax                                                       ; +0xad, 0x10061740d\nlea     rsi, asc_100A15429; \"?\"                                        ; +0xb0, 0x100617410\ncmovnz  rsi, rax; __s                                                  ; +0xb7, 0x100617417\nmov     rdi, rbx; this                                                 ; +0xbb, 0x10061741b\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xbe, 0x10061741e\nmov     rax, rbx                                                       ; +0xc3, 0x100617423\npop     rbx                                                            ; +0xc6, 0x100617426\npop     r14                                                            ; +0xc7, 0x100617427\npop     rbp                                                            ; +0xc9, 0x100617429\nretn                                                                   ; +0xca, 0x10061742a", "xrefs": ["KeybindCapturePopup::updateChordDisplay @ 0x1005b4911", "KeybindingsLayer::buildContentForTab @ 0x1006e3162", "KeybindingsLayer::actionsToShow @ 0x1006e41f9"], "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"}