// // sub_7D36A4 from 0x7d36a4 to 0x7d37a8 (260 bytes) // // 2 xrefs: // > @ 0xa30810 // > @ 0xa30838 // // 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 // size_t __fastcall sub_7D36A4(_DWORD *a1, char *a2) { size_t v4; // r0 _DWORD **v5; // r4 size_t v6; // r6 size_t v7; // r8 int v8; // r9 _DWORD *v9; // r12 int v10; // r1 int v11; // r2 int v12; // r3 _DWORD *v14; // r5 size_t *v15; // r3 const void *v16; // r1 void *v17; // r0 _DWORD *v18; // r3 int v19; // r1 v4 = strlen(a2); v5 = (_DWORD **)a1[8]; if ( (a1[5] & 0x200) != 0 ) { ERR_put_error(32, 117, 126, "crypto/bio/bss_mem.c", 211); return -1; } else { v6 = v4; v7 = v4; BIO_clear_flags((int)a1, 15); v8 = *v5[1]; if ( a1[3] ) { v14 = (_DWORD *)a1[8]; if ( v14 ) { v15 = (size_t *)v14[1]; v16 = (const void *)v15[1]; v17 = *(void **)(*v14 + 4); if ( v16 != v17 ) { memmove(v17, v16, *v15); v18 = (_DWORD *)v14[1]; v19 = *(_DWORD *)(*v14 + 4); *(_DWORD *)*v14 = *v18; v18[1] = v19; } } } if ( BUF_MEM_grow_clean(*v5, v7 + v8) ) { memcpy((void *)((*v5)[1] + v8), a2, v7); v9 = v5[1]; v10 = (*v5)[1]; v11 = (*v5)[2]; v12 = (*v5)[3]; *v9 = **v5; v9[1] = v10; v9[2] = v11; v9[3] = v12; } else { return -1; } } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source