// // FileOperation::saveFile from 0xb4156c to 0xb41684 (280 bytes) // // 1 xrefs: // > @ 0x9f510 // // 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 // void FileOperation::saveFile() { FILE *v0; // x0 FILE *v1; // x20 char *v2; // x2 char *v3; // x0 unsigned int *v4; // x2 int v5; // w1 unsigned int *v6; // x2 char *filename; // [xsp+30h] [xbp+30h] BYREF FileOperation::getFilePath(_stack_chk_guard, (__int64)&filename); v0 = fopen(filename, "w"); v1 = v0; if ( v0 ) { fwrite("file example", 1u, 0xCu, v0); fclose(v1); v2 = filename; v3 = filename - 24; if ( filename - 24 == (char *)&qword_124B6B0 ) return; if ( &pthread_create ) { v6 = (unsigned int *)(filename - 8); do v5 = __ldaxr(v6); while ( __stlxr(v5 - 1, v6) ); goto LABEL_12; } } else { v2 = filename; v3 = filename - 24; if ( filename - 24 == (char *)&qword_124B6B0 ) return; if ( &pthread_create ) { v4 = (unsigned int *)(filename - 8); do v5 = __ldaxr(v4); while ( __stlxr(v5 - 1, v4) ); goto LABEL_12; } } v5 = *((_DWORD *)v2 - 2); *((_DWORD *)v2 - 2) = v5 - 1; LABEL_12: if ( v5 <= 0 ) operator delete(v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source