int __stdcall sub_401350(HINSTANCE hInstance, int a2, int a3, int a4)
{
HWND v4; // eax
HWND v5; // eax
HWND v6; // eax
int v8; // [esp+0h] [ebp-2Ch]
if ( (BASS_GetVersion() & 0xFFFF0000) != 33816576 )
return MessageBoxA(0, "The file is corrupted.\nDownload a fresh copy and try again.", 0, 0x10u);
if ( !BASS_Init(-1, 44100, 0, 0, 0) )
return MessageBoxA(0, "Failed to initialize sound device.", 0, 0x10u);
CreateThread(0, 0, StartAddress, Memory, 0, 0);
v4 = GetDesktopWindow();
v5 = CreateDialogParamA(hInstance, (LPCSTR)9, v4, DialogFunc, 0);
hWnd = v5;
if ( !v5 )
return MessageBoxA(0, "Failed to create window.", 0, 0x10u);
if ( GetMessageA((LPMSG)&v8, v5, 0, 0) > 0 )
{
do
{
if ( !IsWindowVisible(hWnd) )
{
v6 = GetDlgItem(hWnd, 1003);
SetWindowTextA(v6, ".:: onetap.su / 5th August 2019 ::.");
ShowWindow(hWnd, 5);
}
if ( !IsWindow(hWnd) || !IsDialogMessageA(hWnd, (LPMSG)&v8) )
{
TranslateMessage((const MSG *)&v8);
DispatchMessageA((const MSG *)&v8);
}
}
while ( GetMessageA((LPMSG)&v8, hWnd, 0, 0) > 0 );
}
return 0;
}
int *__cdecl sub_401060(DWORD dwProcessId, LPCSTR lpFileName)
{
int *v2; // ebx
HANDLE v3; // esi
void *v4; // edi
int v6; // [esp+0h] [ebp-114h]
v2 = &v6;
if ( !GetFullPathNameA(lpFileName, 0x104u, (LPSTR)&v6, 0) )
return 0;
v3 = OpenProcess(0x43Au, 0, dwProcessId);
v4 = VirtualAllocEx(v3, 0, 0x104u, 0x3000u, 4u);
WriteProcessMemory(v3, v4, &v6, 0x104u, 0);
CreateRemoteThread(v3, 0, 0, (LPTHREAD_START_ROUTINE)LoadLibraryA, v4, 0, 0);
CloseHandle(v3);
LOBYTE(v2) = 1;
return v2;
}
найс онетап.ехе