int __stdcall sub_30001573(int a1, int a2, int a3, int a4)
{
HMODULE LibraryW; // edi
FARPROC FMain; // ebx
FARPROC wdGetApplicationObject; // eax
LibraryW = LoadLibraryW(L"wwlib.dll");
if ( LibraryW || (LibraryW = (HMODULE)sub_30001968(L"{0638C49D-BB8B-4CD1-B191-051E8F325736}")) != 0 )
{
FMain = GetProcAddress(LibraryW, "FMain");
wdCommandDispatch_0 = (int)GetProcAddress(LibraryW, "wdCommandDispatch");
wdGetApplicationObject = GetProcAddress(LibraryW, "wdGetApplicationObject");
dword_3000300C = (int)wdGetApplicationObject;
if ( FMain && wdCommandDispatch_0 && wdGetApplicationObject )
{
((void (__stdcall *)(int, int, int, int))FMain)(a1, a2, a3, a4);
FreeLibrary(LibraryW);
return 0;
}
else
{
return 1;
}
}
else
{
GetLastError();
return 1;
}
} |