Function at 0x419680
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SetRect]
push 0x1e0
mov esi, ecx
mov ecx, dword [esp + 0xec]
push 0x280
push 0
mov dword [esi + 0x30], eax
lea eax, [esi + 0x34]
push 0
push eax
mov dword [esi + 0x60], ecx
call edi
mov edx, dword [esi + 0x30]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x60]
test eax, eax
push 0
push 0x4bf024
jne 0x419a7b
lea ebp, [esi + 0x48]
push ebp
push 0
call sub.DDRAW.dll_DirectDrawCreateEx
test eax, eax
jl 0x419cc1
mov edx, dword [esi + 0x30]
mov eax, dword [ebp]
mov ecx, dword [eax]
push 0x11
push edx
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x419cc1
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push eax
call ebx
mov ecx, dword [esi + 0x30]
and eax, 0xff3fffff
or eax, 0x80000000
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x1e0
push 0x280
push 0
push 0
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x30]
push 0xffffffffffffffec
push eax
call ebx
mov ecx, dword [esi + 0x30]
push eax
push 0
push 0xfffffffffffffff0
push ecx
call ebx
push eax
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x16
sub edx, ebx
push edx
sub eax, ecx
mov ecx, dword [esi + 0x30]
push eax
push 0
push 0
push 0
push ecx
call edi
mov edx, dword [esi + 0x30]
push 0x13
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edx
call edi
push 0
lea eax, [esp + 0x34]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x4197c5
mov eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
cmp ecx, edx
jge 0x4197d7
mov ecx, edx
mov dword [esp + 0x20], ecx
push 0x15
push 0
push 0
push ecx
push eax
mov eax, dword [esi + 0x30]
push 0
push eax
call edi
mov ecx, dword [esi + 0x30]
push 0x15
push 0
push 0
push 0
push 0
push 0
push ecx
call edi
mov eax, dword [ebp]
mov edx, dword [eax]
push eax
call dword [edx + 0x4c]
test eax, eax
jl 0x419cc1
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
mov dword [esp + 0x2c], 0x10
je 0x419844
push 0xe
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
imul ebx, eax
push edi
push 0
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp]
mov ecx, dword [eax]
push 0
push 0
push edx
push 0x1e0
push 0x280
push eax
call dword [ecx + 0x54]
test eax, eax
jl 0x419cc1
mov eax, dword [esp + 0xe4]
cmp eax, 2
mov dword [esi + 0x2c], eax
jge 0x419880
mov dword [esi + 0x2c], 2
jmp 0x41988c
cmp eax, 3
jl 0x41988c
mov dword [esi + 0x2c], 3
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp]
dec eax
push eax
lea edi, [esi + 0x50]
push edi
push ecx
call fcn.004188d0
mov edx, dword [edi]
lea ebx, [esi + 0x54]
push ebx
push edx
call fcn.00418930
mov eax, dword [ebx]
mov ecx, dword [eax]
add esp, 0x14
push eax
call dword [ecx + 4]
mov eax, dword [ebp]
push 0
push 0x1e0
push 0x280
lea edx, [esi + 0x4c]
push edx
push eax
call fcn.00418970
mov ecx, dword [ebp]
push 0
push 0xc
push 0x280
lea ebx, [esi + 0x58]
push ebx
push ecx
call fcn.00418970
mov edx, dword [ebx]
push edx
call fcn.004189e0
mov eax, dword [ebx]
push eax
call fcn.00418b50
movzx eax, word [eax]
mov ebx, dword [ebx]
add esp, 0x30
lea edx, [esp + 0x14]
push edx
push 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx]
push ebx
call dword [ecx + 0x74]
mov eax, dword [ebp]
push 0
push 0x6c
push 0x280
lea ebx, [esi + 0x5c]
push ebx
push eax
call fcn.00418970
mov ecx, dword [ebx]
push ecx
call fcn.004189e0
mov edx, dword [ebx]
push edx
call fcn.00418b50
movzx eax, word [eax]
mov ebx, dword [ebx]
add esp, 0x1c
lea ecx, [esp + 0x14]
push ecx
push 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
push ebx
call dword [eax + 0x74]
mov edx, dword [edi]
push edx
call fcn.00418a90
add esp, 4
mov dword [esi + 0x44], eax
mov edx, dword [esp + 0x2c]
mov ecx, eax
call fcn.00450930
mov eax, dword [esi + 0x2c]
shl eax, 2
push eax
call fcn.004a99f8
mov ecx, dword [edi]
mov dword [esi + 4], eax
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov ebx, 1
add esp, 4
cmp eax, ebx
jle 0x4199ad
nop
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 4]
push 1
mov dword [edx + ebx*4], eax
mov eax, dword [edi]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x2c]
mov eax, dword [esi + 0x2c]
inc ebx
cmp ebx, eax
jl 0x419990
mov eax, dword [edi]
mov edx, dword [eax]
push 1
push 0
push eax
call dword [edx + 0x2c]
mov ecx, dword [esi + 0x2c]
xor eax, eax
dec ecx
test ecx, ecx
jle 0x4199de
lea ecx, [esi + 0x18]
mov edx, dword [esi + 4]
mov edx, dword [edx + eax*4]
mov dword [ecx - 8], edx
mov dword [ecx - 4], ecx
mov edx, dword [esi + 0x2c]
inc eax
add ecx, 8
dec edx
cmp eax, edx
jl 0x4199c6
mov ecx, dword [esi + 4]
mov edx, dword [ecx + eax*4]
mov dword [esi + eax*8 + 0x10], edx
lea ecx, [esi + 0x10]
mov dword [esi + eax*8 + 0x14], ecx
mov eax, dword [esi + 4]
mov dword [esi + 0x28], ecx
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
mov dword [eax], ecx
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 4]
mov ebp, dword [ebp]
push 0
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
mov edx, dword [eax]
push ecx
push 0
mov dword [esi + 0xc], edx
mov eax, dword [ebp]
push ebp
call dword [eax + 0x10]
test eax, eax
jl 0x419cc1
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push 0
push eax
call dword [edx + 0x20]
test eax, eax
jge 0x419a52
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret 0xc
mov ecx, dword [esp + 0x10]
mov edi, dword [edi]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x70]
test eax, eax
mov eax, dword [esp + 0x10]
push eax
jl 0x419cbc
mov ecx, dword [eax]
call dword [ecx + 8]
push str.FullScreen_Mode_DirectDraw_Init_Done_
jmp 0x419d8f
lea ebx, [esi + 0x48]
push ebx
push 0
call sub.DDRAW.dll_DirectDrawCreateEx
test eax, eax
jl 0x419cc1
mov ecx, dword [esi + 0x30]
mov eax, dword [ebx]
mov edx, dword [eax]
push 8
push ecx
push eax
call dword [edx + 0x50]
test eax, eax
jl 0x419cc1
mov edx, dword [esi + 0x30]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push edx
call ebp
and eax, 0x7f35ffff
or eax, 0xca0000
push eax
mov eax, dword [esi + 0x30]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x1e0
push 0x280
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call edi
mov edx, dword [esi + 0x30]
push 0xffffffffffffffec
push edx
call ebp
push eax
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [esi + 0x30]
neg eax
sbb eax, eax
neg eax
push eax
push 0xfffffffffffffff0
push ecx
call ebp
push eax
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push 0x16
sub eax, edx
mov edx, dword [esi + 0x30]
push eax
sub ecx, ebp
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
push ecx
push 0
push 0
push 0
push edx
call ebp
mov eax, dword [esi + 0x30]
push 0x13
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
call ebp
push 0
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi + 0x30]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jge 0x419b7a
mov eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
cmp ecx, edx
jge 0x419b8c
mov ecx, edx
mov dword [esp + 0x20], ecx
push 0x15
push 0
push 0
push ecx
mov ecx, dword [esi + 0x30]
push eax
push 0
push ecx
call ebp
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 0x280
cdq
sub eax, edx
mov edi, eax
push 1
sar edi, 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 0x1e0
push 0x15
cdq
push 0
sub eax, edx
mov edx, dword [esi + 0x30]
push 0
sar eax, 1
push eax
push edi
push 0
push edx
call ebp
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
push 0
lea edi, [esi + 0x50]
push edi
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x6c], 0x7c
mov dword [esp + 0x70], 1
mov dword [esp + 0xd4], 0x200
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x419cc1
mov eax, dword [edi]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], 0x20
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
mov eax, dword [ebx]
push 0
lea edx, [esi + 0x54]
push edx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x70], 7
mov dword [esp + 0xd4], 0x40
mov dword [esp + 0x78], 0x280
mov dword [esp + 0x74], 0x1e0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x419cc1
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x419cc1
mov edx, dword [esi + 0x30]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x20]
test eax, eax
jge 0x419ca6
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x70]
test eax, eax
mov eax, dword [esp + 0x10]
push eax
jge 0x419cd0
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret 0xc
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [edi]
push edx
call fcn.00418a90
mov edx, dword [esp + 0x50]
add esp, 4
mov ecx, eax
mov dword [esi + 0x44], eax
call fcn.00450930
mov ecx, dword [ebx]
push 0
push 0x1e0
push 0x280
lea eax, [esi + 0x4c]
push eax
push ecx
call fcn.00418970
mov edx, dword [ebx]
push 0
push 0xc
push 0x280
lea edi, [esi + 0x58]
push edi
push edx
call fcn.00418970
mov eax, dword [edi]
push eax
call fcn.004189e0
mov ecx, dword [edi]
push ecx
call fcn.00418b50
movzx eax, word [eax]
mov edi, dword [edi]
add esp, 0x30
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
push 8
push edi
call dword [edx + 0x74]
mov ecx, dword [ebx]
push 0
push 0x6c
push 0x280
lea edi, [esi + 0x5c]
push edi
push ecx
call fcn.00418970
mov edx, dword [edi]
push edx
call fcn.004189e0
mov eax, dword [edi]
push eax
call fcn.00418b50
movzx eax, word [eax]
mov edi, dword [edi]
add esp, 0x1c
lea edx, [esp + 0x14]
push edx
push 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [edi]
push edi
call dword [ecx + 0x74]
push str.Window_Mode_DirectDraw_Init_Done_
mov ecx, 0x65334c
call fcn.0040bbd0
mov eax, dword [esi + 0x30]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xcc
ret 0xc