Function at 0x417ba3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53df06
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x592bb0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push edi
mov eax, dword [0x592bb0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
cmp edi, dword [esi + 0x138]
je 0x418257
cmp dword [0x59b374], 0
je 0x417c25
push str.TILES_CHANGE
mov dword [0x5ab260], 1
mov dword [esi + 0xbc], edi
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x64
push 0x64
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x418257
push dword [esi + 0x20]
and dword [0x5ab260], 0
mov dword [0x5ab278], 1
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x417c4b
mov ebx, dword [esi + 0x20]
call fcn.00415363
cmp dword [esi + edi*4 + 0x94], 0
jne 0x418217
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
cmp edi, 1
mov edi, dword [sym.imp.USER32.dll_MapWindowPoints]
jne 0x417d87
push 0x594
call fcn.00418b4e
pop ecx
mov dword [esp + 0x10], eax
and dword [esp + 0x88], 0
test eax, eax
je 0x417c95
push eax
call fcn.0040967b
mov dword [esp + 0xc], eax
jmp 0x417c9a
and dword [esp + 0xc], 0
or dword [esp + 0x88], 0xffffffff
call fcn.0041aa13
push eax
lea ecx, [esp + 0x14]
call fcn.00401475
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x8c], 1
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x18]
push eax
push dword [esi + 0xe0]
call ebx
push 2
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x20]
push dword [esi + 0xe0]
call edi
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
add eax, dword [esp + 0x18]
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push 0x68
add eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
call dword [eax + 0x160]
lea eax, [esp + 0x38]
push eax
push dword [esi + 0x20]
call ebx
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push 1
push eax
mov eax, dword [esp + 0x28]
sub ecx, eax
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push 0
inc eax
push eax
call fcn.004240b7
mov ecx, dword [esp + 0xc]
push 1
call fcn.00424139
mov ecx, dword [esp + 0xc]
push 5
call fcn.004240f7
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x14]
or dword [esp + 0x88], 0xffffffff
lea eax, [esi + eax*4 + 0x94]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004014d0
cmp dword [esp + 0x14], 3
jne 0x417eae
push 0x684
call fcn.00418b4e
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x88], 2
test eax, eax
je 0x417dbc
push eax
call fcn.004098bd
mov dword [esp + 0xc], eax
jmp 0x417dc1
and dword [esp + 0xc], 0
or dword [esp + 0x88], 0xffffffff
call fcn.0041aa13
push eax
lea ecx, [esp + 0x14]
call fcn.00401475
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x8c], 3
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x18]
push eax
push dword [esi + 0xe0]
call ebx
push 2
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x20]
push dword [esi + 0xe0]
call edi
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
add eax, dword [esp + 0x18]
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push 0x69
add eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
call dword [eax + 0x160]
lea eax, [esp + 0x38]
push eax
push dword [esi + 0x20]
call ebx
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push 1
push eax
mov eax, dword [esp + 0x28]
sub ecx, eax
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push 0
inc eax
push eax
call fcn.004240b7
mov ecx, dword [esp + 0xc]
push 1
call fcn.00424139
mov ecx, dword [esp + 0xc]
push 5
call fcn.004240f7
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x14]
or dword [esp + 0x88], 0xffffffff
lea eax, [esi + eax*4 + 0x94]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004014d0
cmp dword [esp + 0x14], 4
jne 0x417fd5
push 0x10cc
call fcn.00418b4e
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x88], 4
test eax, eax
je 0x417ee3
push eax
call fcn.00409bc5
mov dword [esp + 0xc], eax
jmp 0x417ee8
and dword [esp + 0xc], 0
or dword [esp + 0x88], 0xffffffff
call fcn.0041aa13
push eax
lea ecx, [esp + 0x14]
call fcn.00401475
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x8c], 5
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x18]
push eax
push dword [esi + 0xe0]
call ebx
push 2
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x20]
push dword [esi + 0xe0]
call edi
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
add eax, dword [esp + 0x18]
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push 0x6a
add eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
call dword [eax + 0x160]
lea eax, [esp + 0x38]
push eax
push dword [esi + 0x20]
call ebx
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push 1
push eax
mov eax, dword [esp + 0x28]
sub ecx, eax
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push 0
inc eax
push eax
call fcn.004240b7
mov ecx, dword [esp + 0xc]
push 1
call fcn.00424139
mov ecx, dword [esp + 0xc]
push 5
call fcn.004240f7
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x14]
or dword [esp + 0x88], 0xffffffff
lea eax, [esi + eax*4 + 0x94]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004014d0
cmp dword [esp + 0x14], 2
jne 0x4180fc
push 0x12a0
call fcn.00418b4e
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x88], 6
test eax, eax
je 0x41800a
push eax
call fcn.0040a171
mov dword [esp + 0xc], eax
jmp 0x41800f
and dword [esp + 0xc], 0
or dword [esp + 0x88], 0xffffffff
call fcn.0041aa13
push eax
lea ecx, [esp + 0x14]
call fcn.00401475
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x8c], 7
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x18]
push eax
push dword [esi + 0xe0]
call ebx
push 2
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x20]
push dword [esi + 0xe0]
call edi
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
add eax, dword [esp + 0x18]
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push 0x6b
add eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
call dword [eax + 0x160]
lea eax, [esp + 0x38]
push eax
push dword [esi + 0x20]
call ebx
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push 1
push eax
mov eax, dword [esp + 0x28]
sub ecx, eax
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push 0
inc eax
push eax
call fcn.004240b7
mov ecx, dword [esp + 0xc]
push 1
call fcn.00424139
mov ecx, dword [esp + 0xc]
push 5
call fcn.004240f7
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x14]
or dword [esp + 0x88], 0xffffffff
lea eax, [esi + eax*4 + 0x94]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004014d0
cmp dword [esp + 0x14], 5
jne 0x418213
push 0x8ac
call fcn.00418b4e
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x88], 8
test eax, eax
je 0x418131
push eax
call fcn.0040aa6e
mov dword [esp + 0xc], eax
jmp 0x418136
and dword [esp + 0xc], 0
or dword [esp + 0x88], 0xffffffff
call fcn.0041aa13
push eax
lea ecx, [esp + 0x14]
call fcn.00401475
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x8c], 9
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x48]
push eax
push dword [esi + 0xe0]
call ebx
push 2
lea eax, [esp + 0x4c]
push eax
push dword [esi + 0x20]
push dword [esi + 0xe0]
call edi
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov edi, dword [esp + 0xc]
add eax, dword [esp + 0x48]
push esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
push 0x6d
add eax, dword [esp + 0x54]
mov ecx, edi
mov dword [esp + 0x5c], eax
mov eax, dword [edi]
call dword [eax + 0x160]
lea eax, [esp + 0x68]
push eax
push dword [esi + 0x20]
call ebx
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
push 1
push eax
mov eax, dword [esp + 0x58]
sub ecx, eax
dec ecx
push ecx
push 0
inc eax
push eax
mov ecx, edi
call fcn.004240b7
push 1
mov ecx, edi
call fcn.00424139
push 5
mov ecx, edi
call fcn.004240f7
mov ecx, dword [edi + 0x20]
mov eax, dword [esp + 0x14]
lea eax, [esi + eax*4 + 0x94]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004014d0
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x138]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, 0xffffffff
je 0x41823a
lea eax, [esi + eax*4 + 0x94]
cmp dword [eax], 0
je 0x41823a
push 0
push dword [eax]
call ebx
mov eax, dword [esi + edi*4 + 0x94]
test eax, eax
je 0x41824a
push 5
push eax
call ebx
and dword [0x5ab278], 0
mov dword [esi + 0x138], edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005182a2
mov esp, ebp
pop ebp
ret