// // KeybindingsSettingsPopup::onImport from 0x1004ee868 to 0x1004eea90 (552 bytes) // // 1 xrefs: // > @ 0x1008afbd0 // // 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 11:06:44 +0000 // void __fastcall KeybindingsSettingsPopup::onImport(__int64 a1) { __int64 v2; // x0 int v3; // w0 std::string *v4; // x1 std::string::size_type size; // x2 std::string *v6; // x1 std::string::size_type v7; // x2 void *v8; // x0 void *v9; // x0 void *v10; // x19 std::string __p; // [xsp+0h] [xbp-A0h] BYREF std::string v12; // [xsp+20h] [xbp-80h] BYREF std::string v13; // [xsp+38h] [xbp-68h] BYREF _QWORD v14[2]; // [xsp+50h] [xbp-50h] BYREF char v15; // [xsp+67h] [xbp-39h] int v16; // [xsp+6Ch] [xbp-34h] BYREF __int64 v17; // [xsp+70h] [xbp-30h] BYREF std::string __str; // [xsp+78h] [xbp-28h] BYREF memset(&__str, 0, sizeof(__str)); v17 = 0; v16 = 0; v2 = GJKeybindManager::sharedState(); v3 = GJKeybindManager::parseImportFile(v2, (__int64)&__str, (int *)&v17 + 1, &v17, &v16); if ( v3 < 0 ) goto LABEL_31; if ( !v3 ) { sub_100009900(v14, "File is invalid, empty, or from a newer version."); v8 = FLAlertLayer::create_1(0, (__int64)"Import Failed", (__int64)v14, (__int64)"OK", 0, 380.0); (*(void (__fastcall **)(void *))(*(_QWORD *)v8 + 1312LL))(v8); if ( (v15 & 0x80000000) == 0 ) goto LABEL_31; v9 = (void *)v14[0]; goto LABEL_30; } *(_DWORD *)(a1 + 704) = 2; std::string::operator=((std::string *)(a1 + 712), &__str); *(_DWORD *)(a1 + 736) = v16; sub_100009900(&v13, "Replace current keybinds with "); std::to_string(&v12, SHIDWORD(v17)); if ( (v12.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v4 = &v12; else v4 = (std::string *)v12.__r_.__value_.__r.__words[0]; if ( (v12.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) size = HIBYTE(v12.__r_.__value_.__r.__words[2]); else size = v12.__r_.__value_.__l.__size_; std::string::append(&v13, (const std::string::value_type *)v4, size); if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v12.__r_.__value_.__l.__data_); std::string::append(&v13, " actions from file?"); if ( (int)v17 >= 1 ) { std::string::append(&v13, " ("); std::to_string(&v12, v17); if ( (v12.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v6 = &v12; else v6 = (std::string *)v12.__r_.__value_.__r.__words[0]; if ( (v12.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v7 = HIBYTE(v12.__r_.__value_.__r.__words[2]); else v7 = v12.__r_.__value_.__l.__size_; std::string::append(&v13, (const std::string::value_type *)v6, v7); if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v12.__r_.__value_.__l.__data_); std::string::append(&v13, " unknown skipped)"); } if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__p, v13.__r_.__value_.__l.__data_, v13.__r_.__value_.__l.__size_); else __p = v13; v10 = FLAlertLayer::create_1( a1 + 664, (__int64)"Import Keybinds", (__int64)&__p, (__int64)"Cancel", (__int64)"Replace", 380.0); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); (*(void (__fastcall **)(void *))(*(_QWORD *)v10 + 1312LL))(v10); if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) { v9 = (void *)v13.__r_.__value_.__r.__words[0]; LABEL_30: operator delete(v9); } LABEL_31: if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source