Function at 0x42cd4e
Capabilities:
Hide graphical window

Disassembly:
push 0x68
mov eax, 0x595cd8
call fcn.00571895
mov esi, ecx
mov edi, dword [ebp + 8]
cmp edi, dword [esi + 0x15c]
je 0x42d4df
cmp dword [0x61dbec], 0
je 0x42cda2
push str.TILES_CHANGE
mov dword [0x61dc08], 1
mov dword [esi + 0xd0], 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 0x42d4df
push dword [esi + 0x20]
and dword [0x61dc08], 0
xor ebx, ebx
inc ebx
mov dword [0x61dbe8], ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42cdc7
mov ecx, dword [esi + 0x20]
call fcn.00427c2f
cmp dword [esi + edi*4 + 0xa8], 0
jne 0x42d4a1
cmp edi, ebx
jne 0x42cecb
push 0x648
call fcn.0042e6c8
pop ecx
mov dword [ebp - 0x74], eax
and dword [ebp - 4], 0
test eax, eax
je 0x42cdfe
mov ecx, eax
call fcn.0040e951
mov ebx, eax
jmp 0x42ce00
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.0043a156
push eax
lea ecx, [ebp - 0x74]
call fcn.0040232f
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x20]
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x28]
mov ecx, ebx
sub eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
push esi
push 0x68
call dword [eax + 0x164]
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
push 1
push eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
call fcn.0043781b
push 1
mov ecx, ebx
call fcn.00436f9c
push 5
mov ecx, ebx
call fcn.00437b2c
mov eax, dword [ebx + 0x20]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x74]
mov dword [esi + edi*4 + 0xa8], eax
lea ecx, [ecx - 0x10]
call fcn.0040241e
cmp edi, 3
jne 0x42cfc5
push 0xc80
call fcn.0042e6c8
pop ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x42cef8
mov ecx, eax
call fcn.0040eb64
mov ebx, eax
jmp 0x42cefa
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.0043a156
push eax
lea ecx, [ebp - 0x74]
call fcn.0040232f
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x20]
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x28]
mov ecx, ebx
sub eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
push esi
push 0x69
call dword [eax + 0x164]
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
push 1
push eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
call fcn.0043781b
push 1
mov ecx, ebx
call fcn.00436f9c
push 5
mov ecx, ebx
call fcn.00437b2c
mov eax, dword [ebx + 0x20]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x74]
mov dword [esi + edi*4 + 0xa8], eax
lea ecx, [ecx - 0x10]
call fcn.0040241e
push 4
pop ebx
cmp edi, ebx
jne 0x42d0bd
push 0xe08
call fcn.0042e6c8
pop ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x42cff0
mov ecx, eax
call fcn.0040efa3
mov ebx, eax
jmp 0x42cff2
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.0043a156
push eax
lea ecx, [ebp - 0x74]
call fcn.0040232f
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 5
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x20]
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x28]
mov ecx, ebx
sub eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
push esi
push 0x6a
call dword [eax + 0x164]
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
push 1
push eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
call fcn.0043781b
push 1
mov ecx, ebx
call fcn.00436f9c
push 5
mov ecx, ebx
call fcn.00437b2c
mov eax, dword [ebx + 0x20]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x74]
mov dword [esi + edi*4 + 0xa8], eax
lea ecx, [ecx - 0x10]
call fcn.0040241e
cmp edi, 2
jne 0x42d1b7
push 0x1b48
call fcn.0042e6c8
pop ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x42d0ea
mov ecx, eax
call fcn.0040f478
mov ebx, eax
jmp 0x42d0ec
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.0043a156
push eax
lea ecx, [ebp - 0x74]
call fcn.0040232f
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 7
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x20]
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x28]
mov ecx, ebx
sub eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
push esi
push 0x6b
call dword [eax + 0x164]
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
push 1
push eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
call fcn.0043781b
push 1
mov ecx, ebx
call fcn.00436f9c
push 5
mov ecx, ebx
call fcn.00437b2c
mov eax, dword [ebx + 0x20]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x74]
mov dword [esi + edi*4 + 0xa8], eax
lea ecx, [ecx - 0x10]
call fcn.0040241e
cmp edi, 5
jne 0x42d2b1
push 0xc88
call fcn.0042e6c8
pop ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x42d1e4
mov ecx, eax
call fcn.0040fd5d
mov ebx, eax
jmp 0x42d1e6
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.0043a156
push eax
lea ecx, [ebp - 0x74]
call fcn.0040232f
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 9
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x20]
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x28]
mov ecx, ebx
sub eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
push esi
push 0x6d
call dword [eax + 0x164]
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
push 1
push eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
call fcn.0043781b
push 1
mov ecx, ebx
call fcn.00436f9c
push 5
mov ecx, ebx
call fcn.00437b2c
mov eax, dword [ebx + 0x20]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x74]
mov dword [esi + edi*4 + 0xa8], eax
lea ecx, [ecx - 0x10]
call fcn.0040241e
cmp edi, 6
jne 0x42d3ab
push 0x538
call fcn.0042e6c8
pop ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x42d2de
mov ecx, eax
call fcn.0041018d
mov ebx, eax
jmp 0x42d2e0
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.0043a156
push eax
lea ecx, [ebp - 0x74]
call fcn.0040232f
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0xb
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x20]
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x28]
mov ecx, ebx
sub eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
push esi
push 0x6e
call dword [eax + 0x164]
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x18]
push 1
push eax
mov eax, dword [ebp - 0x38]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
call fcn.0043781b
push 1
mov ecx, ebx
call fcn.00436f9c
push 5
mov ecx, ebx
call fcn.00437b2c
mov eax, dword [ebx + 0x20]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x74]
mov dword [esi + edi*4 + 0xa8], eax
lea ecx, [ecx - 0x10]
call fcn.0040241e
cmp edi, 7
jne 0x42d4a1
push 0xc0
call fcn.0042e6c8
pop ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0xc
test eax, eax
je 0x42d3d8
mov ecx, eax
call fcn.00410387
mov ebx, eax
jmp 0x42d3da
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.0043a156
push eax
lea ecx, [ebp - 0x74]
call fcn.0040232f
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0xd
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x50]
push eax
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [ebp - 0x50]
push eax
push dword [esi + 0x20]
push dword [esi + 0xf8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x58]
mov ecx, ebx
sub eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx]
push esi
push 0x6f
call dword [eax + 0x164]
lea eax, [ebp - 0x70]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x48]
push 1
push eax
mov eax, dword [ebp - 0x68]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
call fcn.0043781b
push 1
mov ecx, ebx
call fcn.00436f9c
push 5
mov ecx, ebx
call fcn.00437b2c
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x20]
mov dword [esi + edi*4 + 0xa8], eax
lea ecx, [ecx - 0x10]
call fcn.0040241e
mov eax, dword [esi + 0x15c]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
cmp eax, 0xffffffff
je 0x42d4c2
mov eax, dword [esi + eax*4 + 0xa8]
test eax, eax
je 0x42d4c2
push 0
push eax
call ebx
mov eax, dword [esi + edi*4 + 0xa8]
test eax, eax
je 0x42d4d2
push 5
push eax
call ebx
and dword [0x61dbe8], 0
mov dword [esi + 0x15c], edi
call fcn.0057183f
ret 4