// // UI_set_result from 0x83b6bc to 0x83b928 (620 bytes) // // 3 xrefs: // > sub_641F30 @ 0x641f70 // > sub_83BA24 @ 0x83bccc // > @ 0x54b8c // // 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 // int __fastcall UI_set_result(int a1, unsigned int *a2, char *a3) { const char *v5; // r5 size_t v6; // r0 unsigned int v7; // r2 bool v8; // cf _BYTE *v9; // r3 int v10; // r4 const char *v11; // r8 const char *v12; // r7 int v13; // t1 signed int v15; // r7 signed int v16; // r2 char *v17; // r0 _BYTE v18[16]; // [sp+8h] [bp-20h] BYREF _BYTE v19[16]; // [sp+18h] [bp-10h] BYREF v5 = a3; v6 = strlen(a3); v7 = *a2; v8 = *a2 != 0; *(_DWORD *)(a1 + 16) &= ~1u; if ( !v8 ) return 0; if ( v7 <= 2 ) { v15 = v6; BIO_snprintf(v18, 0xDu, "%d", a2[4]); BIO_snprintf(v19, 0xDu, "%d", a2[5]); if ( v15 < (int)a2[4] ) { *(_DWORD *)(a1 + 16) |= 1u; ERR_put_error(40, 105, 101, (int)"crypto/ui/ui_lib.c", 760); ERR_add_error_data(5, "You must type in ", v18, " to ", v19, " characters"); } else { v16 = a2[5]; if ( v15 <= v16 ) { v17 = (char *)a2[3]; if ( v17 ) { OPENSSL_strlcpy(v17, v5, v16 + 1); return 0; } else { ERR_put_error(40, 105, 105, (int)"crypto/ui/ui_lib.c", 775); return -1; } } *(_DWORD *)(a1 + 16) |= 1u; ERR_put_error(40, 105, 100, (int)"crypto/ui/ui_lib.c", 767); ERR_add_error_data(5, "You must type in ", v18, " to ", v19, " characters"); } return -1; } if ( v7 != 3 ) return 0; v9 = (_BYTE *)a2[3]; if ( !v9 ) { ERR_put_error(40, 105, 105, (int)"crypto/ui/ui_lib.c", 787); return -1; } *v9 = 0; v10 = *(unsigned __int8 *)v5; if ( !*v5 ) return v10; v11 = (const char *)a2[5]; while ( 1 ) { if ( strchr(v11, v10) ) { *(_BYTE *)a2[3] = *v11; return 0; } v12 = (const char *)a2[6]; if ( strchr(v12, v10) ) break; v13 = *(unsigned __int8 *)++v5; v10 = v13; if ( !v13 ) return v10; } *(_BYTE *)a2[3] = *v12; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source