Function at 0x482d10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x59da54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x144], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x148], eax
call fcn.0047ef20
push 0x7f00
push 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.sf::priv::WindowImplWin32.0
mov dword [esi + 0x384], 0
mov dword [esi + 0x388], 0
mov byte [esi + 0x38c], 1
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x390], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x394], 0
mov byte [esi + 0x398], 1
mov dword [esi + 0x39c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x3a0], eax
xor eax, eax
mov word [esi + 0x3a6], ax
mov byte [esi + 0x3a8], al
mov eax, dword [ebp + 0x18]
shr eax, 3
and al, 1
mov byte [esi + 0x3a4], 0
mov byte [esi + 0x3a9], al
mov byte [esi + 0x3aa], al
call fcn.00484060
cmp dword [0x5a1c4c], 0
jne 0x482e35
push 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x4832f0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
mov eax, dword [str.SFML_Window]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push eax
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_RegisterClassW]
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 - 0x144], eax
call esi
mov ecx, dword [ebp + 0xc]
sub eax, ecx
cdq
sub eax, edx
mov dword [ebp - 0x13c], ecx
sar eax, 1
push edi
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x140], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x482e93
mov esi, 0x90000000
jmp 0x482ebd
test dl, 1
mov eax, 0x10000000
mov ecx, 0x10c20000
cmove ecx, eax
mov eax, edx
mov esi, ecx
or esi, 0x50000
and al, 2
cmove esi, ecx
test dl, 4
je 0x482ebd
or esi, 0x80000
mov edi, dword [ebp - 0x138]
cmp byte [edi + 0x3a9], 0
jne 0x482f11
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x13c]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x148]
lea eax, [ebp - 0x28]
push eax
call fcn.00487a40
mov dword [ebp - 0x138], eax
cmp dword [eax + 0x14], 8
jb 0x482f34
mov eax, dword [eax]
mov dword [ebp - 0x138], eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov eax, dword [ebp - 0x13c]
push 0
push 0
push eax
mov eax, dword [ebp - 0x140]
push eax
push dword [ebp - 0x14c]
push dword [ebp - 0x144]
push esi
push dword [ebp - 0x138]
push dword [0x59d9e0]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x384], eax
cmp edx, 8
jb 0x482fb3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x482fa9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x482fa9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00493424
add esp, 8
movups xmm0, xmmword [0x4f65b8]
xor eax, eax
mov dword [ebp - 0x58], 0x20
push eax
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x58]
push eax
push dword [edi + 0x384]
mov dword [ebp - 0x54], 5
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x4c], xmm0
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
cmp dword [edi + 0x384], 0
je 0x483011
mov eax, dword [0x5a1c50]
test eax, eax
jne 0x48300b
push 1
call fcn.00486700
mov eax, dword [0x5a1c50]
add esp, 4
inc eax
mov dword [0x5a1c50], eax
mov eax, dword [ebp + 8]
push 0
push 0xfffffffffffffff0
push dword [edi + 0x384]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push 6
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 0
push dword [edi + 0x384]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [edi + 0x3a9], 0
je 0x48312d
mov eax, 0xdc
mov dword [ebp - 0xec], 0x1c0000
mov word [ebp - 0xf0], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x134]
push 4
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
test eax, eax
je 0x4830db
push 0x465400
push str.Failed_to_change_display_mode_for_fullscreen
call fcn.00487e80
push eax
call fcn.0040e6b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x48312d
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x86000000
push 0xfffffffffffffff0
push dword [edi + 0x384]
call esi
push 0x40000
push 0xffffffffffffffec
push dword [edi + 0x384]
call esi
push 0x20
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
push 0
push dword [edi + 0x384]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [edi + 0x384]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x5a1c54], edi
inc dword [0x5a1c4c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493440
mov esp, ebp
pop ebp
ret 0x18