// // TXT_DB_free from 0xde167c to 0xde1818 (412 bytes) // // 2 xrefs: // > SRP_VBASE_init @ 0xddf99c // > @ 0x30288 // // 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 // void __fastcall TXT_DB_free(int *a1) { char *v2; // x0 int v3; // w1 __int64 v4; // x19 unsigned __int64 v5; // x20 bool v6; // zf unsigned int *v7; // x0 int v8; // w24 void **v9; // x20 int v10; // w4 void **v11; // x21 __int64 v12; // x19 void **v13; // x3 int v14; // w1 void *v15; // x0 void *v16; // t1 if ( a1 ) { v2 = *((char **)a1 + 2); if ( v2 ) { v3 = *a1 - 1; if ( v3 >= 0 ) { v4 = 8LL * v3; v5 = 8 * (v3 - (unsigned __int64)(unsigned int)v3); do { OPENSSL_LH_free(*(_QWORD *)&v2[v4]); v6 = v4 == v5; v2 = *((char **)a1 + 2); v4 -= 8; } while ( !v6 ); } CRYPTO_free(v2, (__int64)"crypto/txt_db/txt_db.c", 276); } CRYPTO_free(*((void **)a1 + 3), (__int64)"crypto/txt_db/txt_db.c", 278); v7 = *((unsigned int **)a1 + 1); if ( v7 ) { v8 = OPENSSL_sk_num(v7) - 1; if ( v8 >= 0 ) { do { v9 = (void **)OPENSSL_sk_value(*((_QWORD *)a1 + 1), v8); v10 = *a1; v11 = (void **)v9[*a1]; if ( v11 ) { v12 = 0; if ( v10 > 0 ) { do { while ( 1 ) { v13 = (void **)v9[v12]; if ( v9 > v13 || v11 < v13 ) break; if ( (int)++v12 >= v10 ) goto LABEL_17; } CRYPTO_free(v9[v12], (__int64)"crypto/txt_db/txt_db.c", 293); v10 = *a1; ++v12; } while ( (int)v12 < *a1 ); } } else if ( v10 > 0 ) { do { v16 = *v9++; LODWORD(v11) = (_DWORD)v11 + 1; CRYPTO_free(v16, (__int64)"crypto/txt_db/txt_db.c", 289); } while ( *a1 > (int)v11 ); } LABEL_17: v14 = v8--; v15 = (void *)OPENSSL_sk_value(*((_QWORD *)a1 + 1), v14); CRYPTO_free(v15, (__int64)"crypto/txt_db/txt_db.c", 296); } while ( v8 != -1 ); } OPENSSL_sk_free(*((void ***)a1 + 1)); } CRYPTO_free(a1, (__int64)"crypto/txt_db/txt_db.c", 300); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source