Function at 0x100617f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10161c50
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x102a0600]
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.1005d1a0
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.10062c30
cmp dword [0x102a6ae4], 0
jne 0x10061915
push 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x10061dc0
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 0x10061973
mov esi, 0x90000000
jmp 0x1006199c
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 0x1006199c
or esi, 0x80000
mov edi, dword [ebp - 0x138]
cmp byte [edi + 0x3a9], 0
jne 0x100619f0
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.10059bb0
mov dword [ebp - 0x138], eax
cmp dword [eax + 0x14], 7
jbe 0x10061a13
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 [0x102a00d0]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x384], eax
cmp ecx, 7
jbe 0x10061a90
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10061a86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061c29
push ecx
push edx
call fcn.100849ca
add esp, 8
movups xmm0, xmmword [0x1016d8d8]
xor eax, eax
mov dword [ebp - 0x58], 0x20
push eax
mov dword [ebp - 0x3c], eax
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]
mov ecx, dword [edi + 0x384]
test ecx, ecx
je 0x10061af4
mov eax, dword [0x102a6ae8]
test eax, eax
jne 0x10061aee
push 1
call fcn.100685e0
mov ecx, dword [edi + 0x384]
add esp, 4
mov eax, dword [0x102a6ae8]
inc eax
mov dword [0x102a6ae8], eax
mov eax, dword [ebp + 8]
push 0
push 0xfffffffffffffff0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push ecx
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 0x10061c04
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 0x10061bb2
push str.Failed_to_change_display_mode_for_fullscreen
call fcn.10059d40
push eax
call fcn.10046620
push eax
call fcn.10046f60
add esp, 0xc
jmp 0x10061c04
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 [0x102a6aec], edi
inc dword [0x102a6ae4]
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.10084465
mov esp, ebp
pop ebp
ret 0x18
call fcn.1009532c
int3