// // GJKeybindManager::parseBindsBlob from 0xc0bdc8 to 0xc0c0d0 (776 bytes) // // 4 xrefs: // > GJKeybindManager::parseImportFile @ 0xc0c454 // > GJKeybindManager::dataLoaded @ 0xc0e958 // > GJKeybindManager::applyImportBlob @ 0xc0e9f4 // > @ 0xb6938 // // This function is hookable on this platform (idp: arm, 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 13:03:55 +0000 // __int64 __fastcall GJKeybindManager::parseBindsBlob( GJKeybindManager *a1, __int64 a2, unsigned __int8 a3, _DWORD *a4, _DWORD *a5) { int v5; // w26 unsigned __int8 v7; // w19 unsigned __int64 v8; // x27 char i; // w23 unsigned __int64 v10; // x0 unsigned __int64 v11; // x21 unsigned __int64 v12; // x0 unsigned __int64 v13; // x24 char *v14; // x19 unsigned __int64 v15; // x28 unsigned int isKnownAction; // w23 int v17; // w24 unsigned __int64 v18; // x2 char *v19; // x19 __int64 v20; // x27 char *v21; // x27 unsigned int v22; // w28 size_t v23; // x2 char *v24; // x0 _DWORD *v25; // x1 _DWORD *v26; // x0 unsigned int v31; // [xsp+7Ch] [xbp+7Ch] __int64 v32[2]; // [xsp+80h] [xbp+80h] BYREF char *v33; // [xsp+90h] [xbp+90h] v5 = a3; if ( a3 ) { std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::clear((__int64)a1 + 56); std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::clear((__int64)a1 + 96); } if ( a4 ) *a4 = 0; if ( a5 ) *a5 = 0; v7 = *(_BYTE *)a2; v8 = 0; for ( i = *(_BYTE *)a2 & 1; ; i = *(_BYTE *)a2 & 1 ) { LABEL_8: v10 = v7 >> 1; if ( i ) v10 = *(_QWORD *)(a2 + 8); if ( v8 >= v10 ) break; v11 = std::string::find(a2, 0x7Cu, v8); if ( v11 == -1 ) { v11 = v7 >> 1; if ( i ) v11 = *(_QWORD *)(a2 + 8); } v12 = std::string::find(a2, 0x3Au, v8); v13 = v12; if ( v12 >= v11 || v12 == -1 ) { v8 = v11 + 1; goto LABEL_8; } std::string::basic_string(v32, a2, v8, v12 - v8); if ( (v32[0] & 1) != 0 ) { v14 = v33; v31 = atoi(v33); operator delete(v14); } else { v31 = atoi((const char *)v32 + 1); } v15 = v13 + 1; if ( v31 ) { isKnownAction = GJKeybindManager::isKnownAction((GJKeybindManager *)v31); if ( v11 <= v15 ) goto LABEL_40; } else { isKnownAction = 0; if ( v11 <= v15 ) goto LABEL_43; } v17 = 0; do { if ( (*(_BYTE *)a2 & 1) != 0 ) { v18 = *(_QWORD *)(a2 + 8); v19 = (char *)v11; v20 = *(_QWORD *)(a2 + 16); if ( v15 >= v18 ) goto LABEL_21; } else { v18 = *(_BYTE *)a2 >> 1; v20 = a2 + 1; v19 = (char *)v11; if ( v15 >= v18 ) goto LABEL_21; } v23 = v18 - v15; if ( v23 ) { v24 = (char *)memchr((const void *)(v20 + v15), 44, v23); if ( v24 ) { v19 = &v24[-v20]; if ( v11 >= (unsigned __int64)&v24[-v20] && v19 != (char *)-1LL ) { LABEL_21: std::string::basic_string(v32, a2, v15, (size_t)&v19[-v15]); if ( (v32[0] & 1) != 0 ) goto LABEL_22; goto LABEL_37; } } } v19 = (char *)v11; std::string::basic_string(v32, a2, v15, v11 - v15); if ( (v32[0] & 1) != 0 ) { LABEL_22: v21 = v33; v22 = atoi(v33); operator delete(v21); goto LABEL_23; } LABEL_37: v22 = atoi((const char *)v32 + 1); LABEL_23: if ( GJKeybindManager::isControllerChord((GJKeybindManager *)v22) ) v22 = (unsigned __int16)v22; if ( v22 ) { if ( isKnownAction ) { v17 = 1; if ( v5 ) GJKeybindManager::bindChord(a1, v22, v31); } } v15 = (unsigned __int64)(v19 + 1); } while ( v11 > (unsigned __int64)(v19 + 1) ); if ( v17 && (v25 = a4, (v26 = a4) != nullptr) ) { LABEL_42: *v25 = *v26 + 1; } else { LABEL_40: if ( (v31 != 0) > isKnownAction ) { v25 = a5; v26 = a5; if ( a5 ) goto LABEL_42; } } LABEL_43: v7 = *(_BYTE *)a2; v8 = v11 + 1; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source