// // OBJ_add_object from 0xa30dd0 to 0xa30fac (476 bytes) // // 2 xrefs: // > OBJ_create @ 0xa31bb8 // > @ 0x7dd1c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:08:04 +0000 // int *__fastcall OBJ_add_object(int a1) { _DWORD *v2; // r5 int i; // r4 _DWORD *v4; // r3 void *v5; // r0 int *result; // r0 void **v7; // r4 void *v8; // t1 void *v9; // [sp+8h] [bp-10h] BYREF void *v10; // [sp+Ch] [bp-Ch] void *v11; // [sp+10h] [bp-8h] void *v12; // [sp+14h] [bp-4h] char vars0; // [sp+18h] [bp+0h] BYREF v9 = nullptr; v10 = nullptr; v11 = nullptr; v12 = nullptr; if ( !dword_D3579C ) { result = OPENSSL_LH_new( (unsigned __int8 *(__fastcall *)(unsigned __int8 *))sub_A30C2C, (int (**)(const char *, const char *))sub_A30B24); dword_D3579C = (int)result; if ( !result ) return result; } v2 = (_DWORD *)OBJ_dup(a1); if ( !v2 ) { LABEL_18: v7 = &v9; do { v8 = *v7++; CRYPTO_free(v8, (int)"crypto/objects/obj_dat.c", 215); } while ( v7 != (void **)&vars0 ); CRYPTO_free(v2, (int)"crypto/objects/obj_dat.c", 216); return nullptr; } v12 = CRYPTO_malloc(byte_8, (int)"crypto/objects/obj_dat.c", 185); if ( !v12 || v2[3] && *(_DWORD *)(a1 + 16) && (v9 = CRYPTO_malloc(byte_8, (int)"crypto/objects/obj_dat.c", 188)) == nullptr || *v2 && (v10 = CRYPTO_malloc(byte_8, (int)"crypto/objects/obj_dat.c", 191)) == nullptr || v2[1] && (v11 = CRYPTO_malloc(byte_8, (int)"crypto/objects/obj_dat.c", 194)) == nullptr ) { ERR_put_error(8, 105, 65, (int)"crypto/objects/obj_dat.c", 212); goto LABEL_18; } for ( i = 0; i != 4; ++i ) { v4 = *(&v9 + i); if ( v4 ) { *v4 = i; v4[1] = v2; v5 = (void *)OPENSSL_LH_insert((int *)dword_D3579C, (int)v4); CRYPTO_free(v5, (int)"crypto/objects/obj_dat.c", 203); } } result = (int *)v2[2]; v2[5] &= 0xFFFFFFF2; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source