// // sub_100724540 from 0x100724540 to 0x100724824 (740 bytes) // // 1 xrefs: // > sub_10072417C @ 0x10072434c // // 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:13:06 +0000 // __int64 __fastcall sub_100724540(__int64 a1, const char *a2, const char *a3, __int64 a4, __int64 a5) { size_t v10; // x21 size_t v11; // x25 int v12; // w5 int v13; // w6 int v14; // w7 char *v15; // x24 int v16; // w28 int v17; // w27 int v18; // w25 int v19; // w0 __int16 v20; // w2 int v21; // w0 unsigned int v23; // [xsp+4h] [xbp-BCh] BYREF int v24[24]; // [xsp+8h] [xbp-B8h] BYREF sub_100708844((__int64)v24); v10 = strlen(a2); if ( (unsigned int)sub_100700894(a1, (__int64)"-----BEGIN ", 11) != 11 ) { v20 = 7; goto LABEL_34; } if ( (unsigned int)sub_100700894(a1, (__int64)a2, v10) != (_DWORD)v10 ) { v20 = 7; goto LABEL_34; } if ( (unsigned int)sub_100700894(a1, (__int64)"-----\n", 6) != 6 ) { v20 = 7; goto LABEL_34; } v11 = strlen(a3); if ( (int)v11 >= 1 ) { if ( (unsigned int)sub_100700894(a1, (__int64)a3, v11) != (_DWORD)v11 ) { v20 = 7; goto LABEL_34; } if ( (unsigned int)sub_100700894(a1, (__int64)"\n", 1) != 1 ) { v20 = 7; goto LABEL_34; } } v15 = sub_1006AE878(0x2000, (__int64)"pem_lib.c", 621); if ( !v15 ) { v20 = 65; goto LABEL_34; } v16 = 0; if ( a5 < 1 ) { v17 = 0; } else { v17 = 0; do { if ( a5 <= 5120 ) v18 = a5; else v18 = 5120; sub_100708854((__int64)v24, v15, (int *)&v23, (char *)(a4 + v16), v18, v12, v13, v14); if ( v23 ) { v19 = sub_100700894(a1, (__int64)v15, v23); if ( v19 != v23 ) goto LABEL_32; } else { v19 = 0; } v17 += v19; a5 -= v18; v16 += v18; } while ( a5 > 0 ); } sub_100708AD4(v24, v15, (int *)&v23); if ( (int)v23 >= 1 ) { v21 = sub_100700894(a1, (__int64)v15, v23); if ( v21 != v23 ) { LABEL_32: sub_1006B0510(v15, 0x2000u); sub_1006AEDAC(v15); goto LABEL_33; } } sub_1006B0510(v15, 0x2000u); sub_1006AEDAC(v15); if ( (unsigned int)sub_100700894(a1, (__int64)"-----END ", 9) != 9 ) { LABEL_33: v20 = 7; goto LABEL_34; } if ( (unsigned int)sub_100700894(a1, (__int64)a2, v10) == (_DWORD)v10 ) { if ( (unsigned int)sub_100700894(a1, (__int64)"-----\n", 6) == 6 ) return v23 + v17; v20 = 7; } else { v20 = 7; } LABEL_34: sub_100706FB0(9, 114, v20, (__int64)"pem_lib.c", 653); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source