Function at 0x515cb8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov edi, 0x56ea2c
cmp dword [0x56ea60], 0
je 0x515cec
call fcn.00515b64
test eax, eax
jne 0x515ce5
call fcn.00515c74
jmp 0x51605c
xor eax, eax
mov dword [0x56ea60], eax
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [edi]
test eax, eax
je 0x515d1e
push 0x7c
push eax
call sub.USER32.dll_KillTimer
push 0x7d
push dword [edi]
call sub.USER32.dll_KillTimer
test ebx, ebx
jne 0x515d8a
mov dword [ebp - 4], 0xfa
push 0
push dword [edi]
call sub.USER32.dll_ShowWindow
jmp 0x515d8a
push 0x7c
push dword [edi]
call sub.USER32.dll_KillTimer
push 0x7d
push dword [edi]
call sub.USER32.dll_KillTimer
test ebx, ebx
jne 0x515d3b
mov dword [ebp - 4], 0xfa
push 0
push dword [0x56f014]
push 0
push 0
push dword [0x56ea4c]
push dword [0x56ea50]
push dword [0x56ea58]
push dword [0x56ea54]
push 0x8a800000
push 0x56ea64
push str.mIRC_Tooltips
push 0x80
call sub.USER32.dll_CreateWindowExA
mov esi, eax
mov dword [edi], esi
test esi, esi
jne 0x515d8a
call fcn.00515c74
jmp 0x51605c
cmp ebx, 2
jne 0x515da1
mov eax, dword [0x55f2f0]
mov dword [0x56ea30], eax
push eax
call sub.USER32.dll_UpdateWindow
jmp 0x515db1
mov eax, dword [0x55f520]
mov dword [0x56ea30], eax
push eax
call sub.USER32.dll_UpdateWindow
mov eax, dword [ebp + 0xc]
mov dword [0x56ea38], eax
mov esi, eax
test ebx, ebx
jne 0x515e07
test esi, esi
jne 0x515dd0
call fcn.00412a5c
dec eax
jne 0x515dd0
mov esi, 1
cmp esi, 0x10
jne 0x515de3
cmp dword [0x565cf0], 0
je 0x515de3
mov esi, 0x11
push 0x5894bc
add esi, 0x14b5
push esi
call fcn.0042c771
cmp byte [0x5894bc], 0
jne 0x515e5c
call fcn.00515c74
jmp 0x51605c
cmp ebx, 1
jne 0x515e17
inc dword [0x56ea5c]
jmp 0x51605c
cmp ebx, 2
jne 0x51605c
mov eax, dword [ebp + 0x14]
push edi
mov esi, 0x5894bc
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
cmp byte [0x5894bc], 0
jne 0x515e5c
call fcn.00515c74
jmp 0x51605c
push dword [edi]
call sub.USER32.dll_GetDC
mov esi, eax
test esi, esi
jne 0x515e73
call fcn.00515c74
jmp 0x51605c
push 0xc
call sub.GDI32.dll_GetStockObject
push eax
push esi
call sub.GDI32.dll_SelectObject
mov dword [ebp - 8], eax
push esi
push edi
mov esi, 0x5895c0
mov edi, 0x5894bc
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0xf
push 0x5895c0
call fcn.0050e7f8
lea eax, [ebp - 0x10]
push eax
push 0x5895c0
call fcn.0054e28c
pop ecx
push eax
push 0x5895c0
push esi
call sub.GDI32.dll_GetTextExtentPointA
push dword [ebp - 8]
push esi
call sub.GDI32.dll_SelectObject
push esi
push dword [edi]
call sub.USER32.dll_ReleaseDC
mov edx, dword [ebp - 0x10]
add edx, 5
mov dword [0x56ea50], edx
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [0x56ea4c], ecx
cmp ebx, 2
jne 0x515f3f
lea eax, [ebp - 0x20]
push eax
push dword [0x56f018]
call sub.USER32.dll_GetWindowRect
movzx eax, word [ebp + 8]
mov dword [0x56ea54], eax
mov edx, dword [ebp + 8]
shr edx, 0x10
and dx, 0xffff
movzx ecx, dx
mov dword [0x56ea58], ecx
mov edx, dword [ebp - 0x20]
cmp eax, edx
jge 0x515f9c
mov dword [0x56ea54], edx
jmp 0x515f9c
mov eax, dword [0x56ea50]
mov ecx, 3
cdq
idiv ecx
movzx edx, word [ebp + 8]
sub edx, eax
mov dword [0x56ea54], edx
mov eax, dword [ebp + 8]
shr eax, 0x10
and ax, 0xffff
movzx ecx, ax
add ecx, 0x11
mov dword [0x56ea58], ecx
lea eax, [ebp - 0x20]
push eax
push dword [0x55f520]
call sub.USER32.dll_GetWindowRect
mov eax, dword [ebp - 0x20]
add dword [0x56ea54], eax
mov edx, dword [ebp - 0x1c]
add dword [0x56ea58], edx
cmp eax, dword [0x56ea54]
jle 0x515f9c
mov dword [0x56ea54], eax
lea ecx, [ebp - 0x20]
push ecx
push dword [0x56f018]
call sub.USER32.dll_GetWindowRect
mov edx, dword [0x56ea54]
add edx, dword [0x56ea50]
mov eax, dword [ebp - 0x18]
cmp edx, eax
jle 0x515fc9
add eax, 0xfffffffb
sub edx, eax
sub dword [0x56ea54], edx
cmp dword [ebp - 4], 0
je 0x51600d
push 0
push dword [edi]
call sub.USER32.dll_ShowWindow
push 0x10
mov ecx, dword [0x56ea4c]
inc ecx
push ecx
push dword [0x56ea50]
push dword [0x56ea58]
push dword [0x56ea54]
push 1
push dword [edi]
call sub.USER32.dll_SetWindowPos
push 0
push dword [ebp - 4]
push 0x7d
push dword [edi]
call sub.USER32.dll_SetTimer
jmp 0x516055
push 0x10
mov eax, dword [0x56ea4c]
inc eax
push eax
push dword [0x56ea50]
push dword [0x56ea58]
push dword [0x56ea54]
push 0xffffffffffffffff
push dword [edi]
call sub.USER32.dll_SetWindowPos
push 8
push dword [edi]
call sub.USER32.dll_ShowWindow
push 1
push 0
push dword [edi]
call sub.USER32.dll_InvalidateRect
push 0
push 0x1388
push 0x7c
push dword [edi]
call sub.USER32.dll_SetTimer
push dword [edi]
call sub.USER32.dll_UpdateWindow
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10