Function at 0x422a40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
lea eax, [ebp - 0x11c]
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetClientRect
mov byte [0x442580], bl
cmp dword [edi], 0xffffffff
sete bl
test bl, bl
je 0x422a8f
mov byte [0x442580], 0
mov eax, dword [ebp - 0x114]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x110]
mov dword [eax], edx
mov esi, 0x20
cmp byte [0x442580], 0
jne 0x422ac3
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
push 0xc
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
cmp eax, esi
jge 0x422ab8
mov esi, eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x28
call fcn.0040149c
mov dword [ebp - 0x38], 0x23
mov dword [ebp - 0x34], 0x422804
mov eax, dword [0x43e0b0]
mov dword [ebp - 0x28], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x20], eax
mov eax, 0x422dc8
mov dword [ebp - 0x14], eax
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
call sub.user32.dll_RegisterClassA
test ax, ax
jne 0x422b26
mov eax, 0x422dd0
call fcn.00423f10
cmp byte [0x442580], 0
je 0x422b7f
lea eax, [ebp - 0xd4]
xor ecx, ecx
mov edx, 0x9c
call fcn.0040149c
mov word [ebp - 0xb0], 0x9c
mov eax, dword [edi]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0xac], 0x1c0000
push 4
lea eax, [ebp - 0xd4]
push eax
call sub.user32.dll_ChangeDisplaySettingsA
inc eax
jne 0x422b7f
mov eax, 0x422df0
call fcn.00423f10
movzx eax, byte [0x442580]
or al, bl
je 0x422b9a
mov dword [ebp - 8], 0x86000000
mov dword [ebp - 0xc], 0x40000
jmp 0x422ba8
mov dword [ebp - 8], 0x6c80000
mov dword [ebp - 0xc], 0x40100
xor eax, eax
mov dword [ebp - 0x108], eax
xor eax, eax
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x100], eax
mov eax, dword [edi]
mov dword [ebp - 0x104], eax
cmp byte [0x442580], 0
jne 0x422c16
test bl, bl
jne 0x422c16
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.user32.dll_AdjustWindowRectEx
mov ebx, dword [ebp - 0x114]
sub ebx, dword [ebp - 0x104]
sar ebx, 1
jns 0x422c01
adc ebx, 0
mov edi, dword [ebp - 0x110]
sub edi, dword [ebp - 0x100]
sar edi, 1
jns 0x422c1a
adc edi, 0
jmp 0x422c1a
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp + 8]
push eax
mov eax, dword [0x43e0b0]
push eax
push 0
push 0
mov eax, dword [ebp - 0x100]
sub eax, dword [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x104]
sub eax, dword [ebp - 0x10c]
push eax
push edi
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x422dc8
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_CreateWindowExA
mov dword [0x44236c], eax
cmp dword [0x44236c], 0
jne 0x422c72
mov eax, 0x422e10
call fcn.00423f10
mov eax, dword [0x44236c]
push eax
call sub.user32.dll_GetDC
mov dword [0x442370], eax
cmp dword [0x442370], 0
jne 0x422c95
mov eax, 0x422e2c
call fcn.00423f10
lea eax, [ebp - 0xfc]
xor ecx, ecx
mov edx, 0x28
call fcn.0040149c
mov word [ebp - 0xfc], 0x28
mov word [ebp - 0xfa], 1
mov dword [ebp - 0xf8], 0x25
mov byte [ebp - 0xf4], 0
mov eax, esi
mov byte [ebp - 0xf3], al
cmp esi, 0x20
jne 0x422cde
mov byte [ebp - 0xec], 8
mov byte [ebp - 0xe5], 0x10
mov byte [ebp - 0xe2], 0
mov eax, dword [ebp + 8]
cmp byte [eax + 0x131], 0
je 0x422cff
mov byte [ebp - 0xe4], 8
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [0x442370]
push eax
call sub.gdi32.dll_ChoosePixelFormat
mov ebx, eax
test ebx, ebx
jne 0x422d21
mov eax, 0x422e4c
call fcn.00423f10
lea eax, [ebp - 0xfc]
push eax
push ebx
mov eax, dword [0x442370]
push eax
call sub.gdi32.dll_SetPixelFormat
test eax, eax
jne 0x422d42
mov eax, 0x422e74
call fcn.00423f10
mov eax, dword [0x442370]
push eax
call sub.opengl32.dll_wglCreateContext
mov dword [0x442374], eax
cmp dword [0x442374], 0
jne 0x422d65
mov eax, 0x422e94
call fcn.00423f10
mov eax, dword [0x442374]
push eax
mov eax, dword [0x442370]
push eax
call sub.opengl32.dll_wglMakeCurrent
test eax, eax
jne 0x422d84
mov eax, 0x422ec4
call fcn.00423f10
push 5
mov eax, dword [0x44236c]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x44236c]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x44236c]
push eax
call sub.user32.dll_SetFocus
cmp byte [0x442580], 0
je 0x422dba
push 0x1f4
call sub.kernel32.dll_Sleep
mov eax, dword [0x44236c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8