Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __int16 Sys_CreateConsole()
- {
- HWND hWndParent; // rax
- int SystemMetrics; // edi
- int v2; // esi
- HMODULE ModuleHandleA; // rax
- LPARAM v4; // r14
- HWND v5; // rbx
- int v6; // ecx
- int v7; // er8
- WNDCLASSA WndClass; // [rsp+60h] [rbp-29h] BYREF
- struct tagRECT Rect; // [rsp+B0h] [rbp+27h] BYREF
- *(_QWORD *)&WndClass.style = 0i64;
- *(_QWORD *)&WndClass.cbClsExtra = 0i64;
- WndClass.lpszMenuName = 0i64;
- WndClass.lpfnWndProc = DefWindowProcA;
- WndClass.hInstance = hInstance;
- WndClass.hIcon = LoadIconA(hInstance, (LPCSTR)1);
- WndClass.hbrBackground = (HBRUSH)6;
- WndClass.hCursor = LoadCursorA(0i64, (LPCSTR)&loc_7F00);
- WndClass.lpszClassName = "CoD Splash Screen";
- LOWORD(hWndParent) = RegisterClassA(&WndClass);
- if ( (_WORD)hWndParent )
- {
- SystemMetrics = GetSystemMetrics(16);
- v2 = GetSystemMetrics(17);
- ModuleHandleA = GetModuleHandleA(0i64);
- hWndParent = (HWND)LoadImageA(ModuleHandleA, (LPCSTR)0x64, 0, 0, 0, 0x4000u);
- v4 = (LPARAM)hWndParent;
- if ( hWndParent )
- {
- hWndParent = CreateWindowExA(
- 0x40000u,
- "CoD Splash Screen",
- "Call of Duty®: Modern Warfare® Remastered Multiplayer",
- 0x80880000,
- (SystemMetrics - 320) / 2,
- (v2 - 100) / 2,
- 320,
- 100,
- 0i64,
- 0i64,
- hInstance,
- 0i64);
- off_C9DCF58 = hWndParent;
- if ( hWndParent )
- {
- hWndParent = CreateWindowExA(0, "Static", 0i64, 0x5000000Eu, 0, 0, 320, 100, hWndParent, 0i64, hInstance, 0i64);
- v5 = hWndParent;
- if ( hWndParent )
- {
- SendMessageA(hWndParent, 0x172u, 0i64, v4);
- GetWindowRect(v5, &Rect);
- v6 = Rect.right - Rect.left + 2;
- v7 = Rect.bottom - Rect.top + 2;
- Rect.left = (SystemMetrics - v6) / 2;
- Rect.right = v6 + Rect.left;
- Rect.top = (v2 - v7) / 2;
- Rect.bottom = v7 + Rect.top;
- AdjustWindowRect(&Rect, 0x5000000Eu, 0);
- LOWORD(hWndParent) = SetWindowPos(
- off_C9DCF58,
- 0i64,
- Rect.left,
- Rect.top,
- Rect.right - Rect.left,
- Rect.bottom - Rect.top,
- 4u);
- }
- }
- }
- }
- return (__int16)hWndParent;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement