// // GJKeybindManager::parseBindsBlob from 0x1006187d0 to 0x100618d0f (1343 bytes) // // 3 xrefs: // > GJKeybindManager::dataLoaded @ 0x1006191d4 // > sub_1006196A0 @ 0x100619b95 // > sub_100619C90 @ 0x100619ca6 // // 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 12:34:38 +0000 // unsigned __int64 __fastcall GJKeybindManager::parseBindsBlob( _QWORD *a1, std::string *a2, int a3, _DWORD *a4, _DWORD *a5) { std::string *v7; // rbx _QWORD **v8; // rbx _QWORD *v9; // r14 __int64 v10; // rsi _QWORD **v11; // rbx _QWORD *v12; // r14 __int64 v13; // rsi unsigned int v14; // eax unsigned __int64 result; // rax int v16; // eax std::string::size_type v17; // r14 std::string::size_type size; // r15 unsigned int v19; // r15d unsigned int v20; // r15d std::string::size_type v21; // r15 std::string::pointer v22; // rsi size_t v23; // r15 char *v24; // r13 int v25; // edi size_t v26; // rbx char *v27; // rbx int v28; // r14d const char *v29; // rax std::string::size_type v30; // r13 int v31; // r14d std::string::size_type v32; // r12 std::string::size_type v33; // rax std::string::size_type v34; // rcx std::string::size_type v35; // r13 unsigned int v36; // r15d std::string::size_type v37; // r15 std::string::pointer v38; // r14 size_t v39; // r15 char *v40; // r12 size_t v41; // rbx char *v42; // rbx char *v43; // rdi bool v44; // al _DWORD *v45; // rax unsigned int v46; // eax _DWORD *v47; // [rsp+0h] [rbp-90h] _DWORD *v48; // [rsp+8h] [rbp-88h] char *data; // [rsp+10h] [rbp-80h] int v50; // [rsp+1Ch] [rbp-74h] std::string::size_type v52; // [rsp+28h] [rbp-68h] std::string::size_type v53; // [rsp+28h] [rbp-68h] unsigned __int64 v54; // [rsp+30h] [rbp-60h] char __dst[8]; // [rsp+38h] [rbp-58h] BYREF size_t v56; // [rsp+40h] [rbp-50h] char *v57; // [rsp+48h] [rbp-48h] int v58; // [rsp+54h] [rbp-3Ch] std::string *v59; // [rsp+58h] [rbp-38h] int v60; // [rsp+60h] [rbp-30h] bool v61; // [rsp+67h] [rbp-29h] v7 = a2; v60 = a3; v59 = a2; if ( a3 ) { if ( a1[10] ) { v8 = (_QWORD **)a1[9]; if ( v8 ) { do { v9 = *v8; sub_10001ADF0((__int64)(v8 + 3), v8[4]); operator delete(v8); v8 = (_QWORD **)v9; } while ( v9 ); } a1[9] = 0; v10 = a1[8]; if ( v10 ) __bzero(a1[7], 8 * v10); a1[10] = 0; v7 = v59; } if ( a1[15] ) { v11 = (_QWORD **)a1[14]; if ( v11 ) { do { v12 = *v11; sub_10001ADF0((__int64)(v11 + 3), v11[4]); operator delete(v11); v11 = (_QWORD **)v12; } while ( v12 ); } a1[14] = 0; v13 = a1[13]; if ( v13 ) __bzero(a1[12], 8 * v13); a1[15] = 0; v7 = v59; } } if ( a4 ) *a4 = 0; if ( a5 ) *a5 = 0; v14 = (unsigned int)v7->__r_.__value_.__l.0; v47 = a4; if ( (v14 & 1) != 0 ) { result = v7->__r_.__value_.__l.__size_; if ( !result ) return result; } else { result = v14 >> 1; if ( !result ) return result; } data = v7->__r_.__value_.__s.__data_; v16 = v60; LOBYTE(v16) = v60 ^ 1; v60 = v16; v17 = 0; v48 = a5; do { while ( 2 ) { size = std::string::find(v7, 124, v17); if ( size == -1 ) { v19 = (unsigned int)v7->__r_.__value_.__l.0; if ( (v19 & 1) != 0 ) size = v7->__r_.__value_.__l.__size_; else size = v19 >> 1; } v52 = std::string::find(v7, 58, v17); if ( v52 == -1 || v52 >= size ) goto LABEL_81; v54 = size; v20 = (unsigned int)v7->__r_.__value_.__l.0; if ( (v20 & 1) != 0 ) { v21 = v7->__r_.__value_.__l.__size_; if ( v21 < v17 ) LABEL_84: sub_100056810(); v22 = v7->__r_.__value_.__l.__data_; } else { v21 = v20 >> 1; v22 = data; if ( v17 > v21 ) goto LABEL_84; } v23 = v21 - v17; if ( v23 >= v52 - v17 ) v23 = v52 - v17; if ( v23 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_85: sub_100003630(); if ( v23 >= 0x17 ) { v26 = (v23 | 7) + 1; if ( (v23 | 7) == 0x17 ) v26 = 26; v24 = (char *)operator new(v26); v57 = v24; *(_QWORD *)__dst = v26 + 1; v56 = v23; } else { __dst[0] = 2 * v23; v24 = &__dst[1]; if ( !v23 ) { __dst[1] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_45; goto LABEL_40; } } memmove(v24, &v22[v17], v23); v24[v23] = 0; if ( (__dst[0] & 1) != 0 ) { LABEL_45: v27 = v57; v28 = atoi(v57); operator delete(v27); v25 = v28; goto LABEL_46; } LABEL_40: v25 = atoi(&__dst[1]); LABEL_46: v7 = v59; size = v54; v58 = v25; if ( v25 ) { v29 = GJKeybindManager::actionToString(v25); v61 = strcmp(v29, "Unknown") == 0; v30 = v52 + 1; if ( v52 + 1 >= v54 ) goto LABEL_78; } else { v61 = 1; v30 = v52 + 1; if ( v52 + 1 >= v54 ) { LABEL_78: if ( a5 ) { v45 = a5; if ( v61 && v58 != 0 ) goto LABEL_80; } goto LABEL_81; } } v31 = 0; v32 = v30; do { while ( 1 ) { v33 = std::string::find(v7, 44, v32); v34 = v33; if ( v33 >= size ) { v34 = size; v35 = size; if ( v33 == -1 ) { LABEL_54: v50 = v31; v36 = (unsigned int)v7->__r_.__value_.__l.0; if ( (v36 & 1) == 0 ) goto LABEL_55; goto LABEL_59; } } else { v35 = size; if ( v33 == -1 ) goto LABEL_54; } v35 = v34; v50 = v31; v36 = (unsigned int)v7->__r_.__value_.__l.0; if ( (v36 & 1) == 0 ) { LABEL_55: v37 = v36 >> 1; v38 = data; if ( v32 > v37 ) goto LABEL_84; goto LABEL_61; } LABEL_59: v37 = v7->__r_.__value_.__l.__size_; if ( v37 < v32 ) goto LABEL_84; v38 = v7->__r_.__value_.__l.__data_; LABEL_61: v39 = v37 - v32; if ( v39 >= v35 - v32 ) v39 = v35 - v32; if ( v39 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_85; v53 = v32; if ( v39 >= 0x17 ) { v41 = 26; if ( (v39 | 7) != 0x17 ) v41 = (v39 | 7) + 1; v40 = (char *)operator new(v41); v57 = v40; *(_QWORD *)__dst = v41 + 1; v56 = v39; v7 = v59; } else { __dst[0] = 2 * v39; v40 = &__dst[1]; if ( !v39 ) { __dst[1] = 0; if ( (__dst[0] & 1) == 0 ) goto LABEL_67; goto LABEL_72; } } memmove(v40, &v38[v53], v39); v40[v39] = 0; if ( (__dst[0] & 1) == 0 ) { LABEL_67: v31 = atoi(&__dst[1]); goto LABEL_73; } LABEL_72: v42 = v57; v31 = atoi(v57); v43 = v42; v7 = v59; operator delete(v43); LABEL_73: size = v54; if ( (unsigned int)(unsigned __int16)v31 - 1001 < 0x2C ) v31 = (unsigned __int16)v31; v44 = v61 || v31 == 0; if ( !(v60 & 1 | (v61 || v31 == 0)) ) break; v31 = v50; LOBYTE(v31) = !v44 | v50; v32 = v35 + 1; if ( v35 + 1 >= v54 ) goto LABEL_77; } GJKeybindManager::bindChord((__int64)a1, v31, v58); LOBYTE(v31) = 1; v32 = v35 + 1; } while ( v35 + 1 < v54 ); LABEL_77: v45 = v47; a5 = v48; if ( ((unsigned __int8)v31 & (v47 != nullptr)) == 0 ) goto LABEL_78; LABEL_80: ++*v45; LABEL_81: v46 = (unsigned int)v7->__r_.__value_.__l.0; if ( (v46 & 1) != 0 ) { result = v7->__r_.__value_.__l.__size_; v17 = size + 1; if ( size + 1 >= result ) return result; continue; } break; } result = v46 >> 1; v17 = size + 1; } while ( size + 1 < result ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source