冥界3大法王 发表于 2022-8-13 12:04

IDA的伪代码返回多少才是注册的?

int __stdcall sub_74B5E0(LPCSTR lpValueName, BYTE *lpData)
{
int result; // eax
LPCSTR lpSubKey; // BYREF
HKEY phkResult; // BYREF
DWORD dwDisposition; // BYREF
int v6; //

v6 = 1;
CString::CString((CString *)&lpSubKey, aSoftwareMacrom_1);
LOBYTE(v6) = 2;
CString::operator+=(&lpSubKey, aRegistration);
if ( RegCreateKeyExA(HKEY_LOCAL_MACHINE, lpSubKey, 0, 0, 0, 0xF003Fu, 0, &phkResult, &dwDisposition)
    || RegSetValueExA(phkResult, lpValueName, 0, 1u, lpData, *((_DWORD *)lpData - 2)) )
{
    LOBYTE(v6) = 1;
    CString::~CString((CString *)&lpSubKey);
    LOBYTE(v6) = 0;
    CString::~CString((CString *)&lpValueName);
    v6 = -1;
    CString::~CString((CString *)&lpData);
    result = 0;
}
else
{
    RegCloseKey(phkResult);
    LOBYTE(v6) = 1;
    CString::~CString((CString *)&lpSubKey);
    LOBYTE(v6) = 0;
    CString::~CString((CString *)&lpValueName);
    v6 = -1;
    CString::~CString((CString *)&lpData);
    result = 1;
}
return result;
}

你好,再见 发表于 2022-8-13 19:16

0为false 1为true,所以我猜是1
页: [1]
查看完整版本: IDA的伪代码返回多少才是注册的?