// // sub_1006480B0 from 0x1006480b0 to 0x100648228 (376 bytes) // // 3 xrefs: // > sub_10063D570 @ 0x10063d5b7 // > sub_100641510 @ 0x100641994 // > sub_100642470 @ 0x10064250e // // 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 // __int64 __fastcall sub_1006480B0(unsigned int a1, unsigned __int8 *a2, unsigned __int64 a3) { __int64 result; // rax unsigned __int8 v4; // r8 unsigned __int8 v5; // di unsigned __int8 v6; // dl unsigned __int8 v7; // cl char v8; // si int v9; // r11d int v10; // esi unsigned int v11; // esi result = a1; switch ( a1 ) { case 0u: if ( a3 >= 4 ) { v4 = *a2; v5 = a2[1]; v6 = a2[2]; v7 = a2[3]; v8 = *a2 | v5; result = 6; if ( v8 || v6 != 0xFE || v7 != 0xFF ) { if ( !((unsigned __int8)(v6 | v7) | (unsigned __int8)(~v4 | v5 ^ 0xFE)) ) goto LABEL_2; v9 = 0; if ( (v4 ^ 0xFE | (unsigned __int8)~v5) == 0 || ((unsigned __int8)~v4 | v5 ^ 0xFE) == 0 ) { LOBYTE(v9) = (v4 ^ 0xFE | (unsigned __int8)~v5) == 0; result = v9 | 2u; } else if ( v4 ^ 0xEF | v5 ^ 0xBB | v6 ^ 0xBF ) { if ( (unsigned __int8)(v6 | v8) | v7 ^ 0x3C ) { v10 = 0; result = 5; if ( (unsigned __int8)(v6 | v7) | v5 | v4 ^ 0x3C ) { if ( v4 | v5 ^ 0x3C || v6 || (result = 3, v7 != 63) ) { result = 2; if ( (v7 | v6 ^ 0x3F) != 0 || (v5 | v4 ^ 0x3C) != 0 ) { if ( v4 != 60 || v5 != 63 || v6 != 120 || (result = 1, v7 != 109) ) { LOBYTE(v10) = (v5 | v4 ^ 0x3C) == 0; v11 = v10 + 1; result = 3; if ( v4 | v5 ^ 0x3C ) result = v11; } } } } } } else { result = 1; } } } else { result = 1; } break; case 4u: result = 2; break; case 7u: case 8u: LABEL_2: result = 5; break; default: return result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source