// // sub_10056F190 from 0x10056f190 to 0x10056f2a9 (281 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_10056F190(char *filename) { sqlite3_stmt *v1; // rax const char *v2; // rax int v3; // ebx int v4; // r14d int v5; // r15d int v6; // eax int v7; // r14d int v8; // ebx sqlite3_stmt *v10; // [rsp-28h] [rbp-28h] BYREF if ( !byte_1009A2A70 ) { v10 = v1; v2 = ":memory:"; if ( filename ) v2 = filename; v3 = sqlite3_open(v2, &db); v4 = sqlite3_prepare_v2(db, "CREATE TABLE IF NOT EXISTS data(key TEXT PRIMARY KEY,value TEXT);", -1, &v10, nullptr); v5 = v4 | sqlite3_step(v10); v6 = v5 | sqlite3_finalize(v10); if ( v6 && v6 != 101 ) puts("Error in CREATE TABLE"); v7 = v3 | sqlite3_prepare_v2(db, "SELECT value FROM data WHERE key=?;", -1, &ppStmt, nullptr); v8 = v7 | sqlite3_prepare_v2(db, "REPLACE INTO data (key, value) VALUES (?,?);", -1, &pStmt, nullptr); LODWORD(v1) = v8 | sqlite3_prepare_v2(db, "DELETE FROM data WHERE key=?;", -1, &qword_1009A2A90, nullptr); if ( (_DWORD)v1 ) LODWORD(v1) = puts("Error initializing DB"); byte_1009A2A70 = 1; } return (int)v1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source