// // _validdrive from 0x18013c034 to 0x18013c0b4 (128 bytes) // // 2 xrefs: // > common_getdcwd @ 0x18013bf25 // > @ 0x180203998 // // This function is hookable on this platform (idp: pc, 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 10:55:02 +0000 // __int64 __fastcall validdrive(unsigned int a1) { unsigned int v2; // ebx WCHAR RootPathName; // [rsp+20h] [rbp-18h] BYREF int v4; // [rsp+22h] [rbp-16h] __int16 v5; // [rsp+26h] [rbp-12h] if ( a1 <= 0x1A ) { v2 = 0; if ( a1 ) { v4 = 6029370; RootPathName = a1 + 64; v5 = 0; LOBYTE(v2) = GetDriveTypeW(&RootPathName) >= 2; return v2; } else { return 1; } } else { *_doserrno() = 15; *errno() = 13; invalid_parameter_noinfo(); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source