Function at 0x513f7c
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, 0x56c8fc
cmp dword [0x56c930], 0
je 0x513fb0
call fcn.00513e28
test eax, eax
jne 0x513fa9
call fcn.00513f38
jmp 0x514320
xor eax, eax
mov dword [0x56c930], eax
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [edi]
test eax, eax
je 0x513fe2
push 0x7c
push eax
call sub.USER32.dll_KillTimer
push 0x7d
push dword [edi]
call sub.USER32.dll_KillTimer
test ebx, ebx
jne 0x51404e
mov dword [ebp - 4], 0xfa
push 0
push dword [edi]
call sub.USER32.dll_ShowWindow
jmp 0x51404e
push 0x7c
push dword [edi]
call sub.USER32.dll_KillTimer
push 0x7d
push dword [edi]
call sub.USER32.dll_KillTimer
test ebx, ebx
jne 0x513fff
mov dword [ebp - 4], 0xfa
push 0
push dword [0x56cee4]
push 0
push 0
push dword [0x56c91c]
push dword [0x56c920]
push dword [0x56c928]
push dword [0x56c924]
push 0x8a800000
push 0x56c934
push str.mIRC_Tooltips
push 0x80
call sub.USER32.dll_CreateWindowExA
mov esi, eax
mov dword [edi], esi
test esi, esi
jne 0x51404e
call fcn.00513f38
jmp 0x514320
cmp ebx, 2
jne 0x514065
mov eax, dword [0x55d2f8]
mov dword [0x56c900], eax
push eax
call sub.USER32.dll_UpdateWindow
jmp 0x514075
mov eax, dword [0x55d528]
mov dword [0x56c900], eax
push eax
call sub.USER32.dll_UpdateWindow
mov eax, dword [ebp + 0xc]
mov dword [0x56c908], eax
mov esi, eax
test ebx, ebx
jne 0x5140cb
test esi, esi
jne 0x514094
call fcn.00412bb0
dec eax
jne 0x514094
mov esi, 1
cmp esi, 0x10
jne 0x5140a7
cmp dword [0x563c94], 0
je 0x5140a7
mov esi, 0x11
push 0x587658
add esi, 0x14b5
push esi
call fcn.0042c564
cmp byte [0x587658], 0
jne 0x514120
call fcn.00513f38
jmp 0x514320
cmp ebx, 1
jne 0x5140db
inc dword [0x56c92c]
jmp 0x514320
cmp ebx, 2
jne 0x514320
mov eax, dword [ebp + 0x14]
push edi
mov esi, 0x587658
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 [0x587658], 0
jne 0x514120
call fcn.00513f38
jmp 0x514320
push dword [edi]
call sub.USER32.dll_GetDC
mov esi, eax
test esi, esi
jne 0x514137
call fcn.00513f38
jmp 0x514320
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, 0x58775c
mov edi, 0x587658
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 0x58775c
call fcn.0050cc40
lea eax, [ebp - 0x10]
push eax
push 0x58775c
call fcn.0054c2d0
pop ecx
push eax
push 0x58775c
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 [0x56c920], edx
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [0x56c91c], ecx
cmp ebx, 2
jne 0x514203
lea eax, [ebp - 0x20]
push eax
push dword [0x56cee8]
call sub.USER32.dll_GetWindowRect
movzx eax, word [ebp + 8]
mov dword [0x56c924], eax
mov edx, dword [ebp + 8]
shr edx, 0x10
and dx, 0xffff
movzx ecx, dx
mov dword [0x56c928], ecx
mov edx, dword [ebp - 0x20]
cmp eax, edx
jge 0x514260
mov dword [0x56c924], edx
jmp 0x514260
mov eax, dword [0x56c920]
mov ecx, 3
cdq
idiv ecx
movzx edx, word [ebp + 8]
sub edx, eax
mov dword [0x56c924], edx
mov eax, dword [ebp + 8]
shr eax, 0x10
and ax, 0xffff
movzx ecx, ax
add ecx, 0x11
mov dword [0x56c928], ecx
lea eax, [ebp - 0x20]
push eax
push dword [0x55d528]
call sub.USER32.dll_GetWindowRect
mov eax, dword [ebp - 0x20]
add dword [0x56c924], eax
mov edx, dword [ebp - 0x1c]
add dword [0x56c928], edx
cmp eax, dword [0x56c924]
jle 0x514260
mov dword [0x56c924], eax
lea ecx, [ebp - 0x20]
push ecx
push dword [0x56cee8]
call sub.USER32.dll_GetWindowRect
mov edx, dword [0x56c924]
add edx, dword [0x56c920]
mov eax, dword [ebp - 0x18]
cmp edx, eax
jle 0x51428d
add eax, 0xfffffffb
sub edx, eax
sub dword [0x56c924], edx
cmp dword [ebp - 4], 0
je 0x5142d1
push 0
push dword [edi]
call sub.USER32.dll_ShowWindow
push 0x10
mov ecx, dword [0x56c91c]
inc ecx
push ecx
push dword [0x56c920]
push dword [0x56c928]
push dword [0x56c924]
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 0x514319
push 0x10
mov eax, dword [0x56c91c]
inc eax
push eax
push dword [0x56c920]
push dword [0x56c928]
push dword [0x56c924]
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