Function at 0x48c790
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5095c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
mov dword [ebp - 0x134], eax
call fcn.004829d0
push 0x7f00
push 0
mov dword [ebx], vtable.sf::priv::WindowImplWin32.0
mov dword [ebx + 0x384], 0
mov dword [ebx + 0x388], 0
mov byte [ebx + 0x38c], 1
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebx + 0x390], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x39c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x3a0], eax
xor eax, eax
mov word [ebx + 0x3a6], ax
mov byte [ebx + 0x3a8], al
mov eax, dword [ebp + 0x18]
shr eax, 3
and al, 1
mov dword [ebx + 0x394], 0
mov byte [ebx + 0x398], 1
mov byte [ebx + 0x3a4], 0
mov byte [ebx + 0x3a9], al
mov byte [ebx + 0x3aa], al
call fcn.0048db90
cmp dword [0x50f45c], 0
jne 0x48c883
push 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x48cce0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
mov eax, dword [str.SFML_Window]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_RegisterClassW]
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call esi
sub eax, dword [ebp + 8]
cdq
sub eax, edx
push 0xa
sar eax, 1
push edi
mov dword [ebp - 0x13c], eax
call esi
mov ecx, dword [ebp + 0xc]
sub eax, ecx
cdq
sub eax, edx
mov dword [ebp - 0x12c], ecx
sar eax, 1
push edi
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x130], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x48c8e3
mov esi, 0x90000000
jmp 0x48c90c
test dl, 1
mov ecx, 0x10c20000
mov eax, 0x10000000
cmove ecx, eax
mov esi, ecx
or esi, 0x50000
test dl, 2
cmove esi, ecx
test dl, 4
je 0x48c90c
or esi, 0x80000
cmp byte [ebx + 0x3a9], 0
jne 0x48c95a
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x12c]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x134]
lea eax, [ebp - 0x1c]
push eax
call fcn.0048f8b0
mov edi, eax
cmp dword [edi + 0x14], 7
jbe 0x48c973
mov edi, dword [edi]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov eax, dword [ebp - 0x12c]
push 0
push 0
push eax
mov eax, dword [ebp - 0x130]
push eax
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push esi
push edi
push dword [0x5081b8]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x384], eax
cmp ecx, 7
jbe 0x48c9eb
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48c9e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48cb6f
push ecx
push edx
call fcn.0040b4ff
add esp, 8
movups xmm0, xmmword [0x4f26a8]
xor eax, eax
mov dword [ebp - 0x4c], 0x20
push eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebx + 0x384]
mov dword [ebp - 0x48], 5
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov ecx, dword [ebx + 0x384]
test ecx, ecx
je 0x48ca4f
mov eax, dword [0x50f460]
test eax, eax
jne 0x48ca49
push 1
call fcn.00489020
mov ecx, dword [ebx + 0x384]
add esp, 4
mov eax, dword [0x50f460]
inc eax
mov dword [0x50f460], eax
mov eax, dword [ebp + 8]
push 0
push 0xfffffffffffffff0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 6
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [ebx + 0x384]
call edi
cmp byte [ebx + 0x3a9], 0
je 0x48cb54
mov eax, 0xdc
mov dword [ebp - 0xe0], 0x1c0000
mov word [ebp - 0xe4], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x128]
push 4
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
test eax, eax
je 0x48cb06
push str.Failed_to_change_display_mode_for_fullscreen
call fcn.0048fab0
push eax
call fcn.0040a90e
push eax
call fcn.0040aacb
add esp, 0xc
jmp 0x48cb54
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x86000000
push 0xfffffffffffffff0
push dword [ebx + 0x384]
call esi
push 0x40000
push 0xffffffffffffffec
push dword [ebx + 0x384]
call esi
push 0x20
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
push 0
push dword [ebx + 0x384]
call edi
push 5
push dword [ebx + 0x384]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x50f464], ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
inc dword [0x50f45c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a818a
mov esp, ebp
pop ebp
ret 0x18
call fcn.004add4e
int3