Function at 0x408d50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x4320e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.Engine.dll_long_int_sam_bFullScreenActive]
cmp dword [eax], 0
je 0x408e24
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xc4], eax
push 0xc
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0xe0], eax
push 8
mov edx, dword [ebp - 0xc4]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0xe4], eax
push 0xa
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x9c
push 0
lea edx, [ebp - 0xc0]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x9c
mov word [ebp - 0x9c], ax
mov ecx, dword [0x458fb0]
mov dword [ebp - 0x54], ecx
mov edx, dword [0x458fb4]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x98], 0x180000
push 4
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov ecx, dword [sym.imp.Engine.dll_long_int_sam_bFullScreenActive]
cmp dword [ecx], 0
je 0x408e5f
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov edx, dword [0x458fb0]
mov dword [ebp - 0xcc], edx
mov eax, dword [0x458fb4]
mov dword [ebp - 0xc8], eax
jmp 0x408f94
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
add ecx, dword [0x458fb0]
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
sub ecx, edx
mov dword [ebp - 0xcc], ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
add eax, dword [0x458fb4]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
sub eax, ecx
mov dword [ebp - 0xc8], eax
mov edx, dword [sym.imp.Engine.dll_long_int_cmd_iWindowLeft]
cmp dword [edx], 0
jle 0x408f0e
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [sym.imp.Engine.dll_long_int_cmd_iWindowLeft]
cmp dword [ecx], eax
jle 0x408ee6
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0xd8], eax
jmp 0x408ef4
mov edx, dword [sym.imp.Engine.dll_long_int_cmd_iWindowLeft]
mov eax, dword [edx]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xd4], ecx
mov edx, dword [sym.imp.Engine.dll_long_int_cmd_iWindowLeft]
mov dword [edx], 0xffffffff
jmp 0x408f27
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [ebp - 0xcc]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xd4], eax
mov eax, dword [sym.imp.Engine.dll_long_int_cmd_iWindowTop]
cmp dword [eax], 0
jle 0x408f7b
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [sym.imp.Engine.dll_long_int_cmd_iWindowTop]
cmp dword [ecx], eax
jle 0x408f53
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0xdc], eax
jmp 0x408f61
mov edx, dword [sym.imp.Engine.dll_long_int_cmd_iWindowTop]
mov eax, dword [edx]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], ecx
mov edx, dword [sym.imp.Engine.dll_long_int_cmd_iWindowTop]
mov dword [edx], 0xffffffff
jmp 0x408f94
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [ebp - 0xc8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xd0], eax
push 4
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
mov edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xd4]
push eax
push 0
mov ecx, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422e4c
mov esp, ebp
pop ebp
ret