// // KeybindingsLayer::actionsToShow from 0x1403d7db0 to 0x1403d8093 (739 bytes) // // 2 xrefs: // > @ 0x140786650 // > @ 0x140924a7c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:31:37 +0000 // // Hidden C++ exception states: #wind=2 const void **__fastcall KeybindingsLayer::actionsToShow(__int64 a1, const void **a2, int a3) { int v3; // eax const void **v4; // r14 __int64 v5; // rbx int v6; // ecx int *v7; // r12 const char *v8; // rax size_t v9; // r8 _QWORD *v10; // rsi unsigned __int64 v11; // rcx unsigned __int64 v12; // r13 void **v13; // r15 char v14; // bl unsigned __int64 v15; // r14 __int64 v16; // rbx void **v17; // rbp char *v18; // rbp _QWORD *v19; // rax int v20; // edi int v21; // eax void **v22; // rax unsigned __int64 v23; // rdi _DWORD *i; // rcx void **v25; // rax _BYTE *v26; // rdx int v29; // [rsp+38h] [rbp-A0h] void *Block[2]; // [rsp+58h] [rbp-80h] BYREF __int128 v33; // [rsp+68h] [rbp-70h] void *Src[4]; // [rsp+78h] [rbp-60h] BYREF v3 = a3; v4 = a2; v5 = a1; *a2 = nullptr; a2[1] = nullptr; a2[2] = nullptr; v6 = *(_DWORD *)(a1 + 1176); v29 = v6; if ( a3 != v6 || *(_QWORD *)(v5 + 1160) ) { v7 = dword_1407034D0; while ( 1 ) { if ( v3 == v6 ) { v8 = GJKeybindManager::actionToString(*v7); *(_OWORD *)Block = 0; v33 = 0; v9 = -1; do ++v9; while ( v8[v9] ); sub_14003D230(Block, v8, v9); v10 = (_QWORD *)(v5 + 1144); v11 = *(_QWORD *)(v5 + 1160); v12 = *((_QWORD *)&v33 + 1); v13 = (void **)Block[0]; if ( v11 <= (unsigned __int64)v33 ) { v15 = 0; do { v16 = 0; if ( !v11 ) { LABEL_17: v14 = 1; goto LABEL_18; } while ( 1 ) { v17 = Block; if ( v12 > 0xF ) v17 = v13; v18 = (char *)v17 + v16; v19 = v10; if ( v10[3] > 0xFu ) v19 = (_QWORD *)*v10; v20 = tolower(*((unsigned __int8 *)v19 + v16)); v21 = tolower((unsigned __int8)v18[v15]); v11 = v10[2]; if ( v21 != v20 ) break; if ( ++v16 >= v11 ) goto LABEL_17; } ++v15; } while ( v15 <= (unsigned __int64)v33 - v11 ); v14 = 0; LABEL_18: v4 = a2; } else { v14 = 0; } if ( v12 > 0xF ) { v22 = v13; if ( v12 + 1 >= 0x1000 ) { v13 = (void **)*(v13 - 1); if ( (unsigned __int64)((char *)v22 - (char *)v13 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v13); } if ( !v14 ) { (*(void (__fastcall **)(_QWORD, void **, _QWORD))(**(_QWORD **)(a1 + 1080) + 8LL))( *(_QWORD *)(a1 + 1080), Block, (unsigned int)*v7); v23 = 0; for ( i = Block[0]; v23 < ((char *)Block[1] - (char *)Block[0]) >> 2; i = Block[0] ) { if ( v14 ) break; v25 = GJKeybindManager::chordToString(Src, i[v23]); v14 = sub_1403D52E0(v25, v10); sub_14003D310((__int64)Src); ++v23; } sub_140069730((__int64)Block); if ( !v14 ) goto LABEL_35; } } else if ( v7[1] != v3 ) { goto LABEL_36; } v26 = v4[1]; if ( v26 == v4[2] ) { sub_140069B30(v4, v26, v7); } else { *(_DWORD *)v26 = *v7; v4[1] = (char *)v4[1] + 4; } LABEL_35: v3 = a3; LABEL_36: v7 += 2; if ( (__int64)v7 >= (__int64)&dword_140703B80 ) return v4; v5 = a1; v6 = v29; } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source