Function at 0x4a7980
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff94
mov ebx, eax
mov eax, dword [ebx + 0x1860]
test eax, eax
je 0x4a7c17
cmp byte [ebx + 0x26d], 3
je 0x4a79ac
xor edx, edx
call fcn.004784cc
jmp 0x4a7c17
xor eax, eax
mov dword [ebx + 0x1898], eax
push 5
call sub.user32.dll_GetSystemMetrics
mov ebp, eax
push 0x2d
call sub.user32.dll_GetSystemMetrics
mov dword [esp + 0x10], eax
push 0xfffffffffffffff0
mov eax, ebx
call fcn.00480ea8
push eax
call sub.user32.dll_GetWindowLongW
mov esi, eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.00480ea8
push eax
call sub.user32.dll_GetWindowLongW
mov edi, eax
mov eax, ebx
call fcn.004a6df8
test al, al
jne 0x4a7a0d
push 0
mov eax, dword [ebx + 0x1860]
call fcn.00480ea8
push eax
call sub.user32.dll_ShowWindow
jmp 0x4a7c17
mov eax, esi
and eax, 0x800000
test eax, eax
je 0x4a7a1e
add dword [ebx + 0x1898], ebp
mov eax, edi
and eax, 0x200
test eax, eax
je 0x4a7a33
mov eax, dword [esp + 0x10]
add dword [ebx + 0x1898], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x3f8]
push eax
call sub.user32.dll_GetWindowRect
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebx + 0x30]
call fcn.00480ea8
push eax
call sub.user32.dll_GetWindowRect
lea eax, [esp + 0x54]
push eax
mov eax, ebx
call fcn.00480ea8
push eax
call sub.user32.dll_GetWindowRect
mov ecx, dword [esp + 0x54]
mov esi, ecx
mov eax, dword [esp + 0x14]
sub esi, eax
mov edx, dword [ebx + 0x1898]
add esi, edx
add esi, dword [ebx + 0x418]
test esi, esi
mov esi, eax
sub esi, dword [esp + 0x24]
mov dword [esp], esi
mov edi, dword [ebx + 0x44]
add edi, edx
add edi, dword [ebx + 0x1b0]
mov dword [esp + 4], edi
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov esi, dword [ebx + 0x42c]
lea ecx, [esp + 0x64]
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.004780dc
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x64]
lea edx, [esp + 0x1c]
mov eax, ebx
call fcn.004780dc
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
push 0
push 0x1207
mov eax, dword [ebx + 0x3f8]
push eax
call sub.user32.dll_SendMessageW
push esi
push edi
lea esi, [esp + 0x3c]
lea edi, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov edx, dword [ebx + 0x1860]
test edx, edx
je 0x4a7c17
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov eax, dword [edx + 0x2ac]
sub ecx, eax
add ecx, esi
sar ecx, 1
jns 0x4a7b42
adc ecx, 0
mov esi, edi
add esi, ecx
mov dword [esp + 0x48], esi
add eax, esi
mov dword [esp + 0x50], eax
mov esi, dword [ebx + 0x418]
add esi, dword [esp]
mov dword [esp + 0x44], esi
xor eax, eax
mov edi, dword [ebx + 0x40]
mov ecx, edi
mov ebp, dword [ebx + 0x1898]
add ecx, ebp
cmp esi, ecx
jge 0x4a7b7e
mov eax, edi
add eax, ebp
sub eax, dword [esp + 0x44]
add edi, ebp
mov dword [esp + 0x44], edi
mov edx, dword [edx + 0x2a8]
add edx, dword [esp + 0x44]
sub edx, eax
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x2c]
add edx, dword [esp]
sub edx, dword [ebx + 0x418]
cmp edx, dword [esp + 0x4c]
jge 0x4a7bb2
mov edx, dword [esp + 0x2c]
add edx, dword [esp]
sub edx, dword [ebx + 0x418]
mov dword [esp + 0x4c], edx
mov esi, dword [ebx + 0x1860]
mov edx, dword [esi + 0x40]
mov edi, dword [esp + 0x44]
cmp edx, edi
jne 0x4a7bec
mov edx, dword [esi + 0x44]
cmp edx, dword [esp + 0x48]
jne 0x4a7bec
mov edx, dword [esp + 0x4c]
sub edx, edi
cmp edx, dword [esi + 0x48]
jne 0x4a7bec
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x48]
cmp edx, dword [esi + 0x4c]
jne 0x4a7bec
cmp eax, dword [esi + 0x2b0]
je 0x4a7c17
mov dword [esi + 0x2b0], eax
push 0x40
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
sub eax, ebp
push eax
mov eax, dword [esp + 0x54]
sub eax, edi
push eax
push ebp
push edi
push 0
mov eax, esi
call fcn.00480ea8
push eax
call sub.user32.dll_SetWindowPos
add esp, 0x6c
pop ebp
pop edi
pop esi
pop ebx
ret