// // sub_A799D0 from 0xa799d0 to 0xa79b6c (412 bytes) // // 2 xrefs: // > sub_A7A75C @ 0xa7aacc // > sub_A7A75C @ 0xa7ab30 // // 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:45 +0000 // int __fastcall sub_A799D0(const char *a1, int a2, signed int *a3, _DWORD *a4) { signed int v8; // r0 char *v9; // r1 int result; // r0 _BYTE v11[4]; // [sp+8h] [bp-20h] BYREF char *v12; // [sp+Ch] [bp-1Ch] BYREF if ( !a1 ) return 0; v8 = strtoul(a1, &v12, 10); v9 = v12; if ( !v12 ) { if ( v8 >= 0 ) { *a3 = v8; goto LABEL_11; } goto LABEL_14; } if ( *v12 && v12 > &a1[a2] ) return 0; if ( v8 < 0 ) { LABEL_14: ERR_put_error(13, 182, 187, (int)"crypto/asn1/asn1_gen.c", 360); return 0; } *a3 = v8; if ( !(a1 - v9 + a2) ) { LABEL_11: result = 1; *a4 = 128; return result; } switch ( *v9 ) { case 'A': *a4 = 64; result = 1; break; case 'C': goto LABEL_11; case 'P': *a4 = 192; result = 1; break; case 'U': *a4 = 0; result = 1; break; default: v11[0] = *v9; v11[1] = 0; ERR_put_error(13, 182, 186, (int)"crypto/asn1/asn1_gen.c", 391); ERR_add_error_data(2, "Char=", v11); result = 0; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source